a.pb.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: import_public/a.proto
  3. package import_public // import "github.com/golang/protobuf/protoc-gen-go/testdata/import_public"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import sub "github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // M from public import import_public/sub/a.proto
  18. type M = sub.M
  19. // E from public import import_public/sub/a.proto
  20. type E = sub.E
  21. var E_name = sub.E_name
  22. var E_value = sub.E_value
  23. const E_ZERO = E(sub.E_ZERO)
  24. // Ignoring public import of Local from import_public/b.proto
  25. type Public struct {
  26. M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
  27. E sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.test.import_public.sub.E" json:"e,omitempty"`
  28. Local *Local `protobuf:"bytes,3,opt,name=local" json:"local,omitempty"`
  29. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  30. XXX_unrecognized []byte `json:"-"`
  31. XXX_sizecache int32 `json:"-"`
  32. }
  33. func (m *Public) Reset() { *m = Public{} }
  34. func (m *Public) String() string { return proto.CompactTextString(m) }
  35. func (*Public) ProtoMessage() {}
  36. func (*Public) Descriptor() ([]byte, []int) {
  37. return fileDescriptor_a_c0314c022b7c17d8, []int{0}
  38. }
  39. func (m *Public) XXX_Unmarshal(b []byte) error {
  40. return xxx_messageInfo_Public.Unmarshal(m, b)
  41. }
  42. func (m *Public) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  43. return xxx_messageInfo_Public.Marshal(b, m, deterministic)
  44. }
  45. func (dst *Public) XXX_Merge(src proto.Message) {
  46. xxx_messageInfo_Public.Merge(dst, src)
  47. }
  48. func (m *Public) XXX_Size() int {
  49. return xxx_messageInfo_Public.Size(m)
  50. }
  51. func (m *Public) XXX_DiscardUnknown() {
  52. xxx_messageInfo_Public.DiscardUnknown(m)
  53. }
  54. var xxx_messageInfo_Public proto.InternalMessageInfo
  55. func (m *Public) GetM() *sub.M {
  56. if m != nil {
  57. return m.M
  58. }
  59. return nil
  60. }
  61. func (m *Public) GetE() sub.E {
  62. if m != nil {
  63. return m.E
  64. }
  65. return sub.E_ZERO
  66. }
  67. func (m *Public) GetLocal() *Local {
  68. if m != nil {
  69. return m.Local
  70. }
  71. return nil
  72. }
  73. func init() {
  74. proto.RegisterType((*Public)(nil), "goproto.test.import_public.Public")
  75. }
  76. func init() { proto.RegisterFile("import_public/a.proto", fileDescriptor_a_c0314c022b7c17d8) }
  77. var fileDescriptor_a_c0314c022b7c17d8 = []byte{
  78. // 200 bytes of a gzipped FileDescriptorProto
  79. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0xcc, 0x2d, 0xc8,
  80. 0x2f, 0x2a, 0x89, 0x2f, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0xd6, 0x4f, 0xd4, 0x2b, 0x28, 0xca, 0x2f,
  81. 0xc9, 0x17, 0x92, 0x4a, 0xcf, 0x07, 0x33, 0xf4, 0x4a, 0x52, 0x8b, 0x4b, 0xf4, 0x50, 0xd4, 0x48,
  82. 0x49, 0xa2, 0x6a, 0x29, 0x2e, 0x4d, 0x82, 0x69, 0x93, 0x42, 0x33, 0x2d, 0x09, 0x22, 0xac, 0xb4,
  83. 0x98, 0x91, 0x8b, 0x2d, 0x00, 0x2c, 0x24, 0xa4, 0xcf, 0xc5, 0x98, 0x2b, 0xc1, 0xa8, 0xc0, 0xa8,
  84. 0xc1, 0x6d, 0xa4, 0xa8, 0x87, 0xdb, 0x12, 0xbd, 0xe2, 0xd2, 0x24, 0x3d, 0xdf, 0x20, 0xc6, 0x5c,
  85. 0x90, 0x86, 0x54, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x3e, 0xc2, 0x1a, 0x5c, 0x83, 0x18, 0x53, 0x85,
  86. 0xcc, 0xb9, 0x58, 0x73, 0xf2, 0x93, 0x13, 0x73, 0x24, 0x98, 0x09, 0xdb, 0xe2, 0x03, 0x52, 0x18,
  87. 0x04, 0x51, 0xef, 0xe4, 0x18, 0x65, 0x9f, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f,
  88. 0xab, 0x9f, 0x9e, 0x9f, 0x93, 0x98, 0x97, 0xae, 0x0f, 0xd6, 0x9a, 0x54, 0x9a, 0x06, 0x61, 0x24,
  89. 0xeb, 0xa6, 0xa7, 0xe6, 0xe9, 0xa6, 0xe7, 0xeb, 0x83, 0xcc, 0x4a, 0x49, 0x2c, 0x49, 0xd4, 0x47,
  90. 0x31, 0x2f, 0x80, 0x21, 0x80, 0x31, 0x89, 0x0d, 0xac, 0xd2, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff,
  91. 0x70, 0xc5, 0xc3, 0x79, 0x5a, 0x01, 0x00, 0x00,
  92. }