mirror of https://github.com/grpc/grpc-go.git
				
				
				
			
		
			
				
	
	
		
			276 lines
		
	
	
		
			9.9 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			276 lines
		
	
	
		
			9.9 KiB
		
	
	
	
		
			Go
		
	
	
	
| // Code generated by protoc-gen-go. DO NOT EDIT.
 | |
| // source: benchmark/grpc_testing/payloads.proto
 | |
| 
 | |
| package grpc_testing
 | |
| 
 | |
| import (
 | |
| 	fmt "fmt"
 | |
| 	proto "github.com/golang/protobuf/proto"
 | |
| 	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.ProtoPackageIsVersion3 // 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_69438956f5d73a41, []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 (m *ByteBufferParams) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_ByteBufferParams.Merge(m, 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_69438956f5d73a41, []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 (m *SimpleProtoParams) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_SimpleProtoParams.Merge(m, 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_69438956f5d73a41, []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 (m *ComplexProtoParams) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_ComplexProtoParams.Merge(m, 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_69438956f5d73a41, []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 (m *PayloadConfig) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_PayloadConfig.Merge(m, 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_OneofWrappers is for the internal use of the proto package.
 | |
| func (*PayloadConfig) XXX_OneofWrappers() []interface{} {
 | |
| 	return []interface{}{
 | |
| 		(*PayloadConfig_BytebufParams)(nil),
 | |
| 		(*PayloadConfig_SimpleParams)(nil),
 | |
| 		(*PayloadConfig_ComplexParams)(nil),
 | |
| 	}
 | |
| }
 | |
| 
 | |
| 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("benchmark/grpc_testing/payloads.proto", fileDescriptor_69438956f5d73a41)
 | |
| }
 | |
| 
 | |
| var fileDescriptor_69438956f5d73a41 = []byte{
 | |
| 	// 289 bytes of a gzipped FileDescriptorProto
 | |
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x91, 0xc1, 0x4b, 0xc3, 0x30,
 | |
| 	0x18, 0xc5, 0xd7, 0x89, 0x6e, 0xfb, 0x5c, 0x87, 0x16, 0x0f, 0x8a, 0xa0, 0xa3, 0x20, 0x78, 0x31,
 | |
| 	0x05, 0xfd, 0x0f, 0x3a, 0xd0, 0xa9, 0x97, 0xd2, 0xdd, 0xb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