Debian Codegraph @

cmd/protoc-gen-go/testdata/protoeditions/fields.pb.go

raw
1 // Copyright 2024 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // Code generated by protoc-gen-go. DO NOT EDIT.
6 // source: cmd/protoc-gen-go/testdata/protoeditions/fields.proto
7
8 package protoeditions
9
10 import (
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 math "math"
14 reflect "reflect"
15 sync "sync"
16 unsafe "unsafe"
17 )
18
19 type FieldTestMessage_Enum int32
20
21 const (
22 FieldTestMessage_ZERO FieldTestMessage_Enum = 0
23 FieldTestMessage_ONE FieldTestMessage_Enum = 1
24 )
25
26 // Enum value maps for FieldTestMessage_Enum.
27 var (
28 FieldTestMessage_Enum_name = map[int32]string{
29 0: "ZERO",
30 1: "ONE",
31 }
32 FieldTestMessage_Enum_value = map[string]int32{
33 "ZERO": 0,
34 "ONE": 1,
35 }
36 )
37
38 func (x FieldTestMessage_Enum) Enum() *FieldTestMessage_Enum {
39 p := new(FieldTestMessage_Enum)
40 *p = x
41 return p
42 }
43
44 func (x FieldTestMessage_Enum) String() string {
45 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
46 }
47
48 func (FieldTestMessage_Enum) Descriptor() protoreflect.EnumDescriptor {
49 return file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_enumTypes[0].Descriptor()
50 }
51
52 func (FieldTestMessage_Enum) Type() protoreflect.EnumType {
53 return &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_enumTypes[0]
54 }
55
56 func (x FieldTestMessage_Enum) Number() protoreflect.EnumNumber {
57 return protoreflect.EnumNumber(x)
58 }
59
60 // Deprecated: Use FieldTestMessage_Enum.Descriptor instead.
61 func (FieldTestMessage_Enum) EnumDescriptor() ([]byte, []int) {
62 return file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescGZIP(), []int{0, 0}
63 }
64
65 type FieldTestMessage struct {
66 state protoimpl.MessageState `protogen:"open.v1"`
67 OptionalBool *bool `protobuf:"varint,1,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty"`
68 OptionalEnum *FieldTestMessage_Enum `protobuf:"varint,2,opt,name=optional_enum,json=optionalEnum,enum=goproto.protoc.protoeditions.FieldTestMessage_Enum" json:"optional_enum,omitempty"`
69 OptionalInt32 *int32 `protobuf:"varint,3,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
70 OptionalSint32 *int32 `protobuf:"zigzag32,4,opt,name=optional_sint32,json=optionalSint32" json:"optional_sint32,omitempty"`
71 OptionalUint32 *uint32 `protobuf:"varint,5,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty"`
72 OptionalInt64 *int64 `protobuf:"varint,6,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
73 OptionalSint64 *int64 `protobuf:"zigzag64,7,opt,name=optional_sint64,json=optionalSint64" json:"optional_sint64,omitempty"`
74 OptionalUint64 *uint64 `protobuf:"varint,8,opt,name=optional_uint64,json=optionalUint64" json:"optional_uint64,omitempty"`
75 OptionalSfixed32 *int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32" json:"optional_sfixed32,omitempty"`
76 OptionalFixed32 *uint32 `protobuf:"fixed32,10,opt,name=optional_fixed32,json=optionalFixed32" json:"optional_fixed32,omitempty"`
77 OptionalFloat *float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat" json:"optional_float,omitempty"`
78 OptionalSfixed64 *int64 `protobuf:"fixed64,12,opt,name=optional_sfixed64,json=optionalSfixed64" json:"optional_sfixed64,omitempty"`
79 OptionalFixed64 *uint64 `protobuf:"fixed64,13,opt,name=optional_fixed64,json=optionalFixed64" json:"optional_fixed64,omitempty"`
80 OptionalDouble *float64 `protobuf:"fixed64,14,opt,name=optional_double,json=optionalDouble" json:"optional_double,omitempty"`
81 OptionalString *string `protobuf:"bytes,15,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"`
82 OptionalBytes []byte `protobuf:"bytes,16,opt,name=optional_bytes,json=optionalBytes" json:"optional_bytes,omitempty"`
83 Optional_Message *FieldTestMessage_Message `protobuf:"bytes,17,opt,name=optional_Message,json=optionalMessage" json:"optional_Message,omitempty"`
84 Optionalgroup *FieldTestMessage_OptionalGroup `protobuf:"group,18,opt,name=OptionalGroup,json=optionalgroup" json:"optionalgroup,omitempty"`
85 RequiredBool *bool `protobuf:"varint,101,req,name=required_bool,json=requiredBool" json:"required_bool,omitempty"`
86 RequiredEnum *FieldTestMessage_Enum `protobuf:"varint,102,req,name=required_enum,json=requiredEnum,enum=goproto.protoc.protoeditions.FieldTestMessage_Enum" json:"required_enum,omitempty"`
87 RequiredInt32 *int32 `protobuf:"varint,103,req,name=required_int32,json=requiredInt32" json:"required_int32,omitempty"`
88 RequiredSint32 *int32 `protobuf:"zigzag32,104,req,name=required_sint32,json=requiredSint32" json:"required_sint32,omitempty"`
89 RequiredUint32 *uint32 `protobuf:"varint,105,req,name=required_uint32,json=requiredUint32" json:"required_uint32,omitempty"`
90 RequiredInt64 *int64 `protobuf:"varint,106,req,name=required_int64,json=requiredInt64" json:"required_int64,omitempty"`
91 RequiredSint64 *int64 `protobuf:"zigzag64,107,req,name=required_sint64,json=requiredSint64" json:"required_sint64,omitempty"`
92 RequiredUint64 *uint64 `protobuf:"varint,108,req,name=required_uint64,json=requiredUint64" json:"required_uint64,omitempty"`
93 RequiredSfixed32 *int32 `protobuf:"fixed32,109,req,name=required_sfixed32,json=requiredSfixed32" json:"required_sfixed32,omitempty"`
94 RequiredFixed32 *uint32 `protobuf:"fixed32,110,req,name=required_fixed32,json=requiredFixed32" json:"required_fixed32,omitempty"`
95 RequiredFloat *float32 `protobuf:"fixed32,111,req,name=required_float,json=requiredFloat" json:"required_float,omitempty"`
96 RequiredSfixed64 *int64 `protobuf:"fixed64,112,req,name=required_sfixed64,json=requiredSfixed64" json:"required_sfixed64,omitempty"`
97 RequiredFixed64 *uint64 `protobuf:"fixed64,113,req,name=required_fixed64,json=requiredFixed64" json:"required_fixed64,omitempty"`
98 RequiredDouble *float64 `protobuf:"fixed64,114,req,name=required_double,json=requiredDouble" json:"required_double,omitempty"`
99 RequiredString *string `protobuf:"bytes,115,req,name=required_string,json=requiredString" json:"required_string,omitempty"`
100 RequiredBytes []byte `protobuf:"bytes,116,req,name=required_bytes,json=requiredBytes" json:"required_bytes,omitempty"`
101 Required_Message *FieldTestMessage_Message `protobuf:"bytes,117,req,name=required_Message,json=requiredMessage" json:"required_Message,omitempty"`
102 Requiredgroup *FieldTestMessage_RequiredGroup `protobuf:"group,118,req,name=RequiredGroup,json=requiredgroup" json:"requiredgroup,omitempty"`
103 RepeatedBool []bool `protobuf:"varint,201,rep,packed,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty"`
104 RepeatedEnum []FieldTestMessage_Enum `protobuf:"varint,202,rep,packed,name=repeated_enum,json=repeatedEnum,enum=goproto.protoc.protoeditions.FieldTestMessage_Enum" json:"repeated_enum,omitempty"`
105 RepeatedInt32 []int32 `protobuf:"varint,203,rep,packed,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"`
106 RepeatedSint32 []int32 `protobuf:"zigzag32,204,rep,packed,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty"`
107 RepeatedUint32 []uint32 `protobuf:"varint,205,rep,packed,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty"`
108 RepeatedInt64 []int64 `protobuf:"varint,206,rep,packed,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty"`
109 RepeatedSint64 []int64 `protobuf:"zigzag64,207,rep,packed,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty"`
110 RepeatedUint64 []uint64 `protobuf:"varint,208,rep,packed,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty"`
111 RepeatedSfixed32 []int32 `protobuf:"fixed32,209,rep,packed,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty"`
112 RepeatedFixed32 []uint32 `protobuf:"fixed32,210,rep,packed,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty"`
113 RepeatedFloat []float32 `protobuf:"fixed32,211,rep,packed,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty"`
114 RepeatedSfixed64 []int64 `protobuf:"fixed64,212,rep,packed,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty"`
115 RepeatedFixed64 []uint64 `protobuf:"fixed64,213,rep,packed,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty"`
116 RepeatedDouble []float64 `protobuf:"fixed64,214,rep,packed,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty"`
117 RepeatedString []string `protobuf:"bytes,215,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty"`
118 RepeatedBytes [][]byte `protobuf:"bytes,216,rep,name=repeated_bytes,json=repeatedBytes" json:"repeated_bytes,omitempty"`
119 Repeated_Message []*FieldTestMessage_Message `protobuf:"bytes,217,rep,name=repeated_Message,json=repeatedMessage" json:"repeated_Message,omitempty"`
120 Repeatedgroup []*FieldTestMessage_RepeatedGroup `protobuf:"group,218,rep,name=RepeatedGroup,json=repeatedgroup" json:"repeatedgroup,omitempty"`
121 DefaultBool *bool `protobuf:"varint,301,opt,name=default_bool,json=defaultBool,def=1" json:"default_bool,omitempty"`
122 DefaultEnum *FieldTestMessage_Enum `protobuf:"varint,302,opt,name=default_enum,json=defaultEnum,enum=goproto.protoc.protoeditions.FieldTestMessage_Enum,def=1" json:"default_enum,omitempty"`
123 DefaultInt32 *int32 `protobuf:"varint,303,opt,name=default_int32,json=defaultInt32,def=1" json:"default_int32,omitempty"`
124 DefaultSint32 *int32 `protobuf:"zigzag32,304,opt,name=default_sint32,json=defaultSint32,def=1" json:"default_sint32,omitempty"`
125 DefaultUint32 *uint32 `protobuf:"varint,305,opt,name=default_uint32,json=defaultUint32,def=1" json:"default_uint32,omitempty"`
126 DefaultInt64 *int64 `protobuf:"varint,306,opt,name=default_int64,json=defaultInt64,def=1" json:"default_int64,omitempty"`
127 DefaultSint64 *int64 `protobuf:"zigzag64,307,opt,name=default_sint64,json=defaultSint64,def=1" json:"default_sint64,omitempty"`
128 DefaultUint64 *uint64 `protobuf:"varint,308,opt,name=default_uint64,json=defaultUint64,def=1" json:"default_uint64,omitempty"`
129 DefaultSfixed32 *int32 `protobuf:"fixed32,309,opt,name=default_sfixed32,json=defaultSfixed32,def=1" json:"default_sfixed32,omitempty"`
130 DefaultFixed32 *uint32 `protobuf:"fixed32,310,opt,name=default_fixed32,json=defaultFixed32,def=1" json:"default_fixed32,omitempty"`
131 DefaultFloat *float32 `protobuf:"fixed32,311,opt,name=default_float,json=defaultFloat,def=3.14" json:"default_float,omitempty"`
132 DefaultSfixed64 *int64 `protobuf:"fixed64,312,opt,name=default_sfixed64,json=defaultSfixed64,def=1" json:"default_sfixed64,omitempty"`
133 DefaultFixed64 *uint64 `protobuf:"fixed64,313,opt,name=default_fixed64,json=defaultFixed64,def=1" json:"default_fixed64,omitempty"`
134 DefaultDouble *float64 `protobuf:"fixed64,314,opt,name=default_double,json=defaultDouble,def=3.1415" json:"default_double,omitempty"`
135 DefaultString *string `protobuf:"bytes,315,opt,name=default_string,json=defaultString,def=hello,\"world!\"\n" json:"default_string,omitempty"`
136 DefaultBytes []byte `protobuf:"bytes,316,opt,name=default_bytes,json=defaultBytes,def=hello,\\336\\255\\276\\357" json:"default_bytes,omitempty"`
137 DefaultZeroString *string `protobuf:"bytes,350,opt,name=default_zero_string,json=defaultZeroString,def=" json:"default_zero_string,omitempty"`
138 DefaultZeroBytes []byte `protobuf:"bytes,351,opt,name=default_zero_bytes,json=defaultZeroBytes,def=" json:"default_zero_bytes,omitempty"`
139 DefaultFloatNeginf *float32 `protobuf:"fixed32,400,opt,name=default_float_neginf,json=defaultFloatNeginf,def=-inf" json:"default_float_neginf,omitempty"`
140 DefaultFloatPosinf *float32 `protobuf:"fixed32,401,opt,name=default_float_posinf,json=defaultFloatPosinf,def=inf" json:"default_float_posinf,omitempty"`
141 DefaultFloatNan *float32 `protobuf:"fixed32,402,opt,name=default_float_nan,json=defaultFloatNan,def=nan" json:"default_float_nan,omitempty"`
142 DefaultDoubleNeginf *float64 `protobuf:"fixed64,403,opt,name=default_double_neginf,json=defaultDoubleNeginf,def=-inf" json:"default_double_neginf,omitempty"`
143 DefaultDoublePosinf *float64 `protobuf:"fixed64,404,opt,name=default_double_posinf,json=defaultDoublePosinf,def=inf" json:"default_double_posinf,omitempty"`
144 DefaultDoubleNan *float64 `protobuf:"fixed64,405,opt,name=default_double_nan,json=defaultDoubleNan,def=nan" json:"default_double_nan,omitempty"`
145 MapInt32Int64 map[int32]int64 `protobuf:"bytes,500,rep,name=map_int32_int64,json=mapInt32Int64" json:"map_int32_int64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
146 MapStringMessage map[string]*FieldTestMessage_Message `protobuf:"bytes,501,rep,name=map_string_message,json=mapStringMessage" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
147 MapFixed64Enum map[uint64]FieldTestMessage_Enum `protobuf:"bytes,502,rep,name=map_fixed64_enum,json=mapFixed64Enum" json:"map_fixed64_enum,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=goproto.protoc.protoeditions.FieldTestMessage_Enum"`
148 // Types that are valid to be assigned to OneofField:
149 //
150 // *FieldTestMessage_OneofBool
151 // *FieldTestMessage_OneofEnum
152 // *FieldTestMessage_OneofInt32
153 // *FieldTestMessage_OneofSint32
154 // *FieldTestMessage_OneofUint32
155 // *FieldTestMessage_OneofInt64
156 // *FieldTestMessage_OneofSint64
157 // *FieldTestMessage_OneofUint64
158 // *FieldTestMessage_OneofSfixed32
159 // *FieldTestMessage_OneofFixed32
160 // *FieldTestMessage_OneofFloat
161 // *FieldTestMessage_OneofSfixed64
162 // *FieldTestMessage_OneofFixed64
163 // *FieldTestMessage_OneofDouble
164 // *FieldTestMessage_OneofString
165 // *FieldTestMessage_OneofBytes
166 // *FieldTestMessage_Oneof_Message
167 // *FieldTestMessage_Oneofgroup
168 // *FieldTestMessage_OneofLargestTag
169 OneofField isFieldTestMessage_OneofField `protobuf_oneof:"oneof_field"`
170 // Types that are valid to be assigned to OneofTwo:
171 //
172 // *FieldTestMessage_OneofTwo_1
173 // *FieldTestMessage_OneofTwo_2
174 OneofTwo isFieldTestMessage_OneofTwo `protobuf_oneof:"oneof_two"`
175 unknownFields protoimpl.UnknownFields
176 sizeCache protoimpl.SizeCache
177 }
178
179 // Default values for FieldTestMessage fields.
180 const (
181 Default_FieldTestMessage_DefaultBool = bool(true)
182 Default_FieldTestMessage_DefaultEnum = FieldTestMessage_ONE
183 Default_FieldTestMessage_DefaultInt32 = int32(1)
184 Default_FieldTestMessage_DefaultSint32 = int32(1)
185 Default_FieldTestMessage_DefaultUint32 = uint32(1)
186 Default_FieldTestMessage_DefaultInt64 = int64(1)
187 Default_FieldTestMessage_DefaultSint64 = int64(1)
188 Default_FieldTestMessage_DefaultUint64 = uint64(1)
189 Default_FieldTestMessage_DefaultSfixed32 = int32(1)
190 Default_FieldTestMessage_DefaultFixed32 = uint32(1)
191 Default_FieldTestMessage_DefaultFloat = float32(3.140000104904175)
192 Default_FieldTestMessage_DefaultSfixed64 = int64(1)
193 Default_FieldTestMessage_DefaultFixed64 = uint64(1)
194 Default_FieldTestMessage_DefaultDouble = float64(3.1415)
195 Default_FieldTestMessage_DefaultString = string("hello,\"world!\"\n")
196 Default_FieldTestMessage_DefaultZeroString = string("")
197 )
198
199 // Default values for FieldTestMessage fields.
200 var (
201 Default_FieldTestMessage_DefaultBytes = []byte("hello,ޭ\xbe\xef")
202 Default_FieldTestMessage_DefaultZeroBytes = []byte("")
203 Default_FieldTestMessage_DefaultFloatNeginf = float32(math.Inf(-1))
204 Default_FieldTestMessage_DefaultFloatPosinf = float32(math.Inf(+1))
205 Default_FieldTestMessage_DefaultFloatNan = float32(math.NaN())
206 Default_FieldTestMessage_DefaultDoubleNeginf = float64(math.Inf(-1))
207 Default_FieldTestMessage_DefaultDoublePosinf = float64(math.Inf(+1))
208 Default_FieldTestMessage_DefaultDoubleNan = float64(math.NaN())
209 )
210
211 func (x *FieldTestMessage) Reset() {
212 *x = FieldTestMessage{}
213 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[0]
214 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
215 ms.StoreMessageInfo(mi)
216 }
217
218 func (x *FieldTestMessage) String() string {
219 return protoimpl.X.MessageStringOf(x)
220 }
221
222 func (*FieldTestMessage) ProtoMessage() {}
223
224 func (x *FieldTestMessage) ProtoReflect() protoreflect.Message {
225 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[0]
226 if x != nil {
227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
228 if ms.LoadMessageInfo() == nil {
229 ms.StoreMessageInfo(mi)
230 }
231 return ms
232 }
233 return mi.MessageOf(x)
234 }
235
236 // Deprecated: Use FieldTestMessage.ProtoReflect.Descriptor instead.
237 func (*FieldTestMessage) Descriptor() ([]byte, []int) {
238 return file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescGZIP(), []int{0}
239 }
240
241 func (x *FieldTestMessage) GetOptionalBool() bool {
242 if x != nil && x.OptionalBool != nil {
243 return *x.OptionalBool
244 }
245 return false
246 }
247
248 func (x *FieldTestMessage) GetOptionalEnum() FieldTestMessage_Enum {
249 if x != nil && x.OptionalEnum != nil {
250 return *x.OptionalEnum
251 }
252 return FieldTestMessage_ZERO
253 }
254
255 func (x *FieldTestMessage) GetOptionalInt32() int32 {
256 if x != nil && x.OptionalInt32 != nil {
257 return *x.OptionalInt32
258 }
259 return 0
260 }
261
262 func (x *FieldTestMessage) GetOptionalSint32() int32 {
263 if x != nil && x.OptionalSint32 != nil {
264 return *x.OptionalSint32
265 }
266 return 0
267 }
268
269 func (x *FieldTestMessage) GetOptionalUint32() uint32 {
270 if x != nil && x.OptionalUint32 != nil {
271 return *x.OptionalUint32
272 }
273 return 0
274 }
275
276 func (x *FieldTestMessage) GetOptionalInt64() int64 {
277 if x != nil && x.OptionalInt64 != nil {
278 return *x.OptionalInt64
279 }
280 return 0
281 }
282
283 func (x *FieldTestMessage) GetOptionalSint64() int64 {
284 if x != nil && x.OptionalSint64 != nil {
285 return *x.OptionalSint64
286 }
287 return 0
288 }
289
290 func (x *FieldTestMessage) GetOptionalUint64() uint64 {
291 if x != nil && x.OptionalUint64 != nil {
292 return *x.OptionalUint64
293 }
294 return 0
295 }
296
297 func (x *FieldTestMessage) GetOptionalSfixed32() int32 {
298 if x != nil && x.OptionalSfixed32 != nil {
299 return *x.OptionalSfixed32
300 }
301 return 0
302 }
303
304 func (x *FieldTestMessage) GetOptionalFixed32() uint32 {
305 if x != nil && x.OptionalFixed32 != nil {
306 return *x.OptionalFixed32
307 }
308 return 0
309 }
310
311 func (x *FieldTestMessage) GetOptionalFloat() float32 {
312 if x != nil && x.OptionalFloat != nil {
313 return *x.OptionalFloat
314 }
315 return 0
316 }
317
318 func (x *FieldTestMessage) GetOptionalSfixed64() int64 {
319 if x != nil && x.OptionalSfixed64 != nil {
320 return *x.OptionalSfixed64
321 }
322 return 0
323 }
324
325 func (x *FieldTestMessage) GetOptionalFixed64() uint64 {
326 if x != nil && x.OptionalFixed64 != nil {
327 return *x.OptionalFixed64
328 }
329 return 0
330 }
331
332 func (x *FieldTestMessage) GetOptionalDouble() float64 {
333 if x != nil && x.OptionalDouble != nil {
334 return *x.OptionalDouble
335 }
336 return 0
337 }
338
339 func (x *FieldTestMessage) GetOptionalString() string {
340 if x != nil && x.OptionalString != nil {
341 return *x.OptionalString
342 }
343 return ""
344 }
345
346 func (x *FieldTestMessage) GetOptionalBytes() []byte {
347 if x != nil {
348 return x.OptionalBytes
349 }
350 return nil
351 }
352
353 func (x *FieldTestMessage) GetOptional_Message() *FieldTestMessage_Message {
354 if x != nil {
355 return x.Optional_Message
356 }
357 return nil
358 }
359
360 func (x *FieldTestMessage) GetOptionalgroup() *FieldTestMessage_OptionalGroup {
361 if x != nil {
362 return x.Optionalgroup
363 }
364 return nil
365 }
366
367 func (x *FieldTestMessage) GetRequiredBool() bool {
368 if x != nil && x.RequiredBool != nil {
369 return *x.RequiredBool
370 }
371 return false
372 }
373
374 func (x *FieldTestMessage) GetRequiredEnum() FieldTestMessage_Enum {
375 if x != nil && x.RequiredEnum != nil {
376 return *x.RequiredEnum
377 }
378 return FieldTestMessage_ZERO
379 }
380
381 func (x *FieldTestMessage) GetRequiredInt32() int32 {
382 if x != nil && x.RequiredInt32 != nil {
383 return *x.RequiredInt32
384 }
385 return 0
386 }
387
388 func (x *FieldTestMessage) GetRequiredSint32() int32 {
389 if x != nil && x.RequiredSint32 != nil {
390 return *x.RequiredSint32
391 }
392 return 0
393 }
394
395 func (x *FieldTestMessage) GetRequiredUint32() uint32 {
396 if x != nil && x.RequiredUint32 != nil {
397 return *x.RequiredUint32
398 }
399 return 0
400 }
401
402 func (x *FieldTestMessage) GetRequiredInt64() int64 {
403 if x != nil && x.RequiredInt64 != nil {
404 return *x.RequiredInt64
405 }
406 return 0
407 }
408
409 func (x *FieldTestMessage) GetRequiredSint64() int64 {
410 if x != nil && x.RequiredSint64 != nil {
411 return *x.RequiredSint64
412 }
413 return 0
414 }
415
416 func (x *FieldTestMessage) GetRequiredUint64() uint64 {
417 if x != nil && x.RequiredUint64 != nil {
418 return *x.RequiredUint64
419 }
420 return 0
421 }
422
423 func (x *FieldTestMessage) GetRequiredSfixed32() int32 {
424 if x != nil && x.RequiredSfixed32 != nil {
425 return *x.RequiredSfixed32
426 }
427 return 0
428 }
429
430 func (x *FieldTestMessage) GetRequiredFixed32() uint32 {
431 if x != nil && x.RequiredFixed32 != nil {
432 return *x.RequiredFixed32
433 }
434 return 0
435 }
436
437 func (x *FieldTestMessage) GetRequiredFloat() float32 {
438 if x != nil && x.RequiredFloat != nil {
439 return *x.RequiredFloat
440 }
441 return 0
442 }
443
444 func (x *FieldTestMessage) GetRequiredSfixed64() int64 {
445 if x != nil && x.RequiredSfixed64 != nil {
446 return *x.RequiredSfixed64
447 }
448 return 0
449 }
450
451 func (x *FieldTestMessage) GetRequiredFixed64() uint64 {
452 if x != nil && x.RequiredFixed64 != nil {
453 return *x.RequiredFixed64
454 }
455 return 0
456 }
457
458 func (x *FieldTestMessage) GetRequiredDouble() float64 {
459 if x != nil && x.RequiredDouble != nil {
460 return *x.RequiredDouble
461 }
462 return 0
463 }
464
465 func (x *FieldTestMessage) GetRequiredString() string {
466 if x != nil && x.RequiredString != nil {
467 return *x.RequiredString
468 }
469 return ""
470 }
471
472 func (x *FieldTestMessage) GetRequiredBytes() []byte {
473 if x != nil {
474 return x.RequiredBytes
475 }
476 return nil
477 }
478
479 func (x *FieldTestMessage) GetRequired_Message() *FieldTestMessage_Message {
480 if x != nil {
481 return x.Required_Message
482 }
483 return nil
484 }
485
486 func (x *FieldTestMessage) GetRequiredgroup() *FieldTestMessage_RequiredGroup {
487 if x != nil {
488 return x.Requiredgroup
489 }
490 return nil
491 }
492
493 func (x *FieldTestMessage) GetRepeatedBool() []bool {
494 if x != nil {
495 return x.RepeatedBool
496 }
497 return nil
498 }
499
500 func (x *FieldTestMessage) GetRepeatedEnum() []FieldTestMessage_Enum {
501 if x != nil {
502 return x.RepeatedEnum
503 }
504 return nil
505 }
506
507 func (x *FieldTestMessage) GetRepeatedInt32() []int32 {
508 if x != nil {
509 return x.RepeatedInt32
510 }
511 return nil
512 }
513
514 func (x *FieldTestMessage) GetRepeatedSint32() []int32 {
515 if x != nil {
516 return x.RepeatedSint32
517 }
518 return nil
519 }
520
521 func (x *FieldTestMessage) GetRepeatedUint32() []uint32 {
522 if x != nil {
523 return x.RepeatedUint32
524 }
525 return nil
526 }
527
528 func (x *FieldTestMessage) GetRepeatedInt64() []int64 {
529 if x != nil {
530 return x.RepeatedInt64
531 }
532 return nil
533 }
534
535 func (x *FieldTestMessage) GetRepeatedSint64() []int64 {
536 if x != nil {
537 return x.RepeatedSint64
538 }
539 return nil
540 }
541
542 func (x *FieldTestMessage) GetRepeatedUint64() []uint64 {
543 if x != nil {
544 return x.RepeatedUint64
545 }
546 return nil
547 }
548
549 func (x *FieldTestMessage) GetRepeatedSfixed32() []int32 {
550 if x != nil {
551 return x.RepeatedSfixed32
552 }
553 return nil
554 }
555
556 func (x *FieldTestMessage) GetRepeatedFixed32() []uint32 {
557 if x != nil {
558 return x.RepeatedFixed32
559 }
560 return nil
561 }
562
563 func (x *FieldTestMessage) GetRepeatedFloat() []float32 {
564 if x != nil {
565 return x.RepeatedFloat
566 }
567 return nil
568 }
569
570 func (x *FieldTestMessage) GetRepeatedSfixed64() []int64 {
571 if x != nil {
572 return x.RepeatedSfixed64
573 }
574 return nil
575 }
576
577 func (x *FieldTestMessage) GetRepeatedFixed64() []uint64 {
578 if x != nil {
579 return x.RepeatedFixed64
580 }
581 return nil
582 }
583
584 func (x *FieldTestMessage) GetRepeatedDouble() []float64 {
585 if x != nil {
586 return x.RepeatedDouble
587 }
588 return nil
589 }
590
591 func (x *FieldTestMessage) GetRepeatedString() []string {
592 if x != nil {
593 return x.RepeatedString
594 }
595 return nil
596 }
597
598 func (x *FieldTestMessage) GetRepeatedBytes() [][]byte {
599 if x != nil {
600 return x.RepeatedBytes
601 }
602 return nil
603 }
604
605 func (x *FieldTestMessage) GetRepeated_Message() []*FieldTestMessage_Message {
606 if x != nil {
607 return x.Repeated_Message
608 }
609 return nil
610 }
611
612 func (x *FieldTestMessage) GetRepeatedgroup() []*FieldTestMessage_RepeatedGroup {
613 if x != nil {
614 return x.Repeatedgroup
615 }
616 return nil
617 }
618
619 func (x *FieldTestMessage) GetDefaultBool() bool {
620 if x != nil && x.DefaultBool != nil {
621 return *x.DefaultBool
622 }
623 return Default_FieldTestMessage_DefaultBool
624 }
625
626 func (x *FieldTestMessage) GetDefaultEnum() FieldTestMessage_Enum {
627 if x != nil && x.DefaultEnum != nil {
628 return *x.DefaultEnum
629 }
630 return Default_FieldTestMessage_DefaultEnum
631 }
632
633 func (x *FieldTestMessage) GetDefaultInt32() int32 {
634 if x != nil && x.DefaultInt32 != nil {
635 return *x.DefaultInt32
636 }
637 return Default_FieldTestMessage_DefaultInt32
638 }
639
640 func (x *FieldTestMessage) GetDefaultSint32() int32 {
641 if x != nil && x.DefaultSint32 != nil {
642 return *x.DefaultSint32
643 }
644 return Default_FieldTestMessage_DefaultSint32
645 }
646
647 func (x *FieldTestMessage) GetDefaultUint32() uint32 {
648 if x != nil && x.DefaultUint32 != nil {
649 return *x.DefaultUint32
650 }
651 return Default_FieldTestMessage_DefaultUint32
652 }
653
654 func (x *FieldTestMessage) GetDefaultInt64() int64 {
655 if x != nil && x.DefaultInt64 != nil {
656 return *x.DefaultInt64
657 }
658 return Default_FieldTestMessage_DefaultInt64
659 }
660
661 func (x *FieldTestMessage) GetDefaultSint64() int64 {
662 if x != nil && x.DefaultSint64 != nil {
663 return *x.DefaultSint64
664 }
665 return Default_FieldTestMessage_DefaultSint64
666 }
667
668 func (x *FieldTestMessage) GetDefaultUint64() uint64 {
669 if x != nil && x.DefaultUint64 != nil {
670 return *x.DefaultUint64
671 }
672 return Default_FieldTestMessage_DefaultUint64
673 }
674
675 func (x *FieldTestMessage) GetDefaultSfixed32() int32 {
676 if x != nil && x.DefaultSfixed32 != nil {
677 return *x.DefaultSfixed32
678 }
679 return Default_FieldTestMessage_DefaultSfixed32
680 }
681
682 func (x *FieldTestMessage) GetDefaultFixed32() uint32 {
683 if x != nil && x.DefaultFixed32 != nil {
684 return *x.DefaultFixed32
685 }
686 return Default_FieldTestMessage_DefaultFixed32
687 }
688
689 func (x *FieldTestMessage) GetDefaultFloat() float32 {
690 if x != nil && x.DefaultFloat != nil {
691 return *x.DefaultFloat
692 }
693 return Default_FieldTestMessage_DefaultFloat
694 }
695
696 func (x *FieldTestMessage) GetDefaultSfixed64() int64 {
697 if x != nil && x.DefaultSfixed64 != nil {
698 return *x.DefaultSfixed64
699 }
700 return Default_FieldTestMessage_DefaultSfixed64
701 }
702
703 func (x *FieldTestMessage) GetDefaultFixed64() uint64 {
704 if x != nil && x.DefaultFixed64 != nil {
705 return *x.DefaultFixed64
706 }
707 return Default_FieldTestMessage_DefaultFixed64
708 }
709
710 func (x *FieldTestMessage) GetDefaultDouble() float64 {
711 if x != nil && x.DefaultDouble != nil {
712 return *x.DefaultDouble
713 }
714 return Default_FieldTestMessage_DefaultDouble
715 }
716
717 func (x *FieldTestMessage) GetDefaultString() string {
718 if x != nil && x.DefaultString != nil {
719 return *x.DefaultString
720 }
721 return Default_FieldTestMessage_DefaultString
722 }
723
724 func (x *FieldTestMessage) GetDefaultBytes() []byte {
725 if x != nil && x.DefaultBytes != nil {
726 return x.DefaultBytes
727 }
728 return append([]byte(nil), Default_FieldTestMessage_DefaultBytes...)
729 }
730
731 func (x *FieldTestMessage) GetDefaultZeroString() string {
732 if x != nil && x.DefaultZeroString != nil {
733 return *x.DefaultZeroString
734 }
735 return Default_FieldTestMessage_DefaultZeroString
736 }
737
738 func (x *FieldTestMessage) GetDefaultZeroBytes() []byte {
739 if x != nil && x.DefaultZeroBytes != nil {
740 return x.DefaultZeroBytes
741 }
742 return append([]byte(nil), Default_FieldTestMessage_DefaultZeroBytes...)
743 }
744
745 func (x *FieldTestMessage) GetDefaultFloatNeginf() float32 {
746 if x != nil && x.DefaultFloatNeginf != nil {
747 return *x.DefaultFloatNeginf
748 }
749 return Default_FieldTestMessage_DefaultFloatNeginf
750 }
751
752 func (x *FieldTestMessage) GetDefaultFloatPosinf() float32 {
753 if x != nil && x.DefaultFloatPosinf != nil {
754 return *x.DefaultFloatPosinf
755 }
756 return Default_FieldTestMessage_DefaultFloatPosinf
757 }
758
759 func (x *FieldTestMessage) GetDefaultFloatNan() float32 {
760 if x != nil && x.DefaultFloatNan != nil {
761 return *x.DefaultFloatNan
762 }
763 return Default_FieldTestMessage_DefaultFloatNan
764 }
765
766 func (x *FieldTestMessage) GetDefaultDoubleNeginf() float64 {
767 if x != nil && x.DefaultDoubleNeginf != nil {
768 return *x.DefaultDoubleNeginf
769 }
770 return Default_FieldTestMessage_DefaultDoubleNeginf
771 }
772
773 func (x *FieldTestMessage) GetDefaultDoublePosinf() float64 {
774 if x != nil && x.DefaultDoublePosinf != nil {
775 return *x.DefaultDoublePosinf
776 }
777 return Default_FieldTestMessage_DefaultDoublePosinf
778 }
779
780 func (x *FieldTestMessage) GetDefaultDoubleNan() float64 {
781 if x != nil && x.DefaultDoubleNan != nil {
782 return *x.DefaultDoubleNan
783 }
784 return Default_FieldTestMessage_DefaultDoubleNan
785 }
786
787 func (x *FieldTestMessage) GetMapInt32Int64() map[int32]int64 {
788 if x != nil {
789 return x.MapInt32Int64
790 }
791 return nil
792 }
793
794 func (x *FieldTestMessage) GetMapStringMessage() map[string]*FieldTestMessage_Message {
795 if x != nil {
796 return x.MapStringMessage
797 }
798 return nil
799 }
800
801 func (x *FieldTestMessage) GetMapFixed64Enum() map[uint64]FieldTestMessage_Enum {
802 if x != nil {
803 return x.MapFixed64Enum
804 }
805 return nil
806 }
807
808 func (x *FieldTestMessage) GetOneofField() isFieldTestMessage_OneofField {
809 if x != nil {
810 return x.OneofField
811 }
812 return nil
813 }
814
815 func (x *FieldTestMessage) GetOneofBool() bool {
816 if x != nil {
817 if x, ok := x.OneofField.(*FieldTestMessage_OneofBool); ok {
818 return x.OneofBool
819 }
820 }
821 return false
822 }
823
824 func (x *FieldTestMessage) GetOneofEnum() FieldTestMessage_Enum {
825 if x != nil {
826 if x, ok := x.OneofField.(*FieldTestMessage_OneofEnum); ok {
827 return x.OneofEnum
828 }
829 }
830 return FieldTestMessage_ZERO
831 }
832
833 func (x *FieldTestMessage) GetOneofInt32() int32 {
834 if x != nil {
835 if x, ok := x.OneofField.(*FieldTestMessage_OneofInt32); ok {
836 return x.OneofInt32
837 }
838 }
839 return 0
840 }
841
842 func (x *FieldTestMessage) GetOneofSint32() int32 {
843 if x != nil {
844 if x, ok := x.OneofField.(*FieldTestMessage_OneofSint32); ok {
845 return x.OneofSint32
846 }
847 }
848 return 0
849 }
850
851 func (x *FieldTestMessage) GetOneofUint32() uint32 {
852 if x != nil {
853 if x, ok := x.OneofField.(*FieldTestMessage_OneofUint32); ok {
854 return x.OneofUint32
855 }
856 }
857 return 0
858 }
859
860 func (x *FieldTestMessage) GetOneofInt64() int64 {
861 if x != nil {
862 if x, ok := x.OneofField.(*FieldTestMessage_OneofInt64); ok {
863 return x.OneofInt64
864 }
865 }
866 return 0
867 }
868
869 func (x *FieldTestMessage) GetOneofSint64() int64 {
870 if x != nil {
871 if x, ok := x.OneofField.(*FieldTestMessage_OneofSint64); ok {
872 return x.OneofSint64
873 }
874 }
875 return 0
876 }
877
878 func (x *FieldTestMessage) GetOneofUint64() uint64 {
879 if x != nil {
880 if x, ok := x.OneofField.(*FieldTestMessage_OneofUint64); ok {
881 return x.OneofUint64
882 }
883 }
884 return 0
885 }
886
887 func (x *FieldTestMessage) GetOneofSfixed32() int32 {
888 if x != nil {
889 if x, ok := x.OneofField.(*FieldTestMessage_OneofSfixed32); ok {
890 return x.OneofSfixed32
891 }
892 }
893 return 0
894 }
895
896 func (x *FieldTestMessage) GetOneofFixed32() uint32 {
897 if x != nil {
898 if x, ok := x.OneofField.(*FieldTestMessage_OneofFixed32); ok {
899 return x.OneofFixed32
900 }
901 }
902 return 0
903 }
904
905 func (x *FieldTestMessage) GetOneofFloat() float32 {
906 if x != nil {
907 if x, ok := x.OneofField.(*FieldTestMessage_OneofFloat); ok {
908 return x.OneofFloat
909 }
910 }
911 return 0
912 }
913
914 func (x *FieldTestMessage) GetOneofSfixed64() int64 {
915 if x != nil {
916 if x, ok := x.OneofField.(*FieldTestMessage_OneofSfixed64); ok {
917 return x.OneofSfixed64
918 }
919 }
920 return 0
921 }
922
923 func (x *FieldTestMessage) GetOneofFixed64() uint64 {
924 if x != nil {
925 if x, ok := x.OneofField.(*FieldTestMessage_OneofFixed64); ok {
926 return x.OneofFixed64
927 }
928 }
929 return 0
930 }
931
932 func (x *FieldTestMessage) GetOneofDouble() float64 {
933 if x != nil {
934 if x, ok := x.OneofField.(*FieldTestMessage_OneofDouble); ok {
935 return x.OneofDouble
936 }
937 }
938 return 0
939 }
940
941 func (x *FieldTestMessage) GetOneofString() string {
942 if x != nil {
943 if x, ok := x.OneofField.(*FieldTestMessage_OneofString); ok {
944 return x.OneofString
945 }
946 }
947 return ""
948 }
949
950 func (x *FieldTestMessage) GetOneofBytes() []byte {
951 if x != nil {
952 if x, ok := x.OneofField.(*FieldTestMessage_OneofBytes); ok {
953 return x.OneofBytes
954 }
955 }
956 return nil
957 }
958
959 func (x *FieldTestMessage) GetOneof_Message() *FieldTestMessage_Message {
960 if x != nil {
961 if x, ok := x.OneofField.(*FieldTestMessage_Oneof_Message); ok {
962 return x.Oneof_Message
963 }
964 }
965 return nil
966 }
967
968 func (x *FieldTestMessage) GetOneofgroup() *FieldTestMessage_OneofGroup {
969 if x != nil {
970 if x, ok := x.OneofField.(*FieldTestMessage_Oneofgroup); ok {
971 return x.Oneofgroup
972 }
973 }
974 return nil
975 }
976
977 func (x *FieldTestMessage) GetOneofLargestTag() int32 {
978 if x != nil {
979 if x, ok := x.OneofField.(*FieldTestMessage_OneofLargestTag); ok {
980 return x.OneofLargestTag
981 }
982 }
983 return 0
984 }
985
986 func (x *FieldTestMessage) GetOneofTwo() isFieldTestMessage_OneofTwo {
987 if x != nil {
988 return x.OneofTwo
989 }
990 return nil
991 }
992
993 func (x *FieldTestMessage) GetOneofTwo_1() int32 {
994 if x != nil {
995 if x, ok := x.OneofTwo.(*FieldTestMessage_OneofTwo_1); ok {
996 return x.OneofTwo_1
997 }
998 }
999 return 0
1000 }
1001
1002 func (x *FieldTestMessage) GetOneofTwo_2() int64 {
1003 if x != nil {
1004 if x, ok := x.OneofTwo.(*FieldTestMessage_OneofTwo_2); ok {
1005 return x.OneofTwo_2
1006 }
1007 }
1008 return 0
1009 }
1010
1011 type isFieldTestMessage_OneofField interface {
1012 isFieldTestMessage_OneofField()
1013 }
1014
1015 type FieldTestMessage_OneofBool struct {
1016 OneofBool bool `protobuf:"varint,601,opt,name=oneof_bool,json=oneofBool,oneof"`
1017 }
1018
1019 type FieldTestMessage_OneofEnum struct {
1020 OneofEnum FieldTestMessage_Enum `protobuf:"varint,602,opt,name=oneof_enum,json=oneofEnum,enum=goproto.protoc.protoeditions.FieldTestMessage_Enum,oneof"`
1021 }
1022
1023 type FieldTestMessage_OneofInt32 struct {
1024 OneofInt32 int32 `protobuf:"varint,603,opt,name=oneof_int32,json=oneofInt32,oneof"`
1025 }
1026
1027 type FieldTestMessage_OneofSint32 struct {
1028 OneofSint32 int32 `protobuf:"zigzag32,604,opt,name=oneof_sint32,json=oneofSint32,oneof"`
1029 }
1030
1031 type FieldTestMessage_OneofUint32 struct {
1032 OneofUint32 uint32 `protobuf:"varint,605,opt,name=oneof_uint32,json=oneofUint32,oneof"`
1033 }
1034
1035 type FieldTestMessage_OneofInt64 struct {
1036 OneofInt64 int64 `protobuf:"varint,606,opt,name=oneof_int64,json=oneofInt64,oneof"`
1037 }
1038
1039 type FieldTestMessage_OneofSint64 struct {
1040 OneofSint64 int64 `protobuf:"zigzag64,607,opt,name=oneof_sint64,json=oneofSint64,oneof"`
1041 }
1042
1043 type FieldTestMessage_OneofUint64 struct {
1044 OneofUint64 uint64 `protobuf:"varint,608,opt,name=oneof_uint64,json=oneofUint64,oneof"`
1045 }
1046
1047 type FieldTestMessage_OneofSfixed32 struct {
1048 OneofSfixed32 int32 `protobuf:"fixed32,609,opt,name=oneof_sfixed32,json=oneofSfixed32,oneof"`
1049 }
1050
1051 type FieldTestMessage_OneofFixed32 struct {
1052 OneofFixed32 uint32 `protobuf:"fixed32,610,opt,name=oneof_fixed32,json=oneofFixed32,oneof"`
1053 }
1054
1055 type FieldTestMessage_OneofFloat struct {
1056 OneofFloat float32 `protobuf:"fixed32,611,opt,name=oneof_float,json=oneofFloat,oneof"`
1057 }
1058
1059 type FieldTestMessage_OneofSfixed64 struct {
1060 OneofSfixed64 int64 `protobuf:"fixed64,612,opt,name=oneof_sfixed64,json=oneofSfixed64,oneof"`
1061 }
1062
1063 type FieldTestMessage_OneofFixed64 struct {
1064 OneofFixed64 uint64 `protobuf:"fixed64,613,opt,name=oneof_fixed64,json=oneofFixed64,oneof"`
1065 }
1066
1067 type FieldTestMessage_OneofDouble struct {
1068 OneofDouble float64 `protobuf:"fixed64,614,opt,name=oneof_double,json=oneofDouble,oneof"`
1069 }
1070
1071 type FieldTestMessage_OneofString struct {
1072 OneofString string `protobuf:"bytes,615,opt,name=oneof_string,json=oneofString,oneof"`
1073 }
1074
1075 type FieldTestMessage_OneofBytes struct {
1076 OneofBytes []byte `protobuf:"bytes,616,opt,name=oneof_bytes,json=oneofBytes,oneof"`
1077 }
1078
1079 type FieldTestMessage_Oneof_Message struct {
1080 Oneof_Message *FieldTestMessage_Message `protobuf:"bytes,617,opt,name=oneof_Message,json=oneofMessage,oneof"`
1081 }
1082
1083 type FieldTestMessage_Oneofgroup struct {
1084 Oneofgroup *FieldTestMessage_OneofGroup `protobuf:"group,618,opt,name=OneofGroup,json=oneofgroup,oneof"`
1085 }
1086
1087 type FieldTestMessage_OneofLargestTag struct {
1088 OneofLargestTag int32 `protobuf:"varint,536870911,opt,name=oneof_largest_tag,json=oneofLargestTag,oneof"`
1089 }
1090
1091 func (*FieldTestMessage_OneofBool) isFieldTestMessage_OneofField() {}
1092
1093 func (*FieldTestMessage_OneofEnum) isFieldTestMessage_OneofField() {}
1094
1095 func (*FieldTestMessage_OneofInt32) isFieldTestMessage_OneofField() {}
1096
1097 func (*FieldTestMessage_OneofSint32) isFieldTestMessage_OneofField() {}
1098
1099 func (*FieldTestMessage_OneofUint32) isFieldTestMessage_OneofField() {}
1100
1101 func (*FieldTestMessage_OneofInt64) isFieldTestMessage_OneofField() {}
1102
1103 func (*FieldTestMessage_OneofSint64) isFieldTestMessage_OneofField() {}
1104
1105 func (*FieldTestMessage_OneofUint64) isFieldTestMessage_OneofField() {}
1106
1107 func (*FieldTestMessage_OneofSfixed32) isFieldTestMessage_OneofField() {}
1108
1109 func (*FieldTestMessage_OneofFixed32) isFieldTestMessage_OneofField() {}
1110
1111 func (*FieldTestMessage_OneofFloat) isFieldTestMessage_OneofField() {}
1112
1113 func (*FieldTestMessage_OneofSfixed64) isFieldTestMessage_OneofField() {}
1114
1115 func (*FieldTestMessage_OneofFixed64) isFieldTestMessage_OneofField() {}
1116
1117 func (*FieldTestMessage_OneofDouble) isFieldTestMessage_OneofField() {}
1118
1119 func (*FieldTestMessage_OneofString) isFieldTestMessage_OneofField() {}
1120
1121 func (*FieldTestMessage_OneofBytes) isFieldTestMessage_OneofField() {}
1122
1123 func (*FieldTestMessage_Oneof_Message) isFieldTestMessage_OneofField() {}
1124
1125 func (*FieldTestMessage_Oneofgroup) isFieldTestMessage_OneofField() {}
1126
1127 func (*FieldTestMessage_OneofLargestTag) isFieldTestMessage_OneofField() {}
1128
1129 type isFieldTestMessage_OneofTwo interface {
1130 isFieldTestMessage_OneofTwo()
1131 }
1132
1133 type FieldTestMessage_OneofTwo_1 struct {
1134 OneofTwo_1 int32 `protobuf:"varint,700,opt,name=oneof_two_1,json=oneofTwo1,oneof"`
1135 }
1136
1137 type FieldTestMessage_OneofTwo_2 struct {
1138 OneofTwo_2 int64 `protobuf:"varint,701,opt,name=oneof_two_2,json=oneofTwo2,oneof"`
1139 }
1140
1141 func (*FieldTestMessage_OneofTwo_1) isFieldTestMessage_OneofTwo() {}
1142
1143 func (*FieldTestMessage_OneofTwo_2) isFieldTestMessage_OneofTwo() {}
1144
1145 type FieldTestMessage_OptionalGroup struct {
1146 state protoimpl.MessageState `protogen:"open.v1"`
1147 Optionalgroup *string `protobuf:"bytes,19,opt,name=optionalgroup" json:"optionalgroup,omitempty"`
1148 unknownFields protoimpl.UnknownFields
1149 sizeCache protoimpl.SizeCache
1150 }
1151
1152 func (x *FieldTestMessage_OptionalGroup) Reset() {
1153 *x = FieldTestMessage_OptionalGroup{}
1154 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[1]
1155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1156 ms.StoreMessageInfo(mi)
1157 }
1158
1159 func (x *FieldTestMessage_OptionalGroup) String() string {
1160 return protoimpl.X.MessageStringOf(x)
1161 }
1162
1163 func (*FieldTestMessage_OptionalGroup) ProtoMessage() {}
1164
1165 func (x *FieldTestMessage_OptionalGroup) ProtoReflect() protoreflect.Message {
1166 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[1]
1167 if x != nil {
1168 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1169 if ms.LoadMessageInfo() == nil {
1170 ms.StoreMessageInfo(mi)
1171 }
1172 return ms
1173 }
1174 return mi.MessageOf(x)
1175 }
1176
1177 // Deprecated: Use FieldTestMessage_OptionalGroup.ProtoReflect.Descriptor instead.
1178 func (*FieldTestMessage_OptionalGroup) Descriptor() ([]byte, []int) {
1179 return file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescGZIP(), []int{0, 0}
1180 }
1181
1182 func (x *FieldTestMessage_OptionalGroup) GetOptionalgroup() string {
1183 if x != nil && x.Optionalgroup != nil {
1184 return *x.Optionalgroup
1185 }
1186 return ""
1187 }
1188
1189 type FieldTestMessage_RequiredGroup struct {
1190 state protoimpl.MessageState `protogen:"open.v1"`
1191 RequiredGroup *string `protobuf:"bytes,119,req,name=required_group,json=requiredGroup" json:"required_group,omitempty"`
1192 unknownFields protoimpl.UnknownFields
1193 sizeCache protoimpl.SizeCache
1194 }
1195
1196 func (x *FieldTestMessage_RequiredGroup) Reset() {
1197 *x = FieldTestMessage_RequiredGroup{}
1198 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[2]
1199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1200 ms.StoreMessageInfo(mi)
1201 }
1202
1203 func (x *FieldTestMessage_RequiredGroup) String() string {
1204 return protoimpl.X.MessageStringOf(x)
1205 }
1206
1207 func (*FieldTestMessage_RequiredGroup) ProtoMessage() {}
1208
1209 func (x *FieldTestMessage_RequiredGroup) ProtoReflect() protoreflect.Message {
1210 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[2]
1211 if x != nil {
1212 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1213 if ms.LoadMessageInfo() == nil {
1214 ms.StoreMessageInfo(mi)
1215 }
1216 return ms
1217 }
1218 return mi.MessageOf(x)
1219 }
1220
1221 // Deprecated: Use FieldTestMessage_RequiredGroup.ProtoReflect.Descriptor instead.
1222 func (*FieldTestMessage_RequiredGroup) Descriptor() ([]byte, []int) {
1223 return file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescGZIP(), []int{0, 1}
1224 }
1225
1226 func (x *FieldTestMessage_RequiredGroup) GetRequiredGroup() string {
1227 if x != nil && x.RequiredGroup != nil {
1228 return *x.RequiredGroup
1229 }
1230 return ""
1231 }
1232
1233 type FieldTestMessage_RepeatedGroup struct {
1234 state protoimpl.MessageState `protogen:"open.v1"`
1235 RepeatedGroup []string `protobuf:"bytes,219,rep,name=repeated_group,json=repeatedGroup" json:"repeated_group,omitempty"`
1236 unknownFields protoimpl.UnknownFields
1237 sizeCache protoimpl.SizeCache
1238 }
1239
1240 func (x *FieldTestMessage_RepeatedGroup) Reset() {
1241 *x = FieldTestMessage_RepeatedGroup{}
1242 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[3]
1243 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1244 ms.StoreMessageInfo(mi)
1245 }
1246
1247 func (x *FieldTestMessage_RepeatedGroup) String() string {
1248 return protoimpl.X.MessageStringOf(x)
1249 }
1250
1251 func (*FieldTestMessage_RepeatedGroup) ProtoMessage() {}
1252
1253 func (x *FieldTestMessage_RepeatedGroup) ProtoReflect() protoreflect.Message {
1254 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[3]
1255 if x != nil {
1256 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1257 if ms.LoadMessageInfo() == nil {
1258 ms.StoreMessageInfo(mi)
1259 }
1260 return ms
1261 }
1262 return mi.MessageOf(x)
1263 }
1264
1265 // Deprecated: Use FieldTestMessage_RepeatedGroup.ProtoReflect.Descriptor instead.
1266 func (*FieldTestMessage_RepeatedGroup) Descriptor() ([]byte, []int) {
1267 return file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescGZIP(), []int{0, 2}
1268 }
1269
1270 func (x *FieldTestMessage_RepeatedGroup) GetRepeatedGroup() []string {
1271 if x != nil {
1272 return x.RepeatedGroup
1273 }
1274 return nil
1275 }
1276
1277 type FieldTestMessage_OneofGroup struct {
1278 state protoimpl.MessageState `protogen:"open.v1"`
1279 OneofGroupField *string `protobuf:"bytes,619,opt,name=oneof_group_field,json=oneofGroupField" json:"oneof_group_field,omitempty"`
1280 unknownFields protoimpl.UnknownFields
1281 sizeCache protoimpl.SizeCache
1282 }
1283
1284 func (x *FieldTestMessage_OneofGroup) Reset() {
1285 *x = FieldTestMessage_OneofGroup{}
1286 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[7]
1287 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1288 ms.StoreMessageInfo(mi)
1289 }
1290
1291 func (x *FieldTestMessage_OneofGroup) String() string {
1292 return protoimpl.X.MessageStringOf(x)
1293 }
1294
1295 func (*FieldTestMessage_OneofGroup) ProtoMessage() {}
1296
1297 func (x *FieldTestMessage_OneofGroup) ProtoReflect() protoreflect.Message {
1298 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[7]
1299 if x != nil {
1300 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1301 if ms.LoadMessageInfo() == nil {
1302 ms.StoreMessageInfo(mi)
1303 }
1304 return ms
1305 }
1306 return mi.MessageOf(x)
1307 }
1308
1309 // Deprecated: Use FieldTestMessage_OneofGroup.ProtoReflect.Descriptor instead.
1310 func (*FieldTestMessage_OneofGroup) Descriptor() ([]byte, []int) {
1311 return file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescGZIP(), []int{0, 6}
1312 }
1313
1314 func (x *FieldTestMessage_OneofGroup) GetOneofGroupField() string {
1315 if x != nil && x.OneofGroupField != nil {
1316 return *x.OneofGroupField
1317 }
1318 return ""
1319 }
1320
1321 type FieldTestMessage_Message struct {
1322 state protoimpl.MessageState `protogen:"open.v1"`
1323 unknownFields protoimpl.UnknownFields
1324 sizeCache protoimpl.SizeCache
1325 }
1326
1327 func (x *FieldTestMessage_Message) Reset() {
1328 *x = FieldTestMessage_Message{}
1329 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[8]
1330 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1331 ms.StoreMessageInfo(mi)
1332 }
1333
1334 func (x *FieldTestMessage_Message) String() string {
1335 return protoimpl.X.MessageStringOf(x)
1336 }
1337
1338 func (*FieldTestMessage_Message) ProtoMessage() {}
1339
1340 func (x *FieldTestMessage_Message) ProtoReflect() protoreflect.Message {
1341 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[8]
1342 if x != nil {
1343 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1344 if ms.LoadMessageInfo() == nil {
1345 ms.StoreMessageInfo(mi)
1346 }
1347 return ms
1348 }
1349 return mi.MessageOf(x)
1350 }
1351
1352 // Deprecated: Use FieldTestMessage_Message.ProtoReflect.Descriptor instead.
1353 func (*FieldTestMessage_Message) Descriptor() ([]byte, []int) {
1354 return file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescGZIP(), []int{0, 7}
1355 }
1356
1357 var File_cmd_protoc_gen_go_testdata_protoeditions_fields_proto protoreflect.FileDescriptor
1358
1359 const file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDesc = "" +
1360 "\n" +
1361 "5cmd/protoc-gen-go/testdata/protoeditions/fields.proto\x12\x1cgoproto.protoc.protoeditions\"\xc0/\n" +
1362 "\x10FieldTestMessage\x12#\n" +
1363 "\roptional_bool\x18\x01 \x01(\bR\foptionalBool\x12X\n" +
1364 "\roptional_enum\x18\x02 \x01(\x0e23.goproto.protoc.protoeditions.FieldTestMessage.EnumR\foptionalEnum\x12%\n" +
1365 "\x0eoptional_int32\x18\x03 \x01(\x05R\roptionalInt32\x12'\n" +
1366 "\x0foptional_sint32\x18\x04 \x01(\x11R\x0eoptionalSint32\x12'\n" +
1367 "\x0foptional_uint32\x18\x05 \x01(\rR\x0eoptionalUint32\x12%\n" +
1368 "\x0eoptional_int64\x18\x06 \x01(\x03R\roptionalInt64\x12'\n" +
1369 "\x0foptional_sint64\x18\a \x01(\x12R\x0eoptionalSint64\x12'\n" +
1370 "\x0foptional_uint64\x18\b \x01(\x04R\x0eoptionalUint64\x12+\n" +
1371 "\x11optional_sfixed32\x18\t \x01(\x0fR\x10optionalSfixed32\x12)\n" +
1372 "\x10optional_fixed32\x18\n" +
1373 " \x01(\aR\x0foptionalFixed32\x12%\n" +
1374 "\x0eoptional_float\x18\v \x01(\x02R\roptionalFloat\x12+\n" +
1375 "\x11optional_sfixed64\x18\f \x01(\x10R\x10optionalSfixed64\x12)\n" +
1376 "\x10optional_fixed64\x18\r \x01(\x06R\x0foptionalFixed64\x12'\n" +
1377 "\x0foptional_double\x18\x0e \x01(\x01R\x0eoptionalDouble\x12'\n" +
1378 "\x0foptional_string\x18\x0f \x01(\tR\x0eoptionalString\x12%\n" +
1379 "\x0eoptional_bytes\x18\x10 \x01(\fR\roptionalBytes\x12a\n" +
1380 "\x10optional_Message\x18\x11 \x01(\v26.goproto.protoc.protoeditions.FieldTestMessage.MessageR\x0foptionalMessage\x12i\n" +
1381 "\roptionalgroup\x18\x12 \x01(\v2<.goproto.protoc.protoeditions.FieldTestMessage.OptionalGroupB\x05\xaa\x01\x02(\x02R\roptionalgroup\x12*\n" +
1382 "\rrequired_bool\x18e \x01(\bB\x05\xaa\x01\x02\b\x03R\frequiredBool\x12_\n" +
1383 "\rrequired_enum\x18f \x01(\x0e23.goproto.protoc.protoeditions.FieldTestMessage.EnumB\x05\xaa\x01\x02\b\x03R\frequiredEnum\x12,\n" +
1384 "\x0erequired_int32\x18g \x01(\x05B\x05\xaa\x01\x02\b\x03R\rrequiredInt32\x12.\n" +
1385 "\x0frequired_sint32\x18h \x01(\x11B\x05\xaa\x01\x02\b\x03R\x0erequiredSint32\x12.\n" +
1386 "\x0frequired_uint32\x18i \x01(\rB\x05\xaa\x01\x02\b\x03R\x0erequiredUint32\x12,\n" +
1387 "\x0erequired_int64\x18j \x01(\x03B\x05\xaa\x01\x02\b\x03R\rrequiredInt64\x12.\n" +
1388 "\x0frequired_sint64\x18k \x01(\x12B\x05\xaa\x01\x02\b\x03R\x0erequiredSint64\x12.\n" +
1389 "\x0frequired_uint64\x18l \x01(\x04B\x05\xaa\x01\x02\b\x03R\x0erequiredUint64\x122\n" +
1390 "\x11required_sfixed32\x18m \x01(\x0fB\x05\xaa\x01\x02\b\x03R\x10requiredSfixed32\x120\n" +
1391 "\x10required_fixed32\x18n \x01(\aB\x05\xaa\x01\x02\b\x03R\x0frequiredFixed32\x12,\n" +
1392 "\x0erequired_float\x18o \x01(\x02B\x05\xaa\x01\x02\b\x03R\rrequiredFloat\x122\n" +
1393 "\x11required_sfixed64\x18p \x01(\x10B\x05\xaa\x01\x02\b\x03R\x10requiredSfixed64\x120\n" +
1394 "\x10required_fixed64\x18q \x01(\x06B\x05\xaa\x01\x02\b\x03R\x0frequiredFixed64\x12.\n" +
1395 "\x0frequired_double\x18r \x01(\x01B\x05\xaa\x01\x02\b\x03R\x0erequiredDouble\x12.\n" +
1396 "\x0frequired_string\x18s \x01(\tB\x05\xaa\x01\x02\b\x03R\x0erequiredString\x12,\n" +
1397 "\x0erequired_bytes\x18t \x01(\fB\x05\xaa\x01\x02\b\x03R\rrequiredBytes\x12h\n" +
1398 "\x10required_Message\x18u \x01(\v26.goproto.protoc.protoeditions.FieldTestMessage.MessageB\x05\xaa\x01\x02\b\x03R\x0frequiredMessage\x12k\n" +
1399 "\rrequiredgroup\x18v \x01(\v2<.goproto.protoc.protoeditions.FieldTestMessage.RequiredGroupB\a\xaa\x01\x04\b\x03(\x02R\rrequiredgroup\x12$\n" +
1400 "\rrepeated_bool\x18\xc9\x01 \x03(\bR\frepeatedBool\x12Y\n" +
1401 "\rrepeated_enum\x18\xca\x01 \x03(\x0e23.goproto.protoc.protoeditions.FieldTestMessage.EnumR\frepeatedEnum\x12&\n" +
1402 "\x0erepeated_int32\x18\xcb\x01 \x03(\x05R\rrepeatedInt32\x12(\n" +
1403 "\x0frepeated_sint32\x18\xcc\x01 \x03(\x11R\x0erepeatedSint32\x12(\n" +
1404 "\x0frepeated_uint32\x18\xcd\x01 \x03(\rR\x0erepeatedUint32\x12&\n" +
1405 "\x0erepeated_int64\x18\xce\x01 \x03(\x03R\rrepeatedInt64\x12(\n" +
1406 "\x0frepeated_sint64\x18\xcf\x01 \x03(\x12R\x0erepeatedSint64\x12(\n" +
1407 "\x0frepeated_uint64\x18\xd0\x01 \x03(\x04R\x0erepeatedUint64\x12,\n" +
1408 "\x11repeated_sfixed32\x18\xd1\x01 \x03(\x0fR\x10repeatedSfixed32\x12*\n" +
1409 "\x10repeated_fixed32\x18\xd2\x01 \x03(\aR\x0frepeatedFixed32\x12&\n" +
1410 "\x0erepeated_float\x18\xd3\x01 \x03(\x02R\rrepeatedFloat\x12,\n" +
1411 "\x11repeated_sfixed64\x18\xd4\x01 \x03(\x10R\x10repeatedSfixed64\x12*\n" +
1412 "\x10repeated_fixed64\x18\xd5\x01 \x03(\x06R\x0frepeatedFixed64\x12(\n" +
1413 "\x0frepeated_double\x18\xd6\x01 \x03(\x01R\x0erepeatedDouble\x12(\n" +
1414 "\x0frepeated_string\x18\xd7\x01 \x03(\tR\x0erepeatedString\x12&\n" +
1415 "\x0erepeated_bytes\x18\xd8\x01 \x03(\fR\rrepeatedBytes\x12b\n" +
1416 "\x10repeated_Message\x18\xd9\x01 \x03(\v26.goproto.protoc.protoeditions.FieldTestMessage.MessageR\x0frepeatedMessage\x12j\n" +
1417 "\rrepeatedgroup\x18\xda\x01 \x03(\v2<.goproto.protoc.protoeditions.FieldTestMessage.RepeatedGroupB\x05\xaa\x01\x02(\x02R\rrepeatedgroup\x12(\n" +
1418 "\fdefault_bool\x18\xad\x02 \x01(\b:\x04trueR\vdefaultBool\x12\\\n" +
1419 "\fdefault_enum\x18\xae\x02 \x01(\x0e23.goproto.protoc.protoeditions.FieldTestMessage.Enum:\x03ONER\vdefaultEnum\x12'\n" +
1420 "\rdefault_int32\x18\xaf\x02 \x01(\x05:\x011R\fdefaultInt32\x12)\n" +
1421 "\x0edefault_sint32\x18\xb0\x02 \x01(\x11:\x011R\rdefaultSint32\x12)\n" +
1422 "\x0edefault_uint32\x18\xb1\x02 \x01(\r:\x011R\rdefaultUint32\x12'\n" +
1423 "\rdefault_int64\x18\xb2\x02 \x01(\x03:\x011R\fdefaultInt64\x12)\n" +
1424 "\x0edefault_sint64\x18\xb3\x02 \x01(\x12:\x011R\rdefaultSint64\x12)\n" +
1425 "\x0edefault_uint64\x18\xb4\x02 \x01(\x04:\x011R\rdefaultUint64\x12-\n" +
1426 "\x10default_sfixed32\x18\xb5\x02 \x01(\x0f:\x011R\x0fdefaultSfixed32\x12+\n" +
1427 "\x0fdefault_fixed32\x18\xb6\x02 \x01(\a:\x011R\x0edefaultFixed32\x12*\n" +
1428 "\rdefault_float\x18\xb7\x02 \x01(\x02:\x043.14R\fdefaultFloat\x12-\n" +
1429 "\x10default_sfixed64\x18\xb8\x02 \x01(\x10:\x011R\x0fdefaultSfixed64\x12+\n" +
1430 "\x0fdefault_fixed64\x18\xb9\x02 \x01(\x06:\x011R\x0edefaultFixed64\x12.\n" +
1431 "\x0edefault_double\x18\xba\x02 \x01(\x01:\x063.1415R\rdefaultDouble\x127\n" +
1432 "\x0edefault_string\x18\xbb\x02 \x01(\t:\x0fhello,\"world!\"\n" +
1433 "R\rdefaultString\x12<\n" +
1434 "\rdefault_bytes\x18\xbc\x02 \x01(\f:\x16hello,\\336\\255\\276\\357R\fdefaultBytes\x121\n" +
1435 "\x13default_zero_string\x18\xde\x02 \x01(\t:\x00R\x11defaultZeroString\x12/\n" +
1436 "\x12default_zero_bytes\x18\xdf\x02 \x01(\f:\x00R\x10defaultZeroBytes\x127\n" +
1437 "\x14default_float_neginf\x18\x90\x03 \x01(\x02:\x04-infR\x12defaultFloatNeginf\x126\n" +
1438 "\x14default_float_posinf\x18\x91\x03 \x01(\x02:\x03infR\x12defaultFloatPosinf\x120\n" +
1439 "\x11default_float_nan\x18\x92\x03 \x01(\x02:\x03nanR\x0fdefaultFloatNan\x129\n" +
1440 "\x15default_double_neginf\x18\x93\x03 \x01(\x01:\x04-infR\x13defaultDoubleNeginf\x128\n" +
1441 "\x15default_double_posinf\x18\x94\x03 \x01(\x01:\x03infR\x13defaultDoublePosinf\x122\n" +
1442 "\x12default_double_nan\x18\x95\x03 \x01(\x01:\x03nanR\x10defaultDoubleNan\x12j\n" +
1443 "\x0fmap_int32_int64\x18\xf4\x03 \x03(\v2A.goproto.protoc.protoeditions.FieldTestMessage.MapInt32Int64EntryR\rmapInt32Int64\x12s\n" +
1444 "\x12map_string_message\x18\xf5\x03 \x03(\v2D.goproto.protoc.protoeditions.FieldTestMessage.MapStringMessageEntryR\x10mapStringMessage\x12m\n" +
1445 "\x10map_fixed64_enum\x18\xf6\x03 \x03(\v2B.goproto.protoc.protoeditions.FieldTestMessage.MapFixed64EnumEntryR\x0emapFixed64Enum\x12 \n" +
1446 "\n" +
1447 "oneof_bool\x18\xd9\x04 \x01(\bH\x00R\toneofBool\x12U\n" +
1448 "\n" +
1449 "oneof_enum\x18\xda\x04 \x01(\x0e23.goproto.protoc.protoeditions.FieldTestMessage.EnumH\x00R\toneofEnum\x12\"\n" +
1450 "\voneof_int32\x18\xdb\x04 \x01(\x05H\x00R\n" +
1451 "oneofInt32\x12$\n" +
1452 "\foneof_sint32\x18\xdc\x04 \x01(\x11H\x00R\voneofSint32\x12$\n" +
1453 "\foneof_uint32\x18\xdd\x04 \x01(\rH\x00R\voneofUint32\x12\"\n" +
1454 "\voneof_int64\x18\xde\x04 \x01(\x03H\x00R\n" +
1455 "oneofInt64\x12$\n" +
1456 "\foneof_sint64\x18\xdf\x04 \x01(\x12H\x00R\voneofSint64\x12$\n" +
1457 "\foneof_uint64\x18\xe0\x04 \x01(\x04H\x00R\voneofUint64\x12(\n" +
1458 "\x0eoneof_sfixed32\x18\xe1\x04 \x01(\x0fH\x00R\roneofSfixed32\x12&\n" +
1459 "\roneof_fixed32\x18\xe2\x04 \x01(\aH\x00R\foneofFixed32\x12\"\n" +
1460 "\voneof_float\x18\xe3\x04 \x01(\x02H\x00R\n" +
1461 "oneofFloat\x12(\n" +
1462 "\x0eoneof_sfixed64\x18\xe4\x04 \x01(\x10H\x00R\roneofSfixed64\x12&\n" +
1463 "\roneof_fixed64\x18\xe5\x04 \x01(\x06H\x00R\foneofFixed64\x12$\n" +
1464 "\foneof_double\x18\xe6\x04 \x01(\x01H\x00R\voneofDouble\x12$\n" +
1465 "\foneof_string\x18\xe7\x04 \x01(\tH\x00R\voneofString\x12\"\n" +
1466 "\voneof_bytes\x18\xe8\x04 \x01(\fH\x00R\n" +
1467 "oneofBytes\x12^\n" +
1468 "\roneof_Message\x18\xe9\x04 \x01(\v26.goproto.protoc.protoeditions.FieldTestMessage.MessageH\x00R\foneofMessage\x12c\n" +
1469 "\n" +
1470 "oneofgroup\x18\xea\x04 \x01(\v29.goproto.protoc.protoeditions.FieldTestMessage.OneofGroupB\x05\xaa\x01\x02(\x02H\x00R\n" +
1471 "oneofgroup\x120\n" +
1472 "\x11oneof_largest_tag\x18\xff\xff\xff\xff\x01 \x01(\x05H\x00R\x0foneofLargestTag\x12!\n" +
1473 "\voneof_two_1\x18\xbc\x05 \x01(\x05H\x01R\toneofTwo1\x12!\n" +
1474 "\voneof_two_2\x18\xbd\x05 \x01(\x03H\x01R\toneofTwo2\x1a5\n" +
1475 "\rOptionalGroup\x12$\n" +
1476 "\roptionalgroup\x18\x13 \x01(\tR\roptionalgroup\x1a=\n" +
1477 "\rRequiredGroup\x12,\n" +
1478 "\x0erequired_group\x18w \x01(\tB\x05\xaa\x01\x02\b\x03R\rrequiredGroup\x1a7\n" +
1479 "\rRepeatedGroup\x12&\n" +
1480 "\x0erepeated_group\x18\xdb\x01 \x03(\tR\rrepeatedGroup\x1a@\n" +
1481 "\x12MapInt32Int64Entry\x12\x10\n" +
1482 "\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n" +
1483 "\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\x1a{\n" +
1484 "\x15MapStringMessageEntry\x12\x10\n" +
1485 "\x03key\x18\x01 \x01(\tR\x03key\x12L\n" +
1486 "\x05value\x18\x02 \x01(\v26.goproto.protoc.protoeditions.FieldTestMessage.MessageR\x05value:\x028\x01\x1av\n" +
1487 "\x13MapFixed64EnumEntry\x12\x10\n" +
1488 "\x03key\x18\x01 \x01(\x06R\x03key\x12I\n" +
1489 "\x05value\x18\x02 \x01(\x0e23.goproto.protoc.protoeditions.FieldTestMessage.EnumR\x05value:\x028\x01\x1a9\n" +
1490 "\n" +
1491 "OneofGroup\x12+\n" +
1492 "\x11oneof_group_field\x18\xeb\x04 \x01(\tR\x0foneofGroupField\x1a\t\n" +
1493 "\aMessage\"\x19\n" +
1494 "\x04Enum\x12\b\n" +
1495 "\x04ZERO\x10\x00\x12\a\n" +
1496 "\x03ONE\x10\x01B\r\n" +
1497 "\voneof_fieldB\v\n" +
1498 "\toneof_twoJ\x06\b\x90N\x10\x91NJ\x06\b\x91N\x10\x92NR\fTEN_THOUSANDR\x14TEN_THOUSAND_AND_ONEBEZCgoogle.golang.org/protobuf/cmd/protoc-gen-go/testdata/protoeditionsb\beditionsp\xe8\a"
1499
1500 var (
1501 file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescOnce sync.Once
1502 file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescData []byte
1503 )
1504
1505 func file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescGZIP() []byte {
1506 file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescOnce.Do(func() {
1507 file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDesc)))
1508 })
1509 return file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescData
1510 }
1511
1512 var file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
1513 var file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
1514 var file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_goTypes = []any{
1515 (FieldTestMessage_Enum)(0), // 0: goproto.protoc.protoeditions.FieldTestMessage.Enum
1516 (*FieldTestMessage)(nil), // 1: goproto.protoc.protoeditions.FieldTestMessage
1517 (*FieldTestMessage_OptionalGroup)(nil), // 2: goproto.protoc.protoeditions.FieldTestMessage.OptionalGroup
1518 (*FieldTestMessage_RequiredGroup)(nil), // 3: goproto.protoc.protoeditions.FieldTestMessage.RequiredGroup
1519 (*FieldTestMessage_RepeatedGroup)(nil), // 4: goproto.protoc.protoeditions.FieldTestMessage.RepeatedGroup
1520 nil, // 5: goproto.protoc.protoeditions.FieldTestMessage.MapInt32Int64Entry
1521 nil, // 6: goproto.protoc.protoeditions.FieldTestMessage.MapStringMessageEntry
1522 nil, // 7: goproto.protoc.protoeditions.FieldTestMessage.MapFixed64EnumEntry
1523 (*FieldTestMessage_OneofGroup)(nil), // 8: goproto.protoc.protoeditions.FieldTestMessage.OneofGroup
1524 (*FieldTestMessage_Message)(nil), // 9: goproto.protoc.protoeditions.FieldTestMessage.Message
1525 }
1526 var file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_depIdxs = []int32{
1527 0, // 0: goproto.protoc.protoeditions.FieldTestMessage.optional_enum:type_name -> goproto.protoc.protoeditions.FieldTestMessage.Enum
1528 9, // 1: goproto.protoc.protoeditions.FieldTestMessage.optional_Message:type_name -> goproto.protoc.protoeditions.FieldTestMessage.Message
1529 2, // 2: goproto.protoc.protoeditions.FieldTestMessage.optionalgroup:type_name -> goproto.protoc.protoeditions.FieldTestMessage.OptionalGroup
1530 0, // 3: goproto.protoc.protoeditions.FieldTestMessage.required_enum:type_name -> goproto.protoc.protoeditions.FieldTestMessage.Enum
1531 9, // 4: goproto.protoc.protoeditions.FieldTestMessage.required_Message:type_name -> goproto.protoc.protoeditions.FieldTestMessage.Message
1532 3, // 5: goproto.protoc.protoeditions.FieldTestMessage.requiredgroup:type_name -> goproto.protoc.protoeditions.FieldTestMessage.RequiredGroup
1533 0, // 6: goproto.protoc.protoeditions.FieldTestMessage.repeated_enum:type_name -> goproto.protoc.protoeditions.FieldTestMessage.Enum
1534 9, // 7: goproto.protoc.protoeditions.FieldTestMessage.repeated_Message:type_name -> goproto.protoc.protoeditions.FieldTestMessage.Message
1535 4, // 8: goproto.protoc.protoeditions.FieldTestMessage.repeatedgroup:type_name -> goproto.protoc.protoeditions.FieldTestMessage.RepeatedGroup
1536 0, // 9: goproto.protoc.protoeditions.FieldTestMessage.default_enum:type_name -> goproto.protoc.protoeditions.FieldTestMessage.Enum
1537 5, // 10: goproto.protoc.protoeditions.FieldTestMessage.map_int32_int64:type_name -> goproto.protoc.protoeditions.FieldTestMessage.MapInt32Int64Entry
1538 6, // 11: goproto.protoc.protoeditions.FieldTestMessage.map_string_message:type_name -> goproto.protoc.protoeditions.FieldTestMessage.MapStringMessageEntry
1539 7, // 12: goproto.protoc.protoeditions.FieldTestMessage.map_fixed64_enum:type_name -> goproto.protoc.protoeditions.FieldTestMessage.MapFixed64EnumEntry
1540 0, // 13: goproto.protoc.protoeditions.FieldTestMessage.oneof_enum:type_name -> goproto.protoc.protoeditions.FieldTestMessage.Enum
1541 9, // 14: goproto.protoc.protoeditions.FieldTestMessage.oneof_Message:type_name -> goproto.protoc.protoeditions.FieldTestMessage.Message
1542 8, // 15: goproto.protoc.protoeditions.FieldTestMessage.oneofgroup:type_name -> goproto.protoc.protoeditions.FieldTestMessage.OneofGroup
1543 9, // 16: goproto.protoc.protoeditions.FieldTestMessage.MapStringMessageEntry.value:type_name -> goproto.protoc.protoeditions.FieldTestMessage.Message
1544 0, // 17: goproto.protoc.protoeditions.FieldTestMessage.MapFixed64EnumEntry.value:type_name -> goproto.protoc.protoeditions.FieldTestMessage.Enum
1545 18, // [18:18] is the sub-list for method output_type
1546 18, // [18:18] is the sub-list for method input_type
1547 18, // [18:18] is the sub-list for extension type_name
1548 18, // [18:18] is the sub-list for extension extendee
1549 0, // [0:18] is the sub-list for field type_name
1550 }
1551
1552 func init() { file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_init() }
1553 func file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_init() {
1554 if File_cmd_protoc_gen_go_testdata_protoeditions_fields_proto != nil {
1555 return
1556 }
1557 file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[0].OneofWrappers = []any{
1558 (*FieldTestMessage_OneofBool)(nil),
1559 (*FieldTestMessage_OneofEnum)(nil),
1560 (*FieldTestMessage_OneofInt32)(nil),
1561 (*FieldTestMessage_OneofSint32)(nil),
1562 (*FieldTestMessage_OneofUint32)(nil),
1563 (*FieldTestMessage_OneofInt64)(nil),
1564 (*FieldTestMessage_OneofSint64)(nil),
1565 (*FieldTestMessage_OneofUint64)(nil),
1566 (*FieldTestMessage_OneofSfixed32)(nil),
1567 (*FieldTestMessage_OneofFixed32)(nil),
1568 (*FieldTestMessage_OneofFloat)(nil),
1569 (*FieldTestMessage_OneofSfixed64)(nil),
1570 (*FieldTestMessage_OneofFixed64)(nil),
1571 (*FieldTestMessage_OneofDouble)(nil),
1572 (*FieldTestMessage_OneofString)(nil),
1573 (*FieldTestMessage_OneofBytes)(nil),
1574 (*FieldTestMessage_Oneof_Message)(nil),
1575 (*FieldTestMessage_Oneofgroup)(nil),
1576 (*FieldTestMessage_OneofLargestTag)(nil),
1577 (*FieldTestMessage_OneofTwo_1)(nil),
1578 (*FieldTestMessage_OneofTwo_2)(nil),
1579 }
1580 type x struct{}
1581 out := protoimpl.TypeBuilder{
1582 File: protoimpl.DescBuilder{
1583 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1584 RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDesc)),
1585 NumEnums: 1,
1586 NumMessages: 9,
1587 NumExtensions: 0,
1588 NumServices: 0,
1589 },
1590 GoTypes: file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_goTypes,
1591 DependencyIndexes: file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_depIdxs,
1592 EnumInfos: file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_enumTypes,
1593 MessageInfos: file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes,
1594 }.Build()
1595 File_cmd_protoc_gen_go_testdata_protoeditions_fields_proto = out.File
1596 file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_goTypes = nil
1597 file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_depIdxs = nil
1598 }