Class Control.ClientConfig.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>
      • clear

        public Control.ClientConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>
      • getDefaultInstanceForType

        public Control.ClientConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Control.ClientConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Control.ClientConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Control.ClientConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>
      • setField

        public Control.ClientConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>
      • clearField

        public Control.ClientConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>
      • clearOneof

        public Control.ClientConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>
      • setRepeatedField

        public Control.ClientConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>
      • addRepeatedField

        public Control.ClientConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>
      • mergeFrom

        public Control.ClientConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Control.ClientConfig.Builder>
        Throws:
        java.io.IOException
      • getServerTargetsList

        public com.google.protobuf.ProtocolStringList getServerTargetsList()
         List of targets to connect to. At least one target needs to be specified.
         
        repeated string server_targets = 1;
        Specified by:
        getServerTargetsList in interface Control.ClientConfigOrBuilder
        Returns:
        A list containing the serverTargets.
      • getServerTargetsCount

        public int getServerTargetsCount()
         List of targets to connect to. At least one target needs to be specified.
         
        repeated string server_targets = 1;
        Specified by:
        getServerTargetsCount in interface Control.ClientConfigOrBuilder
        Returns:
        The count of serverTargets.
      • getServerTargets

        public 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;
        Specified by:
        getServerTargets in interface Control.ClientConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The serverTargets at the given index.
      • getServerTargetsBytes

        public 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;
        Specified by:
        getServerTargetsBytes in interface Control.ClientConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the serverTargets at the given index.
      • setServerTargets

        public Control.ClientConfig.Builder setServerTargets​(int index,
                                                             java.lang.String value)
         List of targets to connect to. At least one target needs to be specified.
         
        repeated string server_targets = 1;
        Parameters:
        index - The index to set the value at.
        value - The serverTargets to set.
        Returns:
        This builder for chaining.
      • addServerTargets

        public Control.ClientConfig.Builder addServerTargets​(java.lang.String value)
         List of targets to connect to. At least one target needs to be specified.
         
        repeated string server_targets = 1;
        Parameters:
        value - The serverTargets to add.
        Returns:
        This builder for chaining.
      • addAllServerTargets

        public Control.ClientConfig.Builder addAllServerTargets​(java.lang.Iterable<java.lang.String> values)
         List of targets to connect to. At least one target needs to be specified.
         
        repeated string server_targets = 1;
        Parameters:
        values - The serverTargets to add.
        Returns:
        This builder for chaining.
      • clearServerTargets

        public Control.ClientConfig.Builder clearServerTargets()
         List of targets to connect to. At least one target needs to be specified.
         
        repeated string server_targets = 1;
        Returns:
        This builder for chaining.
      • addServerTargetsBytes

        public Control.ClientConfig.Builder addServerTargetsBytes​(com.google.protobuf.ByteString value)
         List of targets to connect to. At least one target needs to be specified.
         
        repeated string server_targets = 1;
        Parameters:
        value - The bytes of the serverTargets to add.
        Returns:
        This builder for chaining.
      • setClientTypeValue

        public Control.ClientConfig.Builder setClientTypeValue​(int value)
        .grpc.testing.ClientType client_type = 2;
        Parameters:
        value - The enum numeric value on the wire for clientType to set.
        Returns:
        This builder for chaining.
      • clearClientType

        public Control.ClientConfig.Builder clearClientType()
        .grpc.testing.ClientType client_type = 2;
        Returns:
        This builder for chaining.
      • hasSecurityParams

        public boolean hasSecurityParams()
        .grpc.testing.SecurityParams security_params = 3;
        Specified by:
        hasSecurityParams in interface Control.ClientConfigOrBuilder
        Returns:
        Whether the securityParams field is set.
      • getOutstandingRpcsPerChannel

        public 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;
        Specified by:
        getOutstandingRpcsPerChannel in interface Control.ClientConfigOrBuilder
        Returns:
        The outstandingRpcsPerChannel.
      • setOutstandingRpcsPerChannel

        public Control.ClientConfig.Builder setOutstandingRpcsPerChannel​(int value)
         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;
        Parameters:
        value - The outstandingRpcsPerChannel to set.
        Returns:
        This builder for chaining.
      • clearOutstandingRpcsPerChannel

        public Control.ClientConfig.Builder clearOutstandingRpcsPerChannel()
         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:
        This builder for chaining.
      • getClientChannels

        public 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;
        Specified by:
        getClientChannels in interface Control.ClientConfigOrBuilder
        Returns:
        The clientChannels.
      • setClientChannels

        public Control.ClientConfig.Builder setClientChannels​(int value)
         Number of independent client channels to create.
         i-th channel will connect to server_target[i % server_targets.size()]
         
        int32 client_channels = 5;
        Parameters:
        value - The clientChannels to set.
        Returns:
        This builder for chaining.
      • clearClientChannels

        public Control.ClientConfig.Builder clearClientChannels()
         Number of independent client channels to create.
         i-th channel will connect to server_target[i % server_targets.size()]
         
        int32 client_channels = 5;
        Returns:
        This builder for chaining.
      • getAsyncClientThreads

        public int getAsyncClientThreads()
         Only for async client. Number of threads to use to start/manage RPCs.
         
        int32 async_client_threads = 7;
        Specified by:
        getAsyncClientThreads in interface Control.ClientConfigOrBuilder
        Returns:
        The asyncClientThreads.
      • setAsyncClientThreads

        public Control.ClientConfig.Builder setAsyncClientThreads​(int value)
         Only for async client. Number of threads to use to start/manage RPCs.
         
        int32 async_client_threads = 7;
        Parameters:
        value - The asyncClientThreads to set.
        Returns:
        This builder for chaining.
      • clearAsyncClientThreads

        public Control.ClientConfig.Builder clearAsyncClientThreads()
         Only for async client. Number of threads to use to start/manage RPCs.
         
        int32 async_client_threads = 7;
        Returns:
        This builder for chaining.
      • setRpcTypeValue

        public Control.ClientConfig.Builder setRpcTypeValue​(int value)
        .grpc.testing.RpcType rpc_type = 8;
        Parameters:
        value - The enum numeric value on the wire for rpcType to set.
        Returns:
        This builder for chaining.
      • hasLoadParams

        public boolean hasLoadParams()
         The requested load for the entire client (aggregated over all the threads).
         
        .grpc.testing.LoadParams load_params = 10;
        Specified by:
        hasLoadParams in interface Control.ClientConfigOrBuilder
        Returns:
        Whether the loadParams field is set.
      • clearLoadParams

        public Control.ClientConfig.Builder clearLoadParams()
         The requested load for the entire client (aggregated over all the threads).
         
        .grpc.testing.LoadParams load_params = 10;
      • getLoadParamsBuilder

        public Control.LoadParams.Builder getLoadParamsBuilder()
         The requested load for the entire client (aggregated over all the threads).
         
        .grpc.testing.LoadParams load_params = 10;
      • hasPayloadConfig

        public boolean hasPayloadConfig()
        .grpc.testing.PayloadConfig payload_config = 11;
        Specified by:
        hasPayloadConfig in interface Control.ClientConfigOrBuilder
        Returns:
        Whether the payloadConfig field is set.
      • hasHistogramParams

        public boolean hasHistogramParams()
        .grpc.testing.HistogramParams histogram_params = 12;
        Specified by:
        hasHistogramParams in interface Control.ClientConfigOrBuilder
        Returns:
        Whether the histogramParams field is set.
      • getHistogramParamsBuilder

        public Stats.HistogramParams.Builder getHistogramParamsBuilder()
        .grpc.testing.HistogramParams histogram_params = 12;
      • getCoreListList

        public java.util.List<java.lang.Integer> getCoreListList()
         Specify the cores we should run the client on, if desired
         
        repeated int32 core_list = 13;
        Specified by:
        getCoreListList in interface Control.ClientConfigOrBuilder
        Returns:
        A list containing the coreList.
      • getCoreListCount

        public int getCoreListCount()
         Specify the cores we should run the client on, if desired
         
        repeated int32 core_list = 13;
        Specified by:
        getCoreListCount in interface Control.ClientConfigOrBuilder
        Returns:
        The count of coreList.
      • getCoreList

        public int getCoreList​(int index)
         Specify the cores we should run the client on, if desired
         
        repeated int32 core_list = 13;
        Specified by:
        getCoreList in interface Control.ClientConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The coreList at the given index.
      • setCoreList

        public Control.ClientConfig.Builder setCoreList​(int index,
                                                        int value)
         Specify the cores we should run the client on, if desired
         
        repeated int32 core_list = 13;
        Parameters:
        index - The index to set the value at.
        value - The coreList to set.
        Returns:
        This builder for chaining.
      • addCoreList

        public Control.ClientConfig.Builder addCoreList​(int value)
         Specify the cores we should run the client on, if desired
         
        repeated int32 core_list = 13;
        Parameters:
        value - The coreList to add.
        Returns:
        This builder for chaining.
      • addAllCoreList

        public Control.ClientConfig.Builder addAllCoreList​(java.lang.Iterable<? extends java.lang.Integer> values)
         Specify the cores we should run the client on, if desired
         
        repeated int32 core_list = 13;
        Parameters:
        values - The coreList to add.
        Returns:
        This builder for chaining.
      • clearCoreList

        public Control.ClientConfig.Builder clearCoreList()
         Specify the cores we should run the client on, if desired
         
        repeated int32 core_list = 13;
        Returns:
        This builder for chaining.
      • setCoreLimit

        public Control.ClientConfig.Builder setCoreLimit​(int value)
        int32 core_limit = 14;
        Parameters:
        value - The coreLimit to set.
        Returns:
        This builder for chaining.
      • getOtherClientApi

        public java.lang.String getOtherClientApi()
         If we use an OTHER_CLIENT client_type, this string gives more detail
         
        string other_client_api = 15;
        Specified by:
        getOtherClientApi in interface Control.ClientConfigOrBuilder
        Returns:
        The otherClientApi.
      • getOtherClientApiBytes

        public com.google.protobuf.ByteString getOtherClientApiBytes()
         If we use an OTHER_CLIENT client_type, this string gives more detail
         
        string other_client_api = 15;
        Specified by:
        getOtherClientApiBytes in interface Control.ClientConfigOrBuilder
        Returns:
        The bytes for otherClientApi.
      • setOtherClientApi

        public Control.ClientConfig.Builder setOtherClientApi​(java.lang.String value)
         If we use an OTHER_CLIENT client_type, this string gives more detail
         
        string other_client_api = 15;
        Parameters:
        value - The otherClientApi to set.
        Returns:
        This builder for chaining.
      • clearOtherClientApi

        public Control.ClientConfig.Builder clearOtherClientApi()
         If we use an OTHER_CLIENT client_type, this string gives more detail
         
        string other_client_api = 15;
        Returns:
        This builder for chaining.
      • setOtherClientApiBytes

        public Control.ClientConfig.Builder setOtherClientApiBytes​(com.google.protobuf.ByteString value)
         If we use an OTHER_CLIENT client_type, this string gives more detail
         
        string other_client_api = 15;
        Parameters:
        value - The bytes for otherClientApi to set.
        Returns:
        This builder for chaining.
      • removeChannelArgs

        public Control.ClientConfig.Builder removeChannelArgs​(int index)
        repeated .grpc.testing.ChannelArg channel_args = 16;
      • getChannelArgsBuilder

        public Control.ChannelArg.Builder getChannelArgsBuilder​(int index)
        repeated .grpc.testing.ChannelArg channel_args = 16;
      • addChannelArgsBuilder

        public Control.ChannelArg.Builder addChannelArgsBuilder()
        repeated .grpc.testing.ChannelArg channel_args = 16;
      • addChannelArgsBuilder

        public Control.ChannelArg.Builder addChannelArgsBuilder​(int index)
        repeated .grpc.testing.ChannelArg channel_args = 16;
      • getChannelArgsBuilderList

        public java.util.List<Control.ChannelArg.Builder> getChannelArgsBuilderList()
        repeated .grpc.testing.ChannelArg channel_args = 16;
      • getMessagesPerStream

        public int getMessagesPerStream()
         Number of messages on a stream before it gets finished/restarted
         
        int32 messages_per_stream = 18;
        Specified by:
        getMessagesPerStream in interface Control.ClientConfigOrBuilder
        Returns:
        The messagesPerStream.
      • setMessagesPerStream

        public Control.ClientConfig.Builder setMessagesPerStream​(int value)
         Number of messages on a stream before it gets finished/restarted
         
        int32 messages_per_stream = 18;
        Parameters:
        value - The messagesPerStream to set.
        Returns:
        This builder for chaining.
      • clearMessagesPerStream

        public Control.ClientConfig.Builder clearMessagesPerStream()
         Number of messages on a stream before it gets finished/restarted
         
        int32 messages_per_stream = 18;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Control.ClientConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>
      • mergeUnknownFields

        public final Control.ClientConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Control.ClientConfig.Builder>