1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: multi/multi3.proto 3 4package multitest // import "github.com/golang/protobuf/protoc-gen-go/testdata/multi" 5 6import proto "github.com/golang/protobuf/proto" 7import fmt "fmt" 8import math "math" 9 10// Reference imports to suppress errors if they are not otherwise used. 11var _ = proto.Marshal 12var _ = fmt.Errorf 13var _ = math.Inf 14 15// This is a compile-time assertion to ensure that this generated file 16// is compatible with the proto package it is being compiled against. 17// A compilation error at this line likely means your copy of the 18// proto package needs to be updated. 19const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 20 21type Multi3_HatType int32 22 23const ( 24 Multi3_FEDORA Multi3_HatType = 1 25 Multi3_FEZ Multi3_HatType = 2 26) 27 28var Multi3_HatType_name = map[int32]string{ 29 1: "FEDORA", 30 2: "FEZ", 31} 32var Multi3_HatType_value = map[string]int32{ 33 "FEDORA": 1, 34 "FEZ": 2, 35} 36 37func (x Multi3_HatType) Enum() *Multi3_HatType { 38 p := new(Multi3_HatType) 39 *p = x 40 return p 41} 42func (x Multi3_HatType) String() string { 43 return proto.EnumName(Multi3_HatType_name, int32(x)) 44} 45func (x *Multi3_HatType) UnmarshalJSON(data []byte) error { 46 value, err := proto.UnmarshalJSONEnum(Multi3_HatType_value, data, "Multi3_HatType") 47 if err != nil { 48 return err 49 } 50 *x = Multi3_HatType(value) 51 return nil 52} 53func (Multi3_HatType) EnumDescriptor() ([]byte, []int) { 54 return fileDescriptor_multi3_d55a72b4628b7875, []int{0, 0} 55} 56 57type Multi3 struct { 58 HatType *Multi3_HatType `protobuf:"varint,1,opt,name=hat_type,json=hatType,enum=multitest.Multi3_HatType" json:"hat_type,omitempty"` 59 XXX_NoUnkeyedLiteral struct{} `json:"-"` 60 XXX_unrecognized []byte `json:"-"` 61 XXX_sizecache int32 `json:"-"` 62} 63 64func (m *Multi3) Reset() { *m = Multi3{} } 65func (m *Multi3) String() string { return proto.CompactTextString(m) } 66func (*Multi3) ProtoMessage() {} 67func (*Multi3) Descriptor() ([]byte, []int) { 68 return fileDescriptor_multi3_d55a72b4628b7875, []int{0} 69} 70func (m *Multi3) XXX_Unmarshal(b []byte) error { 71 return xxx_messageInfo_Multi3.Unmarshal(m, b) 72} 73func (m *Multi3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 74 return xxx_messageInfo_Multi3.Marshal(b, m, deterministic) 75} 76func (dst *Multi3) XXX_Merge(src proto.Message) { 77 xxx_messageInfo_Multi3.Merge(dst, src) 78} 79func (m *Multi3) XXX_Size() int { 80 return xxx_messageInfo_Multi3.Size(m) 81} 82func (m *Multi3) XXX_DiscardUnknown() { 83 xxx_messageInfo_Multi3.DiscardUnknown(m) 84} 85 86var xxx_messageInfo_Multi3 proto.InternalMessageInfo 87 88func (m *Multi3) GetHatType() Multi3_HatType { 89 if m != nil && m.HatType != nil { 90 return *m.HatType 91 } 92 return Multi3_FEDORA 93} 94 95func init() { 96 proto.RegisterType((*Multi3)(nil), "multitest.Multi3") 97 proto.RegisterEnum("multitest.Multi3_HatType", Multi3_HatType_name, Multi3_HatType_value) 98} 99 100func init() { proto.RegisterFile("multi/multi3.proto", fileDescriptor_multi3_d55a72b4628b7875) } 101 102var fileDescriptor_multi3_d55a72b4628b7875 = []byte{ 103 // 170 bytes of a gzipped FileDescriptorProto 104 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xca, 0x2d, 0xcd, 0x29, 105 0xc9, 0xd4, 0x07, 0x93, 0xc6, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x9c, 0x60, 0x5e, 0x49, 106 0x6a, 0x71, 0x89, 0x52, 0x1c, 0x17, 0x9b, 0x2f, 0x58, 0x4a, 0xc8, 0x84, 0x8b, 0x23, 0x23, 0xb1, 107 0x24, 0xbe, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0xcf, 0x48, 0x52, 0x0f, 0xae, 108 0x4e, 0x0f, 0xa2, 0x48, 0xcf, 0x23, 0xb1, 0x24, 0xa4, 0xb2, 0x20, 0x35, 0x88, 0x3d, 0x03, 0xc2, 109 0x50, 0x92, 0xe3, 0x62, 0x87, 0x8a, 0x09, 0x71, 0x71, 0xb1, 0xb9, 0xb9, 0xba, 0xf8, 0x07, 0x39, 110 0x0a, 0x30, 0x0a, 0xb1, 0x73, 0x31, 0xbb, 0xb9, 0x46, 0x09, 0x30, 0x39, 0x39, 0x47, 0x39, 0xa6, 111 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5, 112 0xeb, 0x83, 0x5d, 0x91, 0x54, 0x9a, 0x06, 0x61, 0x24, 0xeb, 0xa6, 0xa7, 0xe6, 0xe9, 0xa6, 0xe7, 113 0xeb, 0x83, 0x2c, 0x4a, 0x49, 0x2c, 0x49, 0x84, 0x38, 0xd6, 0x1a, 0x6e, 0x39, 0x20, 0x00, 0x00, 114 0xff, 0xff, 0xd5, 0xa4, 0x1a, 0x0e, 0xc4, 0x00, 0x00, 0x00, 115} 116