Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
777 B
31 lines
777 B
1 year ago
|
// Protocol Buffers - Google's data interchange format
|
||
|
// Copyright 2023 Google Inc. All rights reserved.
|
||
|
//
|
||
1 year ago
|
// 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
|
||
1 year ago
|
|
||
1 year ago
|
edition = "2023";
|
||
1 year ago
|
|
||
1 year ago
|
package protobuf_editions_test;
|
||
1 year ago
|
|
||
1 year ago
|
// This file tests the default features in the absence of any dependencies.
|
||
1 year ago
|
|
||
1 year ago
|
enum EditionsDefaultEnum {
|
||
|
EDITIONS_DEFAULT_ENUM_UNKNOWN = 0;
|
||
|
EDITIONS_DEFAULT_ENUM_VALUE1 = 1;
|
||
|
}
|
||
|
|
||
|
message EditionsDefaultMessage {
|
||
|
int32 int32_field = 1;
|
||
|
string string_field = 2;
|
||
|
EditionsDefaultEnum enum_field = 3;
|
||
|
|
||
|
repeated int32 repeated_int32_field = 4;
|
||
|
|
||
|
message SubMessage {
|
||
|
int32 nested_int32_field = 1;
|
||
1 year ago
|
}
|
||
1 year ago
|
SubMessage sub_message_field = 6;
|
||
1 year ago
|
}
|