Debian Codegraph @

cmd/protoc-gen-go/testdata/protoeditions/legacy_enum.proto

raw
1 // Copyright 2024 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 edition = "2023";
6
7 package goproto.protoc.protoeditions;
8
9 import "google/protobuf/go_features.proto";
10
11 option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/protoeditions";
12 option features.(pb.go).legacy_unmarshal_json_enum = true;
13
14 // EnumTypeWithLegacyUnmarshalJSON comment.
15 enum EnumTypeWithLegacyUnmarshalJSON {
16 option features.enum_type = CLOSED;
17
18 // EnumTypeWithLegacyUnmarshalJSON_ONE comment.
19 FIRST = 1;
20 // EnumTypeWithLegacyUnmarshalJSON_TWO comment.
21 SECOND = 2;
22 }
23
24 message ContainerForNestedEnum {
25 // NestedEnumType1A comment.
26 enum NestedEnum {
27 // NestedEnum_VALUE comment.
28 VALUE = 0;
29 }
30 }
31
32 enum EnumWithoutUnmarshalJSON {
33 option features.(pb.go).legacy_unmarshal_json_enum = false;
34
35 WITHOUT_UNMARSHAL_JSON_FOO = 0;
36 WITHOUT_UNMARSHAL_JSON_BAR = 1;
37 WITHOUT_UNMARSHAL_JSON_BAZ = 2;
38 }