b.pb.go 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: import_public/b.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. type Local struct {
  18. M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
  19. E sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.test.import_public.sub.E" json:"e,omitempty"`
  20. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  21. XXX_unrecognized []byte `json:"-"`
  22. XXX_sizecache int32 `json:"-"`
  23. }
  24. func (m *Local) Reset() { *m = Local{} }
  25. func (m *Local) String() string { return proto.CompactTextString(m) }
  26. func (*Local) ProtoMessage() {}
  27. func (*Local) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_b_7f20a805fad67bd0, []int{0}
  29. }
  30. func (m *Local) XXX_Unmarshal(b []byte) error {
  31. return xxx_messageInfo_Local.Unmarshal(m, b)
  32. }
  33. func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. return xxx_messageInfo_Local.Marshal(b, m, deterministic)
  35. }
  36. func (dst *Local) XXX_Merge(src proto.Message) {
  37. xxx_messageInfo_Local.Merge(dst, src)
  38. }
  39. func (m *Local) XXX_Size() int {
  40. return xxx_messageInfo_Local.Size(m)
  41. }
  42. func (m *Local) XXX_DiscardUnknown() {
  43. xxx_messageInfo_Local.DiscardUnknown(m)
  44. }
  45. var xxx_messageInfo_Local proto.InternalMessageInfo
  46. func (m *Local) GetM() *sub.M {
  47. if m != nil {
  48. return m.M
  49. }
  50. return nil
  51. }
  52. func (m *Local) GetE() sub.E {
  53. if m != nil {
  54. return m.E
  55. }
  56. return sub.E_ZERO
  57. }
  58. func init() {
  59. proto.RegisterType((*Local)(nil), "goproto.test.import_public.Local")
  60. }
  61. func init() { proto.RegisterFile("import_public/b.proto", fileDescriptor_b_7f20a805fad67bd0) }
  62. var fileDescriptor_b_7f20a805fad67bd0 = []byte{
  63. // 174 bytes of a gzipped FileDescriptorProto
  64. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0xcc, 0x2d, 0xc8,
  65. 0x2f, 0x2a, 0x89, 0x2f, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0xd6, 0x4f, 0xd2, 0x2b, 0x28, 0xca, 0x2f,
  66. 0xc9, 0x17, 0x92, 0x4a, 0xcf, 0x07, 0x33, 0xf4, 0x4a, 0x52, 0x8b, 0x4b, 0xf4, 0x50, 0xd4, 0x48,
  67. 0x49, 0xa2, 0x6a, 0x29, 0x2e, 0x4d, 0xd2, 0x4f, 0x84, 0x68, 0x53, 0xca, 0xe4, 0x62, 0xf5, 0xc9,
  68. 0x4f, 0x4e, 0xcc, 0x11, 0xd2, 0xe7, 0x62, 0xcc, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x52,
  69. 0xd4, 0xc3, 0x6d, 0x96, 0x5e, 0x71, 0x69, 0x92, 0x9e, 0x6f, 0x10, 0x63, 0x2e, 0x48, 0x43, 0xaa,
  70. 0x04, 0x93, 0x02, 0xa3, 0x06, 0x1f, 0x61, 0x0d, 0xae, 0x41, 0x8c, 0xa9, 0x4e, 0x8e, 0x51, 0xf6,
  71. 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xe9, 0xf9, 0x39, 0x89, 0x79,
  72. 0xe9, 0xfa, 0x60, 0x6d, 0x49, 0xa5, 0x69, 0x10, 0x46, 0xb2, 0x6e, 0x7a, 0x6a, 0x9e, 0x6e, 0x7a,
  73. 0xbe, 0x3e, 0xc8, 0x9c, 0x94, 0xc4, 0x92, 0x44, 0x7d, 0x14, 0xb3, 0x92, 0xd8, 0xc0, 0xaa, 0x8c,
  74. 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x2b, 0x5f, 0x8e, 0x04, 0x01, 0x00, 0x00,
  75. }