gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/grpc/reflection/grpc_testingv3/testv3.proto (about) 1 syntax = "proto3"; 2 3 option go_package = "gitee.com/ks-custle/core-gm/grpc/reflection/grpc_testingv3"; 4 5 package grpc.testingv3; 6 7 message SearchResponseV3 { 8 message Result { 9 string url = 1; 10 string title = 2; 11 repeated string snippets = 3; 12 message Value { 13 oneof val { 14 string str = 1; 15 int64 int = 2; 16 double real = 3; 17 } 18 } 19 map<string, Value> metadata = 4; 20 } 21 enum State { 22 UNKNOWN = 0; 23 FRESH = 1; 24 STALE = 2; 25 } 26 repeated Result results = 1; 27 State state = 2; 28 } 29 30 message SearchRequestV3 { 31 string query = 1; 32 } 33 34 service SearchServiceV3 { 35 rpc Search(SearchRequestV3) returns (SearchResponseV3); 36 rpc StreamingSearch(stream SearchRequestV3) returns (stream SearchResponseV3); 37 }