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 | e89e624 | 2019-05-13 23:55:40 -0700 | [diff] [blame] | 7 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 8 | protoregistry "google.golang.org/protobuf/reflect/protoregistry" |
| 9 | protoiface "google.golang.org/protobuf/runtime/protoiface" |
| 10 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 11 | sync "sync" |
Damien Neil | 1ec3315 | 2018-09-13 13:12:36 -0700 | [diff] [blame] | 12 | ) |
| 13 | |
Joe Tsai | 58b42d8 | 2019-05-22 16:27:51 -0400 | [diff] [blame^] | 14 | const ( |
| 15 | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 16 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0) |
| 17 | // Verify that this generated code is sufficiently up-to-date. |
| 18 | _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion) |
| 19 | ) |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -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 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 31 | // Deprecated: Use EnumType1.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 32 | var EnumType1_name = map[int32]string{ |
| 33 | 1: "ONE", |
| 34 | 2: "TWO", |
| 35 | } |
| 36 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 37 | // Deprecated: Use EnumType1.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 38 | var EnumType1_value = map[string]int32{ |
| 39 | "ONE": 1, |
| 40 | "TWO": 2, |
| 41 | } |
| 42 | |
| 43 | func (x EnumType1) Enum() *EnumType1 { |
Joe Tsai | 09b5b46 | 2019-04-10 15:29:01 -0700 | [diff] [blame] | 44 | p := new(EnumType1) |
| 45 | *p = x |
| 46 | return p |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | func (x EnumType1) String() string { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 50 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 51 | } |
| 52 | |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 53 | func (EnumType1) Descriptor() protoreflect.EnumDescriptor { |
| 54 | return file_proto2_enum_proto_enumTypes[0].Descriptor() |
| 55 | } |
| 56 | |
| 57 | // Deprecated: Use Descriptor instead. |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 58 | func (EnumType1) Type() protoreflect.EnumType { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 59 | return file_proto2_enum_proto_enumTypes[0] |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | func (x EnumType1) Number() protoreflect.EnumNumber { |
| 63 | return protoreflect.EnumNumber(x) |
| 64 | } |
| 65 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 66 | // Deprecated: Do not use. |
| 67 | func (x *EnumType1) UnmarshalJSON(b []byte) error { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 68 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 69 | if err != nil { |
| 70 | return err |
| 71 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 72 | *x = EnumType1(num) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 73 | return nil |
| 74 | } |
| 75 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 76 | // Deprecated: Use EnumType1.Type instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 77 | func (EnumType1) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 78 | return file_proto2_enum_proto_rawDescGZIP(), []int{0} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | type EnumType2 int32 |
| 82 | |
| 83 | const ( |
| 84 | EnumType2_duplicate1 EnumType2 = 1 |
| 85 | EnumType2_duplicate2 EnumType2 = 1 |
| 86 | ) |
| 87 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 88 | // Deprecated: Use EnumType2.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 89 | var EnumType2_name = map[int32]string{ |
| 90 | 1: "duplicate1", |
| 91 | // Duplicate value: 1: "duplicate2", |
| 92 | } |
| 93 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 94 | // Deprecated: Use EnumType2.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 95 | var EnumType2_value = map[string]int32{ |
| 96 | "duplicate1": 1, |
| 97 | "duplicate2": 1, |
| 98 | } |
| 99 | |
| 100 | func (x EnumType2) Enum() *EnumType2 { |
Joe Tsai | 09b5b46 | 2019-04-10 15:29:01 -0700 | [diff] [blame] | 101 | p := new(EnumType2) |
| 102 | *p = x |
| 103 | return p |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 104 | } |
| 105 | |
| 106 | func (x EnumType2) String() string { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 107 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 108 | } |
| 109 | |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 110 | func (EnumType2) Descriptor() protoreflect.EnumDescriptor { |
| 111 | return file_proto2_enum_proto_enumTypes[1].Descriptor() |
| 112 | } |
| 113 | |
| 114 | // Deprecated: Use Descriptor instead. |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 115 | func (EnumType2) Type() protoreflect.EnumType { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 116 | return file_proto2_enum_proto_enumTypes[1] |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 117 | } |
| 118 | |
| 119 | func (x EnumType2) Number() protoreflect.EnumNumber { |
| 120 | return protoreflect.EnumNumber(x) |
| 121 | } |
| 122 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 123 | // Deprecated: Do not use. |
| 124 | func (x *EnumType2) UnmarshalJSON(b []byte) error { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 125 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 126 | if err != nil { |
| 127 | return err |
| 128 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 129 | *x = EnumType2(num) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 130 | return nil |
| 131 | } |
| 132 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 133 | // Deprecated: Use EnumType2.Type instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 134 | func (EnumType2) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 135 | return file_proto2_enum_proto_rawDescGZIP(), []int{1} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 136 | } |
| 137 | |
| 138 | // NestedEnumType1A comment. |
| 139 | type EnumContainerMessage1_NestedEnumType1A int32 |
| 140 | |
| 141 | const ( |
| 142 | // NestedEnumType1A_VALUE comment. |
| 143 | EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0 |
| 144 | ) |
| 145 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 146 | // Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 147 | var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{ |
| 148 | 0: "NESTED_1A_VALUE", |
| 149 | } |
| 150 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 151 | // Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 152 | var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{ |
| 153 | "NESTED_1A_VALUE": 0, |
| 154 | } |
| 155 | |
| 156 | func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A { |
Joe Tsai | 09b5b46 | 2019-04-10 15:29:01 -0700 | [diff] [blame] | 157 | p := new(EnumContainerMessage1_NestedEnumType1A) |
| 158 | *p = x |
| 159 | return p |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 160 | } |
| 161 | |
| 162 | func (x EnumContainerMessage1_NestedEnumType1A) String() string { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 163 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 164 | } |
| 165 | |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 166 | func (EnumContainerMessage1_NestedEnumType1A) Descriptor() protoreflect.EnumDescriptor { |
| 167 | return file_proto2_enum_proto_enumTypes[2].Descriptor() |
| 168 | } |
| 169 | |
| 170 | // Deprecated: Use Descriptor instead. |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 171 | func (EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 172 | return file_proto2_enum_proto_enumTypes[2] |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 173 | } |
| 174 | |
| 175 | func (x EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber { |
| 176 | return protoreflect.EnumNumber(x) |
| 177 | } |
| 178 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 179 | // Deprecated: Do not use. |
| 180 | func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(b []byte) error { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 181 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 182 | if err != nil { |
| 183 | return err |
| 184 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 185 | *x = EnumContainerMessage1_NestedEnumType1A(num) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 186 | return nil |
| 187 | } |
| 188 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 189 | // Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 190 | func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 191 | return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 192 | } |
| 193 | |
| 194 | type EnumContainerMessage1_NestedEnumType1B int32 |
| 195 | |
| 196 | const ( |
| 197 | EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0 |
| 198 | ) |
| 199 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 200 | // Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 201 | var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{ |
| 202 | 0: "NESTED_1B_VALUE", |
| 203 | } |
| 204 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 205 | // Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 206 | var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{ |
| 207 | "NESTED_1B_VALUE": 0, |
| 208 | } |
| 209 | |
| 210 | func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B { |
Joe Tsai | 09b5b46 | 2019-04-10 15:29:01 -0700 | [diff] [blame] | 211 | p := new(EnumContainerMessage1_NestedEnumType1B) |
| 212 | *p = x |
| 213 | return p |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 214 | } |
| 215 | |
| 216 | func (x EnumContainerMessage1_NestedEnumType1B) String() string { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 217 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 218 | } |
| 219 | |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 220 | func (EnumContainerMessage1_NestedEnumType1B) Descriptor() protoreflect.EnumDescriptor { |
| 221 | return file_proto2_enum_proto_enumTypes[3].Descriptor() |
| 222 | } |
| 223 | |
| 224 | // Deprecated: Use Descriptor instead. |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 225 | func (EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 226 | return file_proto2_enum_proto_enumTypes[3] |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 227 | } |
| 228 | |
| 229 | func (x EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber { |
| 230 | return protoreflect.EnumNumber(x) |
| 231 | } |
| 232 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 233 | // Deprecated: Do not use. |
| 234 | func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(b []byte) error { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 235 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 236 | if err != nil { |
| 237 | return err |
| 238 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 239 | *x = EnumContainerMessage1_NestedEnumType1B(num) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 240 | return nil |
| 241 | } |
| 242 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 243 | // Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 244 | func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 245 | return file_proto2_enum_proto_rawDescGZIP(), []int{0, 1} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 246 | } |
| 247 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 248 | // NestedEnumType2A comment. |
| 249 | type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32 |
| 250 | |
| 251 | const ( |
| 252 | // NestedEnumType2A_VALUE comment. |
| 253 | EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0 |
| 254 | ) |
| 255 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 256 | // Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 257 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{ |
| 258 | 0: "NESTED_2A_VALUE", |
| 259 | } |
| 260 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 261 | // Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 262 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{ |
| 263 | "NESTED_2A_VALUE": 0, |
| 264 | } |
| 265 | |
| 266 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A { |
Joe Tsai | 09b5b46 | 2019-04-10 15:29:01 -0700 | [diff] [blame] | 267 | p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) |
| 268 | *p = x |
| 269 | return p |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 270 | } |
| 271 | |
| 272 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 273 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 274 | } |
| 275 | |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 276 | func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Descriptor() protoreflect.EnumDescriptor { |
| 277 | return file_proto2_enum_proto_enumTypes[4].Descriptor() |
| 278 | } |
| 279 | |
| 280 | // Deprecated: Use Descriptor instead. |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 281 | func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 282 | return file_proto2_enum_proto_enumTypes[4] |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 283 | } |
| 284 | |
| 285 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber { |
| 286 | return protoreflect.EnumNumber(x) |
| 287 | } |
| 288 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 289 | // Deprecated: Do not use. |
| 290 | func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(b []byte) error { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 291 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 292 | if err != nil { |
| 293 | return err |
| 294 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 295 | *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(num) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 296 | return nil |
| 297 | } |
| 298 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 299 | // Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 300 | func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 301 | return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 0} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 302 | } |
| 303 | |
| 304 | type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32 |
| 305 | |
| 306 | const ( |
| 307 | EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0 |
| 308 | ) |
| 309 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 310 | // Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 311 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{ |
| 312 | 0: "NESTED_2B_VALUE", |
| 313 | } |
| 314 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 315 | // Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type.Values instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 316 | var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{ |
| 317 | "NESTED_2B_VALUE": 0, |
| 318 | } |
| 319 | |
| 320 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B { |
Joe Tsai | 09b5b46 | 2019-04-10 15:29:01 -0700 | [diff] [blame] | 321 | p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) |
| 322 | *p = x |
| 323 | return p |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 324 | } |
| 325 | |
| 326 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 327 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 328 | } |
| 329 | |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 330 | func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Descriptor() protoreflect.EnumDescriptor { |
| 331 | return file_proto2_enum_proto_enumTypes[5].Descriptor() |
| 332 | } |
| 333 | |
| 334 | // Deprecated: Use Descriptor instead. |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 335 | func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 336 | return file_proto2_enum_proto_enumTypes[5] |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 337 | } |
| 338 | |
| 339 | func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber { |
| 340 | return protoreflect.EnumNumber(x) |
| 341 | } |
| 342 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 343 | // Deprecated: Do not use. |
| 344 | func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(b []byte) error { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 345 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 346 | if err != nil { |
| 347 | return err |
| 348 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 349 | *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(num) |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 350 | return nil |
| 351 | } |
| 352 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 353 | // Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type instead. |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 354 | func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 355 | return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 1} |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 356 | } |
| 357 | |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 358 | type EnumContainerMessage1 struct { |
Joe Tsai | 5e71dc9 | 2019-04-16 13:22:20 -0700 | [diff] [blame] | 359 | DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"` |
| 360 | DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"` |
| 361 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 362 | XXX_unrecognized protoimpl.UnknownFields `json:"-"` |
| 363 | XXX_sizecache protoimpl.SizeCache `json:"-"` |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 364 | } |
| 365 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 366 | func (x *EnumContainerMessage1) Reset() { |
| 367 | *x = EnumContainerMessage1{} |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 368 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 369 | |
| 370 | func (x *EnumContainerMessage1) String() string { |
| 371 | return protoimpl.X.MessageStringOf(x) |
| 372 | } |
| 373 | |
| 374 | func (*EnumContainerMessage1) ProtoMessage() {} |
| 375 | |
| 376 | func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 377 | return file_proto2_enum_proto_msgTypes[0].MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 378 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 379 | |
Damien Neil | 0d3e8cc | 2019-04-01 13:31:55 -0700 | [diff] [blame] | 380 | func (m *EnumContainerMessage1) XXX_Methods() *protoiface.Methods { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 381 | return file_proto2_enum_proto_msgTypes[0].Methods() |
Damien Neil | 0d3e8cc | 2019-04-01 13:31:55 -0700 | [diff] [blame] | 382 | } |
| 383 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 384 | // Deprecated: Use EnumContainerMessage1.ProtoReflect.Type instead. |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 385 | func (*EnumContainerMessage1) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 386 | return file_proto2_enum_proto_rawDescGZIP(), []int{0} |
Damien Neil | ce36f8d | 2018-09-13 15:19:08 -0700 | [diff] [blame] | 387 | } |
Damien Neil | 993c04d | 2018-09-14 15:41:11 -0700 | [diff] [blame] | 388 | |
Damien Neil | a485fbd | 2018-10-26 13:28:37 -0700 | [diff] [blame] | 389 | const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1 |
| 390 | const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2 |
| 391 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 392 | func (x *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 { |
| 393 | if x != nil && x.DefaultDuplicate1 != nil { |
| 394 | return *x.DefaultDuplicate1 |
Damien Neil | a485fbd | 2018-10-26 13:28:37 -0700 | [diff] [blame] | 395 | } |
| 396 | return Default_EnumContainerMessage1_DefaultDuplicate1 |
| 397 | } |
| 398 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 399 | func (x *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 { |
| 400 | if x != nil && x.DefaultDuplicate2 != nil { |
| 401 | return *x.DefaultDuplicate2 |
Damien Neil | a485fbd | 2018-10-26 13:28:37 -0700 | [diff] [blame] | 402 | } |
| 403 | return Default_EnumContainerMessage1_DefaultDuplicate2 |
| 404 | } |
| 405 | |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 406 | type EnumContainerMessage1_EnumContainerMessage2 struct { |
Joe Tsai | 5e71dc9 | 2019-04-16 13:22:20 -0700 | [diff] [blame] | 407 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 408 | XXX_unrecognized protoimpl.UnknownFields `json:"-"` |
| 409 | XXX_sizecache protoimpl.SizeCache `json:"-"` |
Damien Neil | 46abb57 | 2018-09-07 12:45:37 -0700 | [diff] [blame] | 410 | } |
| 411 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 412 | func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() { |
| 413 | *x = EnumContainerMessage1_EnumContainerMessage2{} |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 414 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 415 | |
| 416 | func (x *EnumContainerMessage1_EnumContainerMessage2) String() string { |
| 417 | return protoimpl.X.MessageStringOf(x) |
Damien Neil | a1c6abc | 2018-09-12 13:36:34 -0700 | [diff] [blame] | 418 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 419 | |
Damien Neil | a1c6abc | 2018-09-12 13:36:34 -0700 | [diff] [blame] | 420 | func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 421 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 422 | func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 423 | return file_proto2_enum_proto_msgTypes[1].MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 424 | } |
| 425 | |
Damien Neil | 0d3e8cc | 2019-04-01 13:31:55 -0700 | [diff] [blame] | 426 | func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Methods() *protoiface.Methods { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 427 | return file_proto2_enum_proto_msgTypes[1].Methods() |
Damien Neil | 0d3e8cc | 2019-04-01 13:31:55 -0700 | [diff] [blame] | 428 | } |
| 429 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 430 | // Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Type instead. |
Damien Neil | a1c6abc | 2018-09-12 13:36:34 -0700 | [diff] [blame] | 431 | func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 432 | return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0} |
Damien Neil | a1c6abc | 2018-09-12 13:36:34 -0700 | [diff] [blame] | 433 | } |
Damien Neil | 993c04d | 2018-09-14 15:41:11 -0700 | [diff] [blame] | 434 | |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 435 | var File_proto2_enum_proto protoreflect.FileDescriptor |
| 436 | |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 437 | var file_proto2_enum_proto_rawDesc = []byte{ |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 438 | 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, |
| 439 | 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, |
| 440 | 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45, |
| 441 | 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, |
| 442 | 0x61, 0x67, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, |
| 443 | 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, |
| 444 | 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 445 | 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, |
| 446 | 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11, |
| 447 | 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, |
| 448 | 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70, |
| 449 | 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, |
| 450 | 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, |
| 451 | 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a, |
| 452 | 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66, |
| 453 | 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69, |
| 454 | 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, |
| 455 | 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, |
| 456 | 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e, |
| 457 | 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, |
| 458 | 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, |
| 459 | 0x70, 0x65, 0x32, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, |
| 460 | 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, |
| 461 | 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a, |
| 462 | 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, |
| 463 | 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, |
| 464 | 0x54, 0x79, 0x70, 0x65, 0x31, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, |
| 465 | 0x5f, 0x31, 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45, |
| 466 | 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, |
| 467 | 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e, |
| 468 | 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, |
| 469 | 0x63, 0x61, 0x74, 0x65, 0x31, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, |
| 470 | 0x63, 0x61, 0x74, 0x65, 0x32, 0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10, |
| 471 | 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, |
Damien Neil | e89e624 | 2019-05-13 23:55:40 -0700 | [diff] [blame] | 472 | 0x44, 0x31, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x3e, 0x5a, |
| 473 | 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, |
| 474 | 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, |
| 475 | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, |
| 476 | 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] | 477 | } |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 478 | |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 479 | var ( |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 480 | file_proto2_enum_proto_rawDescOnce sync.Once |
| 481 | file_proto2_enum_proto_rawDescData = file_proto2_enum_proto_rawDesc |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 482 | ) |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 483 | |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 484 | func file_proto2_enum_proto_rawDescGZIP() []byte { |
| 485 | file_proto2_enum_proto_rawDescOnce.Do(func() { |
| 486 | file_proto2_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_enum_proto_rawDescData) |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 487 | }) |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 488 | return file_proto2_enum_proto_rawDescData |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 489 | } |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 490 | |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 491 | var file_proto2_enum_proto_enumTypes = make([]protoreflect.EnumType, 6) |
Joe Tsai | 4fe9663 | 2019-05-22 05:12:36 -0400 | [diff] [blame] | 492 | var file_proto2_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 493 | var file_proto2_enum_proto_goTypes = []interface{}{ |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 494 | (EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1 |
| 495 | (EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2 |
| 496 | (EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A |
| 497 | (EnumContainerMessage1_NestedEnumType1B)(0), // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B |
| 498 | (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A |
| 499 | (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B |
| 500 | (*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1 |
| 501 | (*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2 |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 502 | } |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 503 | var file_proto2_enum_proto_depIdxs = []int32{ |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 504 | 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2 |
| 505 | 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] | 506 | } |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 507 | |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 508 | func init() { file_proto2_enum_proto_init() } |
| 509 | func file_proto2_enum_proto_init() { |
Damien Neil | 0fc2245 | 2019-03-08 17:18:11 -0800 | [diff] [blame] | 510 | if File_proto2_enum_proto != nil { |
| 511 | return |
| 512 | } |
Joe Tsai | 4069211 | 2019-02-27 20:25:51 -0800 | [diff] [blame] | 513 | File_proto2_enum_proto = protoimpl.FileBuilder{ |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 514 | RawDescriptor: file_proto2_enum_proto_rawDesc, |
| 515 | GoTypes: file_proto2_enum_proto_goTypes, |
| 516 | DependencyIndexes: file_proto2_enum_proto_depIdxs, |
| 517 | EnumOutputTypes: file_proto2_enum_proto_enumTypes, |
| 518 | MessageOutputTypes: file_proto2_enum_proto_msgTypes, |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame] | 519 | FilesRegistry: protoregistry.GlobalFiles, |
| 520 | TypesRegistry: protoregistry.GlobalTypes, |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 521 | }.Init() |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 522 | file_proto2_enum_proto_rawDesc = nil |
| 523 | file_proto2_enum_proto_goTypes = nil |
| 524 | file_proto2_enum_proto_depIdxs = nil |
Joe Tsai | b6405bd | 2018-11-15 14:44:37 -0800 | [diff] [blame] | 525 | } |