blob: 958b1d89940a3c37fbe01dc8c0384b77b4a2912f [file] [log] [blame]
Damien Neil46abb572018-09-07 12:45:37 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: proto2/enum.proto
3
4package proto2
5
Damien Neil1ec33152018-09-13 13:12:36 -07006import (
Damien Neil1ec33152018-09-13 13:12:36 -07007 proto "github.com/golang/protobuf/proto"
Joe Tsaib6405bd2018-11-15 14:44:37 -08008 protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
Joe Tsaib6405bd2018-11-15 14:44:37 -08009 protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
Damien Neil8012b442019-01-18 09:32:24 -080010 reflect "reflect"
Damien Neil1ec33152018-09-13 13:12:36 -070011)
12
Damien Neil46abb572018-09-07 12:45:37 -070013// EnumType1 comment.
14type EnumType1 int32
15
16const (
17 // EnumType1_ONE comment.
18 EnumType1_ONE EnumType1 = 1
19 // EnumType1_TWO comment.
20 EnumType1_TWO EnumType1 = 2
21)
22
Damien Neila8593ba2019-01-08 16:18:07 -080023func (e EnumType1) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -080024 return xxx_File_proto2_enum_proto_enumTypes[0]
Joe Tsaib6405bd2018-11-15 14:44:37 -080025}
Damien Neila8593ba2019-01-08 16:18:07 -080026func (e EnumType1) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -080027 return protoreflect.EnumNumber(e)
28}
29
Joe Tsai8e506a82019-03-16 00:05:34 -070030// Deprecated: Use EnumType1.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070031var EnumType1_name = map[int32]string{
32 1: "ONE",
33 2: "TWO",
34}
35
Joe Tsai8e506a82019-03-16 00:05:34 -070036// Deprecated: Use EnumType1.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070037var EnumType1_value = map[string]int32{
38 "ONE": 1,
39 "TWO": 2,
40}
41
42func (x EnumType1) Enum() *EnumType1 {
Joe Tsai8e506a82019-03-16 00:05:34 -070043 return &x
Damien Neil46abb572018-09-07 12:45:37 -070044}
45
46func (x EnumType1) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070047 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -070048}
49
Joe Tsai8e506a82019-03-16 00:05:34 -070050// Deprecated: Do not use.
51func (x *EnumType1) UnmarshalJSON(b []byte) error {
52 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -070053 if err != nil {
54 return err
55 }
Joe Tsai8e506a82019-03-16 00:05:34 -070056 *x = EnumType1(num)
Damien Neil46abb572018-09-07 12:45:37 -070057 return nil
58}
59
Joe Tsai8e506a82019-03-16 00:05:34 -070060// Deprecated: Use EnumType1.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -070061func (EnumType1) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -080062 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0}
Damien Neil46abb572018-09-07 12:45:37 -070063}
64
65type EnumType2 int32
66
67const (
68 EnumType2_duplicate1 EnumType2 = 1
69 EnumType2_duplicate2 EnumType2 = 1
70)
71
Damien Neila8593ba2019-01-08 16:18:07 -080072func (e EnumType2) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -080073 return xxx_File_proto2_enum_proto_enumTypes[1]
Joe Tsaib6405bd2018-11-15 14:44:37 -080074}
Damien Neila8593ba2019-01-08 16:18:07 -080075func (e EnumType2) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -080076 return protoreflect.EnumNumber(e)
77}
78
Joe Tsai8e506a82019-03-16 00:05:34 -070079// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070080var EnumType2_name = map[int32]string{
81 1: "duplicate1",
82 // Duplicate value: 1: "duplicate2",
83}
84
Joe Tsai8e506a82019-03-16 00:05:34 -070085// Deprecated: Use EnumType2.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -070086var EnumType2_value = map[string]int32{
87 "duplicate1": 1,
88 "duplicate2": 1,
89}
90
91func (x EnumType2) Enum() *EnumType2 {
Joe Tsai8e506a82019-03-16 00:05:34 -070092 return &x
Damien Neil46abb572018-09-07 12:45:37 -070093}
94
95func (x EnumType2) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070096 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -070097}
98
Joe Tsai8e506a82019-03-16 00:05:34 -070099// Deprecated: Do not use.
100func (x *EnumType2) UnmarshalJSON(b []byte) error {
101 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700102 if err != nil {
103 return err
104 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700105 *x = EnumType2(num)
Damien Neil46abb572018-09-07 12:45:37 -0700106 return nil
107}
108
Joe Tsai8e506a82019-03-16 00:05:34 -0700109// Deprecated: Use EnumType2.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700110func (EnumType2) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800111 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{1}
Damien Neil46abb572018-09-07 12:45:37 -0700112}
113
114// NestedEnumType1A comment.
115type EnumContainerMessage1_NestedEnumType1A int32
116
117const (
118 // NestedEnumType1A_VALUE comment.
119 EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
120)
121
Damien Neila8593ba2019-01-08 16:18:07 -0800122func (e EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800123 return xxx_File_proto2_enum_proto_enumTypes[2]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800124}
Damien Neila8593ba2019-01-08 16:18:07 -0800125func (e EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800126 return protoreflect.EnumNumber(e)
127}
128
Joe Tsai8e506a82019-03-16 00:05:34 -0700129// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700130var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{
131 0: "NESTED_1A_VALUE",
132}
133
Joe Tsai8e506a82019-03-16 00:05:34 -0700134// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700135var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{
136 "NESTED_1A_VALUE": 0,
137}
138
139func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
Joe Tsai8e506a82019-03-16 00:05:34 -0700140 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700141}
142
143func (x EnumContainerMessage1_NestedEnumType1A) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700144 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700145}
146
Joe Tsai8e506a82019-03-16 00:05:34 -0700147// Deprecated: Do not use.
148func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(b []byte) error {
149 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700150 if err != nil {
151 return err
152 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700153 *x = EnumContainerMessage1_NestedEnumType1A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700154 return nil
155}
156
Joe Tsai8e506a82019-03-16 00:05:34 -0700157// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700158func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800159 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700160}
161
162type EnumContainerMessage1_NestedEnumType1B int32
163
164const (
165 EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
166)
167
Damien Neila8593ba2019-01-08 16:18:07 -0800168func (e EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800169 return xxx_File_proto2_enum_proto_enumTypes[3]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800170}
Damien Neila8593ba2019-01-08 16:18:07 -0800171func (e EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800172 return protoreflect.EnumNumber(e)
173}
174
Joe Tsai8e506a82019-03-16 00:05:34 -0700175// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700176var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{
177 0: "NESTED_1B_VALUE",
178}
179
Joe Tsai8e506a82019-03-16 00:05:34 -0700180// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700181var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
182 "NESTED_1B_VALUE": 0,
183}
184
185func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
Joe Tsai8e506a82019-03-16 00:05:34 -0700186 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700187}
188
189func (x EnumContainerMessage1_NestedEnumType1B) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700190 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700191}
192
Joe Tsai8e506a82019-03-16 00:05:34 -0700193// Deprecated: Do not use.
194func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(b []byte) error {
195 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700196 if err != nil {
197 return err
198 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700199 *x = EnumContainerMessage1_NestedEnumType1B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700200 return nil
201}
202
Joe Tsai8e506a82019-03-16 00:05:34 -0700203// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700204func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800205 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700206}
207
Damien Neil46abb572018-09-07 12:45:37 -0700208// NestedEnumType2A comment.
209type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
210
211const (
212 // NestedEnumType2A_VALUE comment.
213 EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
214)
215
Damien Neila8593ba2019-01-08 16:18:07 -0800216func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800217 return xxx_File_proto2_enum_proto_enumTypes[4]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800218}
Damien Neila8593ba2019-01-08 16:18:07 -0800219func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800220 return protoreflect.EnumNumber(e)
221}
222
Joe Tsai8e506a82019-03-16 00:05:34 -0700223// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700224var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{
225 0: "NESTED_2A_VALUE",
226}
227
Joe Tsai8e506a82019-03-16 00:05:34 -0700228// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700229var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
230 "NESTED_2A_VALUE": 0,
231}
232
233func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
Joe Tsai8e506a82019-03-16 00:05:34 -0700234 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700235}
236
237func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700238 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700239}
240
Joe Tsai8e506a82019-03-16 00:05:34 -0700241// Deprecated: Do not use.
242func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(b []byte) error {
243 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700244 if err != nil {
245 return err
246 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700247 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(num)
Damien Neil46abb572018-09-07 12:45:37 -0700248 return nil
249}
250
Joe Tsai8e506a82019-03-16 00:05:34 -0700251// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700252func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800253 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0, 0, 0}
Damien Neil46abb572018-09-07 12:45:37 -0700254}
255
256type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
257
258const (
259 EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
260)
261
Damien Neila8593ba2019-01-08 16:18:07 -0800262func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
Joe Tsai40692112019-02-27 20:25:51 -0800263 return xxx_File_proto2_enum_proto_enumTypes[5]
Joe Tsaib6405bd2018-11-15 14:44:37 -0800264}
Damien Neila8593ba2019-01-08 16:18:07 -0800265func (e EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
Joe Tsaib6405bd2018-11-15 14:44:37 -0800266 return protoreflect.EnumNumber(e)
267}
268
Joe Tsai8e506a82019-03-16 00:05:34 -0700269// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700270var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{
271 0: "NESTED_2B_VALUE",
272}
273
Joe Tsai8e506a82019-03-16 00:05:34 -0700274// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead.
Damien Neil46abb572018-09-07 12:45:37 -0700275var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
276 "NESTED_2B_VALUE": 0,
277}
278
279func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
Joe Tsai8e506a82019-03-16 00:05:34 -0700280 return &x
Damien Neil46abb572018-09-07 12:45:37 -0700281}
282
283func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -0700284 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Damien Neil46abb572018-09-07 12:45:37 -0700285}
286
Joe Tsai8e506a82019-03-16 00:05:34 -0700287// Deprecated: Do not use.
288func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(b []byte) error {
289 num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b)
Damien Neil46abb572018-09-07 12:45:37 -0700290 if err != nil {
291 return err
292 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700293 *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(num)
Damien Neil46abb572018-09-07 12:45:37 -0700294 return nil
295}
296
Joe Tsai8e506a82019-03-16 00:05:34 -0700297// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type instead.
Damien Neil46abb572018-09-07 12:45:37 -0700298func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800299 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0, 0, 1}
Damien Neil46abb572018-09-07 12:45:37 -0700300}
301
Damien Neilce36f8d2018-09-13 15:19:08 -0700302type EnumContainerMessage1 struct {
Damien Neila485fbd2018-10-26 13:28:37 -0700303 DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
304 DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
305 XXX_NoUnkeyedLiteral struct{} `json:"-"`
306 XXX_unrecognized []byte `json:"-"`
307 XXX_sizecache int32 `json:"-"`
Damien Neilce36f8d2018-09-13 15:19:08 -0700308}
309
Joe Tsaib6405bd2018-11-15 14:44:37 -0800310func (m *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
Joe Tsai40692112019-02-27 20:25:51 -0800311 return xxx_File_proto2_enum_proto_messageTypes[0].MessageOf(m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800312}
Damien Neilce36f8d2018-09-13 15:19:08 -0700313func (m *EnumContainerMessage1) Reset() { *m = EnumContainerMessage1{} }
314func (m *EnumContainerMessage1) String() string { return proto.CompactTextString(m) }
315func (*EnumContainerMessage1) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700316
317// Deprecated: Use EnumContainerMessage1.ProtoReflect.Type instead.
Damien Neilce36f8d2018-09-13 15:19:08 -0700318func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800319 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0}
Damien Neilce36f8d2018-09-13 15:19:08 -0700320}
Damien Neil993c04d2018-09-14 15:41:11 -0700321
Damien Neilce36f8d2018-09-13 15:19:08 -0700322func (m *EnumContainerMessage1) XXX_Unmarshal(b []byte) error {
323 return xxx_messageInfo_EnumContainerMessage1.Unmarshal(m, b)
324}
325func (m *EnumContainerMessage1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
326 return xxx_messageInfo_EnumContainerMessage1.Marshal(b, m, deterministic)
327}
328func (m *EnumContainerMessage1) XXX_Merge(src proto.Message) {
329 xxx_messageInfo_EnumContainerMessage1.Merge(m, src)
330}
331func (m *EnumContainerMessage1) XXX_Size() int {
332 return xxx_messageInfo_EnumContainerMessage1.Size(m)
333}
334func (m *EnumContainerMessage1) XXX_DiscardUnknown() {
335 xxx_messageInfo_EnumContainerMessage1.DiscardUnknown(m)
336}
337
338var xxx_messageInfo_EnumContainerMessage1 proto.InternalMessageInfo
339
Damien Neila485fbd2018-10-26 13:28:37 -0700340const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
341const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
342
343func (m *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
344 if m != nil && m.DefaultDuplicate1 != nil {
345 return *m.DefaultDuplicate1
346 }
347 return Default_EnumContainerMessage1_DefaultDuplicate1
348}
349
350func (m *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
351 if m != nil && m.DefaultDuplicate2 != nil {
352 return *m.DefaultDuplicate2
353 }
354 return Default_EnumContainerMessage1_DefaultDuplicate2
355}
356
Damien Neil46abb572018-09-07 12:45:37 -0700357type EnumContainerMessage1_EnumContainerMessage2 struct {
Damien Neil658051b2018-09-10 12:26:21 -0700358 XXX_NoUnkeyedLiteral struct{} `json:"-"`
359 XXX_unrecognized []byte `json:"-"`
360 XXX_sizecache int32 `json:"-"`
Damien Neil46abb572018-09-07 12:45:37 -0700361}
362
Joe Tsaib6405bd2018-11-15 14:44:37 -0800363func (m *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
Joe Tsai40692112019-02-27 20:25:51 -0800364 return xxx_File_proto2_enum_proto_messageTypes[1].MessageOf(m)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800365}
Damien Neila1c6abc2018-09-12 13:36:34 -0700366func (m *EnumContainerMessage1_EnumContainerMessage2) Reset() {
367 *m = EnumContainerMessage1_EnumContainerMessage2{}
368}
369func (m *EnumContainerMessage1_EnumContainerMessage2) String() string {
370 return proto.CompactTextString(m)
371}
372func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700373
374// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Type instead.
Damien Neila1c6abc2018-09-12 13:36:34 -0700375func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
Joe Tsai40692112019-02-27 20:25:51 -0800376 return xxx_File_proto2_enum_proto_rawdesc_gzipped, []int{0, 0}
Damien Neila1c6abc2018-09-12 13:36:34 -0700377}
Damien Neil993c04d2018-09-14 15:41:11 -0700378
Damien Neila1c6abc2018-09-12 13:36:34 -0700379func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Unmarshal(b []byte) error {
380 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Unmarshal(m, b)
381}
382func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
383 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Marshal(b, m, deterministic)
384}
385func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Merge(src proto.Message) {
386 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Merge(m, src)
387}
388func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Size() int {
389 return xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.Size(m)
390}
391func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_DiscardUnknown() {
392 xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2.DiscardUnknown(m)
393}
394
395var xxx_messageInfo_EnumContainerMessage1_EnumContainerMessage2 proto.InternalMessageInfo
396
Damien Neil46abb572018-09-07 12:45:37 -0700397func init() {
Joe Tsai40692112019-02-27 20:25:51 -0800398 proto.RegisterFile("proto2/enum.proto", xxx_File_proto2_enum_proto_rawdesc_gzipped)
Damien Neil46abb572018-09-07 12:45:37 -0700399 proto.RegisterEnum("goproto.protoc.proto2.EnumType1", EnumType1_name, EnumType1_value)
400 proto.RegisterEnum("goproto.protoc.proto2.EnumType2", EnumType2_name, EnumType2_value)
401 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1A", EnumContainerMessage1_NestedEnumType1A_name, EnumContainerMessage1_NestedEnumType1A_value)
402 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_NestedEnumType1B", EnumContainerMessage1_NestedEnumType1B_name, EnumContainerMessage1_NestedEnumType1B_value)
403 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value)
404 proto.RegisterEnum("goproto.protoc.proto2.EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B", EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name, EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value)
Damien Neil154da982018-09-19 13:21:58 -0700405 proto.RegisterType((*EnumContainerMessage1)(nil), "goproto.protoc.proto2.EnumContainerMessage1")
406 proto.RegisterType((*EnumContainerMessage1_EnumContainerMessage2)(nil), "goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2")
Damien Neil46abb572018-09-07 12:45:37 -0700407}
408
Joe Tsai40692112019-02-27 20:25:51 -0800409var xxx_File_proto2_enum_proto_rawdesc = []byte{
Damien Neil8012b442019-01-18 09:32:24 -0800410 // 624 bytes of the wire-encoded FileDescriptorProto
411 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
412 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
413 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45,
414 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73,
415 0x61, 0x67, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
416 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
417 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
418 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70,
419 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11,
420 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65,
421 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70,
422 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,
423 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
424 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a,
425 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66,
426 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69,
427 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d,
428 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65,
429 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e,
430 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00,
431 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79,
432 0x70, 0x65, 0x32, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32,
433 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73,
434 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a,
435 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45,
436 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
437 0x54, 0x79, 0x70, 0x65, 0x31, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44,
438 0x5f, 0x31, 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45,
439 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10,
440 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e,
441 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
442 0x63, 0x61, 0x74, 0x65, 0x31, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
443 0x63, 0x61, 0x74, 0x65, 0x32, 0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10,
444 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45,
445 0x44, 0x31, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x41, 0x5a,
446 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61,
447 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x63,
448 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f,
449 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
Damien Neil46abb572018-09-07 12:45:37 -0700450}
Joe Tsaib6405bd2018-11-15 14:44:37 -0800451
Joe Tsai8e506a82019-03-16 00:05:34 -0700452var xxx_File_proto2_enum_proto_rawdesc_gzipped = protoimpl.X.CompressGZIP(xxx_File_proto2_enum_proto_rawdesc)
Joe Tsaib6405bd2018-11-15 14:44:37 -0800453
454const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
455
Joe Tsai40692112019-02-27 20:25:51 -0800456var File_proto2_enum_proto protoreflect.FileDescriptor
Joe Tsaib6405bd2018-11-15 14:44:37 -0800457
Damien Neil6bb8dec2019-03-01 13:22:30 -0800458var xxx_File_proto2_enum_proto_enumTypes = make([]protoreflect.EnumType, 6)
459var xxx_File_proto2_enum_proto_messageTypes = make([]protoimpl.MessageType, 2)
Joe Tsai40692112019-02-27 20:25:51 -0800460var xxx_File_proto2_enum_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800461 (EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
462 (EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
463 (EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
464 (EnumContainerMessage1_NestedEnumType1B)(0), // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B
465 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A
466 (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B
467 (*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1
468 (*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800469}
Joe Tsai40692112019-02-27 20:25:51 -0800470var xxx_File_proto2_enum_proto_depIdxs = []int32{
Damien Neil8012b442019-01-18 09:32:24 -0800471 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2
472 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2
Joe Tsaib6405bd2018-11-15 14:44:37 -0800473}
Damien Neil8012b442019-01-18 09:32:24 -0800474
Damien Neil0fc22452019-03-08 17:18:11 -0800475func init() { xxx_File_proto2_enum_proto_init() }
476func xxx_File_proto2_enum_proto_init() {
477 if File_proto2_enum_proto != nil {
478 return
479 }
Damien Neil6bb8dec2019-03-01 13:22:30 -0800480 messageTypes := make([]protoreflect.MessageType, 2)
Joe Tsai40692112019-02-27 20:25:51 -0800481 File_proto2_enum_proto = protoimpl.FileBuilder{
482 RawDescriptor: xxx_File_proto2_enum_proto_rawdesc,
483 GoTypes: xxx_File_proto2_enum_proto_goTypes,
484 DependencyIndexes: xxx_File_proto2_enum_proto_depIdxs,
Damien Neil6bb8dec2019-03-01 13:22:30 -0800485 EnumOutputTypes: xxx_File_proto2_enum_proto_enumTypes,
486 MessageOutputTypes: messageTypes,
Damien Neil8012b442019-01-18 09:32:24 -0800487 }.Init()
Joe Tsai40692112019-02-27 20:25:51 -0800488 messageGoTypes := xxx_File_proto2_enum_proto_goTypes[6:][:2]
Damien Neil6bb8dec2019-03-01 13:22:30 -0800489 for i, mt := range messageTypes {
Joe Tsai40692112019-02-27 20:25:51 -0800490 xxx_File_proto2_enum_proto_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i])
491 xxx_File_proto2_enum_proto_messageTypes[i].PBType = mt
Damien Neil8012b442019-01-18 09:32:24 -0800492 }
Joe Tsai40692112019-02-27 20:25:51 -0800493 xxx_File_proto2_enum_proto_goTypes = nil
494 xxx_File_proto2_enum_proto_depIdxs = nil
Joe Tsaib6405bd2018-11-15 14:44:37 -0800495}