| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: benchmark/grpc_testing/control.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 ClientType int32 |
| |
| const ( |
| ClientType_SYNC_CLIENT ClientType = 0 |
| ClientType_ASYNC_CLIENT ClientType = 1 |
| ) |
| |
| var ClientType_name = map[int32]string{ |
| 0: "SYNC_CLIENT", |
| 1: "ASYNC_CLIENT", |
| } |
| |
| var ClientType_value = map[string]int32{ |
| "SYNC_CLIENT": 0, |
| "ASYNC_CLIENT": 1, |
| } |
| |
| func (x ClientType) String() string { |
| return proto.EnumName(ClientType_name, int32(x)) |
| } |
| |
| func (ClientType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{0} |
| } |
| |
| type ServerType int32 |
| |
| const ( |
| ServerType_SYNC_SERVER ServerType = 0 |
| ServerType_ASYNC_SERVER ServerType = 1 |
| ServerType_ASYNC_GENERIC_SERVER ServerType = 2 |
| ) |
| |
| var ServerType_name = map[int32]string{ |
| 0: "SYNC_SERVER", |
| 1: "ASYNC_SERVER", |
| 2: "ASYNC_GENERIC_SERVER", |
| } |
| |
| var ServerType_value = map[string]int32{ |
| "SYNC_SERVER": 0, |
| "ASYNC_SERVER": 1, |
| "ASYNC_GENERIC_SERVER": 2, |
| } |
| |
| func (x ServerType) String() string { |
| return proto.EnumName(ServerType_name, int32(x)) |
| } |
| |
| func (ServerType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{1} |
| } |
| |
| type RpcType int32 |
| |
| const ( |
| RpcType_UNARY RpcType = 0 |
| RpcType_STREAMING RpcType = 1 |
| ) |
| |
| var RpcType_name = map[int32]string{ |
| 0: "UNARY", |
| 1: "STREAMING", |
| } |
| |
| var RpcType_value = map[string]int32{ |
| "UNARY": 0, |
| "STREAMING": 1, |
| } |
| |
| func (x RpcType) String() string { |
| return proto.EnumName(RpcType_name, int32(x)) |
| } |
| |
| func (RpcType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{2} |
| } |
| |
| // Parameters of poisson process distribution, which is a good representation |
| // of activity coming in from independent identical stationary sources. |
| type PoissonParams struct { |
| // The rate of arrivals (a.k.a. lambda parameter of the exp distribution). |
| OfferedLoad float64 `protobuf:"fixed64,1,opt,name=offered_load,json=offeredLoad,proto3" json:"offered_load,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *PoissonParams) Reset() { *m = PoissonParams{} } |
| func (m *PoissonParams) String() string { return proto.CompactTextString(m) } |
| func (*PoissonParams) ProtoMessage() {} |
| func (*PoissonParams) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{0} |
| } |
| |
| func (m *PoissonParams) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_PoissonParams.Unmarshal(m, b) |
| } |
| func (m *PoissonParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_PoissonParams.Marshal(b, m, deterministic) |
| } |
| func (m *PoissonParams) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_PoissonParams.Merge(m, src) |
| } |
| func (m *PoissonParams) XXX_Size() int { |
| return xxx_messageInfo_PoissonParams.Size(m) |
| } |
| func (m *PoissonParams) XXX_DiscardUnknown() { |
| xxx_messageInfo_PoissonParams.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_PoissonParams proto.InternalMessageInfo |
| |
| func (m *PoissonParams) GetOfferedLoad() float64 { |
| if m != nil { |
| return m.OfferedLoad |
| } |
| return 0 |
| } |
| |
| type UniformParams struct { |
| InterarrivalLo float64 `protobuf:"fixed64,1,opt,name=interarrival_lo,json=interarrivalLo,proto3" json:"interarrival_lo,omitempty"` |
| InterarrivalHi float64 `protobuf:"fixed64,2,opt,name=interarrival_hi,json=interarrivalHi,proto3" json:"interarrival_hi,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *UniformParams) Reset() { *m = UniformParams{} } |
| func (m *UniformParams) String() string { return proto.CompactTextString(m) } |
| func (*UniformParams) ProtoMessage() {} |
| func (*UniformParams) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{1} |
| } |
| |
| func (m *UniformParams) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_UniformParams.Unmarshal(m, b) |
| } |
| func (m *UniformParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_UniformParams.Marshal(b, m, deterministic) |
| } |
| func (m *UniformParams) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_UniformParams.Merge(m, src) |
| } |
| func (m *UniformParams) XXX_Size() int { |
| return xxx_messageInfo_UniformParams.Size(m) |
| } |
| func (m *UniformParams) XXX_DiscardUnknown() { |
| xxx_messageInfo_UniformParams.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_UniformParams proto.InternalMessageInfo |
| |
| func (m *UniformParams) GetInterarrivalLo() float64 { |
| if m != nil { |
| return m.InterarrivalLo |
| } |
| return 0 |
| } |
| |
| func (m *UniformParams) GetInterarrivalHi() float64 { |
| if m != nil { |
| return m.InterarrivalHi |
| } |
| return 0 |
| } |
| |
| type DeterministicParams struct { |
| OfferedLoad float64 `protobuf:"fixed64,1,opt,name=offered_load,json=offeredLoad,proto3" json:"offered_load,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *DeterministicParams) Reset() { *m = DeterministicParams{} } |
| func (m *DeterministicParams) String() string { return proto.CompactTextString(m) } |
| func (*DeterministicParams) ProtoMessage() {} |
| func (*DeterministicParams) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{2} |
| } |
| |
| func (m *DeterministicParams) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_DeterministicParams.Unmarshal(m, b) |
| } |
| func (m *DeterministicParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_DeterministicParams.Marshal(b, m, deterministic) |
| } |
| func (m *DeterministicParams) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_DeterministicParams.Merge(m, src) |
| } |
| func (m *DeterministicParams) XXX_Size() int { |
| return xxx_messageInfo_DeterministicParams.Size(m) |
| } |
| func (m *DeterministicParams) XXX_DiscardUnknown() { |
| xxx_messageInfo_DeterministicParams.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_DeterministicParams proto.InternalMessageInfo |
| |
| func (m *DeterministicParams) GetOfferedLoad() float64 { |
| if m != nil { |
| return m.OfferedLoad |
| } |
| return 0 |
| } |
| |
| type ParetoParams struct { |
| InterarrivalBase float64 `protobuf:"fixed64,1,opt,name=interarrival_base,json=interarrivalBase,proto3" json:"interarrival_base,omitempty"` |
| Alpha float64 `protobuf:"fixed64,2,opt,name=alpha,proto3" json:"alpha,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ParetoParams) Reset() { *m = ParetoParams{} } |
| func (m *ParetoParams) String() string { return proto.CompactTextString(m) } |
| func (*ParetoParams) ProtoMessage() {} |
| func (*ParetoParams) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{3} |
| } |
| |
| func (m *ParetoParams) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ParetoParams.Unmarshal(m, b) |
| } |
| func (m *ParetoParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ParetoParams.Marshal(b, m, deterministic) |
| } |
| func (m *ParetoParams) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ParetoParams.Merge(m, src) |
| } |
| func (m *ParetoParams) XXX_Size() int { |
| return xxx_messageInfo_ParetoParams.Size(m) |
| } |
| func (m *ParetoParams) XXX_DiscardUnknown() { |
| xxx_messageInfo_ParetoParams.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ParetoParams proto.InternalMessageInfo |
| |
| func (m *ParetoParams) GetInterarrivalBase() float64 { |
| if m != nil { |
| return m.InterarrivalBase |
| } |
| return 0 |
| } |
| |
| func (m *ParetoParams) GetAlpha() float64 { |
| if m != nil { |
| return m.Alpha |
| } |
| return 0 |
| } |
| |
| // Once an RPC finishes, immediately start a new one. |
| // No configuration parameters needed. |
| type ClosedLoopParams struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ClosedLoopParams) Reset() { *m = ClosedLoopParams{} } |
| func (m *ClosedLoopParams) String() string { return proto.CompactTextString(m) } |
| func (*ClosedLoopParams) ProtoMessage() {} |
| func (*ClosedLoopParams) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{4} |
| } |
| |
| func (m *ClosedLoopParams) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ClosedLoopParams.Unmarshal(m, b) |
| } |
| func (m *ClosedLoopParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ClosedLoopParams.Marshal(b, m, deterministic) |
| } |
| func (m *ClosedLoopParams) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ClosedLoopParams.Merge(m, src) |
| } |
| func (m *ClosedLoopParams) XXX_Size() int { |
| return xxx_messageInfo_ClosedLoopParams.Size(m) |
| } |
| func (m *ClosedLoopParams) XXX_DiscardUnknown() { |
| xxx_messageInfo_ClosedLoopParams.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ClosedLoopParams proto.InternalMessageInfo |
| |
| type LoadParams struct { |
| // Types that are valid to be assigned to Load: |
| // *LoadParams_ClosedLoop |
| // *LoadParams_Poisson |
| // *LoadParams_Uniform |
| // *LoadParams_Determ |
| // *LoadParams_Pareto |
| Load isLoadParams_Load `protobuf_oneof:"load"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *LoadParams) Reset() { *m = LoadParams{} } |
| func (m *LoadParams) String() string { return proto.CompactTextString(m) } |
| func (*LoadParams) ProtoMessage() {} |
| func (*LoadParams) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{5} |
| } |
| |
| func (m *LoadParams) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_LoadParams.Unmarshal(m, b) |
| } |
| func (m *LoadParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_LoadParams.Marshal(b, m, deterministic) |
| } |
| func (m *LoadParams) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_LoadParams.Merge(m, src) |
| } |
| func (m *LoadParams) XXX_Size() int { |
| return xxx_messageInfo_LoadParams.Size(m) |
| } |
| func (m *LoadParams) XXX_DiscardUnknown() { |
| xxx_messageInfo_LoadParams.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_LoadParams proto.InternalMessageInfo |
| |
| type isLoadParams_Load interface { |
| isLoadParams_Load() |
| } |
| |
| type LoadParams_ClosedLoop struct { |
| ClosedLoop *ClosedLoopParams `protobuf:"bytes,1,opt,name=closed_loop,json=closedLoop,proto3,oneof"` |
| } |
| |
| type LoadParams_Poisson struct { |
| Poisson *PoissonParams `protobuf:"bytes,2,opt,name=poisson,proto3,oneof"` |
| } |
| |
| type LoadParams_Uniform struct { |
| Uniform *UniformParams `protobuf:"bytes,3,opt,name=uniform,proto3,oneof"` |
| } |
| |
| type LoadParams_Determ struct { |
| Determ *DeterministicParams `protobuf:"bytes,4,opt,name=determ,proto3,oneof"` |
| } |
| |
| type LoadParams_Pareto struct { |
| Pareto *ParetoParams `protobuf:"bytes,5,opt,name=pareto,proto3,oneof"` |
| } |
| |
| func (*LoadParams_ClosedLoop) isLoadParams_Load() {} |
| |
| func (*LoadParams_Poisson) isLoadParams_Load() {} |
| |
| func (*LoadParams_Uniform) isLoadParams_Load() {} |
| |
| func (*LoadParams_Determ) isLoadParams_Load() {} |
| |
| func (*LoadParams_Pareto) isLoadParams_Load() {} |
| |
| func (m *LoadParams) GetLoad() isLoadParams_Load { |
| if m != nil { |
| return m.Load |
| } |
| return nil |
| } |
| |
| func (m *LoadParams) GetClosedLoop() *ClosedLoopParams { |
| if x, ok := m.GetLoad().(*LoadParams_ClosedLoop); ok { |
| return x.ClosedLoop |
| } |
| return nil |
| } |
| |
| func (m *LoadParams) GetPoisson() *PoissonParams { |
| if x, ok := m.GetLoad().(*LoadParams_Poisson); ok { |
| return x.Poisson |
| } |
| return nil |
| } |
| |
| func (m *LoadParams) GetUniform() *UniformParams { |
| if x, ok := m.GetLoad().(*LoadParams_Uniform); ok { |
| return x.Uniform |
| } |
| return nil |
| } |
| |
| func (m *LoadParams) GetDeterm() *DeterministicParams { |
| if x, ok := m.GetLoad().(*LoadParams_Determ); ok { |
| return x.Determ |
| } |
| return nil |
| } |
| |
| func (m *LoadParams) GetPareto() *ParetoParams { |
| if x, ok := m.GetLoad().(*LoadParams_Pareto); ok { |
| return x.Pareto |
| } |
| return nil |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*LoadParams) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*LoadParams_ClosedLoop)(nil), |
| (*LoadParams_Poisson)(nil), |
| (*LoadParams_Uniform)(nil), |
| (*LoadParams_Determ)(nil), |
| (*LoadParams_Pareto)(nil), |
| } |
| } |
| |
| // presence of SecurityParams implies use of TLS |
| type SecurityParams struct { |
| UseTestCa bool `protobuf:"varint,1,opt,name=use_test_ca,json=useTestCa,proto3" json:"use_test_ca,omitempty"` |
| ServerHostOverride string `protobuf:"bytes,2,opt,name=server_host_override,json=serverHostOverride,proto3" json:"server_host_override,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *SecurityParams) Reset() { *m = SecurityParams{} } |
| func (m *SecurityParams) String() string { return proto.CompactTextString(m) } |
| func (*SecurityParams) ProtoMessage() {} |
| func (*SecurityParams) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{6} |
| } |
| |
| func (m *SecurityParams) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_SecurityParams.Unmarshal(m, b) |
| } |
| func (m *SecurityParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_SecurityParams.Marshal(b, m, deterministic) |
| } |
| func (m *SecurityParams) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_SecurityParams.Merge(m, src) |
| } |
| func (m *SecurityParams) XXX_Size() int { |
| return xxx_messageInfo_SecurityParams.Size(m) |
| } |
| func (m *SecurityParams) XXX_DiscardUnknown() { |
| xxx_messageInfo_SecurityParams.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_SecurityParams proto.InternalMessageInfo |
| |
| func (m *SecurityParams) GetUseTestCa() bool { |
| if m != nil { |
| return m.UseTestCa |
| } |
| return false |
| } |
| |
| func (m *SecurityParams) GetServerHostOverride() string { |
| if m != nil { |
| return m.ServerHostOverride |
| } |
| return "" |
| } |
| |
| type ClientConfig struct { |
| // List of targets to connect to. At least one target needs to be specified. |
| ServerTargets []string `protobuf:"bytes,1,rep,name=server_targets,json=serverTargets,proto3" json:"server_targets,omitempty"` |
| ClientType ClientType `protobuf:"varint,2,opt,name=client_type,json=clientType,proto3,enum=grpc.testing.ClientType" json:"client_type,omitempty"` |
| SecurityParams *SecurityParams `protobuf:"bytes,3,opt,name=security_params,json=securityParams,proto3" json:"security_params,omitempty"` |
| // How many concurrent RPCs to start for each channel. |
| // For synchronous client, use a separate thread for each outstanding RPC. |
| OutstandingRpcsPerChannel int32 `protobuf:"varint,4,opt,name=outstanding_rpcs_per_channel,json=outstandingRpcsPerChannel,proto3" json:"outstanding_rpcs_per_channel,omitempty"` |
| // Number of independent client channels to create. |
| // i-th channel will connect to server_target[i % server_targets.size()] |
| ClientChannels int32 `protobuf:"varint,5,opt,name=client_channels,json=clientChannels,proto3" json:"client_channels,omitempty"` |
| // Only for async client. Number of threads to use to start/manage RPCs. |
| AsyncClientThreads int32 `protobuf:"varint,7,opt,name=async_client_threads,json=asyncClientThreads,proto3" json:"async_client_threads,omitempty"` |
| RpcType RpcType `protobuf:"varint,8,opt,name=rpc_type,json=rpcType,proto3,enum=grpc.testing.RpcType" json:"rpc_type,omitempty"` |
| // The requested load for the entire client (aggregated over all the threads). |
| LoadParams *LoadParams `protobuf:"bytes,10,opt,name=load_params,json=loadParams,proto3" json:"load_params,omitempty"` |
| PayloadConfig *PayloadConfig `protobuf:"bytes,11,opt,name=payload_config,json=payloadConfig,proto3" json:"payload_config,omitempty"` |
| HistogramParams *HistogramParams `protobuf:"bytes,12,opt,name=histogram_params,json=histogramParams,proto3" json:"histogram_params,omitempty"` |
| // Specify the cores we should run the client on, if desired |
| CoreList []int32 `protobuf:"varint,13,rep,packed,name=core_list,json=coreList,proto3" json:"core_list,omitempty"` |
| CoreLimit int32 `protobuf:"varint,14,opt,name=core_limit,json=coreLimit,proto3" json:"core_limit,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ClientConfig) Reset() { *m = ClientConfig{} } |
| func (m *ClientConfig) String() string { return proto.CompactTextString(m) } |
| func (*ClientConfig) ProtoMessage() {} |
| func (*ClientConfig) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{7} |
| } |
| |
| func (m *ClientConfig) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ClientConfig.Unmarshal(m, b) |
| } |
| func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ClientConfig.Marshal(b, m, deterministic) |
| } |
| func (m *ClientConfig) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ClientConfig.Merge(m, src) |
| } |
| func (m *ClientConfig) XXX_Size() int { |
| return xxx_messageInfo_ClientConfig.Size(m) |
| } |
| func (m *ClientConfig) XXX_DiscardUnknown() { |
| xxx_messageInfo_ClientConfig.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ClientConfig proto.InternalMessageInfo |
| |
| func (m *ClientConfig) GetServerTargets() []string { |
| if m != nil { |
| return m.ServerTargets |
| } |
| return nil |
| } |
| |
| func (m *ClientConfig) GetClientType() ClientType { |
| if m != nil { |
| return m.ClientType |
| } |
| return ClientType_SYNC_CLIENT |
| } |
| |
| func (m *ClientConfig) GetSecurityParams() *SecurityParams { |
| if m != nil { |
| return m.SecurityParams |
| } |
| return nil |
| } |
| |
| func (m *ClientConfig) GetOutstandingRpcsPerChannel() int32 { |
| if m != nil { |
| return m.OutstandingRpcsPerChannel |
| } |
| return 0 |
| } |
| |
| func (m *ClientConfig) GetClientChannels() int32 { |
| if m != nil { |
| return m.ClientChannels |
| } |
| return 0 |
| } |
| |
| func (m *ClientConfig) GetAsyncClientThreads() int32 { |
| if m != nil { |
| return m.AsyncClientThreads |
| } |
| return 0 |
| } |
| |
| func (m *ClientConfig) GetRpcType() RpcType { |
| if m != nil { |
| return m.RpcType |
| } |
| return RpcType_UNARY |
| } |
| |
| func (m *ClientConfig) GetLoadParams() *LoadParams { |
| if m != nil { |
| return m.LoadParams |
| } |
| return nil |
| } |
| |
| func (m *ClientConfig) GetPayloadConfig() *PayloadConfig { |
| if m != nil { |
| return m.PayloadConfig |
| } |
| return nil |
| } |
| |
| func (m *ClientConfig) GetHistogramParams() *HistogramParams { |
| if m != nil { |
| return m.HistogramParams |
| } |
| return nil |
| } |
| |
| func (m *ClientConfig) GetCoreList() []int32 { |
| if m != nil { |
| return m.CoreList |
| } |
| return nil |
| } |
| |
| func (m *ClientConfig) GetCoreLimit() int32 { |
| if m != nil { |
| return m.CoreLimit |
| } |
| return 0 |
| } |
| |
| type ClientStatus struct { |
| Stats *ClientStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ClientStatus) Reset() { *m = ClientStatus{} } |
| func (m *ClientStatus) String() string { return proto.CompactTextString(m) } |
| func (*ClientStatus) ProtoMessage() {} |
| func (*ClientStatus) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{8} |
| } |
| |
| func (m *ClientStatus) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ClientStatus.Unmarshal(m, b) |
| } |
| func (m *ClientStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ClientStatus.Marshal(b, m, deterministic) |
| } |
| func (m *ClientStatus) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ClientStatus.Merge(m, src) |
| } |
| func (m *ClientStatus) XXX_Size() int { |
| return xxx_messageInfo_ClientStatus.Size(m) |
| } |
| func (m *ClientStatus) XXX_DiscardUnknown() { |
| xxx_messageInfo_ClientStatus.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ClientStatus proto.InternalMessageInfo |
| |
| func (m *ClientStatus) GetStats() *ClientStats { |
| if m != nil { |
| return m.Stats |
| } |
| return nil |
| } |
| |
| // Request current stats |
| type Mark struct { |
| // if true, the stats will be reset after taking their snapshot. |
| Reset_ bool `protobuf:"varint,1,opt,name=reset,proto3" json:"reset,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Mark) Reset() { *m = Mark{} } |
| func (m *Mark) String() string { return proto.CompactTextString(m) } |
| func (*Mark) ProtoMessage() {} |
| func (*Mark) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{9} |
| } |
| |
| func (m *Mark) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Mark.Unmarshal(m, b) |
| } |
| func (m *Mark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Mark.Marshal(b, m, deterministic) |
| } |
| func (m *Mark) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Mark.Merge(m, src) |
| } |
| func (m *Mark) XXX_Size() int { |
| return xxx_messageInfo_Mark.Size(m) |
| } |
| func (m *Mark) XXX_DiscardUnknown() { |
| xxx_messageInfo_Mark.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Mark proto.InternalMessageInfo |
| |
| func (m *Mark) GetReset_() bool { |
| if m != nil { |
| return m.Reset_ |
| } |
| return false |
| } |
| |
| type ClientArgs struct { |
| // Types that are valid to be assigned to Argtype: |
| // *ClientArgs_Setup |
| // *ClientArgs_Mark |
| Argtype isClientArgs_Argtype `protobuf_oneof:"argtype"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ClientArgs) Reset() { *m = ClientArgs{} } |
| func (m *ClientArgs) String() string { return proto.CompactTextString(m) } |
| func (*ClientArgs) ProtoMessage() {} |
| func (*ClientArgs) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{10} |
| } |
| |
| func (m *ClientArgs) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ClientArgs.Unmarshal(m, b) |
| } |
| func (m *ClientArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ClientArgs.Marshal(b, m, deterministic) |
| } |
| func (m *ClientArgs) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ClientArgs.Merge(m, src) |
| } |
| func (m *ClientArgs) XXX_Size() int { |
| return xxx_messageInfo_ClientArgs.Size(m) |
| } |
| func (m *ClientArgs) XXX_DiscardUnknown() { |
| xxx_messageInfo_ClientArgs.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ClientArgs proto.InternalMessageInfo |
| |
| type isClientArgs_Argtype interface { |
| isClientArgs_Argtype() |
| } |
| |
| type ClientArgs_Setup struct { |
| Setup *ClientConfig `protobuf:"bytes,1,opt,name=setup,proto3,oneof"` |
| } |
| |
| type ClientArgs_Mark struct { |
| Mark *Mark `protobuf:"bytes,2,opt,name=mark,proto3,oneof"` |
| } |
| |
| func (*ClientArgs_Setup) isClientArgs_Argtype() {} |
| |
| func (*ClientArgs_Mark) isClientArgs_Argtype() {} |
| |
| func (m *ClientArgs) GetArgtype() isClientArgs_Argtype { |
| if m != nil { |
| return m.Argtype |
| } |
| return nil |
| } |
| |
| func (m *ClientArgs) GetSetup() *ClientConfig { |
| if x, ok := m.GetArgtype().(*ClientArgs_Setup); ok { |
| return x.Setup |
| } |
| return nil |
| } |
| |
| func (m *ClientArgs) GetMark() *Mark { |
| if x, ok := m.GetArgtype().(*ClientArgs_Mark); ok { |
| return x.Mark |
| } |
| return nil |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*ClientArgs) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*ClientArgs_Setup)(nil), |
| (*ClientArgs_Mark)(nil), |
| } |
| } |
| |
| type ServerConfig struct { |
| ServerType ServerType `protobuf:"varint,1,opt,name=server_type,json=serverType,proto3,enum=grpc.testing.ServerType" json:"server_type,omitempty"` |
| SecurityParams *SecurityParams `protobuf:"bytes,2,opt,name=security_params,json=securityParams,proto3" json:"security_params,omitempty"` |
| // Port on which to listen. Zero means pick unused port. |
| Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` |
| // Only for async server. Number of threads used to serve the requests. |
| AsyncServerThreads int32 `protobuf:"varint,7,opt,name=async_server_threads,json=asyncServerThreads,proto3" json:"async_server_threads,omitempty"` |
| // Specify the number of cores to limit server to, if desired |
| CoreLimit int32 `protobuf:"varint,8,opt,name=core_limit,json=coreLimit,proto3" json:"core_limit,omitempty"` |
| // payload config, used in generic server |
| PayloadConfig *PayloadConfig `protobuf:"bytes,9,opt,name=payload_config,json=payloadConfig,proto3" json:"payload_config,omitempty"` |
| // Specify the cores we should run the server on, if desired |
| CoreList []int32 `protobuf:"varint,10,rep,packed,name=core_list,json=coreList,proto3" json:"core_list,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ServerConfig) Reset() { *m = ServerConfig{} } |
| func (m *ServerConfig) String() string { return proto.CompactTextString(m) } |
| func (*ServerConfig) ProtoMessage() {} |
| func (*ServerConfig) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{11} |
| } |
| |
| func (m *ServerConfig) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ServerConfig.Unmarshal(m, b) |
| } |
| func (m *ServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ServerConfig.Marshal(b, m, deterministic) |
| } |
| func (m *ServerConfig) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ServerConfig.Merge(m, src) |
| } |
| func (m *ServerConfig) XXX_Size() int { |
| return xxx_messageInfo_ServerConfig.Size(m) |
| } |
| func (m *ServerConfig) XXX_DiscardUnknown() { |
| xxx_messageInfo_ServerConfig.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ServerConfig proto.InternalMessageInfo |
| |
| func (m *ServerConfig) GetServerType() ServerType { |
| if m != nil { |
| return m.ServerType |
| } |
| return ServerType_SYNC_SERVER |
| } |
| |
| func (m *ServerConfig) GetSecurityParams() *SecurityParams { |
| if m != nil { |
| return m.SecurityParams |
| } |
| return nil |
| } |
| |
| func (m *ServerConfig) GetPort() int32 { |
| if m != nil { |
| return m.Port |
| } |
| return 0 |
| } |
| |
| func (m *ServerConfig) GetAsyncServerThreads() int32 { |
| if m != nil { |
| return m.AsyncServerThreads |
| } |
| return 0 |
| } |
| |
| func (m *ServerConfig) GetCoreLimit() int32 { |
| if m != nil { |
| return m.CoreLimit |
| } |
| return 0 |
| } |
| |
| func (m *ServerConfig) GetPayloadConfig() *PayloadConfig { |
| if m != nil { |
| return m.PayloadConfig |
| } |
| return nil |
| } |
| |
| func (m *ServerConfig) GetCoreList() []int32 { |
| if m != nil { |
| return m.CoreList |
| } |
| return nil |
| } |
| |
| type ServerArgs struct { |
| // Types that are valid to be assigned to Argtype: |
| // *ServerArgs_Setup |
| // *ServerArgs_Mark |
| Argtype isServerArgs_Argtype `protobuf_oneof:"argtype"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ServerArgs) Reset() { *m = ServerArgs{} } |
| func (m *ServerArgs) String() string { return proto.CompactTextString(m) } |
| func (*ServerArgs) ProtoMessage() {} |
| func (*ServerArgs) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{12} |
| } |
| |
| func (m *ServerArgs) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ServerArgs.Unmarshal(m, b) |
| } |
| func (m *ServerArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ServerArgs.Marshal(b, m, deterministic) |
| } |
| func (m *ServerArgs) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ServerArgs.Merge(m, src) |
| } |
| func (m *ServerArgs) XXX_Size() int { |
| return xxx_messageInfo_ServerArgs.Size(m) |
| } |
| func (m *ServerArgs) XXX_DiscardUnknown() { |
| xxx_messageInfo_ServerArgs.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ServerArgs proto.InternalMessageInfo |
| |
| type isServerArgs_Argtype interface { |
| isServerArgs_Argtype() |
| } |
| |
| type ServerArgs_Setup struct { |
| Setup *ServerConfig `protobuf:"bytes,1,opt,name=setup,proto3,oneof"` |
| } |
| |
| type ServerArgs_Mark struct { |
| Mark *Mark `protobuf:"bytes,2,opt,name=mark,proto3,oneof"` |
| } |
| |
| func (*ServerArgs_Setup) isServerArgs_Argtype() {} |
| |
| func (*ServerArgs_Mark) isServerArgs_Argtype() {} |
| |
| func (m *ServerArgs) GetArgtype() isServerArgs_Argtype { |
| if m != nil { |
| return m.Argtype |
| } |
| return nil |
| } |
| |
| func (m *ServerArgs) GetSetup() *ServerConfig { |
| if x, ok := m.GetArgtype().(*ServerArgs_Setup); ok { |
| return x.Setup |
| } |
| return nil |
| } |
| |
| func (m *ServerArgs) GetMark() *Mark { |
| if x, ok := m.GetArgtype().(*ServerArgs_Mark); ok { |
| return x.Mark |
| } |
| return nil |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*ServerArgs) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*ServerArgs_Setup)(nil), |
| (*ServerArgs_Mark)(nil), |
| } |
| } |
| |
| type ServerStatus struct { |
| Stats *ServerStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` |
| // the port bound by the server |
| Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` |
| // Number of cores available to the server |
| Cores int32 `protobuf:"varint,3,opt,name=cores,proto3" json:"cores,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ServerStatus) Reset() { *m = ServerStatus{} } |
| func (m *ServerStatus) String() string { return proto.CompactTextString(m) } |
| func (*ServerStatus) ProtoMessage() {} |
| func (*ServerStatus) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{13} |
| } |
| |
| func (m *ServerStatus) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ServerStatus.Unmarshal(m, b) |
| } |
| func (m *ServerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ServerStatus.Marshal(b, m, deterministic) |
| } |
| func (m *ServerStatus) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ServerStatus.Merge(m, src) |
| } |
| func (m *ServerStatus) XXX_Size() int { |
| return xxx_messageInfo_ServerStatus.Size(m) |
| } |
| func (m *ServerStatus) XXX_DiscardUnknown() { |
| xxx_messageInfo_ServerStatus.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ServerStatus proto.InternalMessageInfo |
| |
| func (m *ServerStatus) GetStats() *ServerStats { |
| if m != nil { |
| return m.Stats |
| } |
| return nil |
| } |
| |
| func (m *ServerStatus) GetPort() int32 { |
| if m != nil { |
| return m.Port |
| } |
| return 0 |
| } |
| |
| func (m *ServerStatus) GetCores() int32 { |
| if m != nil { |
| return m.Cores |
| } |
| return 0 |
| } |
| |
| type CoreRequest struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CoreRequest) Reset() { *m = CoreRequest{} } |
| func (m *CoreRequest) String() string { return proto.CompactTextString(m) } |
| func (*CoreRequest) ProtoMessage() {} |
| func (*CoreRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{14} |
| } |
| |
| func (m *CoreRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CoreRequest.Unmarshal(m, b) |
| } |
| func (m *CoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CoreRequest.Marshal(b, m, deterministic) |
| } |
| func (m *CoreRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CoreRequest.Merge(m, src) |
| } |
| func (m *CoreRequest) XXX_Size() int { |
| return xxx_messageInfo_CoreRequest.Size(m) |
| } |
| func (m *CoreRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_CoreRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CoreRequest proto.InternalMessageInfo |
| |
| type CoreResponse struct { |
| // Number of cores available on the server |
| Cores int32 `protobuf:"varint,1,opt,name=cores,proto3" json:"cores,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CoreResponse) Reset() { *m = CoreResponse{} } |
| func (m *CoreResponse) String() string { return proto.CompactTextString(m) } |
| func (*CoreResponse) ProtoMessage() {} |
| func (*CoreResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{15} |
| } |
| |
| func (m *CoreResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CoreResponse.Unmarshal(m, b) |
| } |
| func (m *CoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CoreResponse.Marshal(b, m, deterministic) |
| } |
| func (m *CoreResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CoreResponse.Merge(m, src) |
| } |
| func (m *CoreResponse) XXX_Size() int { |
| return xxx_messageInfo_CoreResponse.Size(m) |
| } |
| func (m *CoreResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_CoreResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CoreResponse proto.InternalMessageInfo |
| |
| func (m *CoreResponse) GetCores() int32 { |
| if m != nil { |
| return m.Cores |
| } |
| return 0 |
| } |
| |
| type Void struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Void) Reset() { *m = Void{} } |
| func (m *Void) String() string { return proto.CompactTextString(m) } |
| func (*Void) ProtoMessage() {} |
| func (*Void) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{16} |
| } |
| |
| func (m *Void) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Void.Unmarshal(m, b) |
| } |
| func (m *Void) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Void.Marshal(b, m, deterministic) |
| } |
| func (m *Void) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Void.Merge(m, src) |
| } |
| func (m *Void) XXX_Size() int { |
| return xxx_messageInfo_Void.Size(m) |
| } |
| func (m *Void) XXX_DiscardUnknown() { |
| xxx_messageInfo_Void.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Void proto.InternalMessageInfo |
| |
| // A single performance scenario: input to qps_json_driver |
| type Scenario struct { |
| // Human readable name for this scenario |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Client configuration |
| ClientConfig *ClientConfig `protobuf:"bytes,2,opt,name=client_config,json=clientConfig,proto3" json:"client_config,omitempty"` |
| // Number of clients to start for the test |
| NumClients int32 `protobuf:"varint,3,opt,name=num_clients,json=numClients,proto3" json:"num_clients,omitempty"` |
| // Server configuration |
| ServerConfig *ServerConfig `protobuf:"bytes,4,opt,name=server_config,json=serverConfig,proto3" json:"server_config,omitempty"` |
| // Number of servers to start for the test |
| NumServers int32 `protobuf:"varint,5,opt,name=num_servers,json=numServers,proto3" json:"num_servers,omitempty"` |
| // Warmup period, in seconds |
| WarmupSeconds int32 `protobuf:"varint,6,opt,name=warmup_seconds,json=warmupSeconds,proto3" json:"warmup_seconds,omitempty"` |
| // Benchmark time, in seconds |
| BenchmarkSeconds int32 `protobuf:"varint,7,opt,name=benchmark_seconds,json=benchmarkSeconds,proto3" json:"benchmark_seconds,omitempty"` |
| // Number of workers to spawn locally (usually zero) |
| SpawnLocalWorkerCount int32 `protobuf:"varint,8,opt,name=spawn_local_worker_count,json=spawnLocalWorkerCount,proto3" json:"spawn_local_worker_count,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Scenario) Reset() { *m = Scenario{} } |
| func (m *Scenario) String() string { return proto.CompactTextString(m) } |
| func (*Scenario) ProtoMessage() {} |
| func (*Scenario) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{17} |
| } |
| |
| func (m *Scenario) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Scenario.Unmarshal(m, b) |
| } |
| func (m *Scenario) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Scenario.Marshal(b, m, deterministic) |
| } |
| func (m *Scenario) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Scenario.Merge(m, src) |
| } |
| func (m *Scenario) XXX_Size() int { |
| return xxx_messageInfo_Scenario.Size(m) |
| } |
| func (m *Scenario) XXX_DiscardUnknown() { |
| xxx_messageInfo_Scenario.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Scenario proto.InternalMessageInfo |
| |
| func (m *Scenario) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *Scenario) GetClientConfig() *ClientConfig { |
| if m != nil { |
| return m.ClientConfig |
| } |
| return nil |
| } |
| |
| func (m *Scenario) GetNumClients() int32 { |
| if m != nil { |
| return m.NumClients |
| } |
| return 0 |
| } |
| |
| func (m *Scenario) GetServerConfig() *ServerConfig { |
| if m != nil { |
| return m.ServerConfig |
| } |
| return nil |
| } |
| |
| func (m *Scenario) GetNumServers() int32 { |
| if m != nil { |
| return m.NumServers |
| } |
| return 0 |
| } |
| |
| func (m *Scenario) GetWarmupSeconds() int32 { |
| if m != nil { |
| return m.WarmupSeconds |
| } |
| return 0 |
| } |
| |
| func (m *Scenario) GetBenchmarkSeconds() int32 { |
| if m != nil { |
| return m.BenchmarkSeconds |
| } |
| return 0 |
| } |
| |
| func (m *Scenario) GetSpawnLocalWorkerCount() int32 { |
| if m != nil { |
| return m.SpawnLocalWorkerCount |
| } |
| return 0 |
| } |
| |
| // A set of scenarios to be run with qps_json_driver |
| type Scenarios struct { |
| Scenarios []*Scenario `protobuf:"bytes,1,rep,name=scenarios,proto3" json:"scenarios,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Scenarios) Reset() { *m = Scenarios{} } |
| func (m *Scenarios) String() string { return proto.CompactTextString(m) } |
| func (*Scenarios) ProtoMessage() {} |
| func (*Scenarios) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6f4e2bf9f888bddb, []int{18} |
| } |
| |
| func (m *Scenarios) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Scenarios.Unmarshal(m, b) |
| } |
| func (m *Scenarios) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Scenarios.Marshal(b, m, deterministic) |
| } |
| func (m *Scenarios) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Scenarios.Merge(m, src) |
| } |
| func (m *Scenarios) XXX_Size() int { |
| return xxx_messageInfo_Scenarios.Size(m) |
| } |
| func (m *Scenarios) XXX_DiscardUnknown() { |
| xxx_messageInfo_Scenarios.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Scenarios proto.InternalMessageInfo |
| |
| func (m *Scenarios) GetScenarios() []*Scenario { |
| if m != nil { |
| return m.Scenarios |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterEnum("grpc.testing.ClientType", ClientType_name, ClientType_value) |
| proto.RegisterEnum("grpc.testing.ServerType", ServerType_name, ServerType_value) |
| proto.RegisterEnum("grpc.testing.RpcType", RpcType_name, RpcType_value) |
| proto.RegisterType((*PoissonParams)(nil), "grpc.testing.PoissonParams") |
| proto.RegisterType((*UniformParams)(nil), "grpc.testing.UniformParams") |
| proto.RegisterType((*DeterministicParams)(nil), "grpc.testing.DeterministicParams") |
| proto.RegisterType((*ParetoParams)(nil), "grpc.testing.ParetoParams") |
| proto.RegisterType((*ClosedLoopParams)(nil), "grpc.testing.ClosedLoopParams") |
| proto.RegisterType((*LoadParams)(nil), "grpc.testing.LoadParams") |
| proto.RegisterType((*SecurityParams)(nil), "grpc.testing.SecurityParams") |
| proto.RegisterType((*ClientConfig)(nil), "grpc.testing.ClientConfig") |
| proto.RegisterType((*ClientStatus)(nil), "grpc.testing.ClientStatus") |
| proto.RegisterType((*Mark)(nil), "grpc.testing.Mark") |
| proto.RegisterType((*ClientArgs)(nil), "grpc.testing.ClientArgs") |
| proto.RegisterType((*ServerConfig)(nil), "grpc.testing.ServerConfig") |
| proto.RegisterType((*ServerArgs)(nil), "grpc.testing.ServerArgs") |
| proto.RegisterType((*ServerStatus)(nil), "grpc.testing.ServerStatus") |
| proto.RegisterType((*CoreRequest)(nil), "grpc.testing.CoreRequest") |
| proto.RegisterType((*CoreResponse)(nil), "grpc.testing.CoreResponse") |
| proto.RegisterType((*Void)(nil), "grpc.testing.Void") |
| proto.RegisterType((*Scenario)(nil), "grpc.testing.Scenario") |
| proto.RegisterType((*Scenarios)(nil), "grpc.testing.Scenarios") |
| } |
| |
| func init() { |
| proto.RegisterFile("benchmark/grpc_testing/control.proto", fileDescriptor_6f4e2bf9f888bddb) |
| } |
| |
| var fileDescriptor_6f4e2bf9f888bddb = []byte{ |
| // 1219 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xed, 0x6e, 0xdb, 0x36, |
| 0x17, 0xb6, 0x5d, 0xdb, 0xb1, 0x8e, 0x3f, 0xe2, 0x97, 0x6f, 0x3a, 0xa8, 0xe9, 0xc7, 0x5a, 0xad, |
| 0xc5, 0x82, 0x0e, 0xb3, 0x0b, 0xaf, 0x40, 0x57, 0xec, 0x47, 0xe1, 0x78, 0x46, 0x1d, 0x20, 0xcd, |
| 0x32, 0x3a, 0xed, 0xd0, 0xfd, 0x11, 0x18, 0x99, 0x91, 0x85, 0xca, 0xa2, 0x46, 0x52, 0x2d, 0x72, |
| 0x0b, 0xbb, 0xa6, 0x5d, 0xc7, 0x6e, 0x63, 0xb7, 0x30, 0xf0, 0x43, 0x8e, 0xe4, 0xba, 0x68, 0xb6, |
| 0xfd, 0x13, 0xcf, 0x79, 0x1e, 0x1e, 0xf2, 0x3c, 0xe7, 0x1c, 0x0a, 0x1e, 0x9e, 0xd3, 0x24, 0x58, |
| 0xae, 0x08, 0x7f, 0x37, 0x0c, 0x79, 0x1a, 0xf8, 0x92, 0x0a, 0x19, 0x25, 0xe1, 0x30, 0x60, 0x89, |
| 0xe4, 0x2c, 0x1e, 0xa4, 0x9c, 0x49, 0x86, 0x3a, 0xca, 0x37, 0xb0, 0xbe, 0xfd, 0x47, 0x9f, 0xe0, |
| 0xa4, 0xe4, 0x32, 0x66, 0x64, 0x21, 0x0c, 0x69, 0xdf, 0xfb, 0x04, 0x4c, 0x48, 0x22, 0x2d, 0xc6, |
| 0x1b, 0x41, 0xf7, 0x94, 0x45, 0x42, 0xb0, 0xe4, 0x94, 0x70, 0xb2, 0x12, 0xe8, 0x01, 0x74, 0xd8, |
| 0xc5, 0x05, 0xe5, 0x74, 0xe1, 0xab, 0xbd, 0xdc, 0xea, 0xfd, 0xea, 0x41, 0x15, 0xb7, 0x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