multi2.pb.go 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: multi/multi2.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 Multi2_Color int32
  17. const (
  18. Multi2_BLUE Multi2_Color = 1
  19. Multi2_GREEN Multi2_Color = 2
  20. Multi2_RED Multi2_Color = 3
  21. )
  22. var Multi2_Color_name = map[int32]string{
  23. 1: "BLUE",
  24. 2: "GREEN",
  25. 3: "RED",
  26. }
  27. var Multi2_Color_value = map[string]int32{
  28. "BLUE": 1,
  29. "GREEN": 2,
  30. "RED": 3,
  31. }
  32. func (x Multi2_Color) Enum() *Multi2_Color {
  33. p := new(Multi2_Color)
  34. *p = x
  35. return p
  36. }
  37. func (x Multi2_Color) String() string {
  38. return proto.EnumName(Multi2_Color_name, int32(x))
  39. }
  40. func (x *Multi2_Color) UnmarshalJSON(data []byte) error {
  41. value, err := proto.UnmarshalJSONEnum(Multi2_Color_value, data, "Multi2_Color")
  42. if err != nil {
  43. return err
  44. }
  45. *x = Multi2_Color(value)
  46. return nil
  47. }
  48. func (Multi2_Color) EnumDescriptor() ([]byte, []int) {
  49. return fileDescriptor_multi2_c47490ad66d93e67, []int{0, 0}
  50. }
  51. type Multi2 struct {
  52. RequiredValue *int32 `protobuf:"varint,1,req,name=required_value,json=requiredValue" json:"required_value,omitempty"`
  53. Color *Multi2_Color `protobuf:"varint,2,opt,name=color,enum=multitest.Multi2_Color" json:"color,omitempty"`
  54. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  55. XXX_unrecognized []byte `json:"-"`
  56. XXX_sizecache int32 `json:"-"`
  57. }
  58. func (m *Multi2) Reset() { *m = Multi2{} }
  59. func (m *Multi2) String() string { return proto.CompactTextString(m) }
  60. func (*Multi2) ProtoMessage() {}
  61. func (*Multi2) Descriptor() ([]byte, []int) {
  62. return fileDescriptor_multi2_c47490ad66d93e67, []int{0}
  63. }
  64. func (m *Multi2) XXX_Unmarshal(b []byte) error {
  65. return xxx_messageInfo_Multi2.Unmarshal(m, b)
  66. }
  67. func (m *Multi2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  68. return xxx_messageInfo_Multi2.Marshal(b, m, deterministic)
  69. }
  70. func (dst *Multi2) XXX_Merge(src proto.Message) {
  71. xxx_messageInfo_Multi2.Merge(dst, src)
  72. }
  73. func (m *Multi2) XXX_Size() int {
  74. return xxx_messageInfo_Multi2.Size(m)
  75. }
  76. func (m *Multi2) XXX_DiscardUnknown() {
  77. xxx_messageInfo_Multi2.DiscardUnknown(m)
  78. }
  79. var xxx_messageInfo_Multi2 proto.InternalMessageInfo
  80. func (m *Multi2) GetRequiredValue() int32 {
  81. if m != nil && m.RequiredValue != nil {
  82. return *m.RequiredValue
  83. }
  84. return 0
  85. }
  86. func (m *Multi2) GetColor() Multi2_Color {
  87. if m != nil && m.Color != nil {
  88. return *m.Color
  89. }
  90. return Multi2_BLUE
  91. }
  92. func init() {
  93. proto.RegisterType((*Multi2)(nil), "multitest.Multi2")
  94. proto.RegisterEnum("multitest.Multi2_Color", Multi2_Color_name, Multi2_Color_value)
  95. }
  96. func init() { proto.RegisterFile("multi/multi2.proto", fileDescriptor_multi2_c47490ad66d93e67) }
  97. var fileDescriptor_multi2_c47490ad66d93e67 = []byte{
  98. // 202 bytes of a gzipped FileDescriptorProto
  99. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xca, 0x2d, 0xcd, 0x29,
  100. 0xc9, 0xd4, 0x07, 0x93, 0x46, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x9c, 0x60, 0x5e, 0x49,
  101. 0x6a, 0x71, 0x89, 0x52, 0x2b, 0x23, 0x17, 0x9b, 0x2f, 0x58, 0x4e, 0x48, 0x95, 0x8b, 0xaf, 0x28,
  102. 0xb5, 0xb0, 0x34, 0xb3, 0x28, 0x35, 0x25, 0xbe, 0x2c, 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81,
  103. 0x49, 0x83, 0x35, 0x88, 0x17, 0x26, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe5, 0x62, 0x4d, 0xce, 0xcf,
  104. 0xc9, 0x2f, 0x92, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, 0x12, 0xd7, 0x83, 0x1b, 0xa6, 0x07, 0x31,
  105. 0x48, 0xcf, 0x19, 0x24, 0x1d, 0x04, 0x51, 0xa5, 0xa4, 0xca, 0xc5, 0x0a, 0xe6, 0x0b, 0x71, 0x70,
  106. 0xb1, 0x38, 0xf9, 0x84, 0xba, 0x0a, 0x30, 0x0a, 0x71, 0x72, 0xb1, 0xba, 0x07, 0xb9, 0xba, 0xfa,
  107. 0x09, 0x30, 0x09, 0xb1, 0x73, 0x31, 0x07, 0xb9, 0xba, 0x08, 0x30, 0x3b, 0x39, 0x47, 0x39, 0xa6,
  108. 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5,
  109. 0xeb, 0x83, 0x5d, 0x9b, 0x54, 0x9a, 0x06, 0x61, 0x24, 0xeb, 0xa6, 0xa7, 0xe6, 0xe9, 0xa6, 0xe7,
  110. 0xeb, 0x83, 0xec, 0x4a, 0x49, 0x2c, 0x49, 0x84, 0x78, 0xca, 0x1a, 0x6e, 0x3f, 0x20, 0x00, 0x00,
  111. 0xff, 0xff, 0x49, 0x3b, 0x52, 0x44, 0xec, 0x00, 0x00, 0x00,
  112. }