1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 )
29
30 const (
31
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 type SearchResponse struct {
38 state protoimpl.MessageState
39 sizeCache protoimpl.SizeCache
40 unknownFields protoimpl.UnknownFields
41
42 Results []*SearchResponse_Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
43 }
44
45 func (x *SearchResponse) Reset() {
46 *x = SearchResponse{}
47 if protoimpl.UnsafeEnabled {
48 mi := &file_reflection_grpc_testing_test_proto_msgTypes[0]
49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
50 ms.StoreMessageInfo(mi)
51 }
52 }
53
54 func (x *SearchResponse) String() string {
55 return protoimpl.X.MessageStringOf(x)
56 }
57
58 func (*SearchResponse) ProtoMessage() {}
59
60 func (x *SearchResponse) ProtoReflect() protoreflect.Message {
61 mi := &file_reflection_grpc_testing_test_proto_msgTypes[0]
62 if protoimpl.UnsafeEnabled && x != nil {
63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
64 if ms.LoadMessageInfo() == nil {
65 ms.StoreMessageInfo(mi)
66 }
67 return ms
68 }
69 return mi.MessageOf(x)
70 }
71
72
73 func (*SearchResponse) Descriptor() ([]byte, []int) {
74 return file_reflection_grpc_testing_test_proto_rawDescGZIP(), []int{0}
75 }
76
77 func (x *SearchResponse) GetResults() []*SearchResponse_Result {
78 if x != nil {
79 return x.Results
80 }
81 return nil
82 }
83
84 type SearchRequest struct {
85 state protoimpl.MessageState
86 sizeCache protoimpl.SizeCache
87 unknownFields protoimpl.UnknownFields
88
89 Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
90 }
91
92 func (x *SearchRequest) Reset() {
93 *x = SearchRequest{}
94 if protoimpl.UnsafeEnabled {
95 mi := &file_reflection_grpc_testing_test_proto_msgTypes[1]
96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
97 ms.StoreMessageInfo(mi)
98 }
99 }
100
101 func (x *SearchRequest) String() string {
102 return protoimpl.X.MessageStringOf(x)
103 }
104
105 func (*SearchRequest) ProtoMessage() {}
106
107 func (x *SearchRequest) ProtoReflect() protoreflect.Message {
108 mi := &file_reflection_grpc_testing_test_proto_msgTypes[1]
109 if protoimpl.UnsafeEnabled && x != nil {
110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111 if ms.LoadMessageInfo() == nil {
112 ms.StoreMessageInfo(mi)
113 }
114 return ms
115 }
116 return mi.MessageOf(x)
117 }
118
119
120 func (*SearchRequest) Descriptor() ([]byte, []int) {
121 return file_reflection_grpc_testing_test_proto_rawDescGZIP(), []int{1}
122 }
123
124 func (x *SearchRequest) GetQuery() string {
125 if x != nil {
126 return x.Query
127 }
128 return ""
129 }
130
131 type SearchResponse_Result struct {
132 state protoimpl.MessageState
133 sizeCache protoimpl.SizeCache
134 unknownFields protoimpl.UnknownFields
135
136 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
137 Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
138 Snippets []string `protobuf:"bytes,3,rep,name=snippets,proto3" json:"snippets,omitempty"`
139 }
140
141 func (x *SearchResponse_Result) Reset() {
142 *x = SearchResponse_Result{}
143 if protoimpl.UnsafeEnabled {
144 mi := &file_reflection_grpc_testing_test_proto_msgTypes[2]
145 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
146 ms.StoreMessageInfo(mi)
147 }
148 }
149
150 func (x *SearchResponse_Result) String() string {
151 return protoimpl.X.MessageStringOf(x)
152 }
153
154 func (*SearchResponse_Result) ProtoMessage() {}
155
156 func (x *SearchResponse_Result) ProtoReflect() protoreflect.Message {
157 mi := &file_reflection_grpc_testing_test_proto_msgTypes[2]
158 if protoimpl.UnsafeEnabled && x != nil {
159 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
160 if ms.LoadMessageInfo() == nil {
161 ms.StoreMessageInfo(mi)
162 }
163 return ms
164 }
165 return mi.MessageOf(x)
166 }
167
168
169 func (*SearchResponse_Result) Descriptor() ([]byte, []int) {
170 return file_reflection_grpc_testing_test_proto_rawDescGZIP(), []int{0, 0}
171 }
172
173 func (x *SearchResponse_Result) GetUrl() string {
174 if x != nil {
175 return x.Url
176 }
177 return ""
178 }
179
180 func (x *SearchResponse_Result) GetTitle() string {
181 if x != nil {
182 return x.Title
183 }
184 return ""
185 }
186
187 func (x *SearchResponse_Result) GetSnippets() []string {
188 if x != nil {
189 return x.Snippets
190 }
191 return nil
192 }
193
194 var File_reflection_grpc_testing_test_proto protoreflect.FileDescriptor
195
196 var file_reflection_grpc_testing_test_proto_rawDesc = []byte{
197 0x0a, 0x22, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70,
198 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70,
199 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69,
200 0x6e, 0x67, 0x22, 0x9d, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73,
201 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73,
202 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65,
203 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70,
204 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73,
205 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x4c, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x10,
206 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c,
207 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
208 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6e, 0x69, 0x70, 0x70, 0x65,
209 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6e, 0x69, 0x70, 0x70, 0x65,
210 0x74, 0x73, 0x22, 0x25, 0x0a, 0x0d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75,
211 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01,
212 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x32, 0xa6, 0x01, 0x0a, 0x0d, 0x53, 0x65,
213 0x61, 0x72, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x53,
214 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x1b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
215 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65,
216 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e,
217 0x67, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
218 0x12, 0x50, 0x0a, 0x0f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x61,
219 0x72, 0x63, 0x68, 0x12, 0x1b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69,
220 0x6e, 0x67, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
221 0x1a, 0x1c, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e,
222 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01,
223 0x30, 0x01, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
224 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66,
225 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73,
226 0x74, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
227 }
228
229 var (
230 file_reflection_grpc_testing_test_proto_rawDescOnce sync.Once
231 file_reflection_grpc_testing_test_proto_rawDescData = file_reflection_grpc_testing_test_proto_rawDesc
232 )
233
234 func file_reflection_grpc_testing_test_proto_rawDescGZIP() []byte {
235 file_reflection_grpc_testing_test_proto_rawDescOnce.Do(func() {
236 file_reflection_grpc_testing_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_reflection_grpc_testing_test_proto_rawDescData)
237 })
238 return file_reflection_grpc_testing_test_proto_rawDescData
239 }
240
241 var file_reflection_grpc_testing_test_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
242 var file_reflection_grpc_testing_test_proto_goTypes = []interface{}{
243 (*SearchResponse)(nil),
244 (*SearchRequest)(nil),
245 (*SearchResponse_Result)(nil),
246 }
247 var file_reflection_grpc_testing_test_proto_depIdxs = []int32{
248 2,
249 1,
250 1,
251 0,
252 0,
253 3,
254 1,
255 1,
256 1,
257 0,
258 }
259
260 func init() { file_reflection_grpc_testing_test_proto_init() }
261 func file_reflection_grpc_testing_test_proto_init() {
262 if File_reflection_grpc_testing_test_proto != nil {
263 return
264 }
265 if !protoimpl.UnsafeEnabled {
266 file_reflection_grpc_testing_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
267 switch v := v.(*SearchResponse); i {
268 case 0:
269 return &v.state
270 case 1:
271 return &v.sizeCache
272 case 2:
273 return &v.unknownFields
274 default:
275 return nil
276 }
277 }
278 file_reflection_grpc_testing_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
279 switch v := v.(*SearchRequest); i {
280 case 0:
281 return &v.state
282 case 1:
283 return &v.sizeCache
284 case 2:
285 return &v.unknownFields
286 default:
287 return nil
288 }
289 }
290 file_reflection_grpc_testing_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
291 switch v := v.(*SearchResponse_Result); i {
292 case 0:
293 return &v.state
294 case 1:
295 return &v.sizeCache
296 case 2:
297 return &v.unknownFields
298 default:
299 return nil
300 }
301 }
302 }
303 type x struct{}
304 out := protoimpl.TypeBuilder{
305 File: protoimpl.DescBuilder{
306 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
307 RawDescriptor: file_reflection_grpc_testing_test_proto_rawDesc,
308 NumEnums: 0,
309 NumMessages: 3,
310 NumExtensions: 0,
311 NumServices: 1,
312 },
313 GoTypes: file_reflection_grpc_testing_test_proto_goTypes,
314 DependencyIndexes: file_reflection_grpc_testing_test_proto_depIdxs,
315 MessageInfos: file_reflection_grpc_testing_test_proto_msgTypes,
316 }.Build()
317 File_reflection_grpc_testing_test_proto = out.File
318 file_reflection_grpc_testing_test_proto_rawDesc = nil
319 file_reflection_grpc_testing_test_proto_goTypes = nil
320 file_reflection_grpc_testing_test_proto_depIdxs = nil
321 }
322
View as plain text