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.
33 lines
824 B
33 lines
824 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
|
|
||
|
edition = "2023";
|
||
|
|
||
|
package protobuf_editions_test;
|
||
|
|
||
8 months ago
|
import "net/proto/proto1_features.proto";
|
||
|
|
||
1 year ago
|
option features.field_presence = IMPLICIT;
|
||
|
|
||
1 year ago
|
enum TestEnumProto3 {
|
||
|
TEST_ENUM_PROTO3_UNKNOWN = 0;
|
||
|
TEST_ENUM_PROTO3_VALUE = 1;
|
||
|
}
|
||
|
|
||
1 year ago
|
message TestMessageProto3 {
|
||
|
string string_field = 1;
|
||
|
map<string, string> string_map_field = 4;
|
||
|
repeated int32 int_field = 7;
|
||
8 months ago
|
repeated int32 int_field_packed = 8 [
|
||
|
features.(pb.proto1).legacy_packed = true
|
||
|
];
|
||
|
|
||
1 year ago
|
repeated int32 int_field_unpacked = 9 [
|
||
|
features.repeated_field_encoding = EXPANDED
|
||
|
];
|
||
1 year ago
|
}
|