google.golang.org/grpc@v1.74.2/reflection/grpc_testing/test.pb.go (about) 1 // Copyright 2017 gRPC authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.36.6 18 // protoc v5.27.1 19 // source: reflection/grpc_testing/test.proto 20 21 package grpc_testing 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28 unsafe "unsafe" 29 ) 30 31 const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36 ) 37 38 type SearchResponse struct { 39 state protoimpl.MessageState `protogen:"open.v1"` 40 Results []*SearchResponse_Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` 41 unknownFields protoimpl.UnknownFields 42 sizeCache protoimpl.SizeCache 43 } 44 45 func (x *SearchResponse) Reset() { 46 *x = SearchResponse{} 47 mi := &file_reflection_grpc_testing_test_proto_msgTypes[0] 48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 49 ms.StoreMessageInfo(mi) 50 } 51 52 func (x *SearchResponse) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*SearchResponse) ProtoMessage() {} 57 58 func (x *SearchResponse) ProtoReflect() protoreflect.Message { 59 mi := &file_reflection_grpc_testing_test_proto_msgTypes[0] 60 if x != nil { 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 if ms.LoadMessageInfo() == nil { 63 ms.StoreMessageInfo(mi) 64 } 65 return ms 66 } 67 return mi.MessageOf(x) 68 } 69 70 // Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead. 71 func (*SearchResponse) Descriptor() ([]byte, []int) { 72 return file_reflection_grpc_testing_test_proto_rawDescGZIP(), []int{0} 73 } 74 75 func (x *SearchResponse) GetResults() []*SearchResponse_Result { 76 if x != nil { 77 return x.Results 78 } 79 return nil 80 } 81 82 type SearchRequest struct { 83 state protoimpl.MessageState `protogen:"open.v1"` 84 Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` 85 unknownFields protoimpl.UnknownFields 86 sizeCache protoimpl.SizeCache 87 } 88 89 func (x *SearchRequest) Reset() { 90 *x = SearchRequest{} 91 mi := &file_reflection_grpc_testing_test_proto_msgTypes[1] 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 ms.StoreMessageInfo(mi) 94 } 95 96 func (x *SearchRequest) String() string { 97 return protoimpl.X.MessageStringOf(x) 98 } 99 100 func (*SearchRequest) ProtoMessage() {} 101 102 func (x *SearchRequest) ProtoReflect() protoreflect.Message { 103 mi := &file_reflection_grpc_testing_test_proto_msgTypes[1] 104 if x != nil { 105 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 106 if ms.LoadMessageInfo() == nil { 107 ms.StoreMessageInfo(mi) 108 } 109 return ms 110 } 111 return mi.MessageOf(x) 112 } 113 114 // Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead. 115 func (*SearchRequest) Descriptor() ([]byte, []int) { 116 return file_reflection_grpc_testing_test_proto_rawDescGZIP(), []int{1} 117 } 118 119 func (x *SearchRequest) GetQuery() string { 120 if x != nil { 121 return x.Query 122 } 123 return "" 124 } 125 126 type SearchResponse_Result struct { 127 state protoimpl.MessageState `protogen:"open.v1"` 128 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` 129 Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` 130 Snippets []string `protobuf:"bytes,3,rep,name=snippets,proto3" json:"snippets,omitempty"` 131 unknownFields protoimpl.UnknownFields 132 sizeCache protoimpl.SizeCache 133 } 134 135 func (x *SearchResponse_Result) Reset() { 136 *x = SearchResponse_Result{} 137 mi := &file_reflection_grpc_testing_test_proto_msgTypes[2] 138 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 139 ms.StoreMessageInfo(mi) 140 } 141 142 func (x *SearchResponse_Result) String() string { 143 return protoimpl.X.MessageStringOf(x) 144 } 145 146 func (*SearchResponse_Result) ProtoMessage() {} 147 148 func (x *SearchResponse_Result) ProtoReflect() protoreflect.Message { 149 mi := &file_reflection_grpc_testing_test_proto_msgTypes[2] 150 if x != nil { 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 if ms.LoadMessageInfo() == nil { 153 ms.StoreMessageInfo(mi) 154 } 155 return ms 156 } 157 return mi.MessageOf(x) 158 } 159 160 // Deprecated: Use SearchResponse_Result.ProtoReflect.Descriptor instead. 161 func (*SearchResponse_Result) Descriptor() ([]byte, []int) { 162 return file_reflection_grpc_testing_test_proto_rawDescGZIP(), []int{0, 0} 163 } 164 165 func (x *SearchResponse_Result) GetUrl() string { 166 if x != nil { 167 return x.Url 168 } 169 return "" 170 } 171 172 func (x *SearchResponse_Result) GetTitle() string { 173 if x != nil { 174 return x.Title 175 } 176 return "" 177 } 178 179 func (x *SearchResponse_Result) GetSnippets() []string { 180 if x != nil { 181 return x.Snippets 182 } 183 return nil 184 } 185 186 var File_reflection_grpc_testing_test_proto protoreflect.FileDescriptor 187 188 const file_reflection_grpc_testing_test_proto_rawDesc = "" + 189 "\n" + 190 "\"reflection/grpc_testing/test.proto\x12\fgrpc.testing\"\x9d\x01\n" + 191 "\x0eSearchResponse\x12=\n" + 192 "\aresults\x18\x01 \x03(\v2#.grpc.testing.SearchResponse.ResultR\aresults\x1aL\n" + 193 "\x06Result\x12\x10\n" + 194 "\x03url\x18\x01 \x01(\tR\x03url\x12\x14\n" + 195 "\x05title\x18\x02 \x01(\tR\x05title\x12\x1a\n" + 196 "\bsnippets\x18\x03 \x03(\tR\bsnippets\"%\n" + 197 "\rSearchRequest\x12\x14\n" + 198 "\x05query\x18\x01 \x01(\tR\x05query2\xa6\x01\n" + 199 "\rSearchService\x12C\n" + 200 "\x06Search\x12\x1b.grpc.testing.SearchRequest\x1a\x1c.grpc.testing.SearchResponse\x12P\n" + 201 "\x0fStreamingSearch\x12\x1b.grpc.testing.SearchRequest\x1a\x1c.grpc.testing.SearchResponse(\x010\x01B0Z.google.golang.org/grpc/reflection/grpc_testingb\x06proto3" 202 203 var ( 204 file_reflection_grpc_testing_test_proto_rawDescOnce sync.Once 205 file_reflection_grpc_testing_test_proto_rawDescData []byte 206 ) 207 208 func file_reflection_grpc_testing_test_proto_rawDescGZIP() []byte { 209 file_reflection_grpc_testing_test_proto_rawDescOnce.Do(func() { 210 file_reflection_grpc_testing_test_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reflection_grpc_testing_test_proto_rawDesc), len(file_reflection_grpc_testing_test_proto_rawDesc))) 211 }) 212 return file_reflection_grpc_testing_test_proto_rawDescData 213 } 214 215 var file_reflection_grpc_testing_test_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 216 var file_reflection_grpc_testing_test_proto_goTypes = []any{ 217 (*SearchResponse)(nil), // 0: grpc.testing.SearchResponse 218 (*SearchRequest)(nil), // 1: grpc.testing.SearchRequest 219 (*SearchResponse_Result)(nil), // 2: grpc.testing.SearchResponse.Result 220 } 221 var file_reflection_grpc_testing_test_proto_depIdxs = []int32{ 222 2, // 0: grpc.testing.SearchResponse.results:type_name -> grpc.testing.SearchResponse.Result 223 1, // 1: grpc.testing.SearchService.Search:input_type -> grpc.testing.SearchRequest 224 1, // 2: grpc.testing.SearchService.StreamingSearch:input_type -> grpc.testing.SearchRequest 225 0, // 3: grpc.testing.SearchService.Search:output_type -> grpc.testing.SearchResponse 226 0, // 4: grpc.testing.SearchService.StreamingSearch:output_type -> grpc.testing.SearchResponse 227 3, // [3:5] is the sub-list for method output_type 228 1, // [1:3] is the sub-list for method input_type 229 1, // [1:1] is the sub-list for extension type_name 230 1, // [1:1] is the sub-list for extension extendee 231 0, // [0:1] is the sub-list for field type_name 232 } 233 234 func init() { file_reflection_grpc_testing_test_proto_init() } 235 func file_reflection_grpc_testing_test_proto_init() { 236 if File_reflection_grpc_testing_test_proto != nil { 237 return 238 } 239 type x struct{} 240 out := protoimpl.TypeBuilder{ 241 File: protoimpl.DescBuilder{ 242 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 243 RawDescriptor: unsafe.Slice(unsafe.StringData(file_reflection_grpc_testing_test_proto_rawDesc), len(file_reflection_grpc_testing_test_proto_rawDesc)), 244 NumEnums: 0, 245 NumMessages: 3, 246 NumExtensions: 0, 247 NumServices: 1, 248 }, 249 GoTypes: file_reflection_grpc_testing_test_proto_goTypes, 250 DependencyIndexes: file_reflection_grpc_testing_test_proto_depIdxs, 251 MessageInfos: file_reflection_grpc_testing_test_proto_msgTypes, 252 }.Build() 253 File_reflection_grpc_testing_test_proto = out.File 254 file_reflection_grpc_testing_test_proto_goTypes = nil 255 file_reflection_grpc_testing_test_proto_depIdxs = nil 256 }