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.
27 lines
792 B
27 lines
792 B
1 year ago
|
// Protocol Buffers - Google's data interchange format
|
||
|
// Copyright 2023 Google LLC. 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
|
||
|
|
||
|
edition = "2023";
|
||
|
|
||
|
package upb.test_2023;
|
||
|
|
||
|
message EditionsMessage {
|
||
|
int32 plain_field = 1;
|
||
|
int32 implicit_presence_field = 2 [features.field_presence = IMPLICIT];
|
||
|
int32 required_field = 3 [features.field_presence = LEGACY_REQUIRED];
|
||
|
EditionsMessage delimited_field = 4 [features.message_encoding = DELIMITED];
|
||
|
EditionsEnum enum_field = 5;
|
||
|
repeated int32 unpacked_field = 6
|
||
|
[features.repeated_field_encoding = EXPANDED];
|
||
|
}
|
||
|
|
||
|
enum EditionsEnum {
|
||
|
option features.enum_type = CLOSED;
|
||
|
|
||
|
ONE = 1;
|
||
|
}
|