multi1.pb.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: multi/multi1.proto
  3. package multitest // import "github.com/golang/protobuf/protoc-gen-go/testdata/multi"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. type Multi1 struct {
  17. Multi2 *Multi2 `protobuf:"bytes,1,req,name=multi2" json:"multi2,omitempty"`
  18. Color *Multi2_Color `protobuf:"varint,2,opt,name=color,enum=multitest.Multi2_Color" json:"color,omitempty"`
  19. HatType *Multi3_HatType `protobuf:"varint,3,opt,name=hat_type,json=hatType,enum=multitest.Multi3_HatType" json:"hat_type,omitempty"`
  20. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  21. XXX_unrecognized []byte `json:"-"`
  22. XXX_sizecache int32 `json:"-"`
  23. }
  24. func (m *Multi1) Reset() { *m = Multi1{} }
  25. func (m *Multi1) String() string { return proto.CompactTextString(m) }
  26. func (*Multi1) ProtoMessage() {}
  27. func (*Multi1) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_multi1_08e50c6822e808b8, []int{0}
  29. }
  30. func (m *Multi1) XXX_Unmarshal(b []byte) error {
  31. return xxx_messageInfo_Multi1.Unmarshal(m, b)
  32. }
  33. func (m *Multi1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. return xxx_messageInfo_Multi1.Marshal(b, m, deterministic)
  35. }
  36. func (dst *Multi1) XXX_Merge(src proto.Message) {
  37. xxx_messageInfo_Multi1.Merge(dst, src)
  38. }
  39. func (m *Multi1) XXX_Size() int {
  40. return xxx_messageInfo_Multi1.Size(m)
  41. }
  42. func (m *Multi1) XXX_DiscardUnknown() {
  43. xxx_messageInfo_Multi1.DiscardUnknown(m)
  44. }
  45. var xxx_messageInfo_Multi1 proto.InternalMessageInfo
  46. func (m *Multi1) GetMulti2() *Multi2 {
  47. if m != nil {
  48. return m.Multi2
  49. }
  50. return nil
  51. }
  52. func (m *Multi1) GetColor() Multi2_Color {
  53. if m != nil && m.Color != nil {
  54. return *m.Color
  55. }
  56. return Multi2_BLUE
  57. }
  58. func (m *Multi1) GetHatType() Multi3_HatType {
  59. if m != nil && m.HatType != nil {
  60. return *m.HatType
  61. }
  62. return Multi3_FEDORA
  63. }
  64. func init() {
  65. proto.RegisterType((*Multi1)(nil), "multitest.Multi1")
  66. }
  67. func init() { proto.RegisterFile("multi/multi1.proto", fileDescriptor_multi1_08e50c6822e808b8) }
  68. var fileDescriptor_multi1_08e50c6822e808b8 = []byte{
  69. // 200 bytes of a gzipped FileDescriptorProto
  70. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xca, 0x2d, 0xcd, 0x29,
  71. 0xc9, 0xd4, 0x07, 0x93, 0x86, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x9c, 0x60, 0x5e, 0x49,
  72. 0x6a, 0x71, 0x89, 0x14, 0xb2, 0xb4, 0x11, 0x44, 0x1a, 0x45, 0xcc, 0x18, 0x22, 0xa6, 0x34, 0x83,
  73. 0x91, 0x8b, 0xcd, 0x17, 0x6c, 0x86, 0x90, 0x26, 0x17, 0x1b, 0x44, 0xb9, 0x04, 0xa3, 0x02, 0x93,
  74. 0x06, 0xb7, 0x91, 0xa0, 0x1e, 0xdc, 0x38, 0x3d, 0xb0, 0x12, 0xa3, 0x20, 0xa8, 0x02, 0x21, 0x5d,
  75. 0x2e, 0xd6, 0xe4, 0xfc, 0x9c, 0xfc, 0x22, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x3e, 0x23, 0x71, 0x0c,
  76. 0x95, 0x7a, 0xce, 0x20, 0xe9, 0x20, 0x88, 0x2a, 0x21, 0x13, 0x2e, 0x8e, 0x8c, 0xc4, 0x92, 0xf8,
  77. 0x92, 0xca, 0x82, 0x54, 0x09, 0x66, 0xb0, 0x0e, 0x49, 0x74, 0x1d, 0xc6, 0x7a, 0x1e, 0x89, 0x25,
  78. 0x21, 0x95, 0x05, 0xa9, 0x41, 0xec, 0x19, 0x10, 0x86, 0x93, 0x73, 0x94, 0x63, 0x7a, 0x66, 0x49,
  79. 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7a, 0x7e, 0x4e, 0x62, 0x5e, 0xba, 0x3e, 0xd8,
  80. 0xd5, 0x49, 0xa5, 0x69, 0x10, 0x46, 0xb2, 0x6e, 0x7a, 0x6a, 0x9e, 0x6e, 0x7a, 0xbe, 0x3e, 0xc8,
  81. 0xa0, 0x94, 0xc4, 0x92, 0x44, 0x88, 0xe7, 0xac, 0xe1, 0x86, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff,
  82. 0x60, 0x7d, 0xfc, 0x9f, 0x27, 0x01, 0x00, 0x00,
  83. }