google.golang.org/grpc@v1.62.1/reflection/grpc_testing_not_regenerate/testv3.proto (about) 1 /* 2 * Copyright 2022 gRPC authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 18 syntax = "proto3"; 19 20 option go_package = "google.golang.org/grpc/reflection/grpc_testing_not_regenerate"; 21 22 package grpc.testingv3; 23 24 message SearchResponseV3 { 25 message Result { 26 string url = 1; 27 string title = 2; 28 repeated string snippets = 3; 29 message Value { 30 oneof val { 31 string str = 1; 32 int64 int = 2; 33 double real = 3; 34 } 35 } 36 map<string, Value> metadata = 4; 37 } 38 enum State { 39 UNKNOWN = 0; 40 FRESH = 1; 41 STALE = 2; 42 } 43 repeated Result results = 1; 44 State state = 2; 45 } 46 47 message SearchRequestV3 { 48 string query = 1; 49 } 50 51 // SearchServiceV3 is used to test grpc server reflection. 52 service SearchServiceV3 { 53 // Search is a unary RPC. 54 rpc Search(SearchRequestV3) returns (SearchResponseV3); 55 56 // StreamingSearch is a streaming RPC. 57 rpc StreamingSearch(stream SearchRequestV3) returns (stream SearchResponseV3); 58 }