Package io.grpc.benchmarks.proto
Interface Control.ClientConfigOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Control.ClientConfig,Control.ClientConfig.Builder
- Enclosing class:
- Control
public static interface Control.ClientConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAsyncClientThreads()Only for async client.Control.ChannelArggetChannelArgs(int index)repeated .grpc.testing.ChannelArg channel_args = 16;intgetChannelArgsCount()repeated .grpc.testing.ChannelArg channel_args = 16;java.util.List<Control.ChannelArg>getChannelArgsList()repeated .grpc.testing.ChannelArg channel_args = 16;Control.ChannelArgOrBuildergetChannelArgsOrBuilder(int index)repeated .grpc.testing.ChannelArg channel_args = 16;java.util.List<? extends Control.ChannelArgOrBuilder>getChannelArgsOrBuilderList()repeated .grpc.testing.ChannelArg channel_args = 16;intgetClientChannels()Number of independent client channels to create.Control.ClientTypegetClientType().grpc.testing.ClientType client_type = 2;intgetClientTypeValue().grpc.testing.ClientType client_type = 2;intgetCoreLimit()int32 core_limit = 14;intgetCoreList(int index)Specify the cores we should run the client on, if desiredintgetCoreListCount()Specify the cores we should run the client on, if desiredjava.util.List<java.lang.Integer>getCoreListList()Specify the cores we should run the client on, if desiredStats.HistogramParamsgetHistogramParams().grpc.testing.HistogramParams histogram_params = 12;Stats.HistogramParamsOrBuildergetHistogramParamsOrBuilder().grpc.testing.HistogramParams histogram_params = 12;Control.LoadParamsgetLoadParams()The requested load for the entire client (aggregated over all the threads).Control.LoadParamsOrBuildergetLoadParamsOrBuilder()The requested load for the entire client (aggregated over all the threads).intgetMessagesPerStream()Number of messages on a stream before it gets finished/restartedjava.lang.StringgetOtherClientApi()If we use an OTHER_CLIENT client_type, this string gives more detailcom.google.protobuf.ByteStringgetOtherClientApiBytes()If we use an OTHER_CLIENT client_type, this string gives more detailintgetOutstandingRpcsPerChannel()How many concurrent RPCs to start for each channel.Payloads.PayloadConfiggetPayloadConfig().grpc.testing.PayloadConfig payload_config = 11;Payloads.PayloadConfigOrBuildergetPayloadConfigOrBuilder().grpc.testing.PayloadConfig payload_config = 11;Control.RpcTypegetRpcType().grpc.testing.RpcType rpc_type = 8;intgetRpcTypeValue().grpc.testing.RpcType rpc_type = 8;Control.SecurityParamsgetSecurityParams().grpc.testing.SecurityParams security_params = 3;Control.SecurityParamsOrBuildergetSecurityParamsOrBuilder().grpc.testing.SecurityParams security_params = 3;java.lang.StringgetServerTargets(int index)List of targets to connect to.com.google.protobuf.ByteStringgetServerTargetsBytes(int index)List of targets to connect to.intgetServerTargetsCount()List of targets to connect to.java.util.List<java.lang.String>getServerTargetsList()List of targets to connect to.booleanhasHistogramParams().grpc.testing.HistogramParams histogram_params = 12;booleanhasLoadParams()The requested load for the entire client (aggregated over all the threads).booleanhasPayloadConfig().grpc.testing.PayloadConfig payload_config = 11;booleanhasSecurityParams().grpc.testing.SecurityParams security_params = 3;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getServerTargetsList
java.util.List<java.lang.String> getServerTargetsList()
List of targets to connect to. At least one target needs to be specified.
repeated string server_targets = 1;- Returns:
- A list containing the serverTargets.
-
getServerTargetsCount
int getServerTargetsCount()
List of targets to connect to. At least one target needs to be specified.
repeated string server_targets = 1;- Returns:
- The count of serverTargets.
-
getServerTargets
java.lang.String getServerTargets(int index)
List of targets to connect to. At least one target needs to be specified.
repeated string server_targets = 1;- Parameters:
index- The index of the element to return.- Returns:
- The serverTargets at the given index.
-
getServerTargetsBytes
com.google.protobuf.ByteString getServerTargetsBytes(int index)
List of targets to connect to. At least one target needs to be specified.
repeated string server_targets = 1;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the serverTargets at the given index.
-
getClientTypeValue
int getClientTypeValue()
.grpc.testing.ClientType client_type = 2;- Returns:
- The enum numeric value on the wire for clientType.
-
getClientType
Control.ClientType getClientType()
.grpc.testing.ClientType client_type = 2;- Returns:
- The clientType.
-
hasSecurityParams
boolean hasSecurityParams()
.grpc.testing.SecurityParams security_params = 3;- Returns:
- Whether the securityParams field is set.
-
getSecurityParams
Control.SecurityParams getSecurityParams()
.grpc.testing.SecurityParams security_params = 3;- Returns:
- The securityParams.
-
getSecurityParamsOrBuilder
Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder()
.grpc.testing.SecurityParams security_params = 3;
-
getOutstandingRpcsPerChannel
int getOutstandingRpcsPerChannel()
How many concurrent RPCs to start for each channel. For synchronous client, use a separate thread for each outstanding RPC.
int32 outstanding_rpcs_per_channel = 4;- Returns:
- The outstandingRpcsPerChannel.
-
getClientChannels
int getClientChannels()
Number of independent client channels to create. i-th channel will connect to server_target[i % server_targets.size()]
int32 client_channels = 5;- Returns:
- The clientChannels.
-
getAsyncClientThreads
int getAsyncClientThreads()
Only for async client. Number of threads to use to start/manage RPCs.
int32 async_client_threads = 7;- Returns:
- The asyncClientThreads.
-
getRpcTypeValue
int getRpcTypeValue()
.grpc.testing.RpcType rpc_type = 8;- Returns:
- The enum numeric value on the wire for rpcType.
-
getRpcType
Control.RpcType getRpcType()
.grpc.testing.RpcType rpc_type = 8;- Returns:
- The rpcType.
-
hasLoadParams
boolean hasLoadParams()
The requested load for the entire client (aggregated over all the threads).
.grpc.testing.LoadParams load_params = 10;- Returns:
- Whether the loadParams field is set.
-
getLoadParams
Control.LoadParams getLoadParams()
The requested load for the entire client (aggregated over all the threads).
.grpc.testing.LoadParams load_params = 10;- Returns:
- The loadParams.
-
getLoadParamsOrBuilder
Control.LoadParamsOrBuilder getLoadParamsOrBuilder()
The requested load for the entire client (aggregated over all the threads).
.grpc.testing.LoadParams load_params = 10;
-
hasPayloadConfig
boolean hasPayloadConfig()
.grpc.testing.PayloadConfig payload_config = 11;- Returns:
- Whether the payloadConfig field is set.
-
getPayloadConfig
Payloads.PayloadConfig getPayloadConfig()
.grpc.testing.PayloadConfig payload_config = 11;- Returns:
- The payloadConfig.
-
getPayloadConfigOrBuilder
Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder()
.grpc.testing.PayloadConfig payload_config = 11;
-
hasHistogramParams
boolean hasHistogramParams()
.grpc.testing.HistogramParams histogram_params = 12;- Returns:
- Whether the histogramParams field is set.
-
getHistogramParams
Stats.HistogramParams getHistogramParams()
.grpc.testing.HistogramParams histogram_params = 12;- Returns:
- The histogramParams.
-
getHistogramParamsOrBuilder
Stats.HistogramParamsOrBuilder getHistogramParamsOrBuilder()
.grpc.testing.HistogramParams histogram_params = 12;
-
getCoreListList
java.util.List<java.lang.Integer> getCoreListList()
Specify the cores we should run the client on, if desired
repeated int32 core_list = 13;- Returns:
- A list containing the coreList.
-
getCoreListCount
int getCoreListCount()
Specify the cores we should run the client on, if desired
repeated int32 core_list = 13;- Returns:
- The count of coreList.
-
getCoreList
int getCoreList(int index)
Specify the cores we should run the client on, if desired
repeated int32 core_list = 13;- Parameters:
index- The index of the element to return.- Returns:
- The coreList at the given index.
-
getCoreLimit
int getCoreLimit()
int32 core_limit = 14;- Returns:
- The coreLimit.
-
getOtherClientApi
java.lang.String getOtherClientApi()
If we use an OTHER_CLIENT client_type, this string gives more detail
string other_client_api = 15;- Returns:
- The otherClientApi.
-
getOtherClientApiBytes
com.google.protobuf.ByteString getOtherClientApiBytes()
If we use an OTHER_CLIENT client_type, this string gives more detail
string other_client_api = 15;- Returns:
- The bytes for otherClientApi.
-
getChannelArgsList
java.util.List<Control.ChannelArg> getChannelArgsList()
repeated .grpc.testing.ChannelArg channel_args = 16;
-
getChannelArgs
Control.ChannelArg getChannelArgs(int index)
repeated .grpc.testing.ChannelArg channel_args = 16;
-
getChannelArgsCount
int getChannelArgsCount()
repeated .grpc.testing.ChannelArg channel_args = 16;
-
getChannelArgsOrBuilderList
java.util.List<? extends Control.ChannelArgOrBuilder> getChannelArgsOrBuilderList()
repeated .grpc.testing.ChannelArg channel_args = 16;
-
getChannelArgsOrBuilder
Control.ChannelArgOrBuilder getChannelArgsOrBuilder(int index)
repeated .grpc.testing.ChannelArg channel_args = 16;
-
getMessagesPerStream
int getMessagesPerStream()
Number of messages on a stream before it gets finished/restarted
int32 messages_per_stream = 18;- Returns:
- The messagesPerStream.
-
-