github.com/hoveychen/protoreflect@v1.4.7-0.20221103114119-0b4b3385ec76/internal/testprotos/desc_test_options.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: desc_test_options.proto 3 4 package testprotos 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" 10 math "math" 11 ) 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 // This is a compile-time assertion to ensure that this generated file 19 // is compatible with the proto package it is being compiled against. 20 // A compilation error at this line likely means your copy of the 21 // proto package needs to be updated. 22 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 24 // Test enum used by custom options 25 type ReallySimpleEnum int32 26 27 const ( 28 ReallySimpleEnum_VALUE ReallySimpleEnum = 1 29 ) 30 31 var ReallySimpleEnum_name = map[int32]string{ 32 1: "VALUE", 33 } 34 35 var ReallySimpleEnum_value = map[string]int32{ 36 "VALUE": 1, 37 } 38 39 func (x ReallySimpleEnum) Enum() *ReallySimpleEnum { 40 p := new(ReallySimpleEnum) 41 *p = x 42 return p 43 } 44 45 func (x ReallySimpleEnum) String() string { 46 return proto.EnumName(ReallySimpleEnum_name, int32(x)) 47 } 48 49 func (x *ReallySimpleEnum) UnmarshalJSON(data []byte) error { 50 value, err := proto.UnmarshalJSONEnum(ReallySimpleEnum_value, data, "ReallySimpleEnum") 51 if err != nil { 52 return err 53 } 54 *x = ReallySimpleEnum(value) 55 return nil 56 } 57 58 func (ReallySimpleEnum) EnumDescriptor() ([]byte, []int) { 59 return fileDescriptor_6909196e6f18ac08, []int{0} 60 } 61 62 // Test message used by custom options 63 type ReallySimpleMessage struct { 64 Id *uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` 65 Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` 66 XXX_NoUnkeyedLiteral struct{} `json:"-"` 67 XXX_unrecognized []byte `json:"-"` 68 XXX_sizecache int32 `json:"-"` 69 } 70 71 func (m *ReallySimpleMessage) Reset() { *m = ReallySimpleMessage{} } 72 func (m *ReallySimpleMessage) String() string { return proto.CompactTextString(m) } 73 func (*ReallySimpleMessage) ProtoMessage() {} 74 func (*ReallySimpleMessage) Descriptor() ([]byte, []int) { 75 return fileDescriptor_6909196e6f18ac08, []int{0} 76 } 77 78 func (m *ReallySimpleMessage) XXX_Unmarshal(b []byte) error { 79 return xxx_messageInfo_ReallySimpleMessage.Unmarshal(m, b) 80 } 81 func (m *ReallySimpleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 82 return xxx_messageInfo_ReallySimpleMessage.Marshal(b, m, deterministic) 83 } 84 func (m *ReallySimpleMessage) XXX_Merge(src proto.Message) { 85 xxx_messageInfo_ReallySimpleMessage.Merge(m, src) 86 } 87 func (m *ReallySimpleMessage) XXX_Size() int { 88 return xxx_messageInfo_ReallySimpleMessage.Size(m) 89 } 90 func (m *ReallySimpleMessage) XXX_DiscardUnknown() { 91 xxx_messageInfo_ReallySimpleMessage.DiscardUnknown(m) 92 } 93 94 var xxx_messageInfo_ReallySimpleMessage proto.InternalMessageInfo 95 96 func (m *ReallySimpleMessage) GetId() uint64 { 97 if m != nil && m.Id != nil { 98 return *m.Id 99 } 100 return 0 101 } 102 103 func (m *ReallySimpleMessage) GetName() string { 104 if m != nil && m.Name != nil { 105 return *m.Name 106 } 107 return "" 108 } 109 110 var E_Mfubar = &proto.ExtensionDesc{ 111 ExtendedType: (*descriptor.MessageOptions)(nil), 112 ExtensionType: (*bool)(nil), 113 Field: 10101, 114 Name: "testprotos.mfubar", 115 Tag: "varint,10101,opt,name=mfubar", 116 Filename: "desc_test_options.proto", 117 } 118 119 var E_Ffubar = &proto.ExtensionDesc{ 120 ExtendedType: (*descriptor.FieldOptions)(nil), 121 ExtensionType: ([]string)(nil), 122 Field: 10101, 123 Name: "testprotos.ffubar", 124 Tag: "bytes,10101,rep,name=ffubar", 125 Filename: "desc_test_options.proto", 126 } 127 128 var E_Ffubarb = &proto.ExtensionDesc{ 129 ExtendedType: (*descriptor.FieldOptions)(nil), 130 ExtensionType: ([]byte)(nil), 131 Field: 10102, 132 Name: "testprotos.ffubarb", 133 Tag: "bytes,10102,opt,name=ffubarb", 134 Filename: "desc_test_options.proto", 135 } 136 137 var E_Efubar = &proto.ExtensionDesc{ 138 ExtendedType: (*descriptor.EnumOptions)(nil), 139 ExtensionType: (*int32)(nil), 140 Field: 10101, 141 Name: "testprotos.efubar", 142 Tag: "varint,10101,opt,name=efubar", 143 Filename: "desc_test_options.proto", 144 } 145 146 var E_Efubars = &proto.ExtensionDesc{ 147 ExtendedType: (*descriptor.EnumOptions)(nil), 148 ExtensionType: (*int32)(nil), 149 Field: 10102, 150 Name: "testprotos.efubars", 151 Tag: "zigzag32,10102,opt,name=efubars", 152 Filename: "desc_test_options.proto", 153 } 154 155 var E_Efubarsf = &proto.ExtensionDesc{ 156 ExtendedType: (*descriptor.EnumOptions)(nil), 157 ExtensionType: (*int32)(nil), 158 Field: 10103, 159 Name: "testprotos.efubarsf", 160 Tag: "fixed32,10103,opt,name=efubarsf", 161 Filename: "desc_test_options.proto", 162 } 163 164 var E_Efubaru = &proto.ExtensionDesc{ 165 ExtendedType: (*descriptor.EnumOptions)(nil), 166 ExtensionType: (*uint32)(nil), 167 Field: 10104, 168 Name: "testprotos.efubaru", 169 Tag: "varint,10104,opt,name=efubaru", 170 Filename: "desc_test_options.proto", 171 } 172 173 var E_Efubaruf = &proto.ExtensionDesc{ 174 ExtendedType: (*descriptor.EnumOptions)(nil), 175 ExtensionType: (*uint32)(nil), 176 Field: 10105, 177 Name: "testprotos.efubaruf", 178 Tag: "fixed32,10105,opt,name=efubaruf", 179 Filename: "desc_test_options.proto", 180 } 181 182 var E_Evfubar = &proto.ExtensionDesc{ 183 ExtendedType: (*descriptor.EnumValueOptions)(nil), 184 ExtensionType: (*int64)(nil), 185 Field: 10101, 186 Name: "testprotos.evfubar", 187 Tag: "varint,10101,opt,name=evfubar", 188 Filename: "desc_test_options.proto", 189 } 190 191 var E_Evfubars = &proto.ExtensionDesc{ 192 ExtendedType: (*descriptor.EnumValueOptions)(nil), 193 ExtensionType: (*int64)(nil), 194 Field: 10102, 195 Name: "testprotos.evfubars", 196 Tag: "zigzag64,10102,opt,name=evfubars", 197 Filename: "desc_test_options.proto", 198 } 199 200 var E_Evfubarsf = &proto.ExtensionDesc{ 201 ExtendedType: (*descriptor.EnumValueOptions)(nil), 202 ExtensionType: (*int64)(nil), 203 Field: 10103, 204 Name: "testprotos.evfubarsf", 205 Tag: "fixed64,10103,opt,name=evfubarsf", 206 Filename: "desc_test_options.proto", 207 } 208 209 var E_Evfubaru = &proto.ExtensionDesc{ 210 ExtendedType: (*descriptor.EnumValueOptions)(nil), 211 ExtensionType: (*uint64)(nil), 212 Field: 10104, 213 Name: "testprotos.evfubaru", 214 Tag: "varint,10104,opt,name=evfubaru", 215 Filename: "desc_test_options.proto", 216 } 217 218 var E_Evfubaruf = &proto.ExtensionDesc{ 219 ExtendedType: (*descriptor.EnumValueOptions)(nil), 220 ExtensionType: (*uint64)(nil), 221 Field: 10105, 222 Name: "testprotos.evfubaruf", 223 Tag: "fixed64,10105,opt,name=evfubaruf", 224 Filename: "desc_test_options.proto", 225 } 226 227 var E_Sfubar = &proto.ExtensionDesc{ 228 ExtendedType: (*descriptor.ServiceOptions)(nil), 229 ExtensionType: (*ReallySimpleMessage)(nil), 230 Field: 10101, 231 Name: "testprotos.sfubar", 232 Tag: "bytes,10101,opt,name=sfubar", 233 Filename: "desc_test_options.proto", 234 } 235 236 var E_Sfubare = &proto.ExtensionDesc{ 237 ExtendedType: (*descriptor.ServiceOptions)(nil), 238 ExtensionType: (*ReallySimpleEnum)(nil), 239 Field: 10102, 240 Name: "testprotos.sfubare", 241 Tag: "varint,10102,opt,name=sfubare,enum=testprotos.ReallySimpleEnum", 242 Filename: "desc_test_options.proto", 243 } 244 245 var E_Mtfubar = &proto.ExtensionDesc{ 246 ExtendedType: (*descriptor.MethodOptions)(nil), 247 ExtensionType: ([]float32)(nil), 248 Field: 10101, 249 Name: "testprotos.mtfubar", 250 Tag: "fixed32,10101,rep,name=mtfubar", 251 Filename: "desc_test_options.proto", 252 } 253 254 var E_Mtfubard = &proto.ExtensionDesc{ 255 ExtendedType: (*descriptor.MethodOptions)(nil), 256 ExtensionType: (*float64)(nil), 257 Field: 10102, 258 Name: "testprotos.mtfubard", 259 Tag: "fixed64,10102,opt,name=mtfubard", 260 Filename: "desc_test_options.proto", 261 } 262 263 var E_Exfubar = &proto.ExtensionDesc{ 264 ExtendedType: (*descriptor.ExtensionRangeOptions)(nil), 265 ExtensionType: ([]string)(nil), 266 Field: 10101, 267 Name: "testprotos.exfubar", 268 Tag: "bytes,10101,rep,name=exfubar", 269 Filename: "desc_test_options.proto", 270 } 271 272 var E_Exfubarb = &proto.ExtensionDesc{ 273 ExtendedType: (*descriptor.ExtensionRangeOptions)(nil), 274 ExtensionType: ([]byte)(nil), 275 Field: 10102, 276 Name: "testprotos.exfubarb", 277 Tag: "bytes,10102,opt,name=exfubarb", 278 Filename: "desc_test_options.proto", 279 } 280 281 var E_Oofubar = &proto.ExtensionDesc{ 282 ExtendedType: (*descriptor.OneofOptions)(nil), 283 ExtensionType: ([]string)(nil), 284 Field: 10101, 285 Name: "testprotos.oofubar", 286 Tag: "bytes,10101,rep,name=oofubar", 287 Filename: "desc_test_options.proto", 288 } 289 290 var E_Oofubarb = &proto.ExtensionDesc{ 291 ExtendedType: (*descriptor.OneofOptions)(nil), 292 ExtensionType: ([]byte)(nil), 293 Field: 10102, 294 Name: "testprotos.oofubarb", 295 Tag: "bytes,10102,opt,name=oofubarb", 296 Filename: "desc_test_options.proto", 297 } 298 299 func init() { 300 proto.RegisterEnum("testprotos.ReallySimpleEnum", ReallySimpleEnum_name, ReallySimpleEnum_value) 301 proto.RegisterType((*ReallySimpleMessage)(nil), "testprotos.ReallySimpleMessage") 302 proto.RegisterExtension(E_Mfubar) 303 proto.RegisterExtension(E_Ffubar) 304 proto.RegisterExtension(E_Ffubarb) 305 proto.RegisterExtension(E_Efubar) 306 proto.RegisterExtension(E_Efubars) 307 proto.RegisterExtension(E_Efubarsf) 308 proto.RegisterExtension(E_Efubaru) 309 proto.RegisterExtension(E_Efubaruf) 310 proto.RegisterExtension(E_Evfubar) 311 proto.RegisterExtension(E_Evfubars) 312 proto.RegisterExtension(E_Evfubarsf) 313 proto.RegisterExtension(E_Evfubaru) 314 proto.RegisterExtension(E_Evfubaruf) 315 proto.RegisterExtension(E_Sfubar) 316 proto.RegisterExtension(E_Sfubare) 317 proto.RegisterExtension(E_Mtfubar) 318 proto.RegisterExtension(E_Mtfubard) 319 proto.RegisterExtension(E_Exfubar) 320 proto.RegisterExtension(E_Exfubarb) 321 proto.RegisterExtension(E_Oofubar) 322 proto.RegisterExtension(E_Oofubarb) 323 } 324 325 func init() { proto.RegisterFile("desc_test_options.proto", fileDescriptor_6909196e6f18ac08) } 326 327 var fileDescriptor_6909196e6f18ac08 = []byte{ 328 // 544 bytes of a gzipped FileDescriptorProto 329 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcd, 0x6f, 0xd3, 0x4c, 330 0x10, 0xc6, 0xe5, 0x34, 0x8d, 0x9d, 0x79, 0x5f, 0x4a, 0x30, 0x07, 0x22, 0xd4, 0xd2, 0xc0, 0x01, 331 0x45, 0x1c, 0x1c, 0x51, 0x04, 0x34, 0x0b, 0x42, 0x14, 0x54, 0x4e, 0x40, 0xa5, 0xad, 0xa8, 0x80, 332 0x4b, 0x65, 0x27, 0xeb, 0xc4, 0xc8, 0xf6, 0x46, 0xde, 0xdd, 0xaa, 0xfc, 0xe1, 0x7c, 0xdd, 0xd0, 333 0x7e, 0xd9, 0x09, 0x49, 0x64, 0xdf, 0x9e, 0x44, 0xcf, 0x6f, 0x9e, 0xf1, 0xac, 0x66, 0xe0, 0xce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4e, 0xc0, 0x25, 0xd7, 0x3a, 0xf7, 0xe1, 0xfa, 0xb0, 357 0xaf, 0x39, 0xc9, 0x59, 0x42, 0x73, 0x1c, 0xe6, 0x2b, 0x17, 0x44, 0x5e, 0x02, 0xcb, 0xa1, 0xb7, 358 0xe0, 0x19, 0x19, 0x35, 0xae, 0x61, 0x8e, 0x42, 0x09, 0xca, 0x7b, 0x42, 0xe9, 0xb6, 0x43, 0x74, 359 0x96, 0x13, 0x1a, 0xff, 0x1b, 0x6f, 0xec, 0x08, 0x81, 0x67, 0x64, 0x54, 0x87, 0xda, 0x54, 0xeb, 360 0x7f, 0xf3, 0xe4, 0xeb, 0xe3, 0x59, 0xc2, 0xe7, 0x22, 0x0a, 0x26, 0x34, 0x1b, 0x7d, 0x9b, 0x8b, 361 0x6c, 0xa1, 0xef, 0x77, 0x41, 0xe2, 0x94, 0x4c, 0xf8, 0x28, 0xc9, 0x39, 0x29, 0xf2, 0x30, 0x1d, 362 0x55, 0x8f, 0xf8, 0x37, 0x00, 0x00, 0xff, 0xff, 0x0e, 0x0a, 0xe7, 0x0b, 0x0e, 0x06, 0x00, 0x00, 363 }