parent
7356adb87a
commit
479a80cf4b
2 changed files with 47 additions and 0 deletions
@ -0,0 +1,24 @@ |
||||
// Protocol Buffers - Google's data interchange format |
||||
// Copyright 2008 Google Inc. All rights reserved. |
||||
// |
||||
// Use of this source code is governed by a BSD-style |
||||
// license that can be found in the LICENSE file or at |
||||
// https://developers.google.com/open-source/licenses/bsd |
||||
// |
||||
// Sample message to generate large enum code. |
||||
|
||||
edition = "2023"; |
||||
|
||||
package protobuf_test_messages.edition; |
||||
|
||||
import "google/protobuf/java_features.proto"; |
||||
|
||||
option java_package = "com.google.protobuf.large.closedenum.edition"; |
||||
option java_multiple_files = true; |
||||
option features.enum_type = CLOSED; |
||||
|
||||
enum LargeClosedEnum { |
||||
LARGE_ENUM_UNSPECIFIED = 0; |
||||
LARGE_ENUM_1 = 1; |
||||
LARGE_ENUM_2 = 2; |
||||
} |
@ -0,0 +1,23 @@ |
||||
// Protocol Buffers - Google's data interchange format |
||||
// Copyright 2008 Google Inc. All rights reserved. |
||||
// |
||||
// Use of this source code is governed by a BSD-style |
||||
// license that can be found in the LICENSE file or at |
||||
// https://developers.google.com/open-source/licenses/bsd |
||||
// |
||||
// Sample message to generate large enum code. |
||||
|
||||
edition = "2023"; |
||||
|
||||
package protobuf_test_messages.edition; |
||||
|
||||
import "google/protobuf/java_features.proto"; |
||||
|
||||
option java_package = "com.google.protobuf.large.openenum.edition"; |
||||
option java_multiple_files = true; |
||||
|
||||
enum LargeOpenEnum { |
||||
LARGE_ENUM_UNSPECIFIED = 0; |
||||
LARGE_ENUM_1 = 1; |
||||
LARGE_ENUM_2 = 2; |
||||
} |
Loading…
Reference in new issue