1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: multi/multi2.proto 3 4package multitest 5 6import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10) 11 12// Reference imports to suppress errors if they are not otherwise used. 13var _ = proto.Marshal 14var _ = fmt.Errorf 15var _ = math.Inf 16 17// This is a compile-time assertion to ensure that this generated file 18// is compatible with the proto package it is being compiled against. 19// A compilation error at this line likely means your copy of the 20// proto package needs to be updated. 21const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23type Multi2_Color int32 24 25const ( 26 Multi2_BLUE Multi2_Color = 1 27 Multi2_GREEN Multi2_Color = 2 28 Multi2_RED Multi2_Color = 3 29) 30 31var Multi2_Color_name = map[int32]string{ 32 1: "BLUE", 33 2: "GREEN", 34 3: "RED", 35} 36 37var Multi2_Color_value = map[string]int32{ 38 "BLUE": 1, 39 "GREEN": 2, 40 "RED": 3, 41} 42 43func (x Multi2_Color) Enum() *Multi2_Color { 44 p := new(Multi2_Color) 45 *p = x 46 return p 47} 48 49func (x Multi2_Color) String() string { 50 return proto.EnumName(Multi2_Color_name, int32(x)) 51} 52 53func (x *Multi2_Color) UnmarshalJSON(data []byte) error { 54 value, err := proto.UnmarshalJSONEnum(Multi2_Color_value, data, "Multi2_Color") 55 if err != nil { 56 return err 57 } 58 *x = Multi2_Color(value) 59 return nil 60} 61 62func (Multi2_Color) EnumDescriptor() ([]byte, []int) { 63 return fileDescriptor_a2aebe588a0b2853, []int{0, 0} 64} 65 66type Multi2 struct { 67 RequiredValue *int32 `protobuf:"varint,1,req,name=required_value,json=requiredValue" json:"required_value,omitempty"` 68 Color *Multi2_Color `protobuf:"varint,2,opt,name=color,enum=multitest.Multi2_Color" json:"color,omitempty"` 69 XXX_NoUnkeyedLiteral struct{} `json:"-"` 70 XXX_unrecognized []byte `json:"-"` 71 XXX_sizecache int32 `json:"-"` 72} 73 74func (m *Multi2) Reset() { *m = Multi2{} } 75func (m *Multi2) String() string { return proto.CompactTextString(m) } 76func (*Multi2) ProtoMessage() {} 77func (*Multi2) Descriptor() ([]byte, []int) { 78 return fileDescriptor_a2aebe588a0b2853, []int{0} 79} 80 81func (m *Multi2) XXX_Unmarshal(b []byte) error { 82 return xxx_messageInfo_Multi2.Unmarshal(m, b) 83} 84func (m *Multi2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 85 return xxx_messageInfo_Multi2.Marshal(b, m, deterministic) 86} 87func (m *Multi2) XXX_Merge(src proto.Message) { 88 xxx_messageInfo_Multi2.Merge(m, src) 89} 90func (m *Multi2) XXX_Size() int { 91 return xxx_messageInfo_Multi2.Size(m) 92} 93func (m *Multi2) XXX_DiscardUnknown() { 94 xxx_messageInfo_Multi2.DiscardUnknown(m) 95} 96 97var xxx_messageInfo_Multi2 proto.InternalMessageInfo 98 99func (m *Multi2) GetRequiredValue() int32 { 100 if m != nil && m.RequiredValue != nil { 101 return *m.RequiredValue 102 } 103 return 0 104} 105 106func (m *Multi2) GetColor() Multi2_Color { 107 if m != nil && m.Color != nil { 108 return *m.Color 109 } 110 return Multi2_BLUE 111} 112 113func init() { 114 proto.RegisterEnum("multitest.Multi2_Color", Multi2_Color_name, Multi2_Color_value) 115 proto.RegisterType((*Multi2)(nil), "multitest.Multi2") 116} 117 118func init() { proto.RegisterFile("multi/multi2.proto", fileDescriptor_a2aebe588a0b2853) } 119 120var fileDescriptor_a2aebe588a0b2853 = []byte{ 121 // 202 bytes of a gzipped FileDescriptorProto 122 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xca, 0x2d, 0xcd, 0x29, 123 0xc9, 0xd4, 0x07, 0x93, 0x46, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x9c, 0x60, 0x5e, 0x49, 124 0x6a, 0x71, 0x89, 0x52, 0x2b, 0x23, 0x17, 0x9b, 0x2f, 0x58, 0x4e, 0x48, 0x95, 0x8b, 0xaf, 0x28, 125 0xb5, 0xb0, 0x34, 0xb3, 0x28, 0x35, 0x25, 0xbe, 0x2c, 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81, 126 0x49, 0x83, 0x35, 0x88, 0x17, 0x26, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe5, 0x62, 0x4d, 0xce, 0xcf, 127 0xc9, 0x2f, 0x92, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, 0x12, 0xd7, 0x83, 0x1b, 0xa6, 0x07, 0x31, 128 0x48, 0xcf, 0x19, 0x24, 0x1d, 0x04, 0x51, 0xa5, 0xa4, 0xca, 0xc5, 0x0a, 0xe6, 0x0b, 0x71, 0x70, 129 0xb1, 0x38, 0xf9, 0x84, 0xba, 0x0a, 0x30, 0x0a, 0x71, 0x72, 0xb1, 0xba, 0x07, 0xb9, 0xba, 0xfa, 130 0x09, 0x30, 0x09, 0xb1, 0x73, 0x31, 0x07, 0xb9, 0xba, 0x08, 0x30, 0x3b, 0x39, 0x47, 0x39, 0xa6, 131 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5, 132 0xeb, 0x83, 0x5d, 0x9b, 0x54, 0x9a, 0x06, 0x61, 0x24, 0xeb, 0xa6, 0xa7, 0xe6, 0xe9, 0xa6, 0xe7, 133 0xeb, 0x83, 0xec, 0x4a, 0x49, 0x2c, 0x49, 0x84, 0x78, 0xca, 0x1a, 0x6e, 0x3f, 0x20, 0x00, 0x00, 134 0xff, 0xff, 0x49, 0x3b, 0x52, 0x44, 0xec, 0x00, 0x00, 0x00, 135} 136