| // Copyright 2018 The Swarming Authors. All rights reserved. |
| // Use of this source code is governed by the Apache v2.0 license that can be |
| // found in the LICENSE file. |
| |
| syntax = "proto3"; |
| |
| package internal.testing; |
| |
| option go_package = "go.chromium.org/luci/common/proto/internal/testingpb;testingpb"; |
| |
| import "google/protobuf/field_mask.proto"; |
| import "google/protobuf/struct.proto"; |
| |
| message Some { |
| int64 i = 1; |
| } |
| |
| message Simple { |
| int64 id = 1; |
| Some some = 2; |
| google.protobuf.FieldMask fields = 100; |
| } |
| |
| message Props { |
| google.protobuf.Struct properties = 6; |
| google.protobuf.FieldMask fields = 100; |
| } |
| |
| message WithInner { |
| message Inner { |
| oneof msg { |
| Simple simple = 1; |
| Props props = 2; |
| } |
| } |
| repeated Inner msgs = 1; |
| } |
| |
| message Full { |
| int32 num = 1; |
| repeated int32 nums = 2; |
| string str = 3; |
| repeated string strs = 4; |
| Full msg = 5; |
| repeated Full msgs = 6; |
| map<string, int32> map_str_num = 7; |
| map<int32, string> map_num_str = 8; |
| map<bool, string> map_bool_str = 9; |
| map<string, Full> map_str_msg = 10; |
| string json_name = 11; |
| string json_name_option = 12 [json_name="another_json_name"]; |
| } |