| 1 |
// Copyright 2018 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: internal/testprotos/test3/test3_hybrid/test.hybrid.proto |
| 7 |
|
| 8 |
//go:build protoopaque |
| 9 |
|
| 10 |
package test3_hybrid |
| 11 |
|
| 12 |
import ( |
| 13 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 14 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 15 |
reflect "reflect" |
| 16 |
unsafe "unsafe" |
| 17 |
) |
| 18 |
|
| 19 |
type ForeignEnum int32 |
| 20 |
|
| 21 |
const ( |
| 22 |
ForeignEnum_FOREIGN_ZERO ForeignEnum = 0 |
| 23 |
ForeignEnum_FOREIGN_FOO ForeignEnum = 4 |
| 24 |
ForeignEnum_FOREIGN_BAR ForeignEnum = 5 |
| 25 |
ForeignEnum_FOREIGN_BAZ ForeignEnum = 6 |
| 26 |
) |
| 27 |
|
| 28 |
// Enum value maps for ForeignEnum. |
| 29 |
var ( |
| 30 |
ForeignEnum_name = map[int32]string{ |
| 31 |
0: "FOREIGN_ZERO", |
| 32 |
4: "FOREIGN_FOO", |
| 33 |
5: "FOREIGN_BAR", |
| 34 |
6: "FOREIGN_BAZ", |
| 35 |
} |
| 36 |
ForeignEnum_value = map[string]int32{ |
| 37 |
"FOREIGN_ZERO": 0, |
| 38 |
"FOREIGN_FOO": 4, |
| 39 |
"FOREIGN_BAR": 5, |
| 40 |
"FOREIGN_BAZ": 6, |
| 41 |
} |
| 42 |
) |
| 43 |
|
| 44 |
func (x ForeignEnum) Enum() *ForeignEnum { |
| 45 |
p := new(ForeignEnum) |
| 46 |
*p = x |
| 47 |
return p |
| 48 |
} |
| 49 |
|
| 50 |
func (x ForeignEnum) String() string { |
| 51 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 52 |
} |
| 53 |
|
| 54 |
func (ForeignEnum) Descriptor() protoreflect.EnumDescriptor { |
| 55 |
return file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_enumTypes[0].Descriptor() |
| 56 |
} |
| 57 |
|
| 58 |
func (ForeignEnum) Type() protoreflect.EnumType { |
| 59 |
return &file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_enumTypes[0] |
| 60 |
} |
| 61 |
|
| 62 |
func (x ForeignEnum) Number() protoreflect.EnumNumber { |
| 63 |
return protoreflect.EnumNumber(x) |
| 64 |
} |
| 65 |
|
| 66 |
type TestAllTypes_NestedEnum int32 |
| 67 |
|
| 68 |
const ( |
| 69 |
TestAllTypes_FOO TestAllTypes_NestedEnum = 0 |
| 70 |
TestAllTypes_BAR TestAllTypes_NestedEnum = 1 |
| 71 |
TestAllTypes_BAZ TestAllTypes_NestedEnum = 2 |
| 72 |
TestAllTypes_NEG TestAllTypes_NestedEnum = -1 // Intentionally negative. |
| 73 |
) |
| 74 |
|
| 75 |
// Enum value maps for TestAllTypes_NestedEnum. |
| 76 |
var ( |
| 77 |
TestAllTypes_NestedEnum_name = map[int32]string{ |
| 78 |
0: "FOO", |
| 79 |
1: "BAR", |
| 80 |
2: "BAZ", |
| 81 |
-1: "NEG", |
| 82 |
} |
| 83 |
TestAllTypes_NestedEnum_value = map[string]int32{ |
| 84 |
"FOO": 0, |
| 85 |
"BAR": 1, |
| 86 |
"BAZ": 2, |
| 87 |
"NEG": -1, |
| 88 |
} |
| 89 |
) |
| 90 |
|
| 91 |
func (x TestAllTypes_NestedEnum) Enum() *TestAllTypes_NestedEnum { |
| 92 |
p := new(TestAllTypes_NestedEnum) |
| 93 |
*p = x |
| 94 |
return p |
| 95 |
} |
| 96 |
|
| 97 |
func (x TestAllTypes_NestedEnum) String() string { |
| 98 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 99 |
} |
| 100 |
|
| 101 |
func (TestAllTypes_NestedEnum) Descriptor() protoreflect.EnumDescriptor { |
| 102 |
return file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_enumTypes[1].Descriptor() |
| 103 |
} |
| 104 |
|
| 105 |
func (TestAllTypes_NestedEnum) Type() protoreflect.EnumType { |
| 106 |
return &file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_enumTypes[1] |
| 107 |
} |
| 108 |
|
| 109 |
func (x TestAllTypes_NestedEnum) Number() protoreflect.EnumNumber { |
| 110 |
return protoreflect.EnumNumber(x) |
| 111 |
} |
| 112 |
|
| 113 |
type TestAllTypes struct { |
| 114 |
state protoimpl.MessageState `protogen:"opaque.v1"` |
| 115 |
xxx_hidden_SingularInt32 int32 `protobuf:"varint,81,opt,name=singular_int32,json=singularInt32,proto3"` |
| 116 |
xxx_hidden_SingularInt64 int64 `protobuf:"varint,82,opt,name=singular_int64,json=singularInt64,proto3"` |
| 117 |
xxx_hidden_SingularUint32 uint32 `protobuf:"varint,83,opt,name=singular_uint32,json=singularUint32,proto3"` |
| 118 |
xxx_hidden_SingularUint64 uint64 `protobuf:"varint,84,opt,name=singular_uint64,json=singularUint64,proto3"` |
| 119 |
xxx_hidden_SingularSint32 int32 `protobuf:"zigzag32,85,opt,name=singular_sint32,json=singularSint32,proto3"` |
| 120 |
xxx_hidden_SingularSint64 int64 `protobuf:"zigzag64,86,opt,name=singular_sint64,json=singularSint64,proto3"` |
| 121 |
xxx_hidden_SingularFixed32 uint32 `protobuf:"fixed32,87,opt,name=singular_fixed32,json=singularFixed32,proto3"` |
| 122 |
xxx_hidden_SingularFixed64 uint64 `protobuf:"fixed64,88,opt,name=singular_fixed64,json=singularFixed64,proto3"` |
| 123 |
xxx_hidden_SingularSfixed32 int32 `protobuf:"fixed32,89,opt,name=singular_sfixed32,json=singularSfixed32,proto3"` |
| 124 |
xxx_hidden_SingularSfixed64 int64 `protobuf:"fixed64,90,opt,name=singular_sfixed64,json=singularSfixed64,proto3"` |
| 125 |
xxx_hidden_SingularFloat float32 `protobuf:"fixed32,91,opt,name=singular_float,json=singularFloat,proto3"` |
| 126 |
xxx_hidden_SingularDouble float64 `protobuf:"fixed64,92,opt,name=singular_double,json=singularDouble,proto3"` |
| 127 |
xxx_hidden_SingularBool bool `protobuf:"varint,93,opt,name=singular_bool,json=singularBool,proto3"` |
| 128 |
xxx_hidden_SingularString string `protobuf:"bytes,94,opt,name=singular_string,json=singularString,proto3"` |
| 129 |
xxx_hidden_SingularBytes []byte `protobuf:"bytes,95,opt,name=singular_bytes,json=singularBytes,proto3"` |
| 130 |
xxx_hidden_SingularNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,98,opt,name=singular_nested_message,json=singularNestedMessage,proto3"` |
| 131 |
xxx_hidden_SingularForeignMessage *ForeignMessage `protobuf:"bytes,99,opt,name=singular_foreign_message,json=singularForeignMessage,proto3"` |
| 132 |
xxx_hidden_SingularImportMessage *ImportMessage `protobuf:"bytes,100,opt,name=singular_import_message,json=singularImportMessage,proto3"` |
| 133 |
xxx_hidden_SingularNestedEnum TestAllTypes_NestedEnum `protobuf:"varint,101,opt,name=singular_nested_enum,json=singularNestedEnum,proto3,enum=hybrid.goproto.proto.test3.TestAllTypes_NestedEnum"` |
| 134 |
xxx_hidden_SingularForeignEnum ForeignEnum `protobuf:"varint,102,opt,name=singular_foreign_enum,json=singularForeignEnum,proto3,enum=hybrid.goproto.proto.test3.ForeignEnum"` |
| 135 |
xxx_hidden_SingularImportEnum ImportEnum `protobuf:"varint,103,opt,name=singular_import_enum,json=singularImportEnum,proto3,enum=hybrid.goproto.proto.test3.ImportEnum"` |
| 136 |
xxx_hidden_OptionalInt32 int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32,proto3,oneof"` |
| 137 |
xxx_hidden_OptionalInt64 int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64,proto3,oneof"` |
| 138 |
xxx_hidden_OptionalUint32 uint32 `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32,proto3,oneof"` |
| 139 |
xxx_hidden_OptionalUint64 uint64 `protobuf:"varint,4,opt,name=optional_uint64,json=optionalUint64,proto3,oneof"` |
| 140 |
xxx_hidden_OptionalSint32 int32 `protobuf:"zigzag32,5,opt,name=optional_sint32,json=optionalSint32,proto3,oneof"` |
| 141 |
xxx_hidden_OptionalSint64 int64 `protobuf:"zigzag64,6,opt,name=optional_sint64,json=optionalSint64,proto3,oneof"` |
| 142 |
xxx_hidden_OptionalFixed32 uint32 `protobuf:"fixed32,7,opt,name=optional_fixed32,json=optionalFixed32,proto3,oneof"` |
| 143 |
xxx_hidden_OptionalFixed64 uint64 `protobuf:"fixed64,8,opt,name=optional_fixed64,json=optionalFixed64,proto3,oneof"` |
| 144 |
xxx_hidden_OptionalSfixed32 int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32,proto3,oneof"` |
| 145 |
xxx_hidden_OptionalSfixed64 int64 `protobuf:"fixed64,10,opt,name=optional_sfixed64,json=optionalSfixed64,proto3,oneof"` |
| 146 |
xxx_hidden_OptionalFloat float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat,proto3,oneof"` |
| 147 |
xxx_hidden_OptionalDouble float64 `protobuf:"fixed64,12,opt,name=optional_double,json=optionalDouble,proto3,oneof"` |
| 148 |
xxx_hidden_OptionalBool bool `protobuf:"varint,13,opt,name=optional_bool,json=optionalBool,proto3,oneof"` |
| 149 |
xxx_hidden_OptionalString *string `protobuf:"bytes,14,opt,name=optional_string,json=optionalString,proto3,oneof"` |
| 150 |
xxx_hidden_OptionalBytes []byte `protobuf:"bytes,15,opt,name=optional_bytes,json=optionalBytes,proto3,oneof"` |
| 151 |
xxx_hidden_OptionalNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=optional_nested_message,json=optionalNestedMessage,proto3,oneof"` |
| 152 |
xxx_hidden_OptionalForeignMessage *ForeignMessage `protobuf:"bytes,19,opt,name=optional_foreign_message,json=optionalForeignMessage,proto3,oneof"` |
| 153 |
xxx_hidden_OptionalImportMessage *ImportMessage `protobuf:"bytes,20,opt,name=optional_import_message,json=optionalImportMessage,proto3,oneof"` |
| 154 |
xxx_hidden_OptionalNestedEnum TestAllTypes_NestedEnum `protobuf:"varint,21,opt,name=optional_nested_enum,json=optionalNestedEnum,proto3,enum=hybrid.goproto.proto.test3.TestAllTypes_NestedEnum,oneof"` |
| 155 |
xxx_hidden_OptionalForeignEnum ForeignEnum `protobuf:"varint,22,opt,name=optional_foreign_enum,json=optionalForeignEnum,proto3,enum=hybrid.goproto.proto.test3.ForeignEnum,oneof"` |
| 156 |
xxx_hidden_OptionalImportEnum ImportEnum `protobuf:"varint,23,opt,name=optional_import_enum,json=optionalImportEnum,proto3,enum=hybrid.goproto.proto.test3.ImportEnum,oneof"` |
| 157 |
xxx_hidden_RepeatedInt32 []int32 `protobuf:"varint,31,rep,packed,name=repeated_int32,json=repeatedInt32,proto3"` |
| 158 |
xxx_hidden_RepeatedInt64 []int64 `protobuf:"varint,32,rep,packed,name=repeated_int64,json=repeatedInt64,proto3"` |
| 159 |
xxx_hidden_RepeatedUint32 []uint32 `protobuf:"varint,33,rep,packed,name=repeated_uint32,json=repeatedUint32,proto3"` |
| 160 |
xxx_hidden_RepeatedUint64 []uint64 `protobuf:"varint,34,rep,packed,name=repeated_uint64,json=repeatedUint64,proto3"` |
| 161 |
xxx_hidden_RepeatedSint32 []int32 `protobuf:"zigzag32,35,rep,packed,name=repeated_sint32,json=repeatedSint32,proto3"` |
| 162 |
xxx_hidden_RepeatedSint64 []int64 `protobuf:"zigzag64,36,rep,packed,name=repeated_sint64,json=repeatedSint64,proto3"` |
| 163 |
xxx_hidden_RepeatedFixed32 []uint32 `protobuf:"fixed32,37,rep,packed,name=repeated_fixed32,json=repeatedFixed32,proto3"` |
| 164 |
xxx_hidden_RepeatedFixed64 []uint64 `protobuf:"fixed64,38,rep,packed,name=repeated_fixed64,json=repeatedFixed64,proto3"` |
| 165 |
xxx_hidden_RepeatedSfixed32 []int32 `protobuf:"fixed32,39,rep,packed,name=repeated_sfixed32,json=repeatedSfixed32,proto3"` |
| 166 |
xxx_hidden_RepeatedSfixed64 []int64 `protobuf:"fixed64,40,rep,packed,name=repeated_sfixed64,json=repeatedSfixed64,proto3"` |
| 167 |
xxx_hidden_RepeatedFloat []float32 `protobuf:"fixed32,41,rep,packed,name=repeated_float,json=repeatedFloat,proto3"` |
| 168 |
xxx_hidden_RepeatedDouble []float64 `protobuf:"fixed64,42,rep,packed,name=repeated_double,json=repeatedDouble,proto3"` |
| 169 |
xxx_hidden_RepeatedBool []bool `protobuf:"varint,43,rep,packed,name=repeated_bool,json=repeatedBool,proto3"` |
| 170 |
xxx_hidden_RepeatedString []string `protobuf:"bytes,44,rep,name=repeated_string,json=repeatedString,proto3"` |
| 171 |
xxx_hidden_RepeatedBytes [][]byte `protobuf:"bytes,45,rep,name=repeated_bytes,json=repeatedBytes,proto3"` |
| 172 |
xxx_hidden_RepeatedNestedMessage *[]*TestAllTypes_NestedMessage `protobuf:"bytes,48,rep,name=repeated_nested_message,json=repeatedNestedMessage,proto3"` |
| 173 |
xxx_hidden_RepeatedForeignMessage *[]*ForeignMessage `protobuf:"bytes,49,rep,name=repeated_foreign_message,json=repeatedForeignMessage,proto3"` |
| 174 |
xxx_hidden_RepeatedImportmessage *[]*ImportMessage `protobuf:"bytes,50,rep,name=repeated_importmessage,json=repeatedImportmessage,proto3"` |
| 175 |
xxx_hidden_RepeatedNestedEnum []TestAllTypes_NestedEnum `protobuf:"varint,51,rep,packed,name=repeated_nested_enum,json=repeatedNestedEnum,proto3,enum=hybrid.goproto.proto.test3.TestAllTypes_NestedEnum"` |
| 176 |
xxx_hidden_RepeatedForeignEnum []ForeignEnum `protobuf:"varint,52,rep,packed,name=repeated_foreign_enum,json=repeatedForeignEnum,proto3,enum=hybrid.goproto.proto.test3.ForeignEnum"` |
| 177 |
xxx_hidden_RepeatedImportenum []ImportEnum `protobuf:"varint,53,rep,packed,name=repeated_importenum,json=repeatedImportenum,proto3,enum=hybrid.goproto.proto.test3.ImportEnum"` |
| 178 |
xxx_hidden_MapInt32Int32 map[int32]int32 `protobuf:"bytes,56,rep,name=map_int32_int32,json=mapInt32Int32,proto3" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| 179 |
xxx_hidden_MapInt64Int64 map[int64]int64 `protobuf:"bytes,57,rep,name=map_int64_int64,json=mapInt64Int64,proto3" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| 180 |
xxx_hidden_MapUint32Uint32 map[uint32]uint32 `protobuf:"bytes,58,rep,name=map_uint32_uint32,json=mapUint32Uint32,proto3" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| 181 |
xxx_hidden_MapUint64Uint64 map[uint64]uint64 `protobuf:"bytes,59,rep,name=map_uint64_uint64,json=mapUint64Uint64,proto3" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| 182 |
xxx_hidden_MapSint32Sint32 map[int32]int32 `protobuf:"bytes,60,rep,name=map_sint32_sint32,json=mapSint32Sint32,proto3" protobuf_key:"zigzag32,1,opt,name=key" protobuf_val:"zigzag32,2,opt,name=value"` |
| 183 |
xxx_hidden_MapSint64Sint64 map[int64]int64 `protobuf:"bytes,61,rep,name=map_sint64_sint64,json=mapSint64Sint64,proto3" protobuf_key:"zigzag64,1,opt,name=key" protobuf_val:"zigzag64,2,opt,name=value"` |
| 184 |
xxx_hidden_MapFixed32Fixed32 map[uint32]uint32 `protobuf:"bytes,62,rep,name=map_fixed32_fixed32,json=mapFixed32Fixed32,proto3" protobuf_key:"fixed32,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"` |
| 185 |
xxx_hidden_MapFixed64Fixed64 map[uint64]uint64 `protobuf:"bytes,63,rep,name=map_fixed64_fixed64,json=mapFixed64Fixed64,proto3" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` |
| 186 |
xxx_hidden_MapSfixed32Sfixed32 map[int32]int32 `protobuf:"bytes,64,rep,name=map_sfixed32_sfixed32,json=mapSfixed32Sfixed32,proto3" protobuf_key:"fixed32,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"` |
| 187 |
xxx_hidden_MapSfixed64Sfixed64 map[int64]int64 `protobuf:"bytes,65,rep,name=map_sfixed64_sfixed64,json=mapSfixed64Sfixed64,proto3" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` |
| 188 |
xxx_hidden_MapInt32Float map[int32]float32 `protobuf:"bytes,66,rep,name=map_int32_float,json=mapInt32Float,proto3" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"` |
| 189 |
xxx_hidden_MapInt32Double map[int32]float64 `protobuf:"bytes,67,rep,name=map_int32_double,json=mapInt32Double,proto3" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` |
| 190 |
xxx_hidden_MapBoolBool map[bool]bool `protobuf:"bytes,68,rep,name=map_bool_bool,json=mapBoolBool,proto3" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| 191 |
xxx_hidden_MapStringString map[string]string `protobuf:"bytes,69,rep,name=map_string_string,json=mapStringString,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| 192 |
xxx_hidden_MapStringBytes map[string][]byte `protobuf:"bytes,70,rep,name=map_string_bytes,json=mapStringBytes,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| 193 |
xxx_hidden_MapStringNestedMessage map[string]*TestAllTypes_NestedMessage `protobuf:"bytes,71,rep,name=map_string_nested_message,json=mapStringNestedMessage,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| 194 |
xxx_hidden_MapStringNestedEnum map[string]TestAllTypes_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=hybrid.goproto.proto.test3.TestAllTypes_NestedEnum"` |
| 195 |
xxx_hidden_OneofField isTestAllTypes_OneofField `protobuf_oneof:"oneof_field"` |
| 196 |
XXX_raceDetectHookData protoimpl.RaceDetectHookData |
| 197 |
XXX_presence [3]uint32 |
| 198 |
unknownFields protoimpl.UnknownFields |
| 199 |
sizeCache protoimpl.SizeCache |
| 200 |
} |
| 201 |
|
| 202 |
func (x *TestAllTypes) Reset() { |
| 203 |
*x = TestAllTypes{} |
| 204 |
mi := &file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_msgTypes[0] |
| 205 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 206 |
ms.StoreMessageInfo(mi) |
| 207 |
} |
| 208 |
|
| 209 |
func (x *TestAllTypes) String() string { |
| 210 |
return protoimpl.X.MessageStringOf(x) |
| 211 |
} |
| 212 |
|
| 213 |
func (*TestAllTypes) ProtoMessage() {} |
| 214 |
|
| 215 |
func (x *TestAllTypes) ProtoReflect() protoreflect.Message { |
| 216 |
mi := &file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_msgTypes[0] |
| 217 |
if x != nil { |
| 218 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 219 |
if ms.LoadMessageInfo() == nil { |
| 220 |
ms.StoreMessageInfo(mi) |
| 221 |
} |
| 222 |
return ms |
| 223 |
} |
| 224 |
return mi.MessageOf(x) |
| 225 |
} |
| 226 |
|
| 227 |
func (x *TestAllTypes) GetSingularInt32() int32 { |
| 228 |
if x != nil { |
| 229 |
return x.xxx_hidden_SingularInt32 |
| 230 |
} |
| 231 |
return 0 |
| 232 |
} |
| 233 |
|
| 234 |
func (x *TestAllTypes) GetSingularInt64() int64 { |
| 235 |
if x != nil { |
| 236 |
return x.xxx_hidden_SingularInt64 |
| 237 |
} |
| 238 |
return 0 |
| 239 |
} |
| 240 |
|
| 241 |
func (x *TestAllTypes) GetSingularUint32() uint32 { |
| 242 |
if x != nil { |
| 243 |
return x.xxx_hidden_SingularUint32 |
| 244 |
} |
| 245 |
return 0 |
| 246 |
} |
| 247 |
|
| 248 |
func (x *TestAllTypes) GetSingularUint64() uint64 { |
| 249 |
if x != nil { |
| 250 |
return x.xxx_hidden_SingularUint64 |
| 251 |
} |
| 252 |
return 0 |
| 253 |
} |
| 254 |
|
| 255 |
func (x *TestAllTypes) GetSingularSint32() int32 { |
| 256 |
if x != nil { |
| 257 |
return x.xxx_hidden_SingularSint32 |
| 258 |
} |
| 259 |
return 0 |
| 260 |
} |
| 261 |
|
| 262 |
func (x *TestAllTypes) GetSingularSint64() int64 { |
| 263 |
if x != nil { |
| 264 |
return x.xxx_hidden_SingularSint64 |
| 265 |
} |
| 266 |
return 0 |
| 267 |
} |
| 268 |
|
| 269 |
func (x *TestAllTypes) GetSingularFixed32() uint32 { |
| 270 |
if x != nil { |
| 271 |
return x.xxx_hidden_SingularFixed32 |
| 272 |
} |
| 273 |
return 0 |
| 274 |
} |
| 275 |
|
| 276 |
func (x *TestAllTypes) GetSingularFixed64() uint64 { |
| 277 |
if x != nil { |
| 278 |
return x.xxx_hidden_SingularFixed64 |
| 279 |
} |
| 280 |
return 0 |
| 281 |
} |
| 282 |
|
| 283 |
func (x *TestAllTypes) GetSingularSfixed32() int32 { |
| 284 |
if x != nil { |
| 285 |
return x.xxx_hidden_SingularSfixed32 |
| 286 |
} |
| 287 |
return 0 |
| 288 |
} |
| 289 |
|
| 290 |
func (x *TestAllTypes) GetSingularSfixed64() int64 { |
| 291 |
if x != nil { |
| 292 |
return x.xxx_hidden_SingularSfixed64 |
| 293 |
} |
| 294 |
return 0 |
| 295 |
} |
| 296 |
|
| 297 |
func (x *TestAllTypes) GetSingularFloat() float32 { |
| 298 |
if x != nil { |
| 299 |
return x.xxx_hidden_SingularFloat |
| 300 |
} |
| 301 |
return 0 |
| 302 |
} |
| 303 |
|
| 304 |
func (x *TestAllTypes) GetSingularDouble() float64 { |
| 305 |
if x != nil { |
| 306 |
return x.xxx_hidden_SingularDouble |
| 307 |
} |
| 308 |
return 0 |
| 309 |
} |
| 310 |
|
| 311 |
func (x *TestAllTypes) GetSingularBool() bool { |
| 312 |
if x != nil { |
| 313 |
return x.xxx_hidden_SingularBool |
| 314 |
} |
| 315 |
return false |
| 316 |
} |
| 317 |
|
| 318 |
func (x *TestAllTypes) GetSingularString() string { |
| 319 |
if x != nil { |
| 320 |
return x.xxx_hidden_SingularString |
| 321 |
} |
| 322 |
return "" |
| 323 |
} |
| 324 |
|
| 325 |
func (x *TestAllTypes) GetSingularBytes() []byte { |
| 326 |
if x != nil { |
| 327 |
return x.xxx_hidden_SingularBytes |
| 328 |
} |
| 329 |
return nil |
| 330 |
} |
| 331 |
|
| 332 |
func (x *TestAllTypes) GetSingularNestedMessage() *TestAllTypes_NestedMessage { |
| 333 |
if x != nil { |
| 334 |
return x.xxx_hidden_SingularNestedMessage |
| 335 |
} |
| 336 |
return nil |
| 337 |
} |
| 338 |
|
| 339 |
func (x *TestAllTypes) GetSingularForeignMessage() *ForeignMessage { |
| 340 |
if x != nil { |
| 341 |
return x.xxx_hidden_SingularForeignMessage |
| 342 |
} |
| 343 |
return nil |
| 344 |
} |
| 345 |
|
| 346 |
func (x *TestAllTypes) GetSingularImportMessage() *ImportMessage { |
| 347 |
if x != nil { |
| 348 |
return x.xxx_hidden_SingularImportMessage |
| 349 |
} |
| 350 |
return nil |
| 351 |
} |
| 352 |
|
| 353 |
func (x *TestAllTypes) GetSingularNestedEnum() TestAllTypes_NestedEnum { |
| 354 |
if x != nil { |
| 355 |
return x.xxx_hidden_SingularNestedEnum |
| 356 |
} |
| 357 |
return TestAllTypes_FOO |
| 358 |
} |
| 359 |
|
| 360 |
func (x *TestAllTypes) GetSingularForeignEnum() ForeignEnum { |
| 361 |
if x != nil { |
| 362 |
return x.xxx_hidden_SingularForeignEnum |
| 363 |
} |
| 364 |
return ForeignEnum_FOREIGN_ZERO |
| 365 |
} |
| 366 |
|
| 367 |
func (x *TestAllTypes) GetSingularImportEnum() ImportEnum { |
| 368 |
if x != nil { |
| 369 |
return x.xxx_hidden_SingularImportEnum |
| 370 |
} |
| 371 |
return ImportEnum_IMPORT_ZERO |
| 372 |
} |
| 373 |
|
| 374 |
func (x *TestAllTypes) GetOptionalInt32() int32 { |
| 375 |
if x != nil { |
| 376 |
return x.xxx_hidden_OptionalInt32 |
| 377 |
} |
| 378 |
return 0 |
| 379 |
} |
| 380 |
|
| 381 |
func (x *TestAllTypes) GetOptionalInt64() int64 { |
| 382 |
if x != nil { |
| 383 |
return x.xxx_hidden_OptionalInt64 |
| 384 |
} |
| 385 |
return 0 |
| 386 |
} |
| 387 |
|
| 388 |
func (x *TestAllTypes) GetOptionalUint32() uint32 { |
| 389 |
if x != nil { |
| 390 |
return x.xxx_hidden_OptionalUint32 |
| 391 |
} |
| 392 |
return 0 |
| 393 |
} |
| 394 |
|
| 395 |
func (x *TestAllTypes) GetOptionalUint64() uint64 { |
| 396 |
if x != nil { |
| 397 |
return x.xxx_hidden_OptionalUint64 |
| 398 |
} |
| 399 |
return 0 |
| 400 |
} |
| 401 |
|
| 402 |
func (x *TestAllTypes) GetOptionalSint32() int32 { |
| 403 |
if x != nil { |
| 404 |
return x.xxx_hidden_OptionalSint32 |
| 405 |
} |
| 406 |
return 0 |
| 407 |
} |
| 408 |
|
| 409 |
func (x *TestAllTypes) GetOptionalSint64() int64 { |
| 410 |
if x != nil { |
| 411 |
return x.xxx_hidden_OptionalSint64 |
| 412 |
} |
| 413 |
return 0 |
| 414 |
} |
| 415 |
|
| 416 |
func (x *TestAllTypes) GetOptionalFixed32() uint32 { |
| 417 |
if x != nil { |
| 418 |
return x.xxx_hidden_OptionalFixed32 |
| 419 |
} |
| 420 |
return 0 |
| 421 |
} |
| 422 |
|
| 423 |
func (x *TestAllTypes) GetOptionalFixed64() uint64 { |
| 424 |
if x != nil { |
| 425 |
return x.xxx_hidden_OptionalFixed64 |
| 426 |
} |
| 427 |
return 0 |
| 428 |
} |
| 429 |
|
| 430 |
func (x *TestAllTypes) GetOptionalSfixed32() int32 { |
| 431 |
if x != nil { |
| 432 |
return x.xxx_hidden_OptionalSfixed32 |
| 433 |
} |
| 434 |
return 0 |
| 435 |
} |
| 436 |
|
| 437 |
func (x *TestAllTypes) GetOptionalSfixed64() int64 { |
| 438 |
if x != nil { |
| 439 |
return x.xxx_hidden_OptionalSfixed64 |
| 440 |
} |
| 441 |
return 0 |
| 442 |
} |
| 443 |
|
| 444 |
func (x *TestAllTypes) GetOptionalFloat() float32 { |
| 445 |
if x != nil { |
| 446 |
return x.xxx_hidden_OptionalFloat |
| 447 |
} |
| 448 |
return 0 |
| 449 |
} |
| 450 |
|
| 451 |
func (x *TestAllTypes) GetOptionalDouble() float64 { |
| 452 |
if x != nil { |
| 453 |
return x.xxx_hidden_OptionalDouble |
| 454 |
} |
| 455 |
return 0 |
| 456 |
} |
| 457 |
|
| 458 |
func (x *TestAllTypes) GetOptionalBool() bool { |
| 459 |
if x != nil { |
| 460 |
return x.xxx_hidden_OptionalBool |
| 461 |
} |
| 462 |
return false |
| 463 |
} |
| 464 |
|
| 465 |
func (x *TestAllTypes) GetOptionalString() string { |
| 466 |
if x != nil { |
| 467 |
if x.xxx_hidden_OptionalString != nil { |
| 468 |
return *x.xxx_hidden_OptionalString |
| 469 |
} |
| 470 |
return "" |
| 471 |
} |
| 472 |
return "" |
| 473 |
} |
| 474 |
|
| 475 |
func (x *TestAllTypes) GetOptionalBytes() []byte { |
| 476 |
if x != nil { |
| 477 |
return x.xxx_hidden_OptionalBytes |
| 478 |
} |
| 479 |
return nil |
| 480 |
} |
| 481 |
|
| 482 |
func (x *TestAllTypes) GetOptionalNestedMessage() *TestAllTypes_NestedMessage { |
| 483 |
if x != nil { |
| 484 |
return x.xxx_hidden_OptionalNestedMessage |
| 485 |
} |
| 486 |
return nil |
| 487 |
} |
| 488 |
|
| 489 |
func (x *TestAllTypes) GetOptionalForeignMessage() *ForeignMessage { |
| 490 |
if x != nil { |
| 491 |
return x.xxx_hidden_OptionalForeignMessage |
| 492 |
} |
| 493 |
return nil |
| 494 |
} |
| 495 |
|
| 496 |
func (x *TestAllTypes) GetOptionalImportMessage() *ImportMessage { |
| 497 |
if x != nil { |
| 498 |
return x.xxx_hidden_OptionalImportMessage |
| 499 |
} |
| 500 |
return nil |
| 501 |
} |
| 502 |
|
| 503 |
func (x *TestAllTypes) GetOptionalNestedEnum() TestAllTypes_NestedEnum { |
| 504 |
if x != nil { |
| 505 |
if protoimpl.X.Present(&(x.XXX_presence[1]), 39) { |
| 506 |
return x.xxx_hidden_OptionalNestedEnum |
| 507 |
} |
| 508 |
} |
| 509 |
return TestAllTypes_FOO |
| 510 |
} |
| 511 |
|
| 512 |
func (x *TestAllTypes) GetOptionalForeignEnum() ForeignEnum { |
| 513 |
if x != nil { |
| 514 |
if protoimpl.X.Present(&(x.XXX_presence[1]), 40) { |
| 515 |
return x.xxx_hidden_OptionalForeignEnum |
| 516 |
} |
| 517 |
} |
| 518 |
return ForeignEnum_FOREIGN_ZERO |
| 519 |
} |
| 520 |
|
| 521 |
func (x *TestAllTypes) GetOptionalImportEnum() ImportEnum { |
| 522 |
if x != nil { |
| 523 |
if protoimpl.X.Present(&(x.XXX_presence[1]), 41) { |
| 524 |
return x.xxx_hidden_OptionalImportEnum |
| 525 |
} |
| 526 |
} |
| 527 |
return ImportEnum_IMPORT_ZERO |
| 528 |
} |
| 529 |
|
| 530 |
func (x *TestAllTypes) GetRepeatedInt32() []int32 { |
| 531 |
if x != nil { |
| 532 |
return x.xxx_hidden_RepeatedInt32 |
| 533 |
} |
| 534 |
return nil |
| 535 |
} |
| 536 |
|
| 537 |
func (x *TestAllTypes) GetRepeatedInt64() []int64 { |
| 538 |
if x != nil { |
| 539 |
return x.xxx_hidden_RepeatedInt64 |
| 540 |
} |
| 541 |
return nil |
| 542 |
} |
| 543 |
|
| 544 |
func (x *TestAllTypes) GetRepeatedUint32() []uint32 { |
| 545 |
if x != nil { |
| 546 |
return x.xxx_hidden_RepeatedUint32 |
| 547 |
} |
| 548 |
return nil |
| 549 |
} |
| 550 |
|
| 551 |
func (x *TestAllTypes) GetRepeatedUint64() []uint64 { |
| 552 |
if x != nil { |
| 553 |
return x.xxx_hidden_RepeatedUint64 |
| 554 |
} |
| 555 |
return nil |
| 556 |
} |
| 557 |
|
| 558 |
func (x *TestAllTypes) GetRepeatedSint32() []int32 { |
| 559 |
if x != nil { |
| 560 |
return x.xxx_hidden_RepeatedSint32 |
| 561 |
} |
| 562 |
return nil |
| 563 |
} |
| 564 |
|
| 565 |
func (x *TestAllTypes) GetRepeatedSint64() []int64 { |
| 566 |
if x != nil { |
| 567 |
return x.xxx_hidden_RepeatedSint64 |
| 568 |
} |
| 569 |
return nil |
| 570 |
} |
| 571 |
|
| 572 |
func (x *TestAllTypes) GetRepeatedFixed32() []uint32 { |
| 573 |
if x != nil { |
| 574 |
return x.xxx_hidden_RepeatedFixed32 |
| 575 |
} |
| 576 |
return nil |
| 577 |
} |
| 578 |
|
| 579 |
func (x *TestAllTypes) GetRepeatedFixed64() []uint64 { |
| 580 |
if x != nil { |
| 581 |
return x.xxx_hidden_RepeatedFixed64 |
| 582 |
} |
| 583 |
return nil |
| 584 |
} |
| 585 |
|
| 586 |
func (x *TestAllTypes) GetRepeatedSfixed32() []int32 { |
| 587 |
if x != nil { |
| 588 |
return x.xxx_hidden_RepeatedSfixed32 |
| 589 |
} |
| 590 |
return nil |
| 591 |
} |
| 592 |
|
| 593 |
func (x *TestAllTypes) GetRepeatedSfixed64() []int64 { |
| 594 |
if x != nil { |
| 595 |
return x.xxx_hidden_RepeatedSfixed64 |
| 596 |
} |
| 597 |
return nil |
| 598 |
} |
| 599 |
|
| 600 |
func (x *TestAllTypes) GetRepeatedFloat() []float32 { |
| 601 |
if x != nil { |
| 602 |
return x.xxx_hidden_RepeatedFloat |
| 603 |
} |
| 604 |
return nil |
| 605 |
} |
| 606 |
|
| 607 |
func (x *TestAllTypes) GetRepeatedDouble() []float64 { |
| 608 |
if x != nil { |
| 609 |
return x.xxx_hidden_RepeatedDouble |
| 610 |
} |
| 611 |
return nil |
| 612 |
} |
| 613 |
|
| 614 |
func (x *TestAllTypes) GetRepeatedBool() []bool { |
| 615 |
if x != nil { |
| 616 |
return x.xxx_hidden_RepeatedBool |
| 617 |
} |
| 618 |
return nil |
| 619 |
} |
| 620 |
|
| 621 |
func (x *TestAllTypes) GetRepeatedString() []string { |
| 622 |
if x != nil { |
| 623 |
return x.xxx_hidden_RepeatedString |
| 624 |
} |
| 625 |
return nil |
| 626 |
} |
| 627 |
|
| 628 |
func (x *TestAllTypes) GetRepeatedBytes() [][]byte { |
| 629 |
if x != nil { |
| 630 |
return x.xxx_hidden_RepeatedBytes |
| 631 |
} |
| 632 |
return nil |
| 633 |
} |
| 634 |
|
| 635 |
func (x *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage { |
| 636 |
if x != nil { |
| 637 |
if x.xxx_hidden_RepeatedNestedMessage != nil { |
| 638 |
return *x.xxx_hidden_RepeatedNestedMessage |
| 639 |
} |
| 640 |
} |
| 641 |
return nil |
| 642 |
} |
| 643 |
|
| 644 |
func (x *TestAllTypes) GetRepeatedForeignMessage() []*ForeignMessage { |
| 645 |
if x != nil { |
| 646 |
if x.xxx_hidden_RepeatedForeignMessage != nil { |
| 647 |
return *x.xxx_hidden_RepeatedForeignMessage |
| 648 |
} |
| 649 |
} |
| 650 |
return nil |
| 651 |
} |
| 652 |
|
| 653 |
func (x *TestAllTypes) GetRepeatedImportmessage() []*ImportMessage { |
| 654 |
if x != nil { |
| 655 |
if x.xxx_hidden_RepeatedImportmessage != nil { |
| 656 |
return *x.xxx_hidden_RepeatedImportmessage |
| 657 |
} |
| 658 |
} |
| 659 |
return nil |
| 660 |
} |
| 661 |
|
| 662 |
func (x *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum { |
| 663 |
if x != nil { |
| 664 |
return x.xxx_hidden_RepeatedNestedEnum |
| 665 |
} |
| 666 |
return nil |
| 667 |
} |
| 668 |
|
| 669 |
func (x *TestAllTypes) GetRepeatedForeignEnum() []ForeignEnum { |
| 670 |
if x != nil { |
| 671 |
return x.xxx_hidden_RepeatedForeignEnum |
| 672 |
} |
| 673 |
return nil |
| 674 |
} |
| 675 |
|
| 676 |
func (x *TestAllTypes) GetRepeatedImportenum() []ImportEnum { |
| 677 |
if x != nil { |
| 678 |
return x.xxx_hidden_RepeatedImportenum |
| 679 |
} |
| 680 |
return nil |
| 681 |
} |
| 682 |
|
| 683 |
func (x *TestAllTypes) GetMapInt32Int32() map[int32]int32 { |
| 684 |
if x != nil { |
| 685 |
return x.xxx_hidden_MapInt32Int32 |
| 686 |
} |
| 687 |
return nil |
| 688 |
} |
| 689 |
|
| 690 |
func (x *TestAllTypes) GetMapInt64Int64() map[int64]int64 { |
| 691 |
if x != nil { |
| 692 |
return x.xxx_hidden_MapInt64Int64 |
| 693 |
} |
| 694 |
return nil |
| 695 |
} |
| 696 |
|
| 697 |
func (x *TestAllTypes) GetMapUint32Uint32() map[uint32]uint32 { |
| 698 |
if x != nil { |
| 699 |
return x.xxx_hidden_MapUint32Uint32 |
| 700 |
} |
| 701 |
return nil |
| 702 |
} |
| 703 |
|
| 704 |
func (x *TestAllTypes) GetMapUint64Uint64() map[uint64]uint64 { |
| 705 |
if x != nil { |
| 706 |
return x.xxx_hidden_MapUint64Uint64 |
| 707 |
} |
| 708 |
return nil |
| 709 |
} |
| 710 |
|
| 711 |
func (x *TestAllTypes) GetMapSint32Sint32() map[int32]int32 { |
| 712 |
if x != nil { |
| 713 |
return x.xxx_hidden_MapSint32Sint32 |
| 714 |
} |
| 715 |
return nil |
| 716 |
} |
| 717 |
|
| 718 |
func (x *TestAllTypes) GetMapSint64Sint64() map[int64]int64 { |
| 719 |
if x != nil { |
| 720 |
return x.xxx_hidden_MapSint64Sint64 |
| 721 |
} |
| 722 |
return nil |
| 723 |
} |
| 724 |
|
| 725 |
func (x *TestAllTypes) GetMapFixed32Fixed32() map[uint32]uint32 { |
| 726 |
if x != nil { |
| 727 |
return x.xxx_hidden_MapFixed32Fixed32 |
| 728 |
} |
| 729 |
return nil |
| 730 |
} |
| 731 |
|
| 732 |
func (x *TestAllTypes) GetMapFixed64Fixed64() map[uint64]uint64 { |
| 733 |
if x != nil { |
| 734 |
return x.xxx_hidden_MapFixed64Fixed64 |
| 735 |
} |
| 736 |
return nil |
| 737 |
} |
| 738 |
|
| 739 |
func (x *TestAllTypes) GetMapSfixed32Sfixed32() map[int32]int32 { |
| 740 |
if x != nil { |
| 741 |
return x.xxx_hidden_MapSfixed32Sfixed32 |
| 742 |
} |
| 743 |
return nil |
| 744 |
} |
| 745 |
|
| 746 |
func (x *TestAllTypes) GetMapSfixed64Sfixed64() map[int64]int64 { |
| 747 |
if x != nil { |
| 748 |
return x.xxx_hidden_MapSfixed64Sfixed64 |
| 749 |
} |
| 750 |
return nil |
| 751 |
} |
| 752 |
|
| 753 |
func (x *TestAllTypes) GetMapInt32Float() map[int32]float32 { |
| 754 |
if x != nil { |
| 755 |
return x.xxx_hidden_MapInt32Float |
| 756 |
} |
| 757 |
return nil |
| 758 |
} |
| 759 |
|
| 760 |
func (x *TestAllTypes) GetMapInt32Double() map[int32]float64 { |
| 761 |
if x != nil { |
| 762 |
return x.xxx_hidden_MapInt32Double |
| 763 |
} |
| 764 |
return nil |
| 765 |
} |
| 766 |
|
| 767 |
func (x *TestAllTypes) GetMapBoolBool() map[bool]bool { |
| 768 |
if x != nil { |
| 769 |
return x.xxx_hidden_MapBoolBool |
| 770 |
} |
| 771 |
return nil |
| 772 |
} |
| 773 |
|
| 774 |
func (x *TestAllTypes) GetMapStringString() map[string]string { |
| 775 |
if x != nil { |
| 776 |
return x.xxx_hidden_MapStringString |
| 777 |
} |
| 778 |
return nil |
| 779 |
} |
| 780 |
|
| 781 |
func (x *TestAllTypes) GetMapStringBytes() map[string][]byte { |
| 782 |
if x != nil { |
| 783 |
return x.xxx_hidden_MapStringBytes |
| 784 |
} |
| 785 |
return nil |
| 786 |
} |
| 787 |
|
| 788 |
func (x *TestAllTypes) GetMapStringNestedMessage() map[string]*TestAllTypes_NestedMessage { |
| 789 |
if x != nil { |
| 790 |
return x.xxx_hidden_MapStringNestedMessage |
| 791 |
} |
| 792 |
return nil |
| 793 |
} |
| 794 |
|
| 795 |
func (x *TestAllTypes) GetMapStringNestedEnum() map[string]TestAllTypes_NestedEnum { |
| 796 |
if x != nil { |
| 797 |
return x.xxx_hidden_MapStringNestedEnum |
| 798 |
} |
| 799 |
return nil |
| 800 |
} |
| 801 |
|
| 802 |
func (x *TestAllTypes) GetOneofUint32() uint32 { |
| 803 |
if x != nil { |
| 804 |
if x, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofUint32); ok { |
| 805 |
return x.OneofUint32 |
| 806 |
} |
| 807 |
} |
| 808 |
return 0 |
| 809 |
} |
| 810 |
|
| 811 |
func (x *TestAllTypes) GetOneofNestedMessage() *TestAllTypes_NestedMessage { |
| 812 |
if x != nil { |
| 813 |
if x, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofNestedMessage); ok { |
| 814 |
return x.OneofNestedMessage |
| 815 |
} |
| 816 |
} |
| 817 |
return nil |
| 818 |
} |
| 819 |
|
| 820 |
func (x *TestAllTypes) GetOneofString() string { |
| 821 |
if x != nil { |
| 822 |
if x, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofString); ok { |
| 823 |
return x.OneofString |
| 824 |
} |
| 825 |
} |
| 826 |
return "" |
| 827 |
} |
| 828 |
|
| 829 |
func (x *TestAllTypes) GetOneofBytes() []byte { |
| 830 |
if x != nil { |
| 831 |
if x, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofBytes); ok { |
| 832 |
return x.OneofBytes |
| 833 |
} |
| 834 |
} |
| 835 |
return nil |
| 836 |
} |
| 837 |
|
| 838 |
func (x *TestAllTypes) GetOneofBool() bool { |
| 839 |
if x != nil { |
| 840 |
if x, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofBool); ok { |
| 841 |
return x.OneofBool |
| 842 |
} |
| 843 |
} |
| 844 |
return false |
| 845 |
} |
| 846 |
|
| 847 |
func (x *TestAllTypes) GetOneofUint64() uint64 { |
| 848 |
if x != nil { |
| 849 |
if x, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofUint64); ok { |
| 850 |
return x.OneofUint64 |
| 851 |
} |
| 852 |
} |
| 853 |
return 0 |
| 854 |
} |
| 855 |
|
| 856 |
func (x *TestAllTypes) GetOneofFloat() float32 { |
| 857 |
if x != nil { |
| 858 |
if x, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofFloat); ok { |
| 859 |
return x.OneofFloat |
| 860 |
} |
| 861 |
} |
| 862 |
return 0 |
| 863 |
} |
| 864 |
|
| 865 |
func (x *TestAllTypes) GetOneofDouble() float64 { |
| 866 |
if x != nil { |
| 867 |
if x, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofDouble); ok { |
| 868 |
return x.OneofDouble |
| 869 |
} |
| 870 |
} |
| 871 |
return 0 |
| 872 |
} |
| 873 |
|
| 874 |
func (x *TestAllTypes) GetOneofEnum() TestAllTypes_NestedEnum { |
| 875 |
if x != nil { |
| 876 |
if x, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofEnum); ok { |
| 877 |
return x.OneofEnum |
| 878 |
} |
| 879 |
} |
| 880 |
return TestAllTypes_FOO |
| 881 |
} |
| 882 |
|
| 883 |
func (x *TestAllTypes) SetSingularInt32(v int32) { |
| 884 |
x.xxx_hidden_SingularInt32 = v |
| 885 |
} |
| 886 |
|
| 887 |
func (x *TestAllTypes) SetSingularInt64(v int64) { |
| 888 |
x.xxx_hidden_SingularInt64 = v |
| 889 |
} |
| 890 |
|
| 891 |
func (x *TestAllTypes) SetSingularUint32(v uint32) { |
| 892 |
x.xxx_hidden_SingularUint32 = v |
| 893 |
} |
| 894 |
|
| 895 |
func (x *TestAllTypes) SetSingularUint64(v uint64) { |
| 896 |
x.xxx_hidden_SingularUint64 = v |
| 897 |
} |
| 898 |
|
| 899 |
func (x *TestAllTypes) SetSingularSint32(v int32) { |
| 900 |
x.xxx_hidden_SingularSint32 = v |
| 901 |
} |
| 902 |
|
| 903 |
func (x *TestAllTypes) SetSingularSint64(v int64) { |
| 904 |
x.xxx_hidden_SingularSint64 = v |
| 905 |
} |
| 906 |
|
| 907 |
func (x *TestAllTypes) SetSingularFixed32(v uint32) { |
| 908 |
x.xxx_hidden_SingularFixed32 = v |
| 909 |
} |
| 910 |
|
| 911 |
func (x *TestAllTypes) SetSingularFixed64(v uint64) { |
| 912 |
x.xxx_hidden_SingularFixed64 = v |
| 913 |
} |
| 914 |
|
| 915 |
func (x *TestAllTypes) SetSingularSfixed32(v int32) { |
| 916 |
x.xxx_hidden_SingularSfixed32 = v |
| 917 |
} |
| 918 |
|
| 919 |
func (x *TestAllTypes) SetSingularSfixed64(v int64) { |
| 920 |
x.xxx_hidden_SingularSfixed64 = v |
| 921 |
} |
| 922 |
|
| 923 |
func (x *TestAllTypes) SetSingularFloat(v float32) { |
| 924 |
x.xxx_hidden_SingularFloat = v |
| 925 |
} |
| 926 |
|
| 927 |
func (x *TestAllTypes) SetSingularDouble(v float64) { |
| 928 |
x.xxx_hidden_SingularDouble = v |
| 929 |
} |
| 930 |
|
| 931 |
func (x *TestAllTypes) SetSingularBool(v bool) { |
| 932 |
x.xxx_hidden_SingularBool = v |
| 933 |
} |
| 934 |
|
| 935 |
func (x *TestAllTypes) SetSingularString(v string) { |
| 936 |
x.xxx_hidden_SingularString = v |
| 937 |
} |
| 938 |
|
| 939 |
func (x *TestAllTypes) SetSingularBytes(v []byte) { |
| 940 |
if v == nil { |
| 941 |
v = []byte{} |
| 942 |
} |
| 943 |
x.xxx_hidden_SingularBytes = v |
| 944 |
} |
| 945 |
|
| 946 |
func (x *TestAllTypes) SetSingularNestedMessage(v *TestAllTypes_NestedMessage) { |
| 947 |
x.xxx_hidden_SingularNestedMessage = v |
| 948 |
} |
| 949 |
|
| 950 |
func (x *TestAllTypes) SetSingularForeignMessage(v *ForeignMessage) { |
| 951 |
x.xxx_hidden_SingularForeignMessage = v |
| 952 |
} |
| 953 |
|
| 954 |
func (x *TestAllTypes) SetSingularImportMessage(v *ImportMessage) { |
| 955 |
x.xxx_hidden_SingularImportMessage = v |
| 956 |
} |
| 957 |
|
| 958 |
func (x *TestAllTypes) SetSingularNestedEnum(v TestAllTypes_NestedEnum) { |
| 959 |
x.xxx_hidden_SingularNestedEnum = v |
| 960 |
} |
| 961 |
|
| 962 |
func (x *TestAllTypes) SetSingularForeignEnum(v ForeignEnum) { |
| 963 |
x.xxx_hidden_SingularForeignEnum = v |
| 964 |
} |
| 965 |
|
| 966 |
func (x *TestAllTypes) SetSingularImportEnum(v ImportEnum) { |
| 967 |
x.xxx_hidden_SingularImportEnum = v |
| 968 |
} |
| 969 |
|
| 970 |
func (x *TestAllTypes) SetOptionalInt32(v int32) { |
| 971 |
x.xxx_hidden_OptionalInt32 = v |
| 972 |
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 21, 81) |
| 973 |
} |
| 974 |
|
| 975 |
func (x *TestAllTypes) SetOptionalInt64(v int64) { |
| 976 |
x.xxx_hidden_OptionalInt64 = v |
| 977 |
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 22, 81) |
| 978 |
} |
| 979 |
|
| 980 |
func (x *TestAllTypes) SetOptionalUint32(v uint32) { |
| 981 |
x.xxx_hidden_OptionalUint32 = v |
| 982 |
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 23, 81) |
| 983 |
} |
| 984 |
|
| 985 |
func (x *TestAllTypes) SetOptionalUint64(v uint64) { |
| 986 |
x.xxx_hidden_OptionalUint64 = v |
| 987 |
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 24, 81) |
| 988 |
} |
| 989 |
|
| 990 |
func (x *TestAllTypes) SetOptionalSint32(v int32) { |
| 991 |
x.xxx_hidden_OptionalSint32 = v |
| 992 |
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 25, 81) |
| 993 |
} |
| 994 |
|
| 995 |
func (x *TestAllTypes) SetOptionalSint64(v int64) { |
| 996 |
x.xxx_hidden_OptionalSint64 = v |
| 997 |
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 26, 81) |
| 998 |
} |
| 999 |
|
| 1000 |
func (x *TestAllTypes) SetOptionalFixed32(v uint32) { |
| 1001 |
x.xxx_hidden_OptionalFixed32 = v |
| 1002 |
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 27, 81) |
| 1003 |
} |
| 1004 |
|
| 1005 |
func (x *TestAllTypes) SetOptionalFixed64(v uint64) { |
| 1006 |
x.xxx_hidden_OptionalFixed64 = v |
| 1007 |
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 28, 81) |
| 1008 |
} |
| 1009 |
|
| 1010 |
func (x *TestAllTypes) SetOptionalSfixed32(v int32) { |
| 1011 |
x.xxx_hidden_OptionalSfixed32 = v |
| 1012 |
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 29, 81) |
| 1013 |
} |
| 1014 |
|
| 1015 |
func (x *TestAllTypes) SetOptionalSfixed64(v int64) { |
| 1016 |
x.xxx_hidden_OptionalSfixed64 = v |
| 1017 |
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 30, 81) |
| 1018 |
} |
| 1019 |
|
| 1020 |
func (x *TestAllTypes) SetOptionalFloat(v float32) { |
| 1021 |
x.xxx_hidden_OptionalFloat = v |
| 1022 |
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 31, 81) |
| 1023 |
} |
| 1024 |
|
| 1025 |
func (x *TestAllTypes) SetOptionalDouble(v float64) { |
| 1026 |
x.xxx_hidden_OptionalDouble = v |
| 1027 |
protoimpl.X.SetPresent(&(x.XXX_presence[1]), 32, 81) |
| 1028 |
} |
| 1029 |
|
| 1030 |
func (x *TestAllTypes) SetOptionalBool(v bool) { |
| 1031 |
x.xxx_hidden_OptionalBool = v |
| 1032 |
protoimpl.X.SetPresent(&(x.XXX_presence[1]), 33, 81) |
| 1033 |
} |
| 1034 |
|
| 1035 |
func (x *TestAllTypes) SetOptionalString(v string) { |
| 1036 |
x.xxx_hidden_OptionalString = &v |
| 1037 |
protoimpl.X.SetPresent(&(x.XXX_presence[1]), 34, 81) |
| 1038 |
} |
| 1039 |
|
| 1040 |
func (x *TestAllTypes) SetOptionalBytes(v []byte) { |
| 1041 |
if v == nil { |
| 1042 |
v = []byte{} |
| 1043 |
} |
| 1044 |
x.xxx_hidden_OptionalBytes = v |
| 1045 |
protoimpl.X.SetPresent(&(x.XXX_presence[1]), 35, 81) |
| 1046 |
} |
| 1047 |
|
| 1048 |
func (x *TestAllTypes) SetOptionalNestedMessage(v *TestAllTypes_NestedMessage) { |
| 1049 |
x.xxx_hidden_OptionalNestedMessage = v |
| 1050 |
} |
| 1051 |
|
| 1052 |
func (x *TestAllTypes) SetOptionalForeignMessage(v *ForeignMessage) { |
| 1053 |
x.xxx_hidden_OptionalForeignMessage = v |
| 1054 |
} |
| 1055 |
|
| 1056 |
func (x *TestAllTypes) SetOptionalImportMessage(v *ImportMessage) { |
| 1057 |
x.xxx_hidden_OptionalImportMessage = v |
| 1058 |
} |
| 1059 |
|
| 1060 |
func (x *TestAllTypes) SetOptionalNestedEnum(v TestAllTypes_NestedEnum) { |
| 1061 |
x.xxx_hidden_OptionalNestedEnum = v |
| 1062 |
protoimpl.X.SetPresent(&(x.XXX_presence[1]), 39, 81) |
| 1063 |
} |
| 1064 |
|
| 1065 |
func (x *TestAllTypes) SetOptionalForeignEnum(v ForeignEnum) { |
| 1066 |
x.xxx_hidden_OptionalForeignEnum = v |
| 1067 |
protoimpl.X.SetPresent(&(x.XXX_presence[1]), 40, 81) |
| 1068 |
} |
| 1069 |
|
| 1070 |
func (x *TestAllTypes) SetOptionalImportEnum(v ImportEnum) { |
| 1071 |
x.xxx_hidden_OptionalImportEnum = v |
| 1072 |
protoimpl.X.SetPresent(&(x.XXX_presence[1]), 41, 81) |
| 1073 |
} |
| 1074 |
|
| 1075 |
func (x *TestAllTypes) SetRepeatedInt32(v []int32) { |
| 1076 |
x.xxx_hidden_RepeatedInt32 = v |
| 1077 |
} |
| 1078 |
|
| 1079 |
func (x *TestAllTypes) SetRepeatedInt64(v []int64) { |
| 1080 |
x.xxx_hidden_RepeatedInt64 = v |
| 1081 |
} |
| 1082 |
|
| 1083 |
func (x *TestAllTypes) SetRepeatedUint32(v []uint32) { |
| 1084 |
x.xxx_hidden_RepeatedUint32 = v |
| 1085 |
} |
| 1086 |
|
| 1087 |
func (x *TestAllTypes) SetRepeatedUint64(v []uint64) { |
| 1088 |
x.xxx_hidden_RepeatedUint64 = v |
| 1089 |
} |
| 1090 |
|
| 1091 |
func (x *TestAllTypes) SetRepeatedSint32(v []int32) { |
| 1092 |
x.xxx_hidden_RepeatedSint32 = v |
| 1093 |
} |
| 1094 |
|
| 1095 |
func (x *TestAllTypes) SetRepeatedSint64(v []int64) { |
| 1096 |
x.xxx_hidden_RepeatedSint64 = v |
| 1097 |
} |
| 1098 |
|
| 1099 |
func (x *TestAllTypes) SetRepeatedFixed32(v []uint32) { |
| 1100 |
x.xxx_hidden_RepeatedFixed32 = v |
| 1101 |
} |
| 1102 |
|
| 1103 |
func (x *TestAllTypes) SetRepeatedFixed64(v []uint64) { |
| 1104 |
x.xxx_hidden_RepeatedFixed64 = v |
| 1105 |
} |
| 1106 |
|
| 1107 |
func (x *TestAllTypes) SetRepeatedSfixed32(v []int32) { |
| 1108 |
x.xxx_hidden_RepeatedSfixed32 = v |
| 1109 |
} |
| 1110 |
|
| 1111 |
func (x *TestAllTypes) SetRepeatedSfixed64(v []int64) { |
| 1112 |
x.xxx_hidden_RepeatedSfixed64 = v |
| 1113 |
} |
| 1114 |
|
| 1115 |
func (x *TestAllTypes) SetRepeatedFloat(v []float32) { |
| 1116 |
x.xxx_hidden_RepeatedFloat = v |
| 1117 |
} |
| 1118 |
|
| 1119 |
func (x *TestAllTypes) SetRepeatedDouble(v []float64) { |
| 1120 |
x.xxx_hidden_RepeatedDouble = v |
| 1121 |
} |
| 1122 |
|
| 1123 |
func (x *TestAllTypes) SetRepeatedBool(v []bool) { |
| 1124 |
x.xxx_hidden_RepeatedBool = v |
| 1125 |
} |
| 1126 |
|
| 1127 |
func (x *TestAllTypes) SetRepeatedString(v []string) { |
| 1128 |
x.xxx_hidden_RepeatedString = v |
| 1129 |
} |
| 1130 |
|
| 1131 |
func (x *TestAllTypes) SetRepeatedBytes(v [][]byte) { |
| 1132 |
x.xxx_hidden_RepeatedBytes = v |
| 1133 |
} |
| 1134 |
|
| 1135 |
func (x *TestAllTypes) SetRepeatedNestedMessage(v []*TestAllTypes_NestedMessage) { |
| 1136 |
x.xxx_hidden_RepeatedNestedMessage = &v |
| 1137 |
} |
| 1138 |
|
| 1139 |
func (x *TestAllTypes) SetRepeatedForeignMessage(v []*ForeignMessage) { |
| 1140 |
x.xxx_hidden_RepeatedForeignMessage = &v |
| 1141 |
} |
| 1142 |
|
| 1143 |
func (x *TestAllTypes) SetRepeatedImportmessage(v []*ImportMessage) { |
| 1144 |
x.xxx_hidden_RepeatedImportmessage = &v |
| 1145 |
} |
| 1146 |
|
| 1147 |
func (x *TestAllTypes) SetRepeatedNestedEnum(v []TestAllTypes_NestedEnum) { |
| 1148 |
x.xxx_hidden_RepeatedNestedEnum = v |
| 1149 |
} |
| 1150 |
|
| 1151 |
func (x *TestAllTypes) SetRepeatedForeignEnum(v []ForeignEnum) { |
| 1152 |
x.xxx_hidden_RepeatedForeignEnum = v |
| 1153 |
} |
| 1154 |
|
| 1155 |
func (x *TestAllTypes) SetRepeatedImportenum(v []ImportEnum) { |
| 1156 |
x.xxx_hidden_RepeatedImportenum = v |
| 1157 |
} |
| 1158 |
|
| 1159 |
func (x *TestAllTypes) SetMapInt32Int32(v map[int32]int32) { |
| 1160 |
x.xxx_hidden_MapInt32Int32 = v |
| 1161 |
} |
| 1162 |
|
| 1163 |
func (x *TestAllTypes) SetMapInt64Int64(v map[int64]int64) { |
| 1164 |
x.xxx_hidden_MapInt64Int64 = v |
| 1165 |
} |
| 1166 |
|
| 1167 |
func (x *TestAllTypes) SetMapUint32Uint32(v map[uint32]uint32) { |
| 1168 |
x.xxx_hidden_MapUint32Uint32 = v |
| 1169 |
} |
| 1170 |
|
| 1171 |
func (x *TestAllTypes) SetMapUint64Uint64(v map[uint64]uint64) { |
| 1172 |
x.xxx_hidden_MapUint64Uint64 = v |
| 1173 |
} |
| 1174 |
|
| 1175 |
func (x *TestAllTypes) SetMapSint32Sint32(v map[int32]int32) { |
| 1176 |
x.xxx_hidden_MapSint32Sint32 = v |
| 1177 |
} |
| 1178 |
|
| 1179 |
func (x *TestAllTypes) SetMapSint64Sint64(v map[int64]int64) { |
| 1180 |
x.xxx_hidden_MapSint64Sint64 = v |
| 1181 |
} |
| 1182 |
|
| 1183 |
func (x *TestAllTypes) SetMapFixed32Fixed32(v map[uint32]uint32) { |
| 1184 |
x.xxx_hidden_MapFixed32Fixed32 = v |
| 1185 |
} |
| 1186 |
|
| 1187 |
func (x *TestAllTypes) SetMapFixed64Fixed64(v map[uint64]uint64) { |
| 1188 |
x.xxx_hidden_MapFixed64Fixed64 = v |
| 1189 |
} |
| 1190 |
|
| 1191 |
func (x *TestAllTypes) SetMapSfixed32Sfixed32(v map[int32]int32) { |
| 1192 |
x.xxx_hidden_MapSfixed32Sfixed32 = v |
| 1193 |
} |
| 1194 |
|
| 1195 |
func (x *TestAllTypes) SetMapSfixed64Sfixed64(v map[int64]int64) { |
| 1196 |
x.xxx_hidden_MapSfixed64Sfixed64 = v |
| 1197 |
} |
| 1198 |
|
| 1199 |
func (x *TestAllTypes) SetMapInt32Float(v map[int32]float32) { |
| 1200 |
x.xxx_hidden_MapInt32Float = v |
| 1201 |
} |
| 1202 |
|
| 1203 |
func (x *TestAllTypes) SetMapInt32Double(v map[int32]float64) { |
| 1204 |
x.xxx_hidden_MapInt32Double = v |
| 1205 |
} |
| 1206 |
|
| 1207 |
func (x *TestAllTypes) SetMapBoolBool(v map[bool]bool) { |
| 1208 |
x.xxx_hidden_MapBoolBool = v |
| 1209 |
} |
| 1210 |
|
| 1211 |
func (x *TestAllTypes) SetMapStringString(v map[string]string) { |
| 1212 |
x.xxx_hidden_MapStringString = v |
| 1213 |
} |
| 1214 |
|
| 1215 |
func (x *TestAllTypes) SetMapStringBytes(v map[string][]byte) { |
| 1216 |
x.xxx_hidden_MapStringBytes = v |
| 1217 |
} |
| 1218 |
|
| 1219 |
func (x *TestAllTypes) SetMapStringNestedMessage(v map[string]*TestAllTypes_NestedMessage) { |
| 1220 |
x.xxx_hidden_MapStringNestedMessage = v |
| 1221 |
} |
| 1222 |
|
| 1223 |
func (x *TestAllTypes) SetMapStringNestedEnum(v map[string]TestAllTypes_NestedEnum) { |
| 1224 |
x.xxx_hidden_MapStringNestedEnum = v |
| 1225 |
} |
| 1226 |
|
| 1227 |
func (x *TestAllTypes) SetOneofUint32(v uint32) { |
| 1228 |
x.xxx_hidden_OneofField = &testAllTypes_OneofUint32{v} |
| 1229 |
} |
| 1230 |
|
| 1231 |
func (x *TestAllTypes) SetOneofNestedMessage(v *TestAllTypes_NestedMessage) { |
| 1232 |
if v == nil { |
| 1233 |
x.xxx_hidden_OneofField = nil |
| 1234 |
return |
| 1235 |
} |
| 1236 |
x.xxx_hidden_OneofField = &testAllTypes_OneofNestedMessage{v} |
| 1237 |
} |
| 1238 |
|
| 1239 |
func (x *TestAllTypes) SetOneofString(v string) { |
| 1240 |
x.xxx_hidden_OneofField = &testAllTypes_OneofString{v} |
| 1241 |
} |
| 1242 |
|
| 1243 |
func (x *TestAllTypes) SetOneofBytes(v []byte) { |
| 1244 |
if v == nil { |
| 1245 |
v = []byte{} |
| 1246 |
} |
| 1247 |
x.xxx_hidden_OneofField = &testAllTypes_OneofBytes{v} |
| 1248 |
} |
| 1249 |
|
| 1250 |
func (x *TestAllTypes) SetOneofBool(v bool) { |
| 1251 |
x.xxx_hidden_OneofField = &testAllTypes_OneofBool{v} |
| 1252 |
} |
| 1253 |
|
| 1254 |
func (x *TestAllTypes) SetOneofUint64(v uint64) { |
| 1255 |
x.xxx_hidden_OneofField = &testAllTypes_OneofUint64{v} |
| 1256 |
} |
| 1257 |
|
| 1258 |
func (x *TestAllTypes) SetOneofFloat(v float32) { |
| 1259 |
x.xxx_hidden_OneofField = &testAllTypes_OneofFloat{v} |
| 1260 |
} |
| 1261 |
|
| 1262 |
func (x *TestAllTypes) SetOneofDouble(v float64) { |
| 1263 |
x.xxx_hidden_OneofField = &testAllTypes_OneofDouble{v} |
| 1264 |
} |
| 1265 |
|
| 1266 |
func (x *TestAllTypes) SetOneofEnum(v TestAllTypes_NestedEnum) { |
| 1267 |
x.xxx_hidden_OneofField = &testAllTypes_OneofEnum{v} |
| 1268 |
} |
| 1269 |
|
| 1270 |
func (x *TestAllTypes) HasSingularNestedMessage() bool { |
| 1271 |
if x == nil { |
| 1272 |
return false |
| 1273 |
} |
| 1274 |
return x.xxx_hidden_SingularNestedMessage != nil |
| 1275 |
} |
| 1276 |
|
| 1277 |
func (x *TestAllTypes) HasSingularForeignMessage() bool { |
| 1278 |
if x == nil { |
| 1279 |
return false |
| 1280 |
} |
| 1281 |
return x.xxx_hidden_SingularForeignMessage != nil |
| 1282 |
} |
| 1283 |
|
| 1284 |
func (x *TestAllTypes) HasSingularImportMessage() bool { |
| 1285 |
if x == nil { |
| 1286 |
return false |
| 1287 |
} |
| 1288 |
return x.xxx_hidden_SingularImportMessage != nil |
| 1289 |
} |
| 1290 |
|
| 1291 |
func (x *TestAllTypes) HasOptionalInt32() bool { |
| 1292 |
if x == nil { |
| 1293 |
return false |
| 1294 |
} |
| 1295 |
return protoimpl.X.Present(&(x.XXX_presence[0]), 21) |
| 1296 |
} |
| 1297 |
|
| 1298 |
func (x *TestAllTypes) HasOptionalInt64() bool { |
| 1299 |
if x == nil { |
| 1300 |
return false |
| 1301 |
} |
| 1302 |
return protoimpl.X.Present(&(x.XXX_presence[0]), 22) |
| 1303 |
} |
| 1304 |
|
| 1305 |
func (x *TestAllTypes) HasOptionalUint32() bool { |
| 1306 |
if x == nil { |
| 1307 |
return false |
| 1308 |
} |
| 1309 |
return protoimpl.X.Present(&(x.XXX_presence[0]), 23) |
| 1310 |
} |
| 1311 |
|
| 1312 |
func (x *TestAllTypes) HasOptionalUint64() bool { |
| 1313 |
if x == nil { |
| 1314 |
return false |
| 1315 |
} |
| 1316 |
return protoimpl.X.Present(&(x.XXX_presence[0]), 24) |
| 1317 |
} |
| 1318 |
|
| 1319 |
func (x *TestAllTypes) HasOptionalSint32() bool { |
| 1320 |
if x == nil { |
| 1321 |
return false |
| 1322 |
} |
| 1323 |
return protoimpl.X.Present(&(x.XXX_presence[0]), 25) |
| 1324 |
} |
| 1325 |
|
| 1326 |
func (x *TestAllTypes) HasOptionalSint64() bool { |
| 1327 |
if x == nil { |
| 1328 |
return false |
| 1329 |
} |
| 1330 |
return protoimpl.X.Present(&(x.XXX_presence[0]), 26) |
| 1331 |
} |
| 1332 |
|
| 1333 |
func (x *TestAllTypes) HasOptionalFixed32() bool { |
| 1334 |
if x == nil { |
| 1335 |
return false |
| 1336 |
} |
| 1337 |
return protoimpl.X.Present(&(x.XXX_presence[0]), 27) |
| 1338 |
} |
| 1339 |
|
| 1340 |
func (x *TestAllTypes) HasOptionalFixed64() bool { |
| 1341 |
if x == nil { |
| 1342 |
return false |
| 1343 |
} |
| 1344 |
return protoimpl.X.Present(&(x.XXX_presence[0]), 28) |
| 1345 |
} |
| 1346 |
|
| 1347 |
func (x *TestAllTypes) HasOptionalSfixed32() bool { |
| 1348 |
if x == nil { |
| 1349 |
return false |
| 1350 |
} |
| 1351 |
return protoimpl.X.Present(&(x.XXX_presence[0]), 29) |
| 1352 |
} |
| 1353 |
|
| 1354 |
func (x *TestAllTypes) HasOptionalSfixed64() bool { |
| 1355 |
if x == nil { |
| 1356 |
return false |
| 1357 |
} |
| 1358 |
return protoimpl.X.Present(&(x.XXX_presence[0]), 30) |
| 1359 |
} |
| 1360 |
|
| 1361 |
func (x *TestAllTypes) HasOptionalFloat() bool { |
| 1362 |
if x == nil { |
| 1363 |
return false |
| 1364 |
} |
| 1365 |
return protoimpl.X.Present(&(x.XXX_presence[0]), 31) |
| 1366 |
} |
| 1367 |
|
| 1368 |
func (x *TestAllTypes) HasOptionalDouble() bool { |
| 1369 |
if x == nil { |
| 1370 |
return false |
| 1371 |
} |
| 1372 |
return protoimpl.X.Present(&(x.XXX_presence[1]), 32) |
| 1373 |
} |
| 1374 |
|
| 1375 |
func (x *TestAllTypes) HasOptionalBool() bool { |
| 1376 |
if x == nil { |
| 1377 |
return false |
| 1378 |
} |
| 1379 |
return protoimpl.X.Present(&(x.XXX_presence[1]), 33) |
| 1380 |
} |
| 1381 |
|
| 1382 |
func (x *TestAllTypes) HasOptionalString() bool { |
| 1383 |
if x == nil { |
| 1384 |
return false |
| 1385 |
} |
| 1386 |
return protoimpl.X.Present(&(x.XXX_presence[1]), 34) |
| 1387 |
} |
| 1388 |
|
| 1389 |
func (x *TestAllTypes) HasOptionalBytes() bool { |
| 1390 |
if x == nil { |
| 1391 |
return false |
| 1392 |
} |
| 1393 |
return protoimpl.X.Present(&(x.XXX_presence[1]), 35) |
| 1394 |
} |
| 1395 |
|
| 1396 |
func (x *TestAllTypes) HasOptionalNestedMessage() bool { |
| 1397 |
if x == nil { |
| 1398 |
return false |
| 1399 |
} |
| 1400 |
return x.xxx_hidden_OptionalNestedMessage != nil |
| 1401 |
} |
| 1402 |
|
| 1403 |
func (x *TestAllTypes) HasOptionalForeignMessage() bool { |
| 1404 |
if x == nil { |
| 1405 |
return false |
| 1406 |
} |
| 1407 |
return x.xxx_hidden_OptionalForeignMessage != nil |
| 1408 |
} |
| 1409 |
|
| 1410 |
func (x *TestAllTypes) HasOptionalImportMessage() bool { |
| 1411 |
if x == nil { |
| 1412 |
return false |
| 1413 |
} |
| 1414 |
return x.xxx_hidden_OptionalImportMessage != nil |
| 1415 |
} |
| 1416 |
|
| 1417 |
func (x *TestAllTypes) HasOptionalNestedEnum() bool { |
| 1418 |
if x == nil { |
| 1419 |
return false |
| 1420 |
} |
| 1421 |
return protoimpl.X.Present(&(x.XXX_presence[1]), 39) |
| 1422 |
} |
| 1423 |
|
| 1424 |
func (x *TestAllTypes) HasOptionalForeignEnum() bool { |
| 1425 |
if x == nil { |
| 1426 |
return false |
| 1427 |
} |
| 1428 |
return protoimpl.X.Present(&(x.XXX_presence[1]), 40) |
| 1429 |
} |
| 1430 |
|
| 1431 |
func (x *TestAllTypes) HasOptionalImportEnum() bool { |
| 1432 |
if x == nil { |
| 1433 |
return false |
| 1434 |
} |
| 1435 |
return protoimpl.X.Present(&(x.XXX_presence[1]), 41) |
| 1436 |
} |
| 1437 |
|
| 1438 |
func (x *TestAllTypes) HasOneofField() bool { |
| 1439 |
if x == nil { |
| 1440 |
return false |
| 1441 |
} |
| 1442 |
return x.xxx_hidden_OneofField != nil |
| 1443 |
} |
| 1444 |
|
| 1445 |
func (x *TestAllTypes) HasOneofUint32() bool { |
| 1446 |
if x == nil { |
| 1447 |
return false |
| 1448 |
} |
| 1449 |
_, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofUint32) |
| 1450 |
return ok |
| 1451 |
} |
| 1452 |
|
| 1453 |
func (x *TestAllTypes) HasOneofNestedMessage() bool { |
| 1454 |
if x == nil { |
| 1455 |
return false |
| 1456 |
} |
| 1457 |
_, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofNestedMessage) |
| 1458 |
return ok |
| 1459 |
} |
| 1460 |
|
| 1461 |
func (x *TestAllTypes) HasOneofString() bool { |
| 1462 |
if x == nil { |
| 1463 |
return false |
| 1464 |
} |
| 1465 |
_, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofString) |
| 1466 |
return ok |
| 1467 |
} |
| 1468 |
|
| 1469 |
func (x *TestAllTypes) HasOneofBytes() bool { |
| 1470 |
if x == nil { |
| 1471 |
return false |
| 1472 |
} |
| 1473 |
_, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofBytes) |
| 1474 |
return ok |
| 1475 |
} |
| 1476 |
|
| 1477 |
func (x *TestAllTypes) HasOneofBool() bool { |
| 1478 |
if x == nil { |
| 1479 |
return false |
| 1480 |
} |
| 1481 |
_, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofBool) |
| 1482 |
return ok |
| 1483 |
} |
| 1484 |
|
| 1485 |
func (x *TestAllTypes) HasOneofUint64() bool { |
| 1486 |
if x == nil { |
| 1487 |
return false |
| 1488 |
} |
| 1489 |
_, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofUint64) |
| 1490 |
return ok |
| 1491 |
} |
| 1492 |
|
| 1493 |
func (x *TestAllTypes) HasOneofFloat() bool { |
| 1494 |
if x == nil { |
| 1495 |
return false |
| 1496 |
} |
| 1497 |
_, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofFloat) |
| 1498 |
return ok |
| 1499 |
} |
| 1500 |
|
| 1501 |
func (x *TestAllTypes) HasOneofDouble() bool { |
| 1502 |
if x == nil { |
| 1503 |
return false |
| 1504 |
} |
| 1505 |
_, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofDouble) |
| 1506 |
return ok |
| 1507 |
} |
| 1508 |
|
| 1509 |
func (x *TestAllTypes) HasOneofEnum() bool { |
| 1510 |
if x == nil { |
| 1511 |
return false |
| 1512 |
} |
| 1513 |
_, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofEnum) |
| 1514 |
return ok |
| 1515 |
} |
| 1516 |
|
| 1517 |
func (x *TestAllTypes) ClearSingularNestedMessage() { |
| 1518 |
x.xxx_hidden_SingularNestedMessage = nil |
| 1519 |
} |
| 1520 |
|
| 1521 |
func (x *TestAllTypes) ClearSingularForeignMessage() { |
| 1522 |
x.xxx_hidden_SingularForeignMessage = nil |
| 1523 |
} |
| 1524 |
|
| 1525 |
func (x *TestAllTypes) ClearSingularImportMessage() { |
| 1526 |
x.xxx_hidden_SingularImportMessage = nil |
| 1527 |
} |
| 1528 |
|
| 1529 |
func (x *TestAllTypes) ClearOptionalInt32() { |
| 1530 |
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 21) |
| 1531 |
x.xxx_hidden_OptionalInt32 = 0 |
| 1532 |
} |
| 1533 |
|
| 1534 |
func (x *TestAllTypes) ClearOptionalInt64() { |
| 1535 |
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 22) |
| 1536 |
x.xxx_hidden_OptionalInt64 = 0 |
| 1537 |
} |
| 1538 |
|
| 1539 |
func (x *TestAllTypes) ClearOptionalUint32() { |
| 1540 |
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 23) |
| 1541 |
x.xxx_hidden_OptionalUint32 = 0 |
| 1542 |
} |
| 1543 |
|
| 1544 |
func (x *TestAllTypes) ClearOptionalUint64() { |
| 1545 |
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 24) |
| 1546 |
x.xxx_hidden_OptionalUint64 = 0 |
| 1547 |
} |
| 1548 |
|
| 1549 |
func (x *TestAllTypes) ClearOptionalSint32() { |
| 1550 |
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 25) |
| 1551 |
x.xxx_hidden_OptionalSint32 = 0 |
| 1552 |
} |
| 1553 |
|
| 1554 |
func (x *TestAllTypes) ClearOptionalSint64() { |
| 1555 |
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 26) |
| 1556 |
x.xxx_hidden_OptionalSint64 = 0 |
| 1557 |
} |
| 1558 |
|
| 1559 |
func (x *TestAllTypes) ClearOptionalFixed32() { |
| 1560 |
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 27) |
| 1561 |
x.xxx_hidden_OptionalFixed32 = 0 |
| 1562 |
} |
| 1563 |
|
| 1564 |
func (x *TestAllTypes) ClearOptionalFixed64() { |
| 1565 |
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 28) |
| 1566 |
x.xxx_hidden_OptionalFixed64 = 0 |
| 1567 |
} |
| 1568 |
|
| 1569 |
func (x *TestAllTypes) ClearOptionalSfixed32() { |
| 1570 |
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 29) |
| 1571 |
x.xxx_hidden_OptionalSfixed32 = 0 |
| 1572 |
} |
| 1573 |
|
| 1574 |
func (x *TestAllTypes) ClearOptionalSfixed64() { |
| 1575 |
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 30) |
| 1576 |
x.xxx_hidden_OptionalSfixed64 = 0 |
| 1577 |
} |
| 1578 |
|
| 1579 |
func (x *TestAllTypes) ClearOptionalFloat() { |
| 1580 |
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 31) |
| 1581 |
x.xxx_hidden_OptionalFloat = 0 |
| 1582 |
} |
| 1583 |
|
| 1584 |
func (x *TestAllTypes) ClearOptionalDouble() { |
| 1585 |
protoimpl.X.ClearPresent(&(x.XXX_presence[1]), 32) |
| 1586 |
x.xxx_hidden_OptionalDouble = 0 |
| 1587 |
} |
| 1588 |
|
| 1589 |
func (x *TestAllTypes) ClearOptionalBool() { |
| 1590 |
protoimpl.X.ClearPresent(&(x.XXX_presence[1]), 33) |
| 1591 |
x.xxx_hidden_OptionalBool = false |
| 1592 |
} |
| 1593 |
|
| 1594 |
func (x *TestAllTypes) ClearOptionalString() { |
| 1595 |
protoimpl.X.ClearPresent(&(x.XXX_presence[1]), 34) |
| 1596 |
x.xxx_hidden_OptionalString = nil |
| 1597 |
} |
| 1598 |
|
| 1599 |
func (x *TestAllTypes) ClearOptionalBytes() { |
| 1600 |
protoimpl.X.ClearPresent(&(x.XXX_presence[1]), 35) |
| 1601 |
x.xxx_hidden_OptionalBytes = nil |
| 1602 |
} |
| 1603 |
|
| 1604 |
func (x *TestAllTypes) ClearOptionalNestedMessage() { |
| 1605 |
x.xxx_hidden_OptionalNestedMessage = nil |
| 1606 |
} |
| 1607 |
|
| 1608 |
func (x *TestAllTypes) ClearOptionalForeignMessage() { |
| 1609 |
x.xxx_hidden_OptionalForeignMessage = nil |
| 1610 |
} |
| 1611 |
|
| 1612 |
func (x *TestAllTypes) ClearOptionalImportMessage() { |
| 1613 |
x.xxx_hidden_OptionalImportMessage = nil |
| 1614 |
} |
| 1615 |
|
| 1616 |
func (x *TestAllTypes) ClearOptionalNestedEnum() { |
| 1617 |
protoimpl.X.ClearPresent(&(x.XXX_presence[1]), 39) |
| 1618 |
x.xxx_hidden_OptionalNestedEnum = TestAllTypes_FOO |
| 1619 |
} |
| 1620 |
|
| 1621 |
func (x *TestAllTypes) ClearOptionalForeignEnum() { |
| 1622 |
protoimpl.X.ClearPresent(&(x.XXX_presence[1]), 40) |
| 1623 |
x.xxx_hidden_OptionalForeignEnum = ForeignEnum_FOREIGN_ZERO |
| 1624 |
} |
| 1625 |
|
| 1626 |
func (x *TestAllTypes) ClearOptionalImportEnum() { |
| 1627 |
protoimpl.X.ClearPresent(&(x.XXX_presence[1]), 41) |
| 1628 |
x.xxx_hidden_OptionalImportEnum = ImportEnum_IMPORT_ZERO |
| 1629 |
} |
| 1630 |
|
| 1631 |
func (x *TestAllTypes) ClearOneofField() { |
| 1632 |
x.xxx_hidden_OneofField = nil |
| 1633 |
} |
| 1634 |
|
| 1635 |
func (x *TestAllTypes) ClearOneofUint32() { |
| 1636 |
if _, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofUint32); ok { |
| 1637 |
x.xxx_hidden_OneofField = nil |
| 1638 |
} |
| 1639 |
} |
| 1640 |
|
| 1641 |
func (x *TestAllTypes) ClearOneofNestedMessage() { |
| 1642 |
if _, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofNestedMessage); ok { |
| 1643 |
x.xxx_hidden_OneofField = nil |
| 1644 |
} |
| 1645 |
} |
| 1646 |
|
| 1647 |
func (x *TestAllTypes) ClearOneofString() { |
| 1648 |
if _, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofString); ok { |
| 1649 |
x.xxx_hidden_OneofField = nil |
| 1650 |
} |
| 1651 |
} |
| 1652 |
|
| 1653 |
func (x *TestAllTypes) ClearOneofBytes() { |
| 1654 |
if _, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofBytes); ok { |
| 1655 |
x.xxx_hidden_OneofField = nil |
| 1656 |
} |
| 1657 |
} |
| 1658 |
|
| 1659 |
func (x *TestAllTypes) ClearOneofBool() { |
| 1660 |
if _, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofBool); ok { |
| 1661 |
x.xxx_hidden_OneofField = nil |
| 1662 |
} |
| 1663 |
} |
| 1664 |
|
| 1665 |
func (x *TestAllTypes) ClearOneofUint64() { |
| 1666 |
if _, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofUint64); ok { |
| 1667 |
x.xxx_hidden_OneofField = nil |
| 1668 |
} |
| 1669 |
} |
| 1670 |
|
| 1671 |
func (x *TestAllTypes) ClearOneofFloat() { |
| 1672 |
if _, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofFloat); ok { |
| 1673 |
x.xxx_hidden_OneofField = nil |
| 1674 |
} |
| 1675 |
} |
| 1676 |
|
| 1677 |
func (x *TestAllTypes) ClearOneofDouble() { |
| 1678 |
if _, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofDouble); ok { |
| 1679 |
x.xxx_hidden_OneofField = nil |
| 1680 |
} |
| 1681 |
} |
| 1682 |
|
| 1683 |
func (x *TestAllTypes) ClearOneofEnum() { |
| 1684 |
if _, ok := x.xxx_hidden_OneofField.(*testAllTypes_OneofEnum); ok { |
| 1685 |
x.xxx_hidden_OneofField = nil |
| 1686 |
} |
| 1687 |
} |
| 1688 |
|
| 1689 |
const TestAllTypes_OneofField_not_set_case case_TestAllTypes_OneofField = 0 |
| 1690 |
const TestAllTypes_OneofUint32_case case_TestAllTypes_OneofField = 111 |
| 1691 |
const TestAllTypes_OneofNestedMessage_case case_TestAllTypes_OneofField = 112 |
| 1692 |
const TestAllTypes_OneofString_case case_TestAllTypes_OneofField = 113 |
| 1693 |
const TestAllTypes_OneofBytes_case case_TestAllTypes_OneofField = 114 |
| 1694 |
const TestAllTypes_OneofBool_case case_TestAllTypes_OneofField = 115 |
| 1695 |
const TestAllTypes_OneofUint64_case case_TestAllTypes_OneofField = 116 |
| 1696 |
const TestAllTypes_OneofFloat_case case_TestAllTypes_OneofField = 117 |
| 1697 |
const TestAllTypes_OneofDouble_case case_TestAllTypes_OneofField = 118 |
| 1698 |
const TestAllTypes_OneofEnum_case case_TestAllTypes_OneofField = 119 |
| 1699 |
|
| 1700 |
func (x *TestAllTypes) WhichOneofField() case_TestAllTypes_OneofField { |
| 1701 |
if x == nil { |
| 1702 |
return TestAllTypes_OneofField_not_set_case |
| 1703 |
} |
| 1704 |
switch x.xxx_hidden_OneofField.(type) { |
| 1705 |
case *testAllTypes_OneofUint32: |
| 1706 |
return TestAllTypes_OneofUint32_case |
| 1707 |
case *testAllTypes_OneofNestedMessage: |
| 1708 |
return TestAllTypes_OneofNestedMessage_case |
| 1709 |
case *testAllTypes_OneofString: |
| 1710 |
return TestAllTypes_OneofString_case |
| 1711 |
case *testAllTypes_OneofBytes: |
| 1712 |
return TestAllTypes_OneofBytes_case |
| 1713 |
case *testAllTypes_OneofBool: |
| 1714 |
return TestAllTypes_OneofBool_case |
| 1715 |
case *testAllTypes_OneofUint64: |
| 1716 |
return TestAllTypes_OneofUint64_case |
| 1717 |
case *testAllTypes_OneofFloat: |
| 1718 |
return TestAllTypes_OneofFloat_case |
| 1719 |
case *testAllTypes_OneofDouble: |
| 1720 |
return TestAllTypes_OneofDouble_case |
| 1721 |
case *testAllTypes_OneofEnum: |
| 1722 |
return TestAllTypes_OneofEnum_case |
| 1723 |
default: |
| 1724 |
return TestAllTypes_OneofField_not_set_case |
| 1725 |
} |
| 1726 |
} |
| 1727 |
|
| 1728 |
type TestAllTypes_builder struct { |
| 1729 |
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder. |
| 1730 |
|
| 1731 |
SingularInt32 int32 |
| 1732 |
SingularInt64 int64 |
| 1733 |
SingularUint32 uint32 |
| 1734 |
SingularUint64 uint64 |
| 1735 |
SingularSint32 int32 |
| 1736 |
SingularSint64 int64 |
| 1737 |
SingularFixed32 uint32 |
| 1738 |
SingularFixed64 uint64 |
| 1739 |
SingularSfixed32 int32 |
| 1740 |
SingularSfixed64 int64 |
| 1741 |
SingularFloat float32 |
| 1742 |
SingularDouble float64 |
| 1743 |
SingularBool bool |
| 1744 |
SingularString string |
| 1745 |
SingularBytes []byte |
| 1746 |
SingularNestedMessage *TestAllTypes_NestedMessage |
| 1747 |
SingularForeignMessage *ForeignMessage |
| 1748 |
SingularImportMessage *ImportMessage |
| 1749 |
SingularNestedEnum TestAllTypes_NestedEnum |
| 1750 |
SingularForeignEnum ForeignEnum |
| 1751 |
SingularImportEnum ImportEnum |
| 1752 |
OptionalInt32 *int32 |
| 1753 |
OptionalInt64 *int64 |
| 1754 |
OptionalUint32 *uint32 |
| 1755 |
OptionalUint64 *uint64 |
| 1756 |
OptionalSint32 *int32 |
| 1757 |
OptionalSint64 *int64 |
| 1758 |
OptionalFixed32 *uint32 |
| 1759 |
OptionalFixed64 *uint64 |
| 1760 |
OptionalSfixed32 *int32 |
| 1761 |
OptionalSfixed64 *int64 |
| 1762 |
OptionalFloat *float32 |
| 1763 |
OptionalDouble *float64 |
| 1764 |
OptionalBool *bool |
| 1765 |
OptionalString *string |
| 1766 |
OptionalBytes []byte |
| 1767 |
OptionalNestedMessage *TestAllTypes_NestedMessage |
| 1768 |
OptionalForeignMessage *ForeignMessage |
| 1769 |
OptionalImportMessage *ImportMessage |
| 1770 |
OptionalNestedEnum *TestAllTypes_NestedEnum |
| 1771 |
OptionalForeignEnum *ForeignEnum |
| 1772 |
OptionalImportEnum *ImportEnum |
| 1773 |
RepeatedInt32 []int32 |
| 1774 |
RepeatedInt64 []int64 |
| 1775 |
RepeatedUint32 []uint32 |
| 1776 |
RepeatedUint64 []uint64 |
| 1777 |
RepeatedSint32 []int32 |
| 1778 |
RepeatedSint64 []int64 |
| 1779 |
RepeatedFixed32 []uint32 |
| 1780 |
RepeatedFixed64 []uint64 |
| 1781 |
RepeatedSfixed32 []int32 |
| 1782 |
RepeatedSfixed64 []int64 |
| 1783 |
RepeatedFloat []float32 |
| 1784 |
RepeatedDouble []float64 |
| 1785 |
RepeatedBool []bool |
| 1786 |
RepeatedString []string |
| 1787 |
RepeatedBytes [][]byte |
| 1788 |
RepeatedNestedMessage []*TestAllTypes_NestedMessage |
| 1789 |
RepeatedForeignMessage []*ForeignMessage |
| 1790 |
RepeatedImportmessage []*ImportMessage |
| 1791 |
RepeatedNestedEnum []TestAllTypes_NestedEnum |
| 1792 |
RepeatedForeignEnum []ForeignEnum |
| 1793 |
RepeatedImportenum []ImportEnum |
| 1794 |
MapInt32Int32 map[int32]int32 |
| 1795 |
MapInt64Int64 map[int64]int64 |
| 1796 |
MapUint32Uint32 map[uint32]uint32 |
| 1797 |
MapUint64Uint64 map[uint64]uint64 |
| 1798 |
MapSint32Sint32 map[int32]int32 |
| 1799 |
MapSint64Sint64 map[int64]int64 |
| 1800 |
MapFixed32Fixed32 map[uint32]uint32 |
| 1801 |
MapFixed64Fixed64 map[uint64]uint64 |
| 1802 |
MapSfixed32Sfixed32 map[int32]int32 |
| 1803 |
MapSfixed64Sfixed64 map[int64]int64 |
| 1804 |
MapInt32Float map[int32]float32 |
| 1805 |
MapInt32Double map[int32]float64 |
| 1806 |
MapBoolBool map[bool]bool |
| 1807 |
MapStringString map[string]string |
| 1808 |
MapStringBytes map[string][]byte |
| 1809 |
MapStringNestedMessage map[string]*TestAllTypes_NestedMessage |
| 1810 |
MapStringNestedEnum map[string]TestAllTypes_NestedEnum |
| 1811 |
// Fields of oneof xxx_hidden_OneofField: |
| 1812 |
OneofUint32 *uint32 |
| 1813 |
OneofNestedMessage *TestAllTypes_NestedMessage |
| 1814 |
OneofString *string |
| 1815 |
OneofBytes []byte |
| 1816 |
OneofBool *bool |
| 1817 |
OneofUint64 *uint64 |
| 1818 |
OneofFloat *float32 |
| 1819 |
OneofDouble *float64 |
| 1820 |
OneofEnum *TestAllTypes_NestedEnum |
| 1821 |
// -- end of xxx_hidden_OneofField |
| 1822 |
} |
| 1823 |
|
| 1824 |
func (b0 TestAllTypes_builder) Build() *TestAllTypes { |
| 1825 |
m0 := &TestAllTypes{} |
| 1826 |
b, x := &b0, m0 |
| 1827 |
_, _ = b, x |
| 1828 |
x.xxx_hidden_SingularInt32 = b.SingularInt32 |
| 1829 |
x.xxx_hidden_SingularInt64 = b.SingularInt64 |
| 1830 |
x.xxx_hidden_SingularUint32 = b.SingularUint32 |
| 1831 |
x.xxx_hidden_SingularUint64 = b.SingularUint64 |
| 1832 |
x.xxx_hidden_SingularSint32 = b.SingularSint32 |
| 1833 |
x.xxx_hidden_SingularSint64 = b.SingularSint64 |
| 1834 |
x.xxx_hidden_SingularFixed32 = b.SingularFixed32 |
| 1835 |
x.xxx_hidden_SingularFixed64 = b.SingularFixed64 |
| 1836 |
x.xxx_hidden_SingularSfixed32 = b.SingularSfixed32 |
| 1837 |
x.xxx_hidden_SingularSfixed64 = b.SingularSfixed64 |
| 1838 |
x.xxx_hidden_SingularFloat = b.SingularFloat |
| 1839 |
x.xxx_hidden_SingularDouble = b.SingularDouble |
| 1840 |
x.xxx_hidden_SingularBool = b.SingularBool |
| 1841 |
x.xxx_hidden_SingularString = b.SingularString |
| 1842 |
x.xxx_hidden_SingularBytes = b.SingularBytes |
| 1843 |
x.xxx_hidden_SingularNestedMessage = b.SingularNestedMessage |
| 1844 |
x.xxx_hidden_SingularForeignMessage = b.SingularForeignMessage |
| 1845 |
x.xxx_hidden_SingularImportMessage = b.SingularImportMessage |
| 1846 |
x.xxx_hidden_SingularNestedEnum = b.SingularNestedEnum |
| 1847 |
x.xxx_hidden_SingularForeignEnum = b.SingularForeignEnum |
| 1848 |
x.xxx_hidden_SingularImportEnum = b.SingularImportEnum |
| 1849 |
if b.OptionalInt32 != nil { |
| 1850 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 21, 81) |
| 1851 |
x.xxx_hidden_OptionalInt32 = *b.OptionalInt32 |
| 1852 |
} |
| 1853 |
if b.OptionalInt64 != nil { |
| 1854 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 22, 81) |
| 1855 |
x.xxx_hidden_OptionalInt64 = *b.OptionalInt64 |
| 1856 |
} |
| 1857 |
if b.OptionalUint32 != nil { |
| 1858 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 23, 81) |
| 1859 |
x.xxx_hidden_OptionalUint32 = *b.OptionalUint32 |
| 1860 |
} |
| 1861 |
if b.OptionalUint64 != nil { |
| 1862 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 24, 81) |
| 1863 |
x.xxx_hidden_OptionalUint64 = *b.OptionalUint64 |
| 1864 |
} |
| 1865 |
if b.OptionalSint32 != nil { |
| 1866 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 25, 81) |
| 1867 |
x.xxx_hidden_OptionalSint32 = *b.OptionalSint32 |
| 1868 |
} |
| 1869 |
if b.OptionalSint64 != nil { |
| 1870 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 26, 81) |
| 1871 |
x.xxx_hidden_OptionalSint64 = *b.OptionalSint64 |
| 1872 |
} |
| 1873 |
if b.OptionalFixed32 != nil { |
| 1874 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 27, 81) |
| 1875 |
x.xxx_hidden_OptionalFixed32 = *b.OptionalFixed32 |
| 1876 |
} |
| 1877 |
if b.OptionalFixed64 != nil { |
| 1878 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 28, 81) |
| 1879 |
x.xxx_hidden_OptionalFixed64 = *b.OptionalFixed64 |
| 1880 |
} |
| 1881 |
if b.OptionalSfixed32 != nil { |
| 1882 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 29, 81) |
| 1883 |
x.xxx_hidden_OptionalSfixed32 = *b.OptionalSfixed32 |
| 1884 |
} |
| 1885 |
if b.OptionalSfixed64 != nil { |
| 1886 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 30, 81) |
| 1887 |
x.xxx_hidden_OptionalSfixed64 = *b.OptionalSfixed64 |
| 1888 |
} |
| 1889 |
if b.OptionalFloat != nil { |
| 1890 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 31, 81) |
| 1891 |
x.xxx_hidden_OptionalFloat = *b.OptionalFloat |
| 1892 |
} |
| 1893 |
if b.OptionalDouble != nil { |
| 1894 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[1]), 32, 81) |
| 1895 |
x.xxx_hidden_OptionalDouble = *b.OptionalDouble |
| 1896 |
} |
| 1897 |
if b.OptionalBool != nil { |
| 1898 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[1]), 33, 81) |
| 1899 |
x.xxx_hidden_OptionalBool = *b.OptionalBool |
| 1900 |
} |
| 1901 |
if b.OptionalString != nil { |
| 1902 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[1]), 34, 81) |
| 1903 |
x.xxx_hidden_OptionalString = b.OptionalString |
| 1904 |
} |
| 1905 |
if b.OptionalBytes != nil { |
| 1906 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[1]), 35, 81) |
| 1907 |
x.xxx_hidden_OptionalBytes = b.OptionalBytes |
| 1908 |
} |
| 1909 |
x.xxx_hidden_OptionalNestedMessage = b.OptionalNestedMessage |
| 1910 |
x.xxx_hidden_OptionalForeignMessage = b.OptionalForeignMessage |
| 1911 |
x.xxx_hidden_OptionalImportMessage = b.OptionalImportMessage |
| 1912 |
if b.OptionalNestedEnum != nil { |
| 1913 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[1]), 39, 81) |
| 1914 |
x.xxx_hidden_OptionalNestedEnum = *b.OptionalNestedEnum |
| 1915 |
} |
| 1916 |
if b.OptionalForeignEnum != nil { |
| 1917 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[1]), 40, 81) |
| 1918 |
x.xxx_hidden_OptionalForeignEnum = *b.OptionalForeignEnum |
| 1919 |
} |
| 1920 |
if b.OptionalImportEnum != nil { |
| 1921 |
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[1]), 41, 81) |
| 1922 |
x.xxx_hidden_OptionalImportEnum = *b.OptionalImportEnum |
| 1923 |
} |
| 1924 |
x.xxx_hidden_RepeatedInt32 = b.RepeatedInt32 |
| 1925 |
x.xxx_hidden_RepeatedInt64 = b.RepeatedInt64 |
| 1926 |
x.xxx_hidden_RepeatedUint32 = b.RepeatedUint32 |
| 1927 |
x.xxx_hidden_RepeatedUint64 = b.RepeatedUint64 |
| 1928 |
x.xxx_hidden_RepeatedSint32 = b.RepeatedSint32 |
| 1929 |
x.xxx_hidden_RepeatedSint64 = b.RepeatedSint64 |
| 1930 |
x.xxx_hidden_RepeatedFixed32 = b.RepeatedFixed32 |
| 1931 |
x.xxx_hidden_RepeatedFixed64 = b.RepeatedFixed64 |
| 1932 |
x.xxx_hidden_RepeatedSfixed32 = b.RepeatedSfixed32 |
| 1933 |
x.xxx_hidden_RepeatedSfixed64 = b.RepeatedSfixed64 |
| 1934 |
x.xxx_hidden_RepeatedFloat = b.RepeatedFloat |
| 1935 |
x.xxx_hidden_RepeatedDouble = b.RepeatedDouble |
| 1936 |
x.xxx_hidden_RepeatedBool = b.RepeatedBool |
| 1937 |
x.xxx_hidden_RepeatedString = b.RepeatedString |
| 1938 |
x.xxx_hidden_RepeatedBytes = b.RepeatedBytes |
| 1939 |
x.xxx_hidden_RepeatedNestedMessage = &b.RepeatedNestedMessage |
| 1940 |
x.xxx_hidden_RepeatedForeignMessage = &b.RepeatedForeignMessage |
| 1941 |
x.xxx_hidden_RepeatedImportmessage = &b.RepeatedImportmessage |
| 1942 |
x.xxx_hidden_RepeatedNestedEnum = b.RepeatedNestedEnum |
| 1943 |
x.xxx_hidden_RepeatedForeignEnum = b.RepeatedForeignEnum |
| 1944 |
x.xxx_hidden_RepeatedImportenum = b.RepeatedImportenum |
| 1945 |
x.xxx_hidden_MapInt32Int32 = b.MapInt32Int32 |
| 1946 |
x.xxx_hidden_MapInt64Int64 = b.MapInt64Int64 |
| 1947 |
x.xxx_hidden_MapUint32Uint32 = b.MapUint32Uint32 |
| 1948 |
x.xxx_hidden_MapUint64Uint64 = b.MapUint64Uint64 |
| 1949 |
x.xxx_hidden_MapSint32Sint32 = b.MapSint32Sint32 |
| 1950 |
x.xxx_hidden_MapSint64Sint64 = b.MapSint64Sint64 |
| 1951 |
x.xxx_hidden_MapFixed32Fixed32 = b.MapFixed32Fixed32 |
| 1952 |
x.xxx_hidden_MapFixed64Fixed64 = b.MapFixed64Fixed64 |
| 1953 |
x.xxx_hidden_MapSfixed32Sfixed32 = b.MapSfixed32Sfixed32 |
| 1954 |
x.xxx_hidden_MapSfixed64Sfixed64 = b.MapSfixed64Sfixed64 |
| 1955 |
x.xxx_hidden_MapInt32Float = b.MapInt32Float |
| 1956 |
x.xxx_hidden_MapInt32Double = b.MapInt32Double |
| 1957 |
x.xxx_hidden_MapBoolBool = b.MapBoolBool |
| 1958 |
x.xxx_hidden_MapStringString = b.MapStringString |
| 1959 |
x.xxx_hidden_MapStringBytes = b.MapStringBytes |
| 1960 |
x.xxx_hidden_MapStringNestedMessage = b.MapStringNestedMessage |
| 1961 |
x.xxx_hidden_MapStringNestedEnum = b.MapStringNestedEnum |
| 1962 |
if b.OneofUint32 != nil { |
| 1963 |
x.xxx_hidden_OneofField = &testAllTypes_OneofUint32{*b.OneofUint32} |
| 1964 |
} |
| 1965 |
if b.OneofNestedMessage != nil { |
| 1966 |
x.xxx_hidden_OneofField = &testAllTypes_OneofNestedMessage{b.OneofNestedMessage} |
| 1967 |
} |
| 1968 |
if b.OneofString != nil { |
| 1969 |
x.xxx_hidden_OneofField = &testAllTypes_OneofString{*b.OneofString} |
| 1970 |
} |
| 1971 |
if b.OneofBytes != nil { |
| 1972 |
x.xxx_hidden_OneofField = &testAllTypes_OneofBytes{b.OneofBytes} |
| 1973 |
} |
| 1974 |
if b.OneofBool != nil { |
| 1975 |
x.xxx_hidden_OneofField = &testAllTypes_OneofBool{*b.OneofBool} |
| 1976 |
} |
| 1977 |
if b.OneofUint64 != nil { |
| 1978 |
x.xxx_hidden_OneofField = &testAllTypes_OneofUint64{*b.OneofUint64} |
| 1979 |
} |
| 1980 |
if b.OneofFloat != nil { |
| 1981 |
x.xxx_hidden_OneofField = &testAllTypes_OneofFloat{*b.OneofFloat} |
| 1982 |
} |
| 1983 |
if b.OneofDouble != nil { |
| 1984 |
x.xxx_hidden_OneofField = &testAllTypes_OneofDouble{*b.OneofDouble} |
| 1985 |
} |
| 1986 |
if b.OneofEnum != nil { |
| 1987 |
x.xxx_hidden_OneofField = &testAllTypes_OneofEnum{*b.OneofEnum} |
| 1988 |
} |
| 1989 |
return m0 |
| 1990 |
} |
| 1991 |
|
| 1992 |
type case_TestAllTypes_OneofField protoreflect.FieldNumber |
| 1993 |
|
| 1994 |
func (x case_TestAllTypes_OneofField) String() string { |
| 1995 |
md := file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_msgTypes[0].Descriptor() |
| 1996 |
if x == 0 { |
| 1997 |
return "not set" |
| 1998 |
} |
| 1999 |
return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) |
| 2000 |
} |
| 2001 |
|
| 2002 |
type isTestAllTypes_OneofField interface { |
| 2003 |
isTestAllTypes_OneofField() |
| 2004 |
} |
| 2005 |
|
| 2006 |
type testAllTypes_OneofUint32 struct { |
| 2007 |
OneofUint32 uint32 `protobuf:"varint,111,opt,name=oneof_uint32,json=oneofUint32,proto3,oneof"` |
| 2008 |
} |
| 2009 |
|
| 2010 |
type testAllTypes_OneofNestedMessage struct { |
| 2011 |
OneofNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,112,opt,name=oneof_nested_message,json=oneofNestedMessage,proto3,oneof"` |
| 2012 |
} |
| 2013 |
|
| 2014 |
type testAllTypes_OneofString struct { |
| 2015 |
OneofString string `protobuf:"bytes,113,opt,name=oneof_string,json=oneofString,proto3,oneof"` |
| 2016 |
} |
| 2017 |
|
| 2018 |
type testAllTypes_OneofBytes struct { |
| 2019 |
OneofBytes []byte `protobuf:"bytes,114,opt,name=oneof_bytes,json=oneofBytes,proto3,oneof"` |
| 2020 |
} |
| 2021 |
|
| 2022 |
type testAllTypes_OneofBool struct { |
| 2023 |
OneofBool bool `protobuf:"varint,115,opt,name=oneof_bool,json=oneofBool,proto3,oneof"` |
| 2024 |
} |
| 2025 |
|
| 2026 |
type testAllTypes_OneofUint64 struct { |
| 2027 |
OneofUint64 uint64 `protobuf:"varint,116,opt,name=oneof_uint64,json=oneofUint64,proto3,oneof"` |
| 2028 |
} |
| 2029 |
|
| 2030 |
type testAllTypes_OneofFloat struct { |
| 2031 |
OneofFloat float32 `protobuf:"fixed32,117,opt,name=oneof_float,json=oneofFloat,proto3,oneof"` |
| 2032 |
} |
| 2033 |
|
| 2034 |
type testAllTypes_OneofDouble struct { |
| 2035 |
OneofDouble float64 `protobuf:"fixed64,118,opt,name=oneof_double,json=oneofDouble,proto3,oneof"` |
| 2036 |
} |
| 2037 |
|
| 2038 |
type testAllTypes_OneofEnum struct { |
| 2039 |
OneofEnum TestAllTypes_NestedEnum `protobuf:"varint,119,opt,name=oneof_enum,json=oneofEnum,proto3,enum=hybrid.goproto.proto.test3.TestAllTypes_NestedEnum,oneof"` |
| 2040 |
} |
| 2041 |
|
| 2042 |
func (*testAllTypes_OneofUint32) isTestAllTypes_OneofField() {} |
| 2043 |
|
| 2044 |
func (*testAllTypes_OneofNestedMessage) isTestAllTypes_OneofField() {} |
| 2045 |
|
| 2046 |
func (*testAllTypes_OneofString) isTestAllTypes_OneofField() {} |
| 2047 |
|
| 2048 |
func (*testAllTypes_OneofBytes) isTestAllTypes_OneofField() {} |
| 2049 |
|
| 2050 |
func (*testAllTypes_OneofBool) isTestAllTypes_OneofField() {} |
| 2051 |
|
| 2052 |
func (*testAllTypes_OneofUint64) isTestAllTypes_OneofField() {} |
| 2053 |
|
| 2054 |
func (*testAllTypes_OneofFloat) isTestAllTypes_OneofField() {} |
| 2055 |
|
| 2056 |
func (*testAllTypes_OneofDouble) isTestAllTypes_OneofField() {} |
| 2057 |
|
| 2058 |
func (*testAllTypes_OneofEnum) isTestAllTypes_OneofField() {} |
| 2059 |
|
| 2060 |
type ForeignMessage struct { |
| 2061 |
state protoimpl.MessageState `protogen:"opaque.v1"` |
| 2062 |
xxx_hidden_C int32 `protobuf:"varint,1,opt,name=c,proto3"` |
| 2063 |
xxx_hidden_D int32 `protobuf:"varint,2,opt,name=d,proto3"` |
| 2064 |
unknownFields protoimpl.UnknownFields |
| 2065 |
sizeCache protoimpl.SizeCache |
| 2066 |
} |
| 2067 |
|
| 2068 |
func (x *ForeignMessage) Reset() { |
| 2069 |
*x = ForeignMessage{} |
| 2070 |
mi := &file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_msgTypes[1] |
| 2071 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 2072 |
ms.StoreMessageInfo(mi) |
| 2073 |
} |
| 2074 |
|
| 2075 |
func (x *ForeignMessage) String() string { |
| 2076 |
return protoimpl.X.MessageStringOf(x) |
| 2077 |
} |
| 2078 |
|
| 2079 |
func (*ForeignMessage) ProtoMessage() {} |
| 2080 |
|
| 2081 |
func (x *ForeignMessage) ProtoReflect() protoreflect.Message { |
| 2082 |
mi := &file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_msgTypes[1] |
| 2083 |
if x != nil { |
| 2084 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 2085 |
if ms.LoadMessageInfo() == nil { |
| 2086 |
ms.StoreMessageInfo(mi) |
| 2087 |
} |
| 2088 |
return ms |
| 2089 |
} |
| 2090 |
return mi.MessageOf(x) |
| 2091 |
} |
| 2092 |
|
| 2093 |
func (x *ForeignMessage) GetC() int32 { |
| 2094 |
if x != nil { |
| 2095 |
return x.xxx_hidden_C |
| 2096 |
} |
| 2097 |
return 0 |
| 2098 |
} |
| 2099 |
|
| 2100 |
func (x *ForeignMessage) GetD() int32 { |
| 2101 |
if x != nil { |
| 2102 |
return x.xxx_hidden_D |
| 2103 |
} |
| 2104 |
return 0 |
| 2105 |
} |
| 2106 |
|
| 2107 |
func (x *ForeignMessage) SetC(v int32) { |
| 2108 |
x.xxx_hidden_C = v |
| 2109 |
} |
| 2110 |
|
| 2111 |
func (x *ForeignMessage) SetD(v int32) { |
| 2112 |
x.xxx_hidden_D = v |
| 2113 |
} |
| 2114 |
|
| 2115 |
type ForeignMessage_builder struct { |
| 2116 |
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder. |
| 2117 |
|
| 2118 |
C int32 |
| 2119 |
D int32 |
| 2120 |
} |
| 2121 |
|
| 2122 |
func (b0 ForeignMessage_builder) Build() *ForeignMessage { |
| 2123 |
m0 := &ForeignMessage{} |
| 2124 |
b, x := &b0, m0 |
| 2125 |
_, _ = b, x |
| 2126 |
x.xxx_hidden_C = b.C |
| 2127 |
x.xxx_hidden_D = b.D |
| 2128 |
return m0 |
| 2129 |
} |
| 2130 |
|
| 2131 |
type TestAllTypes_NestedMessage struct { |
| 2132 |
state protoimpl.MessageState `protogen:"opaque.v1"` |
| 2133 |
xxx_hidden_A int32 `protobuf:"varint,1,opt,name=a,proto3"` |
| 2134 |
xxx_hidden_Corecursive *TestAllTypes `protobuf:"bytes,2,opt,name=corecursive,proto3"` |
| 2135 |
unknownFields protoimpl.UnknownFields |
| 2136 |
sizeCache protoimpl.SizeCache |
| 2137 |
} |
| 2138 |
|
| 2139 |
func (x *TestAllTypes_NestedMessage) Reset() { |
| 2140 |
*x = TestAllTypes_NestedMessage{} |
| 2141 |
mi := &file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_msgTypes[2] |
| 2142 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 2143 |
ms.StoreMessageInfo(mi) |
| 2144 |
} |
| 2145 |
|
| 2146 |
func (x *TestAllTypes_NestedMessage) String() string { |
| 2147 |
return protoimpl.X.MessageStringOf(x) |
| 2148 |
} |
| 2149 |
|
| 2150 |
func (*TestAllTypes_NestedMessage) ProtoMessage() {} |
| 2151 |
|
| 2152 |
func (x *TestAllTypes_NestedMessage) ProtoReflect() protoreflect.Message { |
| 2153 |
mi := &file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_msgTypes[2] |
| 2154 |
if x != nil { |
| 2155 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 2156 |
if ms.LoadMessageInfo() == nil { |
| 2157 |
ms.StoreMessageInfo(mi) |
| 2158 |
} |
| 2159 |
return ms |
| 2160 |
} |
| 2161 |
return mi.MessageOf(x) |
| 2162 |
} |
| 2163 |
|
| 2164 |
func (x *TestAllTypes_NestedMessage) GetA() int32 { |
| 2165 |
if x != nil { |
| 2166 |
return x.xxx_hidden_A |
| 2167 |
} |
| 2168 |
return 0 |
| 2169 |
} |
| 2170 |
|
| 2171 |
func (x *TestAllTypes_NestedMessage) GetCorecursive() *TestAllTypes { |
| 2172 |
if x != nil { |
| 2173 |
return x.xxx_hidden_Corecursive |
| 2174 |
} |
| 2175 |
return nil |
| 2176 |
} |
| 2177 |
|
| 2178 |
func (x *TestAllTypes_NestedMessage) SetA(v int32) { |
| 2179 |
x.xxx_hidden_A = v |
| 2180 |
} |
| 2181 |
|
| 2182 |
func (x *TestAllTypes_NestedMessage) SetCorecursive(v *TestAllTypes) { |
| 2183 |
x.xxx_hidden_Corecursive = v |
| 2184 |
} |
| 2185 |
|
| 2186 |
func (x *TestAllTypes_NestedMessage) HasCorecursive() bool { |
| 2187 |
if x == nil { |
| 2188 |
return false |
| 2189 |
} |
| 2190 |
return x.xxx_hidden_Corecursive != nil |
| 2191 |
} |
| 2192 |
|
| 2193 |
func (x *TestAllTypes_NestedMessage) ClearCorecursive() { |
| 2194 |
x.xxx_hidden_Corecursive = nil |
| 2195 |
} |
| 2196 |
|
| 2197 |
type TestAllTypes_NestedMessage_builder struct { |
| 2198 |
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder. |
| 2199 |
|
| 2200 |
A int32 |
| 2201 |
Corecursive *TestAllTypes |
| 2202 |
} |
| 2203 |
|
| 2204 |
func (b0 TestAllTypes_NestedMessage_builder) Build() *TestAllTypes_NestedMessage { |
| 2205 |
m0 := &TestAllTypes_NestedMessage{} |
| 2206 |
b, x := &b0, m0 |
| 2207 |
_, _ = b, x |
| 2208 |
x.xxx_hidden_A = b.A |
| 2209 |
x.xxx_hidden_Corecursive = b.Corecursive |
| 2210 |
return m0 |
| 2211 |
} |
| 2212 |
|
| 2213 |
var File_internal_testprotos_test3_test3_hybrid_test_hybrid_proto protoreflect.FileDescriptor |
| 2214 |
|
| 2215 |
const file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_rawDesc = "" + |
| 2216 |
"\n" + |
| 2217 |
"8internal/testprotos/test3/test3_hybrid/test.hybrid.proto\x12\x1ahybrid.goproto.proto.test3\x1a?internal/testprotos/test3/test3_hybrid/test_import.hybrid.proto\"\xa9>\n" + |
| 2218 |
"\fTestAllTypes\x12%\n" + |
| 2219 |
"\x0esingular_int32\x18Q \x01(\x05R\rsingularInt32\x12%\n" + |
| 2220 |
"\x0esingular_int64\x18R \x01(\x03R\rsingularInt64\x12'\n" + |
| 2221 |
"\x0fsingular_uint32\x18S \x01(\rR\x0esingularUint32\x12'\n" + |
| 2222 |
"\x0fsingular_uint64\x18T \x01(\x04R\x0esingularUint64\x12'\n" + |
| 2223 |
"\x0fsingular_sint32\x18U \x01(\x11R\x0esingularSint32\x12'\n" + |
| 2224 |
"\x0fsingular_sint64\x18V \x01(\x12R\x0esingularSint64\x12)\n" + |
| 2225 |
"\x10singular_fixed32\x18W \x01(\aR\x0fsingularFixed32\x12)\n" + |
| 2226 |
"\x10singular_fixed64\x18X \x01(\x06R\x0fsingularFixed64\x12+\n" + |
| 2227 |
"\x11singular_sfixed32\x18Y \x01(\x0fR\x10singularSfixed32\x12+\n" + |
| 2228 |
"\x11singular_sfixed64\x18Z \x01(\x10R\x10singularSfixed64\x12%\n" + |
| 2229 |
"\x0esingular_float\x18[ \x01(\x02R\rsingularFloat\x12'\n" + |
| 2230 |
"\x0fsingular_double\x18\\ \x01(\x01R\x0esingularDouble\x12#\n" + |
| 2231 |
"\rsingular_bool\x18] \x01(\bR\fsingularBool\x12'\n" + |
| 2232 |
"\x0fsingular_string\x18^ \x01(\tR\x0esingularString\x12%\n" + |
| 2233 |
"\x0esingular_bytes\x18_ \x01(\fR\rsingularBytes\x12n\n" + |
| 2234 |
"\x17singular_nested_message\x18b \x01(\v26.hybrid.goproto.proto.test3.TestAllTypes.NestedMessageR\x15singularNestedMessage\x12d\n" + |
| 2235 |
"\x18singular_foreign_message\x18c \x01(\v2*.hybrid.goproto.proto.test3.ForeignMessageR\x16singularForeignMessage\x12a\n" + |
| 2236 |
"\x17singular_import_message\x18d \x01(\v2).hybrid.goproto.proto.test3.ImportMessageR\x15singularImportMessage\x12e\n" + |
| 2237 |
"\x14singular_nested_enum\x18e \x01(\x0e23.hybrid.goproto.proto.test3.TestAllTypes.NestedEnumR\x12singularNestedEnum\x12[\n" + |
| 2238 |
"\x15singular_foreign_enum\x18f \x01(\x0e2'.hybrid.goproto.proto.test3.ForeignEnumR\x13singularForeignEnum\x12X\n" + |
| 2239 |
"\x14singular_import_enum\x18g \x01(\x0e2&.hybrid.goproto.proto.test3.ImportEnumR\x12singularImportEnum\x12*\n" + |
| 2240 |
"\x0eoptional_int32\x18\x01 \x01(\x05H\x01R\roptionalInt32\x88\x01\x01\x12*\n" + |
| 2241 |
"\x0eoptional_int64\x18\x02 \x01(\x03H\x02R\roptionalInt64\x88\x01\x01\x12,\n" + |
| 2242 |
"\x0foptional_uint32\x18\x03 \x01(\rH\x03R\x0eoptionalUint32\x88\x01\x01\x12,\n" + |
| 2243 |
"\x0foptional_uint64\x18\x04 \x01(\x04H\x04R\x0eoptionalUint64\x88\x01\x01\x12,\n" + |
| 2244 |
"\x0foptional_sint32\x18\x05 \x01(\x11H\x05R\x0eoptionalSint32\x88\x01\x01\x12,\n" + |
| 2245 |
"\x0foptional_sint64\x18\x06 \x01(\x12H\x06R\x0eoptionalSint64\x88\x01\x01\x12.\n" + |
| 2246 |
"\x10optional_fixed32\x18\a \x01(\aH\aR\x0foptionalFixed32\x88\x01\x01\x12.\n" + |
| 2247 |
"\x10optional_fixed64\x18\b \x01(\x06H\bR\x0foptionalFixed64\x88\x01\x01\x120\n" + |
| 2248 |
"\x11optional_sfixed32\x18\t \x01(\x0fH\tR\x10optionalSfixed32\x88\x01\x01\x120\n" + |
| 2249 |
"\x11optional_sfixed64\x18\n" + |
| 2250 |
" \x01(\x10H\n" + |
| 2251 |
"R\x10optionalSfixed64\x88\x01\x01\x12*\n" + |
| 2252 |
"\x0eoptional_float\x18\v \x01(\x02H\vR\roptionalFloat\x88\x01\x01\x12,\n" + |
| 2253 |
"\x0foptional_double\x18\f \x01(\x01H\fR\x0eoptionalDouble\x88\x01\x01\x12(\n" + |
| 2254 |
"\roptional_bool\x18\r \x01(\bH\rR\foptionalBool\x88\x01\x01\x12,\n" + |
| 2255 |
"\x0foptional_string\x18\x0e \x01(\tH\x0eR\x0eoptionalString\x88\x01\x01\x12*\n" + |
| 2256 |
"\x0eoptional_bytes\x18\x0f \x01(\fH\x0fR\roptionalBytes\x88\x01\x01\x12s\n" + |
| 2257 |
"\x17optional_nested_message\x18\x12 \x01(\v26.hybrid.goproto.proto.test3.TestAllTypes.NestedMessageH\x10R\x15optionalNestedMessage\x88\x01\x01\x12i\n" + |
| 2258 |
"\x18optional_foreign_message\x18\x13 \x01(\v2*.hybrid.goproto.proto.test3.ForeignMessageH\x11R\x16optionalForeignMessage\x88\x01\x01\x12f\n" + |
| 2259 |
"\x17optional_import_message\x18\x14 \x01(\v2).hybrid.goproto.proto.test3.ImportMessageH\x12R\x15optionalImportMessage\x88\x01\x01\x12j\n" + |
| 2260 |
"\x14optional_nested_enum\x18\x15 \x01(\x0e23.hybrid.goproto.proto.test3.TestAllTypes.NestedEnumH\x13R\x12optionalNestedEnum\x88\x01\x01\x12`\n" + |
| 2261 |
"\x15optional_foreign_enum\x18\x16 \x01(\x0e2'.hybrid.goproto.proto.test3.ForeignEnumH\x14R\x13optionalForeignEnum\x88\x01\x01\x12]\n" + |
| 2262 |
"\x14optional_import_enum\x18\x17 \x01(\x0e2&.hybrid.goproto.proto.test3.ImportEnumH\x15R\x12optionalImportEnum\x88\x01\x01\x12%\n" + |
| 2263 |
"\x0erepeated_int32\x18\x1f \x03(\x05R\rrepeatedInt32\x12%\n" + |
| 2264 |
"\x0erepeated_int64\x18 \x03(\x03R\rrepeatedInt64\x12'\n" + |
| 2265 |
"\x0frepeated_uint32\x18! \x03(\rR\x0erepeatedUint32\x12'\n" + |
| 2266 |
"\x0frepeated_uint64\x18\" \x03(\x04R\x0erepeatedUint64\x12'\n" + |
| 2267 |
"\x0frepeated_sint32\x18# \x03(\x11R\x0erepeatedSint32\x12'\n" + |
| 2268 |
"\x0frepeated_sint64\x18$ \x03(\x12R\x0erepeatedSint64\x12)\n" + |
| 2269 |
"\x10repeated_fixed32\x18% \x03(\aR\x0frepeatedFixed32\x12)\n" + |
| 2270 |
"\x10repeated_fixed64\x18& \x03(\x06R\x0frepeatedFixed64\x12+\n" + |
| 2271 |
"\x11repeated_sfixed32\x18' \x03(\x0fR\x10repeatedSfixed32\x12+\n" + |
| 2272 |
"\x11repeated_sfixed64\x18( \x03(\x10R\x10repeatedSfixed64\x12%\n" + |
| 2273 |
"\x0erepeated_float\x18) \x03(\x02R\rrepeatedFloat\x12'\n" + |
| 2274 |
"\x0frepeated_double\x18* \x03(\x01R\x0erepeatedDouble\x12#\n" + |
| 2275 |
"\rrepeated_bool\x18+ \x03(\bR\frepeatedBool\x12'\n" + |
| 2276 |
"\x0frepeated_string\x18, \x03(\tR\x0erepeatedString\x12%\n" + |
| 2277 |
"\x0erepeated_bytes\x18- \x03(\fR\rrepeatedBytes\x12n\n" + |
| 2278 |
"\x17repeated_nested_message\x180 \x03(\v26.hybrid.goproto.proto.test3.TestAllTypes.NestedMessageR\x15repeatedNestedMessage\x12d\n" + |
| 2279 |
"\x18repeated_foreign_message\x181 \x03(\v2*.hybrid.goproto.proto.test3.ForeignMessageR\x16repeatedForeignMessage\x12`\n" + |
| 2280 |
"\x16repeated_importmessage\x182 \x03(\v2).hybrid.goproto.proto.test3.ImportMessageR\x15repeatedImportmessage\x12e\n" + |
| 2281 |
"\x14repeated_nested_enum\x183 \x03(\x0e23.hybrid.goproto.proto.test3.TestAllTypes.NestedEnumR\x12repeatedNestedEnum\x12[\n" + |
| 2282 |
"\x15repeated_foreign_enum\x184 \x03(\x0e2'.hybrid.goproto.proto.test3.ForeignEnumR\x13repeatedForeignEnum\x12W\n" + |
| 2283 |
"\x13repeated_importenum\x185 \x03(\x0e2&.hybrid.goproto.proto.test3.ImportEnumR\x12repeatedImportenum\x12c\n" + |
| 2284 |
"\x0fmap_int32_int32\x188 \x03(\v2;.hybrid.goproto.proto.test3.TestAllTypes.MapInt32Int32EntryR\rmapInt32Int32\x12c\n" + |
| 2285 |
"\x0fmap_int64_int64\x189 \x03(\v2;.hybrid.goproto.proto.test3.TestAllTypes.MapInt64Int64EntryR\rmapInt64Int64\x12i\n" + |
| 2286 |
"\x11map_uint32_uint32\x18: \x03(\v2=.hybrid.goproto.proto.test3.TestAllTypes.MapUint32Uint32EntryR\x0fmapUint32Uint32\x12i\n" + |
| 2287 |
"\x11map_uint64_uint64\x18; \x03(\v2=.hybrid.goproto.proto.test3.TestAllTypes.MapUint64Uint64EntryR\x0fmapUint64Uint64\x12i\n" + |
| 2288 |
"\x11map_sint32_sint32\x18< \x03(\v2=.hybrid.goproto.proto.test3.TestAllTypes.MapSint32Sint32EntryR\x0fmapSint32Sint32\x12i\n" + |
| 2289 |
"\x11map_sint64_sint64\x18= \x03(\v2=.hybrid.goproto.proto.test3.TestAllTypes.MapSint64Sint64EntryR\x0fmapSint64Sint64\x12o\n" + |
| 2290 |
"\x13map_fixed32_fixed32\x18> \x03(\v2?.hybrid.goproto.proto.test3.TestAllTypes.MapFixed32Fixed32EntryR\x11mapFixed32Fixed32\x12o\n" + |
| 2291 |
"\x13map_fixed64_fixed64\x18? \x03(\v2?.hybrid.goproto.proto.test3.TestAllTypes.MapFixed64Fixed64EntryR\x11mapFixed64Fixed64\x12u\n" + |
| 2292 |
"\x15map_sfixed32_sfixed32\x18@ \x03(\v2A.hybrid.goproto.proto.test3.TestAllTypes.MapSfixed32Sfixed32EntryR\x13mapSfixed32Sfixed32\x12u\n" + |
| 2293 |
"\x15map_sfixed64_sfixed64\x18A \x03(\v2A.hybrid.goproto.proto.test3.TestAllTypes.MapSfixed64Sfixed64EntryR\x13mapSfixed64Sfixed64\x12c\n" + |
| 2294 |
"\x0fmap_int32_float\x18B \x03(\v2;.hybrid.goproto.proto.test3.TestAllTypes.MapInt32FloatEntryR\rmapInt32Float\x12f\n" + |
| 2295 |
"\x10map_int32_double\x18C \x03(\v2<.hybrid.goproto.proto.test3.TestAllTypes.MapInt32DoubleEntryR\x0emapInt32Double\x12]\n" + |
| 2296 |
"\rmap_bool_bool\x18D \x03(\v29.hybrid.goproto.proto.test3.TestAllTypes.MapBoolBoolEntryR\vmapBoolBool\x12i\n" + |
| 2297 |
"\x11map_string_string\x18E \x03(\v2=.hybrid.goproto.proto.test3.TestAllTypes.MapStringStringEntryR\x0fmapStringString\x12f\n" + |
| 2298 |
"\x10map_string_bytes\x18F \x03(\v2<.hybrid.goproto.proto.test3.TestAllTypes.MapStringBytesEntryR\x0emapStringBytes\x12\x7f\n" + |
| 2299 |
"\x19map_string_nested_message\x18G \x03(\v2D.hybrid.goproto.proto.test3.TestAllTypes.MapStringNestedMessageEntryR\x16mapStringNestedMessage\x12v\n" + |
| 2300 |
"\x16map_string_nested_enum\x18I \x03(\v2A.hybrid.goproto.proto.test3.TestAllTypes.MapStringNestedEnumEntryR\x13mapStringNestedEnum\x12#\n" + |
| 2301 |
"\foneof_uint32\x18o \x01(\rH\x00R\voneofUint32\x12j\n" + |
| 2302 |
"\x14oneof_nested_message\x18p \x01(\v26.hybrid.goproto.proto.test3.TestAllTypes.NestedMessageH\x00R\x12oneofNestedMessage\x12#\n" + |
| 2303 |
"\foneof_string\x18q \x01(\tH\x00R\voneofString\x12!\n" + |
| 2304 |
"\voneof_bytes\x18r \x01(\fH\x00R\n" + |
| 2305 |
"oneofBytes\x12\x1f\n" + |
| 2306 |
"\n" + |
| 2307 |
"oneof_bool\x18s \x01(\bH\x00R\toneofBool\x12#\n" + |
| 2308 |
"\foneof_uint64\x18t \x01(\x04H\x00R\voneofUint64\x12!\n" + |
| 2309 |
"\voneof_float\x18u \x01(\x02H\x00R\n" + |
| 2310 |
"oneofFloat\x12#\n" + |
| 2311 |
"\foneof_double\x18v \x01(\x01H\x00R\voneofDouble\x12T\n" + |
| 2312 |
"\n" + |
| 2313 |
"oneof_enum\x18w \x01(\x0e23.hybrid.goproto.proto.test3.TestAllTypes.NestedEnumH\x00R\toneofEnum\x1ai\n" + |
| 2314 |
"\rNestedMessage\x12\f\n" + |
| 2315 |
"\x01a\x18\x01 \x01(\x05R\x01a\x12J\n" + |
| 2316 |
"\vcorecursive\x18\x02 \x01(\v2(.hybrid.goproto.proto.test3.TestAllTypesR\vcorecursive\x1a@\n" + |
| 2317 |
"\x12MapInt32Int32Entry\x12\x10\n" + |
| 2318 |
"\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n" + |
| 2319 |
"\x05value\x18\x02 \x01(\x05R\x05value:\x028\x01\x1a@\n" + |
| 2320 |
"\x12MapInt64Int64Entry\x12\x10\n" + |
| 2321 |
"\x03key\x18\x01 \x01(\x03R\x03key\x12\x14\n" + |
| 2322 |
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\x1aB\n" + |
| 2323 |
"\x14MapUint32Uint32Entry\x12\x10\n" + |
| 2324 |
"\x03key\x18\x01 \x01(\rR\x03key\x12\x14\n" + |
| 2325 |
"\x05value\x18\x02 \x01(\rR\x05value:\x028\x01\x1aB\n" + |
| 2326 |
"\x14MapUint64Uint64Entry\x12\x10\n" + |
| 2327 |
"\x03key\x18\x01 \x01(\x04R\x03key\x12\x14\n" + |
| 2328 |
"\x05value\x18\x02 \x01(\x04R\x05value:\x028\x01\x1aB\n" + |
| 2329 |
"\x14MapSint32Sint32Entry\x12\x10\n" + |
| 2330 |
"\x03key\x18\x01 \x01(\x11R\x03key\x12\x14\n" + |
| 2331 |
"\x05value\x18\x02 \x01(\x11R\x05value:\x028\x01\x1aB\n" + |
| 2332 |
"\x14MapSint64Sint64Entry\x12\x10\n" + |
| 2333 |
"\x03key\x18\x01 \x01(\x12R\x03key\x12\x14\n" + |
| 2334 |
"\x05value\x18\x02 \x01(\x12R\x05value:\x028\x01\x1aD\n" + |
| 2335 |
"\x16MapFixed32Fixed32Entry\x12\x10\n" + |
| 2336 |
"\x03key\x18\x01 \x01(\aR\x03key\x12\x14\n" + |
| 2337 |
"\x05value\x18\x02 \x01(\aR\x05value:\x028\x01\x1aD\n" + |
| 2338 |
"\x16MapFixed64Fixed64Entry\x12\x10\n" + |
| 2339 |
"\x03key\x18\x01 \x01(\x06R\x03key\x12\x14\n" + |
| 2340 |
"\x05value\x18\x02 \x01(\x06R\x05value:\x028\x01\x1aF\n" + |
| 2341 |
"\x18MapSfixed32Sfixed32Entry\x12\x10\n" + |
| 2342 |
"\x03key\x18\x01 \x01(\x0fR\x03key\x12\x14\n" + |
| 2343 |
"\x05value\x18\x02 \x01(\x0fR\x05value:\x028\x01\x1aF\n" + |
| 2344 |
"\x18MapSfixed64Sfixed64Entry\x12\x10\n" + |
| 2345 |
"\x03key\x18\x01 \x01(\x10R\x03key\x12\x14\n" + |
| 2346 |
"\x05value\x18\x02 \x01(\x10R\x05value:\x028\x01\x1a@\n" + |
| 2347 |
"\x12MapInt32FloatEntry\x12\x10\n" + |
| 2348 |
"\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n" + |
| 2349 |
"\x05value\x18\x02 \x01(\x02R\x05value:\x028\x01\x1aA\n" + |
| 2350 |
"\x13MapInt32DoubleEntry\x12\x10\n" + |
| 2351 |
"\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n" + |
| 2352 |
"\x05value\x18\x02 \x01(\x01R\x05value:\x028\x01\x1a>\n" + |
| 2353 |
"\x10MapBoolBoolEntry\x12\x10\n" + |
| 2354 |
"\x03key\x18\x01 \x01(\bR\x03key\x12\x14\n" + |
| 2355 |
"\x05value\x18\x02 \x01(\bR\x05value:\x028\x01\x1aB\n" + |
| 2356 |
"\x14MapStringStringEntry\x12\x10\n" + |
| 2357 |
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + |
| 2358 |
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aA\n" + |
| 2359 |
"\x13MapStringBytesEntry\x12\x10\n" + |
| 2360 |
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + |
| 2361 |
"\x05value\x18\x02 \x01(\fR\x05value:\x028\x01\x1a\x81\x01\n" + |
| 2362 |
"\x1bMapStringNestedMessageEntry\x12\x10\n" + |
| 2363 |
"\x03key\x18\x01 \x01(\tR\x03key\x12L\n" + |
| 2364 |
"\x05value\x18\x02 \x01(\v26.hybrid.goproto.proto.test3.TestAllTypes.NestedMessageR\x05value:\x028\x01\x1a{\n" + |
| 2365 |
"\x18MapStringNestedEnumEntry\x12\x10\n" + |
| 2366 |
"\x03key\x18\x01 \x01(\tR\x03key\x12I\n" + |
| 2367 |
"\x05value\x18\x02 \x01(\x0e23.hybrid.goproto.proto.test3.TestAllTypes.NestedEnumR\x05value:\x028\x01\"9\n" + |
| 2368 |
"\n" + |
| 2369 |
"NestedEnum\x12\a\n" + |
| 2370 |
"\x03FOO\x10\x00\x12\a\n" + |
| 2371 |
"\x03BAR\x10\x01\x12\a\n" + |
| 2372 |
"\x03BAZ\x10\x02\x12\x10\n" + |
| 2373 |
"\x03NEG\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01B\r\n" + |
| 2374 |
"\voneof_fieldB\x11\n" + |
| 2375 |
"\x0f_optional_int32B\x11\n" + |
| 2376 |
"\x0f_optional_int64B\x12\n" + |
| 2377 |
"\x10_optional_uint32B\x12\n" + |
| 2378 |
"\x10_optional_uint64B\x12\n" + |
| 2379 |
"\x10_optional_sint32B\x12\n" + |
| 2380 |
"\x10_optional_sint64B\x13\n" + |
| 2381 |
"\x11_optional_fixed32B\x13\n" + |
| 2382 |
"\x11_optional_fixed64B\x14\n" + |
| 2383 |
"\x12_optional_sfixed32B\x14\n" + |
| 2384 |
"\x12_optional_sfixed64B\x11\n" + |
| 2385 |
"\x0f_optional_floatB\x12\n" + |
| 2386 |
"\x10_optional_doubleB\x10\n" + |
| 2387 |
"\x0e_optional_boolB\x12\n" + |
| 2388 |
"\x10_optional_stringB\x11\n" + |
| 2389 |
"\x0f_optional_bytesB\x1a\n" + |
| 2390 |
"\x18_optional_nested_messageB\x1b\n" + |
| 2391 |
"\x19_optional_foreign_messageB\x1a\n" + |
| 2392 |
"\x18_optional_import_messageB\x17\n" + |
| 2393 |
"\x15_optional_nested_enumB\x18\n" + |
| 2394 |
"\x16_optional_foreign_enumB\x17\n" + |
| 2395 |
"\x15_optional_import_enum\",\n" + |
| 2396 |
"\x0eForeignMessage\x12\f\n" + |
| 2397 |
"\x01c\x18\x01 \x01(\x05R\x01c\x12\f\n" + |
| 2398 |
"\x01d\x18\x02 \x01(\x05R\x01d*R\n" + |
| 2399 |
"\vForeignEnum\x12\x10\n" + |
| 2400 |
"\fFOREIGN_ZERO\x10\x00\x12\x0f\n" + |
| 2401 |
"\vFOREIGN_FOO\x10\x04\x12\x0f\n" + |
| 2402 |
"\vFOREIGN_BAR\x10\x05\x12\x0f\n" + |
| 2403 |
"\vFOREIGN_BAZ\x10\x06BCZAgoogle.golang.org/protobuf/internal/testprotos/test3/test3_hybridb\x06proto3" |
| 2404 |
|
| 2405 |
var file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 2406 |
var file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_msgTypes = make([]protoimpl.MessageInfo, 20) |
| 2407 |
var file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_goTypes = []any{ |
| 2408 |
(ForeignEnum)(0), // 0: hybrid.goproto.proto.test3.ForeignEnum |
| 2409 |
(TestAllTypes_NestedEnum)(0), // 1: hybrid.goproto.proto.test3.TestAllTypes.NestedEnum |
| 2410 |
(*TestAllTypes)(nil), // 2: hybrid.goproto.proto.test3.TestAllTypes |
| 2411 |
(*ForeignMessage)(nil), // 3: hybrid.goproto.proto.test3.ForeignMessage |
| 2412 |
(*TestAllTypes_NestedMessage)(nil), // 4: hybrid.goproto.proto.test3.TestAllTypes.NestedMessage |
| 2413 |
nil, // 5: hybrid.goproto.proto.test3.TestAllTypes.MapInt32Int32Entry |
| 2414 |
nil, // 6: hybrid.goproto.proto.test3.TestAllTypes.MapInt64Int64Entry |
| 2415 |
nil, // 7: hybrid.goproto.proto.test3.TestAllTypes.MapUint32Uint32Entry |
| 2416 |
nil, // 8: hybrid.goproto.proto.test3.TestAllTypes.MapUint64Uint64Entry |
| 2417 |
nil, // 9: hybrid.goproto.proto.test3.TestAllTypes.MapSint32Sint32Entry |
| 2418 |
nil, // 10: hybrid.goproto.proto.test3.TestAllTypes.MapSint64Sint64Entry |
| 2419 |
nil, // 11: hybrid.goproto.proto.test3.TestAllTypes.MapFixed32Fixed32Entry |
| 2420 |
nil, // 12: hybrid.goproto.proto.test3.TestAllTypes.MapFixed64Fixed64Entry |
| 2421 |
nil, // 13: hybrid.goproto.proto.test3.TestAllTypes.MapSfixed32Sfixed32Entry |
| 2422 |
nil, // 14: hybrid.goproto.proto.test3.TestAllTypes.MapSfixed64Sfixed64Entry |
| 2423 |
nil, // 15: hybrid.goproto.proto.test3.TestAllTypes.MapInt32FloatEntry |
| 2424 |
nil, // 16: hybrid.goproto.proto.test3.TestAllTypes.MapInt32DoubleEntry |
| 2425 |
nil, // 17: hybrid.goproto.proto.test3.TestAllTypes.MapBoolBoolEntry |
| 2426 |
nil, // 18: hybrid.goproto.proto.test3.TestAllTypes.MapStringStringEntry |
| 2427 |
nil, // 19: hybrid.goproto.proto.test3.TestAllTypes.MapStringBytesEntry |
| 2428 |
nil, // 20: hybrid.goproto.proto.test3.TestAllTypes.MapStringNestedMessageEntry |
| 2429 |
nil, // 21: hybrid.goproto.proto.test3.TestAllTypes.MapStringNestedEnumEntry |
| 2430 |
(*ImportMessage)(nil), // 22: hybrid.goproto.proto.test3.ImportMessage |
| 2431 |
(ImportEnum)(0), // 23: hybrid.goproto.proto.test3.ImportEnum |
| 2432 |
} |
| 2433 |
var file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_depIdxs = []int32{ |
| 2434 |
4, // 0: hybrid.goproto.proto.test3.TestAllTypes.singular_nested_message:type_name -> hybrid.goproto.proto.test3.TestAllTypes.NestedMessage |
| 2435 |
3, // 1: hybrid.goproto.proto.test3.TestAllTypes.singular_foreign_message:type_name -> hybrid.goproto.proto.test3.ForeignMessage |
| 2436 |
22, // 2: hybrid.goproto.proto.test3.TestAllTypes.singular_import_message:type_name -> hybrid.goproto.proto.test3.ImportMessage |
| 2437 |
1, // 3: hybrid.goproto.proto.test3.TestAllTypes.singular_nested_enum:type_name -> hybrid.goproto.proto.test3.TestAllTypes.NestedEnum |
| 2438 |
0, // 4: hybrid.goproto.proto.test3.TestAllTypes.singular_foreign_enum:type_name -> hybrid.goproto.proto.test3.ForeignEnum |
| 2439 |
23, // 5: hybrid.goproto.proto.test3.TestAllTypes.singular_import_enum:type_name -> hybrid.goproto.proto.test3.ImportEnum |
| 2440 |
4, // 6: hybrid.goproto.proto.test3.TestAllTypes.optional_nested_message:type_name -> hybrid.goproto.proto.test3.TestAllTypes.NestedMessage |
| 2441 |
3, // 7: hybrid.goproto.proto.test3.TestAllTypes.optional_foreign_message:type_name -> hybrid.goproto.proto.test3.ForeignMessage |
| 2442 |
22, // 8: hybrid.goproto.proto.test3.TestAllTypes.optional_import_message:type_name -> hybrid.goproto.proto.test3.ImportMessage |
| 2443 |
1, // 9: hybrid.goproto.proto.test3.TestAllTypes.optional_nested_enum:type_name -> hybrid.goproto.proto.test3.TestAllTypes.NestedEnum |
| 2444 |
0, // 10: hybrid.goproto.proto.test3.TestAllTypes.optional_foreign_enum:type_name -> hybrid.goproto.proto.test3.ForeignEnum |
| 2445 |
23, // 11: hybrid.goproto.proto.test3.TestAllTypes.optional_import_enum:type_name -> hybrid.goproto.proto.test3.ImportEnum |
| 2446 |
4, // 12: hybrid.goproto.proto.test3.TestAllTypes.repeated_nested_message:type_name -> hybrid.goproto.proto.test3.TestAllTypes.NestedMessage |
| 2447 |
3, // 13: hybrid.goproto.proto.test3.TestAllTypes.repeated_foreign_message:type_name -> hybrid.goproto.proto.test3.ForeignMessage |
| 2448 |
22, // 14: hybrid.goproto.proto.test3.TestAllTypes.repeated_importmessage:type_name -> hybrid.goproto.proto.test3.ImportMessage |
| 2449 |
1, // 15: hybrid.goproto.proto.test3.TestAllTypes.repeated_nested_enum:type_name -> hybrid.goproto.proto.test3.TestAllTypes.NestedEnum |
| 2450 |
0, // 16: hybrid.goproto.proto.test3.TestAllTypes.repeated_foreign_enum:type_name -> hybrid.goproto.proto.test3.ForeignEnum |
| 2451 |
23, // 17: hybrid.goproto.proto.test3.TestAllTypes.repeated_importenum:type_name -> hybrid.goproto.proto.test3.ImportEnum |
| 2452 |
5, // 18: hybrid.goproto.proto.test3.TestAllTypes.map_int32_int32:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapInt32Int32Entry |
| 2453 |
6, // 19: hybrid.goproto.proto.test3.TestAllTypes.map_int64_int64:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapInt64Int64Entry |
| 2454 |
7, // 20: hybrid.goproto.proto.test3.TestAllTypes.map_uint32_uint32:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapUint32Uint32Entry |
| 2455 |
8, // 21: hybrid.goproto.proto.test3.TestAllTypes.map_uint64_uint64:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapUint64Uint64Entry |
| 2456 |
9, // 22: hybrid.goproto.proto.test3.TestAllTypes.map_sint32_sint32:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapSint32Sint32Entry |
| 2457 |
10, // 23: hybrid.goproto.proto.test3.TestAllTypes.map_sint64_sint64:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapSint64Sint64Entry |
| 2458 |
11, // 24: hybrid.goproto.proto.test3.TestAllTypes.map_fixed32_fixed32:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapFixed32Fixed32Entry |
| 2459 |
12, // 25: hybrid.goproto.proto.test3.TestAllTypes.map_fixed64_fixed64:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapFixed64Fixed64Entry |
| 2460 |
13, // 26: hybrid.goproto.proto.test3.TestAllTypes.map_sfixed32_sfixed32:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapSfixed32Sfixed32Entry |
| 2461 |
14, // 27: hybrid.goproto.proto.test3.TestAllTypes.map_sfixed64_sfixed64:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapSfixed64Sfixed64Entry |
| 2462 |
15, // 28: hybrid.goproto.proto.test3.TestAllTypes.map_int32_float:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapInt32FloatEntry |
| 2463 |
16, // 29: hybrid.goproto.proto.test3.TestAllTypes.map_int32_double:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapInt32DoubleEntry |
| 2464 |
17, // 30: hybrid.goproto.proto.test3.TestAllTypes.map_bool_bool:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapBoolBoolEntry |
| 2465 |
18, // 31: hybrid.goproto.proto.test3.TestAllTypes.map_string_string:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapStringStringEntry |
| 2466 |
19, // 32: hybrid.goproto.proto.test3.TestAllTypes.map_string_bytes:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapStringBytesEntry |
| 2467 |
20, // 33: hybrid.goproto.proto.test3.TestAllTypes.map_string_nested_message:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapStringNestedMessageEntry |
| 2468 |
21, // 34: hybrid.goproto.proto.test3.TestAllTypes.map_string_nested_enum:type_name -> hybrid.goproto.proto.test3.TestAllTypes.MapStringNestedEnumEntry |
| 2469 |
4, // 35: hybrid.goproto.proto.test3.TestAllTypes.oneof_nested_message:type_name -> hybrid.goproto.proto.test3.TestAllTypes.NestedMessage |
| 2470 |
1, // 36: hybrid.goproto.proto.test3.TestAllTypes.oneof_enum:type_name -> hybrid.goproto.proto.test3.TestAllTypes.NestedEnum |
| 2471 |
2, // 37: hybrid.goproto.proto.test3.TestAllTypes.NestedMessage.corecursive:type_name -> hybrid.goproto.proto.test3.TestAllTypes |
| 2472 |
4, // 38: hybrid.goproto.proto.test3.TestAllTypes.MapStringNestedMessageEntry.value:type_name -> hybrid.goproto.proto.test3.TestAllTypes.NestedMessage |
| 2473 |
1, // 39: hybrid.goproto.proto.test3.TestAllTypes.MapStringNestedEnumEntry.value:type_name -> hybrid.goproto.proto.test3.TestAllTypes.NestedEnum |
| 2474 |
40, // [40:40] is the sub-list for method output_type |
| 2475 |
40, // [40:40] is the sub-list for method input_type |
| 2476 |
40, // [40:40] is the sub-list for extension type_name |
| 2477 |
40, // [40:40] is the sub-list for extension extendee |
| 2478 |
0, // [0:40] is the sub-list for field type_name |
| 2479 |
} |
| 2480 |
|
| 2481 |
func init() { file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_init() } |
| 2482 |
func file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_init() { |
| 2483 |
if File_internal_testprotos_test3_test3_hybrid_test_hybrid_proto != nil { |
| 2484 |
return |
| 2485 |
} |
| 2486 |
file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_init() |
| 2487 |
file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_msgTypes[0].OneofWrappers = []any{ |
| 2488 |
(*testAllTypes_OneofUint32)(nil), |
| 2489 |
(*testAllTypes_OneofNestedMessage)(nil), |
| 2490 |
(*testAllTypes_OneofString)(nil), |
| 2491 |
(*testAllTypes_OneofBytes)(nil), |
| 2492 |
(*testAllTypes_OneofBool)(nil), |
| 2493 |
(*testAllTypes_OneofUint64)(nil), |
| 2494 |
(*testAllTypes_OneofFloat)(nil), |
| 2495 |
(*testAllTypes_OneofDouble)(nil), |
| 2496 |
(*testAllTypes_OneofEnum)(nil), |
| 2497 |
} |
| 2498 |
type x struct{} |
| 2499 |
out := protoimpl.TypeBuilder{ |
| 2500 |
File: protoimpl.DescBuilder{ |
| 2501 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 2502 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_rawDesc), len(file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_rawDesc)), |
| 2503 |
NumEnums: 2, |
| 2504 |
NumMessages: 20, |
| 2505 |
NumExtensions: 0, |
| 2506 |
NumServices: 0, |
| 2507 |
}, |
| 2508 |
GoTypes: file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_goTypes, |
| 2509 |
DependencyIndexes: file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_depIdxs, |
| 2510 |
EnumInfos: file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_enumTypes, |
| 2511 |
MessageInfos: file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_msgTypes, |
| 2512 |
}.Build() |
| 2513 |
File_internal_testprotos_test3_test3_hybrid_test_hybrid_proto = out.File |
| 2514 |
file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_goTypes = nil |
| 2515 |
file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_depIdxs = nil |
| 2516 |
} |