go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/proto/msgpackpb/msg_test.pb_test.go (about) 1 // Copyright 2022 The LUCI Authors. All rights reserved. 2 // Use of this source code is governed under the Apache License, Version 2.0 3 // that can be found in the LICENSE file. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.31.0 8 // protoc v3.21.7 9 // source: go.chromium.org/luci/common/proto/msgpackpb/msg_test.proto 10 11 package msgpackpb 12 13 import ( 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 durationpb "google.golang.org/protobuf/types/known/durationpb" 17 reflect "reflect" 18 sync "sync" 19 ) 20 21 const ( 22 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26 ) 27 28 type VALUE int32 29 30 const ( 31 VALUE_ZERO VALUE = 0 32 VALUE_ONE VALUE = 1 33 VALUE_TWO VALUE = 2 34 ) 35 36 // Enum value maps for VALUE. 37 var ( 38 VALUE_name = map[int32]string{ 39 0: "ZERO", 40 1: "ONE", 41 2: "TWO", 42 } 43 VALUE_value = map[string]int32{ 44 "ZERO": 0, 45 "ONE": 1, 46 "TWO": 2, 47 } 48 ) 49 50 func (x VALUE) Enum() *VALUE { 51 p := new(VALUE) 52 *p = x 53 return p 54 } 55 56 func (x VALUE) String() string { 57 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 58 } 59 60 func (VALUE) Descriptor() protoreflect.EnumDescriptor { 61 return file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_enumTypes[0].Descriptor() 62 } 63 64 func (VALUE) Type() protoreflect.EnumType { 65 return &file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_enumTypes[0] 66 } 67 68 func (x VALUE) Number() protoreflect.EnumNumber { 69 return protoreflect.EnumNumber(x) 70 } 71 72 // Deprecated: Use VALUE.Descriptor instead. 73 func (VALUE) EnumDescriptor() ([]byte, []int) { 74 return file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDescGZIP(), []int{0} 75 } 76 77 type TestMessage struct { 78 state protoimpl.MessageState 79 sizeCache protoimpl.SizeCache 80 unknownFields protoimpl.UnknownFields 81 82 Boolval bool `protobuf:"varint,2,opt,name=boolval,proto3" json:"boolval,omitempty"` 83 Intval int64 `protobuf:"varint,3,opt,name=intval,proto3" json:"intval,omitempty"` 84 Uintval uint64 `protobuf:"varint,4,opt,name=uintval,proto3" json:"uintval,omitempty"` 85 ShortIntval int32 `protobuf:"varint,5,opt,name=short_intval,json=shortIntval,proto3" json:"short_intval,omitempty"` 86 ShortUintval uint32 `protobuf:"varint,6,opt,name=short_uintval,json=shortUintval,proto3" json:"short_uintval,omitempty"` 87 Strval string `protobuf:"bytes,7,opt,name=strval,proto3" json:"strval,omitempty"` 88 Floatval float64 `protobuf:"fixed64,8,opt,name=floatval,proto3" json:"floatval,omitempty"` 89 ShortFloatval float32 `protobuf:"fixed32,9,opt,name=short_floatval,json=shortFloatval,proto3" json:"short_floatval,omitempty"` 90 Value VALUE `protobuf:"varint,10,opt,name=value,proto3,enum=go.chromium.org.luci.common.proto.msgpackpb.VALUE" json:"value,omitempty"` 91 Mapfield map[string]*TestMessage `protobuf:"bytes,11,rep,name=mapfield,proto3" json:"mapfield,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 92 Duration *durationpb.Duration `protobuf:"bytes,12,opt,name=duration,proto3" json:"duration,omitempty"` 93 Strings []string `protobuf:"bytes,13,rep,name=strings,proto3" json:"strings,omitempty"` 94 SingleRecurse *TestMessage `protobuf:"bytes,14,opt,name=single_recurse,json=singleRecurse,proto3" json:"single_recurse,omitempty"` 95 MultiRecursion []*TestMessage `protobuf:"bytes,15,rep,name=multi_recursion,json=multiRecursion,proto3" json:"multi_recursion,omitempty"` 96 // Types that are assignable to Choice: 97 // 98 // *TestMessage_Intchoice 99 // *TestMessage_Strchoice 100 Choice isTestMessage_Choice `protobuf_oneof:"choice"` 101 } 102 103 func (x *TestMessage) Reset() { 104 *x = TestMessage{} 105 if protoimpl.UnsafeEnabled { 106 mi := &file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_msgTypes[0] 107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 108 ms.StoreMessageInfo(mi) 109 } 110 } 111 112 func (x *TestMessage) String() string { 113 return protoimpl.X.MessageStringOf(x) 114 } 115 116 func (*TestMessage) ProtoMessage() {} 117 118 func (x *TestMessage) ProtoReflect() protoreflect.Message { 119 mi := &file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_msgTypes[0] 120 if protoimpl.UnsafeEnabled && x != nil { 121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 122 if ms.LoadMessageInfo() == nil { 123 ms.StoreMessageInfo(mi) 124 } 125 return ms 126 } 127 return mi.MessageOf(x) 128 } 129 130 // Deprecated: Use TestMessage.ProtoReflect.Descriptor instead. 131 func (*TestMessage) Descriptor() ([]byte, []int) { 132 return file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDescGZIP(), []int{0} 133 } 134 135 func (x *TestMessage) GetBoolval() bool { 136 if x != nil { 137 return x.Boolval 138 } 139 return false 140 } 141 142 func (x *TestMessage) GetIntval() int64 { 143 if x != nil { 144 return x.Intval 145 } 146 return 0 147 } 148 149 func (x *TestMessage) GetUintval() uint64 { 150 if x != nil { 151 return x.Uintval 152 } 153 return 0 154 } 155 156 func (x *TestMessage) GetShortIntval() int32 { 157 if x != nil { 158 return x.ShortIntval 159 } 160 return 0 161 } 162 163 func (x *TestMessage) GetShortUintval() uint32 { 164 if x != nil { 165 return x.ShortUintval 166 } 167 return 0 168 } 169 170 func (x *TestMessage) GetStrval() string { 171 if x != nil { 172 return x.Strval 173 } 174 return "" 175 } 176 177 func (x *TestMessage) GetFloatval() float64 { 178 if x != nil { 179 return x.Floatval 180 } 181 return 0 182 } 183 184 func (x *TestMessage) GetShortFloatval() float32 { 185 if x != nil { 186 return x.ShortFloatval 187 } 188 return 0 189 } 190 191 func (x *TestMessage) GetValue() VALUE { 192 if x != nil { 193 return x.Value 194 } 195 return VALUE_ZERO 196 } 197 198 func (x *TestMessage) GetMapfield() map[string]*TestMessage { 199 if x != nil { 200 return x.Mapfield 201 } 202 return nil 203 } 204 205 func (x *TestMessage) GetDuration() *durationpb.Duration { 206 if x != nil { 207 return x.Duration 208 } 209 return nil 210 } 211 212 func (x *TestMessage) GetStrings() []string { 213 if x != nil { 214 return x.Strings 215 } 216 return nil 217 } 218 219 func (x *TestMessage) GetSingleRecurse() *TestMessage { 220 if x != nil { 221 return x.SingleRecurse 222 } 223 return nil 224 } 225 226 func (x *TestMessage) GetMultiRecursion() []*TestMessage { 227 if x != nil { 228 return x.MultiRecursion 229 } 230 return nil 231 } 232 233 func (m *TestMessage) GetChoice() isTestMessage_Choice { 234 if m != nil { 235 return m.Choice 236 } 237 return nil 238 } 239 240 func (x *TestMessage) GetIntchoice() int32 { 241 if x, ok := x.GetChoice().(*TestMessage_Intchoice); ok { 242 return x.Intchoice 243 } 244 return 0 245 } 246 247 func (x *TestMessage) GetStrchoice() string { 248 if x, ok := x.GetChoice().(*TestMessage_Strchoice); ok { 249 return x.Strchoice 250 } 251 return "" 252 } 253 254 type isTestMessage_Choice interface { 255 isTestMessage_Choice() 256 } 257 258 type TestMessage_Intchoice struct { 259 Intchoice int32 `protobuf:"varint,16,opt,name=intchoice,proto3,oneof"` 260 } 261 262 type TestMessage_Strchoice struct { 263 Strchoice string `protobuf:"bytes,17,opt,name=strchoice,proto3,oneof"` 264 } 265 266 func (*TestMessage_Intchoice) isTestMessage_Choice() {} 267 268 func (*TestMessage_Strchoice) isTestMessage_Choice() {} 269 270 var File_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto protoreflect.FileDescriptor 271 272 var file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDesc = []byte{ 273 0x0a, 0x3a, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 274 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 275 0x6f, 0x74, 0x6f, 0x2f, 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x70, 0x62, 0x2f, 0x6d, 0x73, 276 0x67, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2b, 0x67, 0x6f, 277 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x75, 278 0x63, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 279 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x70, 0x62, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 280 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 281 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x07, 0x0a, 0x0b, 0x54, 0x65, 282 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x6f, 0x6f, 283 0x6c, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x62, 0x6f, 0x6f, 0x6c, 284 0x76, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x6e, 0x74, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 285 0x01, 0x28, 0x03, 0x52, 0x06, 0x69, 0x6e, 0x74, 0x76, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x75, 286 0x69, 0x6e, 0x74, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x75, 0x69, 287 0x6e, 0x74, 0x76, 0x61, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x69, 288 0x6e, 0x74, 0x76, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x73, 0x68, 0x6f, 289 0x72, 0x74, 0x49, 0x6e, 0x74, 0x76, 0x61, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x68, 0x6f, 0x72, 290 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x76, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 291 0x0c, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x55, 0x69, 0x6e, 0x74, 0x76, 0x61, 0x6c, 0x12, 0x16, 0x0a, 292 0x06, 0x73, 0x74, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 293 0x74, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x76, 0x61, 294 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x76, 0x61, 295 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 296 0x76, 0x61, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0d, 0x73, 0x68, 0x6f, 0x72, 0x74, 297 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x76, 0x61, 0x6c, 0x12, 0x48, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 298 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 299 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x63, 300 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x73, 0x67, 0x70, 301 0x61, 0x63, 0x6b, 0x70, 0x62, 0x2e, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x52, 0x05, 0x76, 0x61, 0x6c, 302 0x75, 0x65, 0x12, 0x62, 0x0a, 0x08, 0x6d, 0x61, 0x70, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x0b, 303 0x20, 0x03, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 304 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 305 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 306 0x70, 0x62, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 307 0x61, 0x70, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x61, 308 0x70, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 309 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 310 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 311 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 312 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 313 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x5f, 0x0a, 0x0e, 0x73, 0x69, 0x6e, 0x67, 0x6c, 314 0x65, 0x5f, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 315 0x38, 0x2e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 316 0x67, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 317 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x70, 0x62, 0x2e, 0x54, 0x65, 318 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 319 0x65, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0f, 0x6d, 0x75, 0x6c, 0x74, 320 0x69, 0x5f, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x03, 0x28, 321 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 322 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 323 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x70, 0x62, 0x2e, 324 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0e, 0x6d, 0x75, 0x6c, 325 0x74, 0x69, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x09, 0x69, 326 0x6e, 0x74, 0x63, 0x68, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 327 0x52, 0x09, 0x69, 0x6e, 0x74, 0x63, 0x68, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x09, 0x73, 328 0x74, 0x72, 0x63, 0x68, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 329 0x52, 0x09, 0x73, 0x74, 0x72, 0x63, 0x68, 0x6f, 0x69, 0x63, 0x65, 0x1a, 0x75, 0x0a, 0x0d, 0x4d, 330 0x61, 0x70, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 331 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4e, 332 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 333 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 334 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 335 0x6f, 0x2e, 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x70, 0x62, 0x2e, 0x54, 0x65, 0x73, 0x74, 336 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 337 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x68, 0x6f, 0x69, 0x63, 0x65, 0x4a, 0x04, 0x08, 0x01, 338 0x10, 0x02, 0x2a, 0x23, 0x0a, 0x05, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x12, 0x08, 0x0a, 0x04, 0x5a, 339 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 340 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 341 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 342 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6d, 0x73, 0x67, 343 0x70, 0x61, 0x63, 0x6b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 344 } 345 346 var ( 347 file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDescOnce sync.Once 348 file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDescData = file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDesc 349 ) 350 351 func file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDescGZIP() []byte { 352 file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDescOnce.Do(func() { 353 file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDescData) 354 }) 355 return file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDescData 356 } 357 358 var file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 359 var file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 360 var file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_goTypes = []interface{}{ 361 (VALUE)(0), // 0: go.chromium.org.luci.common.proto.msgpackpb.VALUE 362 (*TestMessage)(nil), // 1: go.chromium.org.luci.common.proto.msgpackpb.TestMessage 363 nil, // 2: go.chromium.org.luci.common.proto.msgpackpb.TestMessage.MapfieldEntry 364 (*durationpb.Duration)(nil), // 3: google.protobuf.Duration 365 } 366 var file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_depIdxs = []int32{ 367 0, // 0: go.chromium.org.luci.common.proto.msgpackpb.TestMessage.value:type_name -> go.chromium.org.luci.common.proto.msgpackpb.VALUE 368 2, // 1: go.chromium.org.luci.common.proto.msgpackpb.TestMessage.mapfield:type_name -> go.chromium.org.luci.common.proto.msgpackpb.TestMessage.MapfieldEntry 369 3, // 2: go.chromium.org.luci.common.proto.msgpackpb.TestMessage.duration:type_name -> google.protobuf.Duration 370 1, // 3: go.chromium.org.luci.common.proto.msgpackpb.TestMessage.single_recurse:type_name -> go.chromium.org.luci.common.proto.msgpackpb.TestMessage 371 1, // 4: go.chromium.org.luci.common.proto.msgpackpb.TestMessage.multi_recursion:type_name -> go.chromium.org.luci.common.proto.msgpackpb.TestMessage 372 1, // 5: go.chromium.org.luci.common.proto.msgpackpb.TestMessage.MapfieldEntry.value:type_name -> go.chromium.org.luci.common.proto.msgpackpb.TestMessage 373 6, // [6:6] is the sub-list for method output_type 374 6, // [6:6] is the sub-list for method input_type 375 6, // [6:6] is the sub-list for extension type_name 376 6, // [6:6] is the sub-list for extension extendee 377 0, // [0:6] is the sub-list for field type_name 378 } 379 380 func init() { file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_init() } 381 func file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_init() { 382 if File_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto != nil { 383 return 384 } 385 if !protoimpl.UnsafeEnabled { 386 file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 387 switch v := v.(*TestMessage); i { 388 case 0: 389 return &v.state 390 case 1: 391 return &v.sizeCache 392 case 2: 393 return &v.unknownFields 394 default: 395 return nil 396 } 397 } 398 } 399 file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_msgTypes[0].OneofWrappers = []interface{}{ 400 (*TestMessage_Intchoice)(nil), 401 (*TestMessage_Strchoice)(nil), 402 } 403 type x struct{} 404 out := protoimpl.TypeBuilder{ 405 File: protoimpl.DescBuilder{ 406 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 407 RawDescriptor: file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDesc, 408 NumEnums: 1, 409 NumMessages: 2, 410 NumExtensions: 0, 411 NumServices: 0, 412 }, 413 GoTypes: file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_goTypes, 414 DependencyIndexes: file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_depIdxs, 415 EnumInfos: file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_enumTypes, 416 MessageInfos: file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_msgTypes, 417 }.Build() 418 File_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto = out.File 419 file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_rawDesc = nil 420 file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_goTypes = nil 421 file_go_chromium_org_luci_common_proto_msgpackpb_msg_test_proto_depIdxs = nil 422 }