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 | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 7 | bytes "bytes" |
| 8 | gzip "compress/gzip" |
Damien Neil | 1ec3315 | 2018-09-13 13:12:36 -0700 | [diff] [blame] | 9 | proto "github.com/golang/protobuf/proto" |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 10 | protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 11 | protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl" |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 12 | reflect "reflect" |
Damien Neil | 1ec3315 | 2018-09-13 13:12:36 -0700 | [diff] [blame] | 13 | ) |
| 14 | |
Damien Neil | d412792 | 2018-09-12 11:13:49 -0700 | [diff] [blame] | 15 | // This is a compile-time assertion to ensure that this generated file |
| 16 | // is compatible with the proto package it is being compiled against. |
| 17 | // A compilation error at this line likely means your copy of the |
| 18 | // proto package needs to be updated. |
Joe Tsai | d7e97bc | 2018-11-26 12:57:27 -0800 | [diff] [blame] | 19 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
Damien Neil | d412792 | 2018-09-12 11:13:49 -0700 | [diff] [blame] | 20 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 21 | // EnumType1 comment. |
| 22 | type EnumType1 int32 |
| 23 | |
| 24 | const ( |
| 25 | // EnumType1_ONE comment. |
| 26 | EnumType1_ONE EnumType1 = 1 |
| 27 | // EnumType1_TWO comment. |
| 28 | EnumType1_TWO EnumType1 = 2 |
| 29 | ) |
| 30 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 31 | func (e EnumType1) Type() protoreflect.EnumType { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 32 | return xxx_Enum_protoFile_enumTypes[0] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 33 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 34 | func (e EnumType1) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 35 | return protoreflect.EnumNumber(e) |
| 36 | } |
| 37 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 38 | var EnumType1_name = map[int32]string{ |
| 39 | 1: "ONE", |
| 40 | 2: "TWO", |
| 41 | } |
| 42 | |
| 43 | var EnumType1_value = map[string]int32{ |
| 44 | "ONE": 1, |
| 45 | "TWO": 2, |
| 46 | } |
| 47 | |
| 48 | func (x EnumType1) Enum() *EnumType1 { |
| 49 | p := new(EnumType1) |
| 50 | *p = x |
| 51 | return p |
| 52 | } |
| 53 | |
| 54 | func (x EnumType1) String() string { |
| 55 | return proto.EnumName(EnumType1_name, int32(x)) |
| 56 | } |
| 57 | |
| 58 | func (x *EnumType1) UnmarshalJSON(data []byte) error { |
| 59 | value, err := proto.UnmarshalJSONEnum(EnumType1_value, data, "EnumType1") |
| 60 | if err != nil { |
| 61 | return err |
| 62 | } |
| 63 | *x = EnumType1(value) |
| 64 | return nil |
| 65 | } |
| 66 | |
| 67 | func (EnumType1) EnumDescriptor() ([]byte, []int) { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 68 | return fileDescriptor_de9f68860d540858_gzipped, []int{0} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 69 | } |
| 70 | |
| 71 | type EnumType2 int32 |
| 72 | |
| 73 | const ( |
| 74 | EnumType2_duplicate1 EnumType2 = 1 |
| 75 | EnumType2_duplicate2 EnumType2 = 1 |
| 76 | ) |
| 77 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 78 | func (e EnumType2) Type() protoreflect.EnumType { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 79 | return xxx_Enum_protoFile_enumTypes[1] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 80 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 81 | func (e EnumType2) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 82 | return protoreflect.EnumNumber(e) |
| 83 | } |
| 84 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 85 | var EnumType2_name = map[int32]string{ |
| 86 | 1: "duplicate1", |
| 87 | // Duplicate value: 1: "duplicate2", |
| 88 | } |
| 89 | |
| 90 | var EnumType2_value = map[string]int32{ |
| 91 | "duplicate1": 1, |
| 92 | "duplicate2": 1, |
| 93 | } |
| 94 | |
| 95 | func (x EnumType2) Enum() *EnumType2 { |
| 96 | p := new(EnumType2) |
| 97 | *p = x |
| 98 | return p |
| 99 | } |
| 100 | |
| 101 | func (x EnumType2) String() string { |
| 102 | return proto.EnumName(EnumType2_name, int32(x)) |
| 103 | } |
| 104 | |
| 105 | func (x *EnumType2) UnmarshalJSON(data []byte) error { |
| 106 | value, err := proto.UnmarshalJSONEnum(EnumType2_value, data, "EnumType2") |
| 107 | if err != nil { |
| 108 | return err |
| 109 | } |
| 110 | *x = EnumType2(value) |
| 111 | return nil |
| 112 | } |
| 113 | |
| 114 | func (EnumType2) EnumDescriptor() ([]byte, []int) { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 115 | return fileDescriptor_de9f68860d540858_gzipped, []int{1} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 116 | } |
| 117 | |
| 118 | // NestedEnumType1A comment. |
| 119 | type EnumContainerMessage1_NestedEnumType1A int32 |
| 120 | |
| 121 | const ( |
| 122 | // NestedEnumType1A_VALUE comment. |
| 123 | EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0 |
| 124 | ) |
| 125 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 126 | func (e EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 127 | return xxx_Enum_protoFile_enumTypes[2] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 128 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 129 | func (e EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 130 | return protoreflect.EnumNumber(e) |
| 131 | } |
| 132 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 133 | var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{ |
| 134 | 0: "NESTED_1A_VALUE", |
| 135 | } |
| 136 | |
| 137 | var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{ |
| 138 | "NESTED_1A_VALUE": 0, |
| 139 | } |
| 140 | |
| 141 | func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A { |
| 142 | p := new(EnumContainerMessage1_NestedEnumType1A) |
| 143 | *p = x |
| 144 | return p |
| 145 | } |
| 146 | |
| 147 | func (x EnumContainerMessage1_NestedEnumType1A) String() string { |
| 148 | return proto.EnumName(EnumContainerMessage1_NestedEnumType1A_name, int32(x)) |
| 149 | } |
| 150 | |
| 151 | func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(data []byte) error { |
| 152 | value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1A_value, data, "EnumContainerMessage1_NestedEnumType1A") |
| 153 | if err != nil { |
| 154 | return err |
| 155 | } |
| 156 | *x = EnumContainerMessage1_NestedEnumType1A(value) |
| 157 | return nil |
| 158 | } |
| 159 | |
| 160 | func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 161 | return fileDescriptor_de9f68860d540858_gzipped, []int{0, 0} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 162 | } |
| 163 | |
| 164 | type EnumContainerMessage1_NestedEnumType1B int32 |
| 165 | |
| 166 | const ( |
| 167 | EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0 |
| 168 | ) |
| 169 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 170 | func (e EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 171 | return xxx_Enum_protoFile_enumTypes[3] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 172 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 173 | func (e EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 174 | return protoreflect.EnumNumber(e) |
| 175 | } |
| 176 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 177 | var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{ |
| 178 | 0: "NESTED_1B_VALUE", |
| 179 | } |
| 180 | |
| 181 | var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{ |
| 182 | "NESTED_1B_VALUE": 0, |
| 183 | } |
| 184 | |
| 185 | func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B { |
| 186 | p := new(EnumContainerMessage1_NestedEnumType1B) |
| 187 | *p = x |
| 188 | return p |
| 189 | } |
| 190 | |
| 191 | func (x EnumContainerMessage1_NestedEnumType1B) String() string { |
| 192 | return proto.EnumName(EnumContainerMessage1_NestedEnumType1B_name, int32(x)) |
| 193 | } |
| 194 | |
| 195 | func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(data []byte) error { |
| 196 | value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_NestedEnumType1B_value, data, "EnumContainerMessage1_NestedEnumType1B") |
| 197 | if err != nil { |
| 198 | return err |
| 199 | } |
| 200 | *x = EnumContainerMessage1_NestedEnumType1B(value) |
| 201 | return nil |
| 202 | } |
| 203 | |
| 204 | func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 205 | return fileDescriptor_de9f68860d540858_gzipped, []int{0, 1} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 206 | } |
| 207 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 208 | // NestedEnumType2A comment. |
| 209 | type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32 |
| 210 | |
| 211 | const ( |
| 212 | // NestedEnumType2A_VALUE comment. |
| 213 | EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0 |
| 214 | ) |
| 215 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 216 | func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 217 | return xxx_Enum_protoFile_enumTypes[4] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 218 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 219 | func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 220 | return protoreflect.EnumNumber(e) |
| 221 | } |
| 222 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 223 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{ |
| 224 | 0: "NESTED_2A_VALUE", |
| 225 | } |
| 226 | |
| 227 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{ |
| 228 | "NESTED_2A_VALUE": 0, |
| 229 | } |
| 230 | |
| 231 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A { |
| 232 | p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) |
| 233 | *p = x |
| 234 | return p |
| 235 | } |
| 236 | |
| 237 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string { |
| 238 | return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, int32(x)) |
| 239 | } |
| 240 | |
| 241 | func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(data []byte) error { |
| 242 | value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A") |
| 243 | if err != nil { |
| 244 | return err |
| 245 | } |
| 246 | *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(value) |
| 247 | return nil |
| 248 | } |
| 249 | |
| 250 | func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 251 | return fileDescriptor_de9f68860d540858_gzipped, []int{0, 0, 0} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 252 | } |
| 253 | |
| 254 | type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32 |
| 255 | |
| 256 | const ( |
| 257 | EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0 |
| 258 | ) |
| 259 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 260 | func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 261 | return xxx_Enum_protoFile_enumTypes[5] |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 262 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 263 | func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber { |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 264 | return protoreflect.EnumNumber(e) |
| 265 | } |
| 266 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 267 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{ |
| 268 | 0: "NESTED_2B_VALUE", |
| 269 | } |
| 270 | |
| 271 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{ |
| 272 | "NESTED_2B_VALUE": 0, |
| 273 | } |
| 274 | |
| 275 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B { |
| 276 | p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) |
| 277 | *p = x |
| 278 | return p |
| 279 | } |
| 280 | |
| 281 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string { |
| 282 | return proto.EnumName(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, int32(x)) |
| 283 | } |
| 284 | |
| 285 | func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(data []byte) error { |
| 286 | value, err := proto.UnmarshalJSONEnum(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value, data, "EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B") |
| 287 | if err != nil { |
| 288 | return err |
| 289 | } |
| 290 | *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(value) |
| 291 | return nil |
| 292 | } |
| 293 | |
| 294 | func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 295 | return fileDescriptor_de9f68860d540858_gzipped, []int{0, 0, 1} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 296 | } |
| 297 | |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 298 | type EnumContainerMessage1 struct { |
Damien Neil | a485fbd | 2018-10-26 13:28:37 -0700 | [diff] [blame] | 299 | DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"` |
| 300 | DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"` |
| 301 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 302 | XXX_unrecognized []byte `json:"-"` |
| 303 | XXX_sizecache int32 `json:"-"` |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 304 | } |
| 305 | |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 306 | func (m *EnumContainerMessage1) ProtoReflect() protoreflect.Message { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 307 | return xxx_Enum_protoFile_messageTypes[0].MessageOf(m) |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 308 | } |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 309 | func (m *EnumContainerMessage1) Reset() { *m = EnumContainerMessage1{} } |
| 310 | func (m *EnumContainerMessage1) String() string { return proto.CompactTextString(m) } |
| 311 | func (*EnumContainerMessage1) ProtoMessage() {} |
| 312 | func (*EnumContainerMessage1) Descriptor() ([]byte, []int) { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 313 | return fileDescriptor_de9f68860d540858_gzipped, []int{0} |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 314 | } |
Damien Neil | 993c04d | 2018-09-14 15:41:11 -0700 | [diff] [blame] | 315 | |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 316 | func (m *EnumContainerMessage1) XXX_Unmarshal(b []byte) error { |
| 317 | return xxx_messageInfo_EnumContainerMessage1.Unmarshal(m, b) |
| 318 | } |
| 319 | func (m *EnumContainerMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 320 | return xxx_messageInfo_EnumContainerMessage1.Marshal(b, m, deterministic) |
| 321 | } |
| 322 | func (m *EnumContainerMessage1) XXX_Merge(src proto.Message) { |
| 323 | xxx_messageInfo_EnumContainerMessage1.Merge(m, src) |
| 324 | } |
| 325 | func (m *EnumContainerMessage1) XXX_Size() int { |
| 326 | return xxx_messageInfo_EnumContainerMessage1.Size(m) |
| 327 | } |
| 328 | func (m *EnumContainerMessage1) XXX_DiscardUnknown() { |
| 329 | xxx_messageInfo_EnumContainerMessage1.DiscardUnknown(m) |
| 330 | } |
| 331 | |
| 332 | var xxx_messageInfo_EnumContainerMessage1 proto.InternalMessageInfo |
| 333 | |
Damien Neil | a485fbd | 2018-10-26 13:28:37 -0700 | [diff] [blame] | 334 | const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1 |
| 335 | const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2 |
| 336 | |
| 337 | func (m *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 { |
| 338 | if m != nil && m.DefaultDuplicate1 != nil { |
| 339 | return *m.DefaultDuplicate1 |
| 340 | } |
| 341 | return Default_EnumContainerMessage1_DefaultDuplicate1 |
| 342 | } |
| 343 | |
| 344 | func (m *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 { |
| 345 | if m != nil && m.DefaultDuplicate2 != nil { |
| 346 | return *m.DefaultDuplicate2 |
| 347 | } |
| 348 | return Default_EnumContainerMessage1_DefaultDuplicate2 |
| 349 | } |
| 350 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 351 | type EnumContainerMessage1_EnumContainerMessage2 struct { |
Damien Neil | 658051b | 2018-09-10 12:26:21 -0700 | [diff] [blame] | 352 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 353 | XXX_unrecognized []byte `json:"-"` |
| 354 | XXX_sizecache int32 `json:"-"` |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 355 | } |
| 356 | |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 357 | func (m *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 358 | return xxx_Enum_protoFile_messageTypes[1].MessageOf(m) |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 359 | } |
Damien Neil | a1c6abc | 2018-09-12 13:36:34 -0700 | [diff] [blame] | 360 | func (m *EnumContainerMessage1_EnumContainerMessage2) Reset() { |
| 361 | *m = EnumContainerMessage1_EnumContainerMessage2{} |
| 362 | } |
| 363 | func (m *EnumContainerMessage1_EnumContainerMessage2) String() string { |
| 364 | return proto.CompactTextString(m) |
| 365 | } |
| 366 | func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {} |
| 367 | func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 368 | return fileDescriptor_de9f68860d540858_gzipped, []int{0, 0} |
Damien Neil | a1c6abc | 2018-09-12 13:36:34 -0700 | [diff] [blame] | 369 | } |
Damien Neil | 993c04d | 2018-09-14 15:41:11 -0700 | [diff] [blame] | 370 | |
Damien Neil | a1c6abc | 2018-09-12 13:36:34 -0700 | [diff] [blame] | 371 | func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Unmarshal(b []byte) error { |
| 372 | return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Unmarshal(m, b) |
| 373 | } |
| 374 | func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 375 | return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Marshal(b, m, deterministic) |
| 376 | } |
| 377 | func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Merge(src proto.Message) { |
| 378 | xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Merge(m, src) |
| 379 | } |
| 380 | func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Size() int { |
| 381 | return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Size(m) |
| 382 | } |
| 383 | func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_DiscardUnknown() { |
| 384 | xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.DiscardUnknown(m) |
| 385 | } |
| 386 | |
| 387 | var xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2 proto.InternalMessageInfo |
| 388 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 389 | func init() { |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 390 | proto.RegisterFile("proto2/enum.proto", fileDescriptor_de9f68860d540858_gzipped) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 391 | proto.RegisterEnum("goproto.protoc.proto2.EnumType1", EnumType1_name, EnumType1_value) |
| 392 | proto.RegisterEnum("goproto.protoc.proto2.EnumType2", EnumType2_name, EnumType2_value) |
| 393 | proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1A", EnumContainerMessage1_NestedEnumType1A_name, EnumContainerMessage1_NestedEnumType1A_value) |
| 394 | proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1B", EnumContainerMessage1_NestedEnumType1B_name, EnumContainerMessage1_NestedEnumType1B_value) |
| 395 | proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value) |
| 396 | 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] | 397 | proto.RegisterType((*EnumContainerMessage1)(nil), "goproto.protoc.proto2.EnumContainerMessage1") |
| 398 | proto.RegisterType((*EnumContainerMessage1_EnumContainerMessage2)(nil), "goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2") |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 399 | } |
| 400 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 401 | var fileDescriptor_de9f68860d540858 = []byte{ |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 402 | // 624 bytes of the wire-encoded FileDescriptorProto |
| 403 | 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, |
| 404 | 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, |
| 405 | 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45, |
| 406 | 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, |
| 407 | 0x61, 0x67, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, |
| 408 | 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, |
| 409 | 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 410 | 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, |
| 411 | 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11, |
| 412 | 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, |
| 413 | 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70, |
| 414 | 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, |
| 415 | 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, |
| 416 | 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a, |
| 417 | 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66, |
| 418 | 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69, |
| 419 | 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, |
| 420 | 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, |
| 421 | 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e, |
| 422 | 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, |
| 423 | 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, |
| 424 | 0x70, 0x65, 0x32, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, |
| 425 | 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, |
| 426 | 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a, |
| 427 | 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, |
| 428 | 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, |
| 429 | 0x54, 0x79, 0x70, 0x65, 0x31, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, |
| 430 | 0x5f, 0x31, 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45, |
| 431 | 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, |
| 432 | 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e, |
| 433 | 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, |
| 434 | 0x63, 0x61, 0x74, 0x65, 0x31, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, |
| 435 | 0x63, 0x61, 0x74, 0x65, 0x32, 0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10, |
| 436 | 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, |
| 437 | 0x44, 0x31, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x41, 0x5a, |
| 438 | 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, |
| 439 | 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x63, |
| 440 | 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, |
| 441 | 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 442 | } |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 443 | |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 444 | var fileDescriptor_de9f68860d540858_gzipped = func() []byte { |
| 445 | bb := new(bytes.Buffer) |
| 446 | zw, _ := gzip.NewWriterLevel(bb, gzip.NoCompression) |
| 447 | zw.Write(fileDescriptor_de9f68860d540858) |
| 448 | zw.Close() |
| 449 | return bb.Bytes() |
| 450 | }() |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 451 | |
| 452 | const _ = protoimpl.EnforceVersion(protoimpl.Version - 0) |
| 453 | |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 454 | var Enum_protoFile protoreflect.FileDescriptor |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 455 | |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 456 | var xxx_Enum_protoFile_enumTypes [6]protoreflect.EnumType |
| 457 | var xxx_Enum_protoFile_messageTypes [2]protoimpl.MessageType |
| 458 | var xxx_Enum_protoFile_goTypes = []interface{}{ |
| 459 | (EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1 |
| 460 | (EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2 |
| 461 | (EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A |
| 462 | (EnumContainerMessage1_NestedEnumType1B)(0), // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B |
| 463 | (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A |
| 464 | (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B |
| 465 | (*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1 |
| 466 | (*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2 |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 467 | } |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 468 | var xxx_Enum_protoFile_depIdxs = []int32{ |
| 469 | 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2 |
| 470 | 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2 |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 471 | } |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame^] | 472 | |
| 473 | func init() { |
| 474 | var messageTypes [2]protoreflect.MessageType |
| 475 | Enum_protoFile = protoimpl.FileBuilder{ |
| 476 | RawDescriptor: fileDescriptor_de9f68860d540858, |
| 477 | GoTypes: xxx_Enum_protoFile_goTypes, |
| 478 | DependencyIndexes: xxx_Enum_protoFile_depIdxs, |
| 479 | EnumOutputTypes: xxx_Enum_protoFile_enumTypes[:], |
| 480 | MessageOutputTypes: messageTypes[:], |
| 481 | }.Init() |
| 482 | messageGoTypes := xxx_Enum_protoFile_goTypes[6:][:2] |
| 483 | for i, mt := range messageTypes[:] { |
| 484 | xxx_Enum_protoFile_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i]) |
| 485 | xxx_Enum_protoFile_messageTypes[i].PBType = mt |
| 486 | } |
| 487 | xxx_Enum_protoFile_goTypes = nil |
| 488 | xxx_Enum_protoFile_depIdxs = nil |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 489 | } |