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.
 
 
 
 
 
 

28 lines
643 B

// Protocol Buffers - Google's data interchange format
// Copyright 2024 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
syntax = "proto2";
package hpb_unittest;
message Child {
optional int32 peeps = 1;
}
message Parent {
optional int32 x = 2;
optional Child child = 3;
optional int64 out_of_order = 1; // set_alias must work regardless of order
}
message ParentWithRepeated {
repeated Child children = 1;
}
message ParentWithMap {
map<int32, Child> child_map = 1;
}