| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: payloads.proto |
| |
| package grpc_testing |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| |
| type ByteBufferParams struct { |
| ReqSize int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize,proto3" json:"req_size,omitempty"` |
| RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize,proto3" json:"resp_size,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ByteBufferParams) Reset() { *m = ByteBufferParams{} } |
| func (m *ByteBufferParams) String() string { return proto.CompactTextString(m) } |
| func (*ByteBufferParams) ProtoMessage() {} |
| func (*ByteBufferParams) Descriptor() ([]byte, []int) { |
| return fileDescriptor_payloads_3abc71de35f06c83, []int{0} |
| } |
| func (m *ByteBufferParams) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ByteBufferParams.Unmarshal(m, b) |
| } |
| func (m *ByteBufferParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ByteBufferParams.Marshal(b, m, deterministic) |
| } |
| func (dst *ByteBufferParams) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ByteBufferParams.Merge(dst, src) |
| } |
| func (m *ByteBufferParams) XXX_Size() int { |
| return xxx_messageInfo_ByteBufferParams.Size(m) |
| } |
| func (m *ByteBufferParams) XXX_DiscardUnknown() { |
| xxx_messageInfo_ByteBufferParams.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ByteBufferParams proto.InternalMessageInfo |
| |
| func (m *ByteBufferParams) GetReqSize() int32 { |
| if m != nil { |
| return m.ReqSize |
| } |
| return 0 |
| } |
| |
| func (m *ByteBufferParams) GetRespSize() int32 { |
| if m != nil { |
| return m.RespSize |
| } |
| return 0 |
| } |
| |
| type SimpleProtoParams struct { |
| ReqSize int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize,proto3" json:"req_size,omitempty"` |
| RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize,proto3" json:"resp_size,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *SimpleProtoParams) Reset() { *m = SimpleProtoParams{} } |
| func (m *SimpleProtoParams) String() string { return proto.CompactTextString(m) } |
| func (*SimpleProtoParams) ProtoMessage() {} |
| func (*SimpleProtoParams) Descriptor() ([]byte, []int) { |
| return fileDescriptor_payloads_3abc71de35f06c83, []int{1} |
| } |
| func (m *SimpleProtoParams) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_SimpleProtoParams.Unmarshal(m, b) |
| } |
| func (m *SimpleProtoParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_SimpleProtoParams.Marshal(b, m, deterministic) |
| } |
| func (dst *SimpleProtoParams) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_SimpleProtoParams.Merge(dst, src) |
| } |
| func (m *SimpleProtoParams) XXX_Size() int { |
| return xxx_messageInfo_SimpleProtoParams.Size(m) |
| } |
| func (m *SimpleProtoParams) XXX_DiscardUnknown() { |
| xxx_messageInfo_SimpleProtoParams.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_SimpleProtoParams proto.InternalMessageInfo |
| |
| func (m *SimpleProtoParams) GetReqSize() int32 { |
| if m != nil { |
| return m.ReqSize |
| } |
| return 0 |
| } |
| |
| func (m *SimpleProtoParams) GetRespSize() int32 { |
| if m != nil { |
| return m.RespSize |
| } |
| return 0 |
| } |
| |
| type ComplexProtoParams struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ComplexProtoParams) Reset() { *m = ComplexProtoParams{} } |
| func (m *ComplexProtoParams) String() string { return proto.CompactTextString(m) } |
| func (*ComplexProtoParams) ProtoMessage() {} |
| func (*ComplexProtoParams) Descriptor() ([]byte, []int) { |
| return fileDescriptor_payloads_3abc71de35f06c83, []int{2} |
| } |
| func (m *ComplexProtoParams) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ComplexProtoParams.Unmarshal(m, b) |
| } |
| func (m *ComplexProtoParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ComplexProtoParams.Marshal(b, m, deterministic) |
| } |
| func (dst *ComplexProtoParams) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ComplexProtoParams.Merge(dst, src) |
| } |
| func (m *ComplexProtoParams) XXX_Size() int { |
| return xxx_messageInfo_ComplexProtoParams.Size(m) |
| } |
| func (m *ComplexProtoParams) XXX_DiscardUnknown() { |
| xxx_messageInfo_ComplexProtoParams.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ComplexProtoParams proto.InternalMessageInfo |
| |
| type PayloadConfig struct { |
| // Types that are valid to be assigned to Payload: |
| // *PayloadConfig_BytebufParams |
| // *PayloadConfig_SimpleParams |
| // *PayloadConfig_ComplexParams |
| Payload isPayloadConfig_Payload `protobuf_oneof:"payload"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *PayloadConfig) Reset() { *m = PayloadConfig{} } |
| func (m *PayloadConfig) String() string { return proto.CompactTextString(m) } |
| func (*PayloadConfig) ProtoMessage() {} |
| func (*PayloadConfig) Descriptor() ([]byte, []int) { |
| return fileDescriptor_payloads_3abc71de35f06c83, []int{3} |
| } |
| func (m *PayloadConfig) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_PayloadConfig.Unmarshal(m, b) |
| } |
| func (m *PayloadConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_PayloadConfig.Marshal(b, m, deterministic) |
| } |
| func (dst *PayloadConfig) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_PayloadConfig.Merge(dst, src) |
| } |
| func (m *PayloadConfig) XXX_Size() int { |
| return xxx_messageInfo_PayloadConfig.Size(m) |
| } |
| func (m *PayloadConfig) XXX_DiscardUnknown() { |
| xxx_messageInfo_PayloadConfig.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_PayloadConfig proto.InternalMessageInfo |
| |
| type isPayloadConfig_Payload interface { |
| isPayloadConfig_Payload() |
| } |
| |
| type PayloadConfig_BytebufParams struct { |
| BytebufParams *ByteBufferParams `protobuf:"bytes,1,opt,name=bytebuf_params,json=bytebufParams,proto3,oneof"` |
| } |
| |
| type PayloadConfig_SimpleParams struct { |
| SimpleParams *SimpleProtoParams `protobuf:"bytes,2,opt,name=simple_params,json=simpleParams,proto3,oneof"` |
| } |
| |
| type PayloadConfig_ComplexParams struct { |
| ComplexParams *ComplexProtoParams `protobuf:"bytes,3,opt,name=complex_params,json=complexParams,proto3,oneof"` |
| } |
| |
| func (*PayloadConfig_BytebufParams) isPayloadConfig_Payload() {} |
| |
| func (*PayloadConfig_SimpleParams) isPayloadConfig_Payload() {} |
| |
| func (*PayloadConfig_ComplexParams) isPayloadConfig_Payload() {} |
| |
| func (m *PayloadConfig) GetPayload() isPayloadConfig_Payload { |
| if m != nil { |
| return m.Payload |
| } |
| return nil |
| } |
| |
| func (m *PayloadConfig) GetBytebufParams() *ByteBufferParams { |
| if x, ok := m.GetPayload().(*PayloadConfig_BytebufParams); ok { |
| return x.BytebufParams |
| } |
| return nil |
| } |
| |
| func (m *PayloadConfig) GetSimpleParams() *SimpleProtoParams { |
| if x, ok := m.GetPayload().(*PayloadConfig_SimpleParams); ok { |
| return x.SimpleParams |
| } |
| return nil |
| } |
| |
| func (m *PayloadConfig) GetComplexParams() *ComplexProtoParams { |
| if x, ok := m.GetPayload().(*PayloadConfig_ComplexParams); ok { |
| return x.ComplexParams |
| } |
| return nil |
| } |
| |
| // XXX_OneofFuncs is for the internal use of the proto package. |
| 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{}) { |
| return _PayloadConfig_OneofMarshaler, _PayloadConfig_OneofUnmarshaler, _PayloadConfig_OneofSizer, []interface{}{ |
| (*PayloadConfig_BytebufParams)(nil), |
| (*PayloadConfig_SimpleParams)(nil), |
| (*PayloadConfig_ComplexParams)(nil), |
| } |
| } |
| |
| func _PayloadConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| m := msg.(*PayloadConfig) |
| // payload |
| switch x := m.Payload.(type) { |
| case *PayloadConfig_BytebufParams: |
| b.EncodeVarint(1<<3 | proto.WireBytes) |
| if err := b.EncodeMessage(x.BytebufParams); err != nil { |
| return err |
| } |
| case *PayloadConfig_SimpleParams: |
| b.EncodeVarint(2<<3 | proto.WireBytes) |
| if err := b.EncodeMessage(x.SimpleParams); err != nil { |
| return err |
| } |
| case *PayloadConfig_ComplexParams: |
| b.EncodeVarint(3<<3 | proto.WireBytes) |
| if err := b.EncodeMessage(x.ComplexParams); err != nil { |
| return err |
| } |
| case nil: |
| default: |
| return fmt.Errorf("PayloadConfig.Payload has unexpected type %T", x) |
| } |
| return nil |
| } |
| |
| func _PayloadConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| m := msg.(*PayloadConfig) |
| switch tag { |
| case 1: // payload.bytebuf_params |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| msg := new(ByteBufferParams) |
| err := b.DecodeMessage(msg) |
| m.Payload = &PayloadConfig_BytebufParams{msg} |
| return true, err |
| case 2: // payload.simple_params |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| msg := new(SimpleProtoParams) |
| err := b.DecodeMessage(msg) |
| m.Payload = &PayloadConfig_SimpleParams{msg} |
| return true, err |
| case 3: // payload.complex_params |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| msg := new(ComplexProtoParams) |
| err := b.DecodeMessage(msg) |
| m.Payload = &PayloadConfig_ComplexParams{msg} |
| return true, err |
| default: |
| return false, nil |
| } |
| } |
| |
| func _PayloadConfig_OneofSizer(msg proto.Message) (n int) { |
| m := msg.(*PayloadConfig) |
| // payload |
| switch x := m.Payload.(type) { |
| case *PayloadConfig_BytebufParams: |
| s := proto.Size(x.BytebufParams) |
| n += 1 // tag and wire |
| n += proto.SizeVarint(uint64(s)) |
| n += s |
| case *PayloadConfig_SimpleParams: |
| s := proto.Size(x.SimpleParams) |
| n += 1 // tag and wire |
| n += proto.SizeVarint(uint64(s)) |
| n += s |
| case *PayloadConfig_ComplexParams: |
| s := proto.Size(x.ComplexParams) |
| n += 1 // tag and wire |
| n += proto.SizeVarint(uint64(s)) |
| n += s |
| case nil: |
| default: |
| panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| } |
| return n |
| } |
| |
| func init() { |
| proto.RegisterType((*ByteBufferParams)(nil), "grpc.testing.ByteBufferParams") |
| proto.RegisterType((*SimpleProtoParams)(nil), "grpc.testing.SimpleProtoParams") |
| proto.RegisterType((*ComplexProtoParams)(nil), "grpc.testing.ComplexProtoParams") |
| proto.RegisterType((*PayloadConfig)(nil), "grpc.testing.PayloadConfig") |
| } |
| |
| func init() { proto.RegisterFile("payloads.proto", fileDescriptor_payloads_3abc71de35f06c83) } |
| |
| var fileDescriptor_payloads_3abc71de35f06c83 = []byte{ |
| // 254 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08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xe3, 0xe2, 0x2d, 0x06, 0xbb, 0x1e, 0x66, 0x0e, 0x13, 0xd8, 0x1c, |
| 0x79, 0x54, 0x73, 0x30, 0x3c, 0xe8, 0xc1, 0x10, 0xc4, 0x03, 0xd1, 0x07, 0x35, 0xc7, 0x93, 0x8b, |
| 0x2f, 0x19, 0xe2, 0x70, 0x98, 0x41, 0xcc, 0x60, 0x83, 0x14, 0x50, 0x0d, 0xc2, 0xf4, 0x1c, 0xc8, |
| 0x49, 0x50, 0x9d, 0x10, 0x01, 0x27, 0x4e, 0x2e, 0x76, 0x68, 0xe4, 0x25, 0xb1, 0x81, 0x23, 0xcf, |
| 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xb0, 0x8c, 0x18, 0x4e, 0xce, 0x01, 0x00, 0x00, |
| } |