github.com/renbou/grpcbridge@v0.0.2-0.20240416012907-bcbd8b12648a/internal/bridgetest/testpb/messages.proto (about) 1 syntax = "proto3"; 2 3 package grpcbridge.internal.bridgetest.testpb; 4 5 import "google/protobuf/duration.proto"; 6 import "google/protobuf/empty.proto"; 7 import "google/protobuf/struct.proto"; 8 9 option go_package = "github.com/renbou/grpcbridge/internal/bridgetest/testpb"; 10 11 message Scalars { 12 bool bool_value = 1; 13 int32 int32_value = 2; 14 int64 int64_value = 3; 15 uint32 uint32_value = 4; 16 uint64 uint64_value = 5; 17 sint32 sint32_value = 6; 18 sint64 sint64_value = 7; 19 fixed32 fixed32_value = 8; 20 fixed64 fixed64_value = 9; 21 sfixed32 sfixed32_value = 10; 22 sfixed64 sfixed64_value = 11; 23 float float_value = 12; 24 double double_value = 13; 25 string string_value = 14; 26 bytes bytes_value = 15; 27 } 28 29 enum Digits { 30 option allow_alias = true; 31 ZERO = 0; 32 NONE = 0; 33 ONE = 1; 34 TWO = 2; 35 } 36 37 message NonScalars { 38 message Child { 39 message GrandChild { 40 bytes bytes_value = 1; 41 } 42 43 oneof nested { 44 Digits digits = 1; 45 GrandChild grand_child = 2; 46 } 47 48 Scalars extra_scalars = 3; 49 } 50 51 map<string, string> str2str_map = 1; 52 map<string, int32> str2int32_map = 2; 53 map<int32, google.protobuf.Empty> int2empty_map = 3; 54 repeated string str_list = 4; 55 repeated Child msg_list = 5; 56 Digits root_digits = 6; 57 google.protobuf.Duration duration = 7; 58 Child child = 8; 59 } 60 61 message WellKnown { 62 google.protobuf.NullValue null_value = 1; 63 }