go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/proto/internal/testingpb/testing.proto (about) 1 // Copyright 2018 The Swarming Authors. All rights reserved. 2 // Use of this source code is governed by the Apache v2.0 license that can be 3 // found in the LICENSE file. 4 5 syntax = "proto3"; 6 7 package internal.testing; 8 9 option go_package = "go.chromium.org/luci/common/proto/internal/testingpb;testingpb"; 10 11 import "google/protobuf/field_mask.proto"; 12 import "google/protobuf/struct.proto"; 13 14 message Some { 15 int64 i = 1; 16 } 17 18 message Simple { 19 int64 id = 1; 20 Some some = 2; 21 google.protobuf.FieldMask fields = 100; 22 } 23 24 message Props { 25 google.protobuf.Struct properties = 6; 26 google.protobuf.FieldMask fields = 100; 27 } 28 29 message WithInner { 30 message Inner { 31 oneof msg { 32 Simple simple = 1; 33 Props props = 2; 34 } 35 } 36 repeated Inner msgs = 1; 37 } 38 39 message Full { 40 int32 i32 = 1; 41 int64 i64 = 2; 42 uint32 u32 = 3; 43 uint64 u64 = 4; 44 float f32 = 5; 45 double f64 = 6; 46 bool boolean = 7; 47 int32 num = 8; 48 repeated int32 nums = 9; 49 string str = 10; 50 repeated string strs = 11; 51 Full msg = 12; 52 repeated Full msgs = 13; 53 map<string, int32> map_str_num = 14; 54 map<int32, string> map_num_str = 15; 55 map<bool, string> map_bool_str = 16; 56 map<string, Full> map_str_msg = 17; 57 string json_name = 18; 58 string json_name_option = 19 [json_name = "another_json_name"]; 59 }