1// Copyright 2015 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: grpc/testing/payloads.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 ByteBufferParams struct {
43	state         protoimpl.MessageState
44	sizeCache     protoimpl.SizeCache
45	unknownFields protoimpl.UnknownFields
46
47	ReqSize  int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize,proto3" json:"req_size,omitempty"`
48	RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize,proto3" json:"resp_size,omitempty"`
49}
50
51func (x *ByteBufferParams) Reset() {
52	*x = ByteBufferParams{}
53	if protoimpl.UnsafeEnabled {
54		mi := &file_grpc_testing_payloads_proto_msgTypes[0]
55		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56		ms.StoreMessageInfo(mi)
57	}
58}
59
60func (x *ByteBufferParams) String() string {
61	return protoimpl.X.MessageStringOf(x)
62}
63
64func (*ByteBufferParams) ProtoMessage() {}
65
66func (x *ByteBufferParams) ProtoReflect() protoreflect.Message {
67	mi := &file_grpc_testing_payloads_proto_msgTypes[0]
68	if protoimpl.UnsafeEnabled && x != nil {
69		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70		if ms.LoadMessageInfo() == nil {
71			ms.StoreMessageInfo(mi)
72		}
73		return ms
74	}
75	return mi.MessageOf(x)
76}
77
78// Deprecated: Use ByteBufferParams.ProtoReflect.Descriptor instead.
79func (*ByteBufferParams) Descriptor() ([]byte, []int) {
80	return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{0}
81}
82
83func (x *ByteBufferParams) GetReqSize() int32 {
84	if x != nil {
85		return x.ReqSize
86	}
87	return 0
88}
89
90func (x *ByteBufferParams) GetRespSize() int32 {
91	if x != nil {
92		return x.RespSize
93	}
94	return 0
95}
96
97type SimpleProtoParams struct {
98	state         protoimpl.MessageState
99	sizeCache     protoimpl.SizeCache
100	unknownFields protoimpl.UnknownFields
101
102	ReqSize  int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize,proto3" json:"req_size,omitempty"`
103	RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize,proto3" json:"resp_size,omitempty"`
104}
105
106func (x *SimpleProtoParams) Reset() {
107	*x = SimpleProtoParams{}
108	if protoimpl.UnsafeEnabled {
109		mi := &file_grpc_testing_payloads_proto_msgTypes[1]
110		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111		ms.StoreMessageInfo(mi)
112	}
113}
114
115func (x *SimpleProtoParams) String() string {
116	return protoimpl.X.MessageStringOf(x)
117}
118
119func (*SimpleProtoParams) ProtoMessage() {}
120
121func (x *SimpleProtoParams) ProtoReflect() protoreflect.Message {
122	mi := &file_grpc_testing_payloads_proto_msgTypes[1]
123	if protoimpl.UnsafeEnabled && x != nil {
124		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125		if ms.LoadMessageInfo() == nil {
126			ms.StoreMessageInfo(mi)
127		}
128		return ms
129	}
130	return mi.MessageOf(x)
131}
132
133// Deprecated: Use SimpleProtoParams.ProtoReflect.Descriptor instead.
134func (*SimpleProtoParams) Descriptor() ([]byte, []int) {
135	return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{1}
136}
137
138func (x *SimpleProtoParams) GetReqSize() int32 {
139	if x != nil {
140		return x.ReqSize
141	}
142	return 0
143}
144
145func (x *SimpleProtoParams) GetRespSize() int32 {
146	if x != nil {
147		return x.RespSize
148	}
149	return 0
150}
151
152type ComplexProtoParams struct {
153	state         protoimpl.MessageState
154	sizeCache     protoimpl.SizeCache
155	unknownFields protoimpl.UnknownFields
156}
157
158func (x *ComplexProtoParams) Reset() {
159	*x = ComplexProtoParams{}
160	if protoimpl.UnsafeEnabled {
161		mi := &file_grpc_testing_payloads_proto_msgTypes[2]
162		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
163		ms.StoreMessageInfo(mi)
164	}
165}
166
167func (x *ComplexProtoParams) String() string {
168	return protoimpl.X.MessageStringOf(x)
169}
170
171func (*ComplexProtoParams) ProtoMessage() {}
172
173func (x *ComplexProtoParams) ProtoReflect() protoreflect.Message {
174	mi := &file_grpc_testing_payloads_proto_msgTypes[2]
175	if protoimpl.UnsafeEnabled && x != nil {
176		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
177		if ms.LoadMessageInfo() == nil {
178			ms.StoreMessageInfo(mi)
179		}
180		return ms
181	}
182	return mi.MessageOf(x)
183}
184
185// Deprecated: Use ComplexProtoParams.ProtoReflect.Descriptor instead.
186func (*ComplexProtoParams) Descriptor() ([]byte, []int) {
187	return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{2}
188}
189
190type PayloadConfig struct {
191	state         protoimpl.MessageState
192	sizeCache     protoimpl.SizeCache
193	unknownFields protoimpl.UnknownFields
194
195	// Types that are assignable to Payload:
196	//	*PayloadConfig_BytebufParams
197	//	*PayloadConfig_SimpleParams
198	//	*PayloadConfig_ComplexParams
199	Payload isPayloadConfig_Payload `protobuf_oneof:"payload"`
200}
201
202func (x *PayloadConfig) Reset() {
203	*x = PayloadConfig{}
204	if protoimpl.UnsafeEnabled {
205		mi := &file_grpc_testing_payloads_proto_msgTypes[3]
206		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
207		ms.StoreMessageInfo(mi)
208	}
209}
210
211func (x *PayloadConfig) String() string {
212	return protoimpl.X.MessageStringOf(x)
213}
214
215func (*PayloadConfig) ProtoMessage() {}
216
217func (x *PayloadConfig) ProtoReflect() protoreflect.Message {
218	mi := &file_grpc_testing_payloads_proto_msgTypes[3]
219	if protoimpl.UnsafeEnabled && x != nil {
220		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
221		if ms.LoadMessageInfo() == nil {
222			ms.StoreMessageInfo(mi)
223		}
224		return ms
225	}
226	return mi.MessageOf(x)
227}
228
229// Deprecated: Use PayloadConfig.ProtoReflect.Descriptor instead.
230func (*PayloadConfig) Descriptor() ([]byte, []int) {
231	return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{3}
232}
233
234func (m *PayloadConfig) GetPayload() isPayloadConfig_Payload {
235	if m != nil {
236		return m.Payload
237	}
238	return nil
239}
240
241func (x *PayloadConfig) GetBytebufParams() *ByteBufferParams {
242	if x, ok := x.GetPayload().(*PayloadConfig_BytebufParams); ok {
243		return x.BytebufParams
244	}
245	return nil
246}
247
248func (x *PayloadConfig) GetSimpleParams() *SimpleProtoParams {
249	if x, ok := x.GetPayload().(*PayloadConfig_SimpleParams); ok {
250		return x.SimpleParams
251	}
252	return nil
253}
254
255func (x *PayloadConfig) GetComplexParams() *ComplexProtoParams {
256	if x, ok := x.GetPayload().(*PayloadConfig_ComplexParams); ok {
257		return x.ComplexParams
258	}
259	return nil
260}
261
262type isPayloadConfig_Payload interface {
263	isPayloadConfig_Payload()
264}
265
266type PayloadConfig_BytebufParams struct {
267	BytebufParams *ByteBufferParams `protobuf:"bytes,1,opt,name=bytebuf_params,json=bytebufParams,proto3,oneof"`
268}
269
270type PayloadConfig_SimpleParams struct {
271	SimpleParams *SimpleProtoParams `protobuf:"bytes,2,opt,name=simple_params,json=simpleParams,proto3,oneof"`
272}
273
274type PayloadConfig_ComplexParams struct {
275	ComplexParams *ComplexProtoParams `protobuf:"bytes,3,opt,name=complex_params,json=complexParams,proto3,oneof"`
276}
277
278func (*PayloadConfig_BytebufParams) isPayloadConfig_Payload() {}
279
280func (*PayloadConfig_SimpleParams) isPayloadConfig_Payload() {}
281
282func (*PayloadConfig_ComplexParams) isPayloadConfig_Payload() {}
283
284var File_grpc_testing_payloads_proto protoreflect.FileDescriptor
285
286var file_grpc_testing_payloads_proto_rawDesc = []byte{
287	0x0a, 0x1b, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70,
288	0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67,
289	0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x4a, 0x0a, 0x10, 0x42,
290	0x79, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12,
291	0x19, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
292	0x05, 0x52, 0x07, 0x72, 0x65, 0x71, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65,
293	0x73, 0x70, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72,
294	0x65, 0x73, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x11, 0x53, 0x69, 0x6d, 0x70, 0x6c,
295	0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x19, 0x0a, 0x08,
296	0x72, 0x65, 0x71, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
297	0x72, 0x65, 0x71, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x70, 0x5f,
298	0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70,
299	0x53, 0x69, 0x7a, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x50,
300	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xf6, 0x01, 0x0a, 0x0d, 0x50,
301	0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x47, 0x0a, 0x0e,
302	0x62, 0x79, 0x74, 0x65, 0x62, 0x75, 0x66, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01,
303	0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74,
304	0x69, 0x6e, 0x67, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x50, 0x61,
305	0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x62, 0x75, 0x66, 0x50,
306	0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x46, 0x0a, 0x0d, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x5f,
307	0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67,
308	0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x69, 0x6d, 0x70,
309	0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52,
310	0x0c, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x49, 0x0a,
311	0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18,
312	0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
313	0x74, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x74,
314	0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6c,
315	0x65, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c,
316	0x6f, 0x61, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
317}
318
319var (
320	file_grpc_testing_payloads_proto_rawDescOnce sync.Once
321	file_grpc_testing_payloads_proto_rawDescData = file_grpc_testing_payloads_proto_rawDesc
322)
323
324func file_grpc_testing_payloads_proto_rawDescGZIP() []byte {
325	file_grpc_testing_payloads_proto_rawDescOnce.Do(func() {
326		file_grpc_testing_payloads_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_testing_payloads_proto_rawDescData)
327	})
328	return file_grpc_testing_payloads_proto_rawDescData
329}
330
331var file_grpc_testing_payloads_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
332var file_grpc_testing_payloads_proto_goTypes = []interface{}{
333	(*ByteBufferParams)(nil),   // 0: grpc.testing.ByteBufferParams
334	(*SimpleProtoParams)(nil),  // 1: grpc.testing.SimpleProtoParams
335	(*ComplexProtoParams)(nil), // 2: grpc.testing.ComplexProtoParams
336	(*PayloadConfig)(nil),      // 3: grpc.testing.PayloadConfig
337}
338var file_grpc_testing_payloads_proto_depIdxs = []int32{
339	0, // 0: grpc.testing.PayloadConfig.bytebuf_params:type_name -> grpc.testing.ByteBufferParams
340	1, // 1: grpc.testing.PayloadConfig.simple_params:type_name -> grpc.testing.SimpleProtoParams
341	2, // 2: grpc.testing.PayloadConfig.complex_params:type_name -> grpc.testing.ComplexProtoParams
342	3, // [3:3] is the sub-list for method output_type
343	3, // [3:3] is the sub-list for method input_type
344	3, // [3:3] is the sub-list for extension type_name
345	3, // [3:3] is the sub-list for extension extendee
346	0, // [0:3] is the sub-list for field type_name
347}
348
349func init() { file_grpc_testing_payloads_proto_init() }
350func file_grpc_testing_payloads_proto_init() {
351	if File_grpc_testing_payloads_proto != nil {
352		return
353	}
354	if !protoimpl.UnsafeEnabled {
355		file_grpc_testing_payloads_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
356			switch v := v.(*ByteBufferParams); i {
357			case 0:
358				return &v.state
359			case 1:
360				return &v.sizeCache
361			case 2:
362				return &v.unknownFields
363			default:
364				return nil
365			}
366		}
367		file_grpc_testing_payloads_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
368			switch v := v.(*SimpleProtoParams); i {
369			case 0:
370				return &v.state
371			case 1:
372				return &v.sizeCache
373			case 2:
374				return &v.unknownFields
375			default:
376				return nil
377			}
378		}
379		file_grpc_testing_payloads_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
380			switch v := v.(*ComplexProtoParams); i {
381			case 0:
382				return &v.state
383			case 1:
384				return &v.sizeCache
385			case 2:
386				return &v.unknownFields
387			default:
388				return nil
389			}
390		}
391		file_grpc_testing_payloads_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
392			switch v := v.(*PayloadConfig); i {
393			case 0:
394				return &v.state
395			case 1:
396				return &v.sizeCache
397			case 2:
398				return &v.unknownFields
399			default:
400				return nil
401			}
402		}
403	}
404	file_grpc_testing_payloads_proto_msgTypes[3].OneofWrappers = []interface{}{
405		(*PayloadConfig_BytebufParams)(nil),
406		(*PayloadConfig_SimpleParams)(nil),
407		(*PayloadConfig_ComplexParams)(nil),
408	}
409	type x struct{}
410	out := protoimpl.TypeBuilder{
411		File: protoimpl.DescBuilder{
412			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
413			RawDescriptor: file_grpc_testing_payloads_proto_rawDesc,
414			NumEnums:      0,
415			NumMessages:   4,
416			NumExtensions: 0,
417			NumServices:   0,
418		},
419		GoTypes:           file_grpc_testing_payloads_proto_goTypes,
420		DependencyIndexes: file_grpc_testing_payloads_proto_depIdxs,
421		MessageInfos:      file_grpc_testing_payloads_proto_msgTypes,
422	}.Build()
423	File_grpc_testing_payloads_proto = out.File
424	file_grpc_testing_payloads_proto_rawDesc = nil
425	file_grpc_testing_payloads_proto_goTypes = nil
426	file_grpc_testing_payloads_proto_depIdxs = nil
427}
428