Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: proto2/enum.proto |
| 3 | |
| 4 | package proto2 |
| 5 | |
Damien Neil | 1ec3315 | 2018-09-13 13:12:36 -0700 | [diff] [blame] | 6 | import ( |
Damien Neil | 1ec3315 | 2018-09-13 13:12:36 -0700 | [diff] [blame] | 7 | proto "github.com/golang/protobuf/proto" |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 8 | protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" |
| 9 | prototype "github.com/golang/protobuf/v2/reflect/prototype" |
| 10 | protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl" |
Damien Neil | 1ec3315 | 2018-09-13 13:12:36 -0700 | [diff] [blame] | 11 | ) |
| 12 | |
Damien Neil | d412792 | 2018-09-12 11:13:49 -0700 | [diff] [blame] | 13 | // This is a compile-time assertion to ensure that this generated file |
| 14 | // is compatible with the proto package it is being compiled against. |
| 15 | // A compilation error at this line likely means your copy of the |
| 16 | // proto package needs to be updated. |
Joe Tsai | d7e97bc | 2018-11-26 12:57:27 -0800 | [diff] [blame] | 17 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
Damien Neil | d412792 | 2018-09-12 11:13:49 -0700 | [diff] [blame] | 18 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 19 | // EnumType1 comment. |
| 20 | type EnumType1 int32 |
| 21 | |
| 22 | const ( |
| 23 | // EnumType1_ONE comment. |
| 24 | EnumType1_ONE EnumType1 = 1 |
| 25 | // EnumType1_TWO comment. |
| 26 | EnumType1_TWO EnumType1 = 2 |
| 27 | ) |
| 28 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 29 | func (e EnumType1) Type() protoreflect.EnumType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 30 | return xxx_Enum_protoFile_EnumTypes[0] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 31 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 32 | func (e EnumType1) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 33 | return protoreflect.EnumNumber(e) |
| 34 | } |
| 35 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 36 | var EnumType1_name = map[int32]string{ |
| 37 | 1: "ONE", |
| 38 | 2: "TWO", |
| 39 | } |
| 40 | |
| 41 | var EnumType1_value = map[string]int32{ |
| 42 | "ONE": 1, |
| 43 | "TWO": 2, |
| 44 | } |
| 45 | |
| 46 | func (x EnumType1) Enum() *EnumType1 { |
| 47 | p := new(EnumType1) |
| 48 | *p = x |
| 49 | return p |
| 50 | } |
| 51 | |
| 52 | func (x EnumType1) String() string { |
| 53 | return proto.EnumName(EnumType1_name, int32(x)) |
| 54 | } |
| 55 | |
| 56 | func (x *EnumType1) UnmarshalJSON(data []byte) error { |
| 57 | value, err := proto.UnmarshalJSONEnum(EnumType1_value, data, "EnumType1") |
| 58 | if err != nil { |
| 59 | return err |
| 60 | } |
| 61 | *x = EnumType1(value) |
| 62 | return nil |
| 63 | } |
| 64 | |
| 65 | func (EnumType1) EnumDescriptor() ([]byte, []int) { |
| 66 | return fileDescriptor_de9f68860d540858, []int{0} |
| 67 | } |
| 68 | |
| 69 | type EnumType2 int32 |
| 70 | |
| 71 | const ( |
| 72 | EnumType2_duplicate1 EnumType2 = 1 |
| 73 | EnumType2_duplicate2 EnumType2 = 1 |
| 74 | ) |
| 75 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 76 | func (e EnumType2) Type() protoreflect.EnumType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 77 | return xxx_Enum_protoFile_EnumTypes[1] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 78 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 79 | func (e EnumType2) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 80 | return protoreflect.EnumNumber(e) |
| 81 | } |
| 82 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 83 | var EnumType2_name = map[int32]string{ |
| 84 | 1: "duplicate1", |
| 85 | // Duplicate value: 1: "duplicate2", |
| 86 | } |
| 87 | |
| 88 | var EnumType2_value = map[string]int32{ |
| 89 | "duplicate1": 1, |
| 90 | "duplicate2": 1, |
| 91 | } |
| 92 | |
| 93 | func (x EnumType2) Enum() *EnumType2 { |
| 94 | p := new(EnumType2) |
| 95 | *p = x |
| 96 | return p |
| 97 | } |
| 98 | |
| 99 | func (x EnumType2) String() string { |
| 100 | return proto.EnumName(EnumType2_name, int32(x)) |
| 101 | } |
| 102 | |
| 103 | func (x *EnumType2) UnmarshalJSON(data []byte) error { |
| 104 | value, err := proto.UnmarshalJSONEnum(EnumType2_value, data, "EnumType2") |
| 105 | if err != nil { |
| 106 | return err |
| 107 | } |
| 108 | *x = EnumType2(value) |
| 109 | return nil |
| 110 | } |
| 111 | |
| 112 | func (EnumType2) EnumDescriptor() ([]byte, []int) { |
| 113 | return fileDescriptor_de9f68860d540858, []int{1} |
| 114 | } |
| 115 | |
| 116 | // NestedEnumType1A comment. |
| 117 | type EnumContainerMessage1_NestedEnumType1A int32 |
| 118 | |
| 119 | const ( |
| 120 | // NestedEnumType1A_VALUE comment. |
| 121 | EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0 |
| 122 | ) |
| 123 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 124 | func (e EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 125 | return xxx_Enum_protoFile_EnumTypes[2] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 126 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 127 | func (e EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 128 | return protoreflect.EnumNumber(e) |
| 129 | } |
| 130 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 131 | var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{ |
| 132 | 0: "NESTED_1A_VALUE", |
| 133 | } |
| 134 | |
| 135 | var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{ |
| 136 | "NESTED_1A_VALUE": 0, |
| 137 | } |
| 138 | |
| 139 | func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A { |
| 140 | p := new(EnumContainerMessage1_NestedEnumType1A) |
| 141 | *p = x |
| 142 | return p |
| 143 | } |
| 144 | |
| 145 | func (x EnumContainerMessage1_NestedEnumType1A) String() string { |
| 146 | return proto.EnumName(EnumContainerMessage1_NestedEnumType1A_name, int32(x)) |
| 147 | } |
| 148 | |
| 149 | func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(data []byte) error { |
| 150 | value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1A_value, data, "EnumContainerMessage1_NestedEnumType1A") |
| 151 | if err != nil { |
| 152 | return err |
| 153 | } |
| 154 | *x = EnumContainerMessage1_NestedEnumType1A(value) |
| 155 | return nil |
| 156 | } |
| 157 | |
| 158 | func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) { |
| 159 | return fileDescriptor_de9f68860d540858, []int{0, 0} |
| 160 | } |
| 161 | |
| 162 | type EnumContainerMessage1_NestedEnumType1B int32 |
| 163 | |
| 164 | const ( |
| 165 | EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0 |
| 166 | ) |
| 167 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 168 | func (e EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 169 | return xxx_Enum_protoFile_EnumTypes[3] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 170 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 171 | func (e EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 172 | return protoreflect.EnumNumber(e) |
| 173 | } |
| 174 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 175 | var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{ |
| 176 | 0: "NESTED_1B_VALUE", |
| 177 | } |
| 178 | |
| 179 | var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{ |
| 180 | "NESTED_1B_VALUE": 0, |
| 181 | } |
| 182 | |
| 183 | func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B { |
| 184 | p := new(EnumContainerMessage1_NestedEnumType1B) |
| 185 | *p = x |
| 186 | return p |
| 187 | } |
| 188 | |
| 189 | func (x EnumContainerMessage1_NestedEnumType1B) String() string { |
| 190 | return proto.EnumName(EnumContainerMessage1_NestedEnumType1B_name, int32(x)) |
| 191 | } |
| 192 | |
| 193 | func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(data []byte) error { |
| 194 | value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1B_value, data, "EnumContainerMessage1_NestedEnumType1B") |
| 195 | if err != nil { |
| 196 | return err |
| 197 | } |
| 198 | *x = EnumContainerMessage1_NestedEnumType1B(value) |
| 199 | return nil |
| 200 | } |
| 201 | |
| 202 | func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) { |
| 203 | return fileDescriptor_de9f68860d540858, []int{0, 1} |
| 204 | } |
| 205 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 206 | // NestedEnumType2A comment. |
| 207 | type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32 |
| 208 | |
| 209 | const ( |
| 210 | // NestedEnumType2A_VALUE comment. |
| 211 | EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0 |
| 212 | ) |
| 213 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 214 | func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 215 | return xxx_Enum_protoFile_EnumTypes[4] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 216 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 217 | func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 218 | return protoreflect.EnumNumber(e) |
| 219 | } |
| 220 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 221 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{ |
| 222 | 0: "NESTED_2A_VALUE", |
| 223 | } |
| 224 | |
| 225 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{ |
| 226 | "NESTED_2A_VALUE": 0, |
| 227 | } |
| 228 | |
| 229 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A { |
| 230 | p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) |
| 231 | *p = x |
| 232 | return p |
| 233 | } |
| 234 | |
| 235 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string { |
| 236 | return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, int32(x)) |
| 237 | } |
| 238 | |
| 239 | func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(data []byte) error { |
| 240 | value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A") |
| 241 | if err != nil { |
| 242 | return err |
| 243 | } |
| 244 | *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(value) |
| 245 | return nil |
| 246 | } |
| 247 | |
| 248 | func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) { |
| 249 | return fileDescriptor_de9f68860d540858, []int{0, 0, 0} |
| 250 | } |
| 251 | |
| 252 | type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32 |
| 253 | |
| 254 | const ( |
| 255 | EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0 |
| 256 | ) |
| 257 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 258 | func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 259 | return xxx_Enum_protoFile_EnumTypes[5] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 260 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 261 | func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 262 | return protoreflect.EnumNumber(e) |
| 263 | } |
| 264 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 265 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{ |
| 266 | 0: "NESTED_2B_VALUE", |
| 267 | } |
| 268 | |
| 269 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{ |
| 270 | "NESTED_2B_VALUE": 0, |
| 271 | } |
| 272 | |
| 273 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B { |
| 274 | p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) |
| 275 | *p = x |
| 276 | return p |
| 277 | } |
| 278 | |
| 279 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string { |
| 280 | return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, int32(x)) |
| 281 | } |
| 282 | |
| 283 | func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(data []byte) error { |
| 284 | value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B") |
| 285 | if err != nil { |
| 286 | return err |
| 287 | } |
| 288 | *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(value) |
| 289 | return nil |
| 290 | } |
| 291 | |
| 292 | func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) { |
| 293 | return fileDescriptor_de9f68860d540858, []int{0, 0, 1} |
| 294 | } |
| 295 | |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 296 | type EnumContainerMessage1 struct { |
Damien Neil | a485fbd | 2018-10-26 13:28:37 -0700 | [diff] [blame] | 297 | DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"` |
| 298 | DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"` |
| 299 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 300 | XXX_unrecognized []byte `json:"-"` |
| 301 | XXX_sizecache int32 `json:"-"` |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 302 | } |
| 303 | |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 304 | type xxx_EnumContainerMessage1 struct{ m *EnumContainerMessage1 } |
| 305 | |
| 306 | func (m *EnumContainerMessage1) ProtoReflect() protoreflect.Message { |
| 307 | return xxx_EnumContainerMessage1{m} |
| 308 | } |
| 309 | func (m xxx_EnumContainerMessage1) Type() protoreflect.MessageType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 310 | return xxx_Enum_protoFile_MessageTypes[0].Type |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 311 | } |
| 312 | func (m xxx_EnumContainerMessage1) KnownFields() protoreflect.KnownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 313 | return xxx_Enum_protoFile_MessageTypes[0].KnownFieldsOf(m.m) |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 314 | } |
| 315 | func (m xxx_EnumContainerMessage1) UnknownFields() protoreflect.UnknownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 316 | return xxx_Enum_protoFile_MessageTypes[0].UnknownFieldsOf(m.m) |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 317 | } |
| 318 | func (m xxx_EnumContainerMessage1) Interface() protoreflect.ProtoMessage { |
| 319 | return m.m |
| 320 | } |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 321 | |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 322 | func (m *EnumContainerMessage1) Reset() { *m = EnumContainerMessage1{} } |
| 323 | func (m *EnumContainerMessage1) String() string { return proto.CompactTextString(m) } |
| 324 | func (*EnumContainerMessage1) ProtoMessage() {} |
| 325 | func (*EnumContainerMessage1) Descriptor() ([]byte, []int) { |
| 326 | return fileDescriptor_de9f68860d540858, []int{0} |
| 327 | } |
Damien Neil | 993c04d | 2018-09-14 15:41:11 -0700 | [diff] [blame] | 328 | |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 329 | func (m *EnumContainerMessage1) XXX_Unmarshal(b []byte) error { |
| 330 | return xxx_messageInfo_EnumContainerMessage1.Unmarshal(m, b) |
| 331 | } |
| 332 | func (m *EnumContainerMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 333 | return xxx_messageInfo_EnumContainerMessage1.Marshal(b, m, deterministic) |
| 334 | } |
| 335 | func (m *EnumContainerMessage1) XXX_Merge(src proto.Message) { |
| 336 | xxx_messageInfo_EnumContainerMessage1.Merge(m, src) |
| 337 | } |
| 338 | func (m *EnumContainerMessage1) XXX_Size() int { |
| 339 | return xxx_messageInfo_EnumContainerMessage1.Size(m) |
| 340 | } |
| 341 | func (m *EnumContainerMessage1) XXX_DiscardUnknown() { |
| 342 | xxx_messageInfo_EnumContainerMessage1.DiscardUnknown(m) |
| 343 | } |
| 344 | |
| 345 | var xxx_messageInfo_EnumContainerMessage1 proto.InternalMessageInfo |
| 346 | |
Damien Neil | a485fbd | 2018-10-26 13:28:37 -0700 | [diff] [blame] | 347 | const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1 |
| 348 | const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2 |
| 349 | |
| 350 | func (m *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 { |
| 351 | if m != nil && m.DefaultDuplicate1 != nil { |
| 352 | return *m.DefaultDuplicate1 |
| 353 | } |
| 354 | return Default_EnumContainerMessage1_DefaultDuplicate1 |
| 355 | } |
| 356 | |
| 357 | func (m *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 { |
| 358 | if m != nil && m.DefaultDuplicate2 != nil { |
| 359 | return *m.DefaultDuplicate2 |
| 360 | } |
| 361 | return Default_EnumContainerMessage1_DefaultDuplicate2 |
| 362 | } |
| 363 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 364 | type EnumContainerMessage1_EnumContainerMessage2 struct { |
Damien Neil | 658051b | 2018-09-10 12:26:21 -0700 | [diff] [blame] | 365 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 366 | XXX_unrecognized []byte `json:"-"` |
| 367 | XXX_sizecache int32 `json:"-"` |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 368 | } |
| 369 | |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 370 | type xxx_EnumContainerMessage1_EnumContainerMessage2 struct { |
| 371 | m *EnumContainerMessage1_EnumContainerMessage2 |
| 372 | } |
| 373 | |
| 374 | func (m *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message { |
| 375 | return xxx_EnumContainerMessage1_EnumContainerMessage2{m} |
| 376 | } |
| 377 | func (m xxx_EnumContainerMessage1_EnumContainerMessage2) Type() protoreflect.MessageType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 378 | return xxx_Enum_protoFile_MessageTypes[1].Type |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 379 | } |
| 380 | func (m xxx_EnumContainerMessage1_EnumContainerMessage2) KnownFields() protoreflect.KnownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 381 | return xxx_Enum_protoFile_MessageTypes[1].KnownFieldsOf(m.m) |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 382 | } |
| 383 | func (m xxx_EnumContainerMessage1_EnumContainerMessage2) UnknownFields() protoreflect.UnknownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 384 | return xxx_Enum_protoFile_MessageTypes[1].UnknownFieldsOf(m.m) |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 385 | } |
| 386 | func (m xxx_EnumContainerMessage1_EnumContainerMessage2) Interface() protoreflect.ProtoMessage { |
| 387 | return m.m |
| 388 | } |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 389 | |
Damien Neil | a1c6abc | 2018-09-12 13:36:34 -0700 | [diff] [blame] | 390 | func (m *EnumContainerMessage1_EnumContainerMessage2) Reset() { |
| 391 | *m = EnumContainerMessage1_EnumContainerMessage2{} |
| 392 | } |
| 393 | func (m *EnumContainerMessage1_EnumContainerMessage2) String() string { |
| 394 | return proto.CompactTextString(m) |
| 395 | } |
| 396 | func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {} |
| 397 | func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) { |
| 398 | return fileDescriptor_de9f68860d540858, []int{0, 0} |
| 399 | } |
Damien Neil | 993c04d | 2018-09-14 15:41:11 -0700 | [diff] [blame] | 400 | |
Damien Neil | a1c6abc | 2018-09-12 13:36:34 -0700 | [diff] [blame] | 401 | func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Unmarshal(b []byte) error { |
| 402 | return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Unmarshal(m, b) |
| 403 | } |
| 404 | func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 405 | return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Marshal(b, m, deterministic) |
| 406 | } |
| 407 | func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Merge(src proto.Message) { |
| 408 | xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Merge(m, src) |
| 409 | } |
| 410 | func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Size() int { |
| 411 | return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Size(m) |
| 412 | } |
| 413 | func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_DiscardUnknown() { |
| 414 | xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.DiscardUnknown(m) |
| 415 | } |
| 416 | |
| 417 | var xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2 proto.InternalMessageInfo |
| 418 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 419 | func init() { |
Joe Tsai | 9667c48 | 2018-12-05 15:42:52 -0800 | [diff] [blame] | 420 | proto.RegisterFile("proto2/enum.proto", fileDescriptor_de9f68860d540858) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 421 | proto.RegisterEnum("goproto.protoc.proto2.EnumType1", EnumType1_name, EnumType1_value) |
| 422 | proto.RegisterEnum("goproto.protoc.proto2.EnumType2", EnumType2_name, EnumType2_value) |
| 423 | proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1A", EnumContainerMessage1_NestedEnumType1A_name, EnumContainerMessage1_NestedEnumType1A_value) |
| 424 | proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1B", EnumContainerMessage1_NestedEnumType1B_name, EnumContainerMessage1_NestedEnumType1B_value) |
| 425 | proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value) |
| 426 | proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value) |
Damien Neil | 154da98 | 2018-09-19 13:21:58 -0700 | [diff] [blame] | 427 | proto.RegisterType((*EnumContainerMessage1)(nil), "goproto.protoc.proto2.EnumContainerMessage1") |
| 428 | proto.RegisterType((*EnumContainerMessage1_EnumContainerMessage2)(nil), "goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2") |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 429 | } |
| 430 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 431 | var fileDescriptor_de9f68860d540858 = []byte{ |
Joe Tsai | bce82b8 | 2018-12-06 09:39:03 -0800 | [diff] [blame] | 432 | // 317 bytes of a gzipped FileDescriptorProto |
| 433 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0xd0, 0xd1, 0x4b, 0xc2, 0x40, |
| 434 | 0x1c, 0x07, 0xf0, 0xb6, 0x09, 0xe9, 0x3d, 0xd8, 0xb9, 0x10, 0x44, 0x08, 0x64, 0x2f, 0x85, 0xe0, |
| 435 | 0xc6, 0xfd, 0x1e, 0x7b, 0x89, 0x99, 0xf7, 0x56, 0x4a, 0x6a, 0x06, 0xf5, 0x20, 0xe7, 0x76, 0x5e, |
| 436 | 0x03, 0x77, 0x27, 0xee, 0x2e, 0xe8, 0x9f, 0xe8, 0x6f, 0x0e, 0x5d, 0xcc, 0x45, 0x2b, 0xe8, 0x69, |
| 437 | 0xdf, 0xdf, 0x6f, 0xdf, 0x7d, 0x60, 0x3f, 0xd4, 0xda, 0xee, 0x94, 0x56, 0x10, 0x70, 0x69, 0x52, |
| 438 | 0xff, 0x90, 0xdd, 0xb6, 0x50, 0x87, 0x90, 0x8f, 0x51, 0xfe, 0x00, 0xef, 0xc3, 0x41, 0x6d, 0x2a, |
| 439 | 0x4d, 0x7a, 0xab, 0xa4, 0x66, 0x89, 0xe4, 0xbb, 0x7b, 0x9e, 0x65, 0x4c, 0x70, 0xe2, 0xbe, 0x20, |
| 440 | 0x37, 0xe6, 0x6b, 0x66, 0x36, 0x7a, 0x19, 0x9b, 0xed, 0x26, 0x89, 0x98, 0xe6, 0xa4, 0x63, 0xf5, |
| 441 | 0xac, 0xab, 0x26, 0xf4, 0xfc, 0x4a, 0xcd, 0xdf, 0x4b, 0xf3, 0xf7, 0x2d, 0x87, 0x6b, 0x74, 0xfc, |
| 442 | 0x66, 0xda, 0xfa, 0x72, 0x46, 0xc5, 0xaa, 0x12, 0x87, 0x8e, 0xfd, 0x6f, 0x1c, 0x7e, 0xe2, 0xd0, |
| 443 | 0x4d, 0xaa, 0x7f, 0x09, 0xbc, 0x4b, 0x84, 0xc7, 0x3c, 0xd3, 0x3c, 0x2e, 0xa8, 0xd0, 0x3d, 0x47, |
| 444 | 0x67, 0x63, 0x3a, 0x9b, 0xd3, 0xd1, 0x12, 0xc2, 0xe5, 0x22, 0xbc, 0x7b, 0xa4, 0xf8, 0xa4, 0xa2, |
| 445 | 0x38, 0x2c, 0x17, 0x87, 0xbf, 0x17, 0x49, 0x59, 0x24, 0x7f, 0x88, 0xa4, 0x2c, 0x92, 0x42, 0xec, |
| 446 | 0x5f, 0xa0, 0x46, 0x51, 0x71, 0x4f, 0x91, 0x33, 0x19, 0x53, 0x6c, 0xed, 0xc3, 0xfc, 0x69, 0x82, |
| 447 | 0xed, 0xfe, 0xc3, 0xf1, 0x35, 0xb8, 0x4d, 0x54, 0x3a, 0x33, 0xb6, 0xbe, 0xcd, 0x80, 0xad, 0xae, |
| 448 | 0x8d, 0x2d, 0xaf, 0x56, 0xb7, 0xb1, 0xed, 0xd5, 0xea, 0x0e, 0x76, 0xfa, 0x8d, 0x29, 0x9d, 0xd1, |
| 449 | 0xe9, 0x82, 0x8e, 0xc8, 0x31, 0xc2, 0x30, 0x7c, 0xbe, 0x11, 0x89, 0x7e, 0x35, 0x2b, 0x3f, 0x52, |
| 450 | 0x69, 0x20, 0xd4, 0x86, 0x49, 0x11, 0x1c, 0x6e, 0xbe, 0x32, 0xeb, 0xe0, 0x0d, 0x82, 0x28, 0x8d, |
| 451 | 0xf3, 0x39, 0x1a, 0x08, 0x2e, 0x07, 0x42, 0x05, 0x9a, 0x67, 0x3a, 0x66, 0x9a, 0xe5, 0x6b, 0xf8, |
| 452 | 0x0c, 0x00, 0x00, 0xff, 0xff, 0x8c, 0xcb, 0xe0, 0x01, 0x70, 0x02, 0x00, 0x00, |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 453 | } |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 454 | |
| 455 | func init() { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 456 | xxx_Enum_protoFile_FileDesc.Enums = xxx_Enum_protoFile_EnumDescs[0:2] |
| 457 | xxx_Enum_protoFile_FileDesc.Messages = xxx_Enum_protoFile_MessageDescs[0:1] |
| 458 | xxx_Enum_protoFile_MessageDescs[0].Enums = xxx_Enum_protoFile_EnumDescs[2:4] |
| 459 | xxx_Enum_protoFile_MessageDescs[0].Messages = xxx_Enum_protoFile_MessageDescs[1:2] |
| 460 | xxx_Enum_protoFile_MessageDescs[1].Enums = xxx_Enum_protoFile_EnumDescs[4:6] |
| 461 | xxx_Enum_protoFile_MessageDescs[0].Fields[0].EnumType = xxx_Enum_protoFile_EnumTypes[1] |
| 462 | xxx_Enum_protoFile_MessageDescs[0].Fields[1].EnumType = xxx_Enum_protoFile_EnumTypes[1] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 463 | var err error |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 464 | Enum_protoFile, err = prototype.NewFile(&xxx_Enum_protoFile_FileDesc) |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 465 | if err != nil { |
| 466 | panic(err) |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | const _ = protoimpl.EnforceVersion(protoimpl.Version - 0) |
| 471 | |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 472 | var Enum_protoFile protoreflect.FileDescriptor |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 473 | |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 474 | var xxx_Enum_protoFile_FileDesc = prototype.File{ |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 475 | Syntax: protoreflect.Proto2, |
| 476 | Path: "proto2/enum.proto", |
| 477 | Package: "goproto.protoc.proto2", |
| 478 | } |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 479 | var xxx_Enum_protoFile_EnumTypes = [6]protoreflect.EnumType{ |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 480 | prototype.GoEnum( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 481 | xxx_Enum_protoFile_EnumDescs[0].Reference(), |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 482 | func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 483 | return EnumType1(n) |
| 484 | }, |
| 485 | ), |
| 486 | prototype.GoEnum( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 487 | xxx_Enum_protoFile_EnumDescs[1].Reference(), |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 488 | func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 489 | return EnumType2(n) |
| 490 | }, |
| 491 | ), |
| 492 | prototype.GoEnum( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 493 | xxx_Enum_protoFile_EnumDescs[2].Reference(), |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 494 | func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 495 | return EnumContainerMessage1_NestedEnumType1A(n) |
| 496 | }, |
| 497 | ), |
| 498 | prototype.GoEnum( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 499 | xxx_Enum_protoFile_EnumDescs[3].Reference(), |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 500 | func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 501 | return EnumContainerMessage1_NestedEnumType1B(n) |
| 502 | }, |
| 503 | ), |
| 504 | prototype.GoEnum( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 505 | xxx_Enum_protoFile_EnumDescs[4].Reference(), |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 506 | func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 507 | return EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(n) |
| 508 | }, |
| 509 | ), |
| 510 | prototype.GoEnum( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 511 | xxx_Enum_protoFile_EnumDescs[5].Reference(), |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 512 | func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 513 | return EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(n) |
| 514 | }, |
| 515 | ), |
| 516 | } |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 517 | var xxx_Enum_protoFile_EnumDescs = [6]prototype.Enum{ |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 518 | { |
| 519 | Name: "EnumType1", |
| 520 | Values: []prototype.EnumValue{ |
| 521 | {Name: "ONE", Number: 1}, |
| 522 | {Name: "TWO", Number: 2}, |
| 523 | }, |
| 524 | }, |
| 525 | { |
| 526 | Name: "EnumType2", |
| 527 | Values: []prototype.EnumValue{ |
| 528 | {Name: "duplicate1", Number: 1}, |
| 529 | {Name: "duplicate2", Number: 1}, |
| 530 | }, |
Joe Tsai | bce82b8 | 2018-12-06 09:39:03 -0800 | [diff] [blame] | 531 | ReservedNames: []protoreflect.Name{"RESERVED1", "RESERVED2"}, |
| 532 | ReservedRanges: [][2]protoreflect.EnumNumber{{2, 2}, {3, 3}}, |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 533 | }, |
| 534 | { |
| 535 | Name: "NestedEnumType1A", |
| 536 | Values: []prototype.EnumValue{ |
| 537 | {Name: "NESTED_1A_VALUE", Number: 0}, |
| 538 | }, |
| 539 | }, |
| 540 | { |
| 541 | Name: "NestedEnumType1B", |
| 542 | Values: []prototype.EnumValue{ |
| 543 | {Name: "NESTED_1B_VALUE", Number: 0}, |
| 544 | }, |
| 545 | }, |
| 546 | { |
| 547 | Name: "NestedEnumType2A", |
| 548 | Values: []prototype.EnumValue{ |
| 549 | {Name: "NESTED_2A_VALUE", Number: 0}, |
| 550 | }, |
| 551 | }, |
| 552 | { |
| 553 | Name: "NestedEnumType2B", |
| 554 | Values: []prototype.EnumValue{ |
| 555 | {Name: "NESTED_2B_VALUE", Number: 0}, |
| 556 | }, |
| 557 | }, |
| 558 | } |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 559 | var xxx_Enum_protoFile_MessageTypes = [2]protoimpl.MessageType{ |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 560 | {Type: prototype.GoMessage( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 561 | xxx_Enum_protoFile_MessageDescs[0].Reference(), |
Joe Tsai | 3bc7d6f | 2019-01-09 02:57:13 -0800 | [diff] [blame] | 562 | func(protoreflect.MessageType) protoreflect.Message { |
| 563 | return xxx_EnumContainerMessage1{new(EnumContainerMessage1)} |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 564 | }, |
| 565 | )}, |
| 566 | {Type: prototype.GoMessage( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 567 | xxx_Enum_protoFile_MessageDescs[1].Reference(), |
Joe Tsai | 3bc7d6f | 2019-01-09 02:57:13 -0800 | [diff] [blame] | 568 | func(protoreflect.MessageType) protoreflect.Message { |
| 569 | return xxx_EnumContainerMessage1_EnumContainerMessage2{new(EnumContainerMessage1_EnumContainerMessage2)} |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 570 | }, |
| 571 | )}, |
| 572 | } |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame^] | 573 | var xxx_Enum_protoFile_MessageDescs = [2]prototype.Message{ |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 574 | { |
| 575 | Name: "EnumContainerMessage1", |
| 576 | Fields: []prototype.Field{ |
| 577 | { |
| 578 | Name: "default_duplicate1", |
| 579 | Number: 1, |
| 580 | Cardinality: protoreflect.Optional, |
| 581 | Kind: protoreflect.EnumKind, |
| 582 | JSONName: "defaultDuplicate1", |
| 583 | Default: protoreflect.ValueOf(string("duplicate1")), |
Damien Neil | 232ea15 | 2018-12-10 15:14:36 -0800 | [diff] [blame] | 584 | IsPacked: prototype.False, |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 585 | }, |
| 586 | { |
| 587 | Name: "default_duplicate2", |
| 588 | Number: 2, |
| 589 | Cardinality: protoreflect.Optional, |
| 590 | Kind: protoreflect.EnumKind, |
| 591 | JSONName: "defaultDuplicate2", |
| 592 | Default: protoreflect.ValueOf(string("duplicate2")), |
Damien Neil | 232ea15 | 2018-12-10 15:14:36 -0800 | [diff] [blame] | 593 | IsPacked: prototype.False, |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 594 | }, |
| 595 | }, |
| 596 | }, |
| 597 | { |
| 598 | Name: "EnumContainerMessage2", |
| 599 | }, |
| 600 | } |