• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Protocol Buffers - Google's data interchange format
2// Copyright 2023 Google Inc.  All rights reserved.
3//
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file or at
6// https://developers.google.com/open-source/licenses/bsd
7
8syntax = "proto2";
9
10package protobuf_editions_test.proto2;
11
12enum Proto2Enum {
13  BAR = 1;
14  BAZ = 2;
15}
16
17message Proto2EnumMessage {
18  optional Proto2Enum enum_field = 1;
19  optional Proto2Enum enum_field_default = 2 [default = BAZ];
20  enum Proto2NestedEnum {
21    FOO = 1;
22    BAT = 2;
23  }
24  optional Proto2NestedEnum nested_enum_field = 3;
25  optional Proto2NestedEnum nested_enum_field_default = 4 [default = BAT];
26}
27