1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: payloads.proto
6 import proto "github.com/golang/protobuf/proto"
10 // Reference imports to suppress errors if they are not otherwise used.
15 type ByteBufferParams struct {
16 ReqSize int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize" json:"req_size,omitempty"`
17 RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize" json:"resp_size,omitempty"`
20 func (m *ByteBufferParams) Reset() { *m = ByteBufferParams{} }
21 func (m *ByteBufferParams) String() string { return proto.CompactTextString(m) }
22 func (*ByteBufferParams) ProtoMessage() {}
23 func (*ByteBufferParams) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
25 func (m *ByteBufferParams) GetReqSize() int32 {
32 func (m *ByteBufferParams) GetRespSize() int32 {
39 type SimpleProtoParams struct {
40 ReqSize int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize" json:"req_size,omitempty"`
41 RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize" json:"resp_size,omitempty"`
44 func (m *SimpleProtoParams) Reset() { *m = SimpleProtoParams{} }
45 func (m *SimpleProtoParams) String() string { return proto.CompactTextString(m) }
46 func (*SimpleProtoParams) ProtoMessage() {}
47 func (*SimpleProtoParams) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
49 func (m *SimpleProtoParams) GetReqSize() int32 {
56 func (m *SimpleProtoParams) GetRespSize() int32 {
63 type ComplexProtoParams struct {
66 func (m *ComplexProtoParams) Reset() { *m = ComplexProtoParams{} }
67 func (m *ComplexProtoParams) String() string { return proto.CompactTextString(m) }
68 func (*ComplexProtoParams) ProtoMessage() {}
69 func (*ComplexProtoParams) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
71 type PayloadConfig struct {
72 // Types that are valid to be assigned to Payload:
73 // *PayloadConfig_BytebufParams
74 // *PayloadConfig_SimpleParams
75 // *PayloadConfig_ComplexParams
76 Payload isPayloadConfig_Payload `protobuf_oneof:"payload"`
79 func (m *PayloadConfig) Reset() { *m = PayloadConfig{} }
80 func (m *PayloadConfig) String() string { return proto.CompactTextString(m) }
81 func (*PayloadConfig) ProtoMessage() {}
82 func (*PayloadConfig) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
84 type isPayloadConfig_Payload interface {
85 isPayloadConfig_Payload()
88 type PayloadConfig_BytebufParams struct {
89 BytebufParams *ByteBufferParams `protobuf:"bytes,1,opt,name=bytebuf_params,json=bytebufParams,oneof"`
91 type PayloadConfig_SimpleParams struct {
92 SimpleParams *SimpleProtoParams `protobuf:"bytes,2,opt,name=simple_params,json=simpleParams,oneof"`
94 type PayloadConfig_ComplexParams struct {
95 ComplexParams *ComplexProtoParams `protobuf:"bytes,3,opt,name=complex_params,json=complexParams,oneof"`
98 func (*PayloadConfig_BytebufParams) isPayloadConfig_Payload() {}
99 func (*PayloadConfig_SimpleParams) isPayloadConfig_Payload() {}
100 func (*PayloadConfig_ComplexParams) isPayloadConfig_Payload() {}
102 func (m *PayloadConfig) GetPayload() isPayloadConfig_Payload {
109 func (m *PayloadConfig) GetBytebufParams() *ByteBufferParams {
110 if x, ok := m.GetPayload().(*PayloadConfig_BytebufParams); ok {
111 return x.BytebufParams
116 func (m *PayloadConfig) GetSimpleParams() *SimpleProtoParams {
117 if x, ok := m.GetPayload().(*PayloadConfig_SimpleParams); ok {
118 return x.SimpleParams
123 func (m *PayloadConfig) GetComplexParams() *ComplexProtoParams {
124 if x, ok := m.GetPayload().(*PayloadConfig_ComplexParams); ok {
125 return x.ComplexParams
130 // XXX_OneofFuncs is for the internal use of the proto package.
131 func (*PayloadConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
132 return _PayloadConfig_OneofMarshaler, _PayloadConfig_OneofUnmarshaler, _PayloadConfig_OneofSizer, []interface{}{
133 (*PayloadConfig_BytebufParams)(nil),
134 (*PayloadConfig_SimpleParams)(nil),
135 (*PayloadConfig_ComplexParams)(nil),
139 func _PayloadConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
140 m := msg.(*PayloadConfig)
142 switch x := m.Payload.(type) {
143 case *PayloadConfig_BytebufParams:
144 b.EncodeVarint(1<<3 | proto.WireBytes)
145 if err := b.EncodeMessage(x.BytebufParams); err != nil {
148 case *PayloadConfig_SimpleParams:
149 b.EncodeVarint(2<<3 | proto.WireBytes)
150 if err := b.EncodeMessage(x.SimpleParams); err != nil {
153 case *PayloadConfig_ComplexParams:
154 b.EncodeVarint(3<<3 | proto.WireBytes)
155 if err := b.EncodeMessage(x.ComplexParams); err != nil {
160 return fmt.Errorf("PayloadConfig.Payload has unexpected type %T", x)
165 func _PayloadConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
166 m := msg.(*PayloadConfig)
168 case 1: // payload.bytebuf_params
169 if wire != proto.WireBytes {
170 return true, proto.ErrInternalBadWireType
172 msg := new(ByteBufferParams)
173 err := b.DecodeMessage(msg)
174 m.Payload = &PayloadConfig_BytebufParams{msg}
176 case 2: // payload.simple_params
177 if wire != proto.WireBytes {
178 return true, proto.ErrInternalBadWireType
180 msg := new(SimpleProtoParams)
181 err := b.DecodeMessage(msg)
182 m.Payload = &PayloadConfig_SimpleParams{msg}
184 case 3: // payload.complex_params
185 if wire != proto.WireBytes {
186 return true, proto.ErrInternalBadWireType
188 msg := new(ComplexProtoParams)
189 err := b.DecodeMessage(msg)
190 m.Payload = &PayloadConfig_ComplexParams{msg}
197 func _PayloadConfig_OneofSizer(msg proto.Message) (n int) {
198 m := msg.(*PayloadConfig)
200 switch x := m.Payload.(type) {
201 case *PayloadConfig_BytebufParams:
202 s := proto.Size(x.BytebufParams)
203 n += proto.SizeVarint(1<<3 | proto.WireBytes)
204 n += proto.SizeVarint(uint64(s))
206 case *PayloadConfig_SimpleParams:
207 s := proto.Size(x.SimpleParams)
208 n += proto.SizeVarint(2<<3 | proto.WireBytes)
209 n += proto.SizeVarint(uint64(s))
211 case *PayloadConfig_ComplexParams:
212 s := proto.Size(x.ComplexParams)
213 n += proto.SizeVarint(3<<3 | proto.WireBytes)
214 n += proto.SizeVarint(uint64(s))
218 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
224 proto.RegisterType((*ByteBufferParams)(nil), "grpc.testing.ByteBufferParams")
225 proto.RegisterType((*SimpleProtoParams)(nil), "grpc.testing.SimpleProtoParams")
226 proto.RegisterType((*ComplexProtoParams)(nil), "grpc.testing.ComplexProtoParams")
227 proto.RegisterType((*PayloadConfig)(nil), "grpc.testing.PayloadConfig")
230 func init() { proto.RegisterFile("payloads.proto", fileDescriptor2) }
232 var fileDescriptor2 = []byte{
233 // 254 bytes of a gzipped FileDescriptorProto
234 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2b, 0x48, 0xac, 0xcc,
235 0xc9, 0x4f, 0x4c, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x49, 0x2f, 0x2a, 0x48,
236 0xd6, 0x2b, 0x49, 0x2d, 0x2e, 0xc9, 0xcc, 0x4b, 0x57, 0xf2, 0xe2, 0x12, 0x70, 0xaa, 0x2c, 0x49,
237 0x75, 0x2a, 0x4d, 0x4b, 0x4b, 0x2d, 0x0a, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0x16, 0x92, 0xe4, 0xe2,
238 0x28, 0x4a, 0x2d, 0x8c, 0x2f, 0xce, 0xac, 0x4a, 0x95, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x0d, 0x62,
239 0x2f, 0x4a, 0x2d, 0x0c, 0xce, 0xac, 0x4a, 0x15, 0x92, 0xe6, 0xe2, 0x2c, 0x4a, 0x2d, 0x2e, 0x80,
240 0xc8, 0x31, 0x81, 0xe5, 0x38, 0x40, 0x02, 0x20, 0x49, 0x25, 0x6f, 0x2e, 0xc1, 0xe0, 0xcc, 0xdc,
241 0x82, 0x9c, 0xd4, 0x00, 0x90, 0x45, 0x14, 0x1a, 0x26, 0xc2, 0x25, 0xe4, 0x9c, 0x0f, 0x32, 0xac,
242 0x02, 0xc9, 0x34, 0xa5, 0x6f, 0x8c, 0x5c, 0xbc, 0x01, 0x10, 0xff, 0x38, 0xe7, 0xe7, 0xa5, 0x65,
243 0xa6, 0x0b, 0xb9, 0x73, 0xf1, 0x25, 0x55, 0x96, 0xa4, 0x26, 0x95, 0xa6, 0xc5, 0x17, 0x80, 0xd5,
244 0x80, 0x6d, 0xe1, 0x36, 0x92, 0xd3, 0x43, 0xf6, 0xa7, 0x1e, 0xba, 0x27, 0x3d, 0x18, 0x82, 0x78,
245 0xa1, 0xfa, 0xa0, 0x0e, 0x75, 0xe3, 0xe2, 0x2d, 0x06, 0xbb, 0x1e, 0x66, 0x0e, 0x13, 0xd8, 0x1c,
246 0x79, 0x54, 0x73, 0x30, 0x3c, 0xe8, 0xc1, 0x10, 0xc4, 0x03, 0xd1, 0x07, 0x35, 0xc7, 0x93, 0x8b,
247 0x2f, 0x19, 0xe2, 0x70, 0x98, 0x41, 0xcc, 0x60, 0x83, 0x14, 0x50, 0x0d, 0xc2, 0xf4, 0x1c, 0xc8,
248 0x49, 0x50, 0x9d, 0x10, 0x01, 0x27, 0x4e, 0x2e, 0x76, 0x68, 0xe4, 0x25, 0xb1, 0x81, 0x23, 0xcf,
249 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xb0, 0x8c, 0x18, 0x4e, 0xce, 0x01, 0x00, 0x00,