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