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