Class Control.ClientConfig

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Control.ClientConfigOrBuilder, java.io.Serializable
    Enclosing class:
    Control

    public static final class Control.ClientConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements Control.ClientConfigOrBuilder
    Protobuf type grpc.testing.ClientConfig
    See Also:
    Serialized Form
    • Field Detail

      • SERVER_TARGETS_FIELD_NUMBER

        public static final int SERVER_TARGETS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CLIENT_TYPE_FIELD_NUMBER

        public static final int CLIENT_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SECURITY_PARAMS_FIELD_NUMBER

        public static final int SECURITY_PARAMS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OUTSTANDING_RPCS_PER_CHANNEL_FIELD_NUMBER

        public static final int OUTSTANDING_RPCS_PER_CHANNEL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CLIENT_CHANNELS_FIELD_NUMBER

        public static final int CLIENT_CHANNELS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ASYNC_CLIENT_THREADS_FIELD_NUMBER

        public static final int ASYNC_CLIENT_THREADS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOAD_PARAMS_FIELD_NUMBER

        public static final int LOAD_PARAMS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PAYLOAD_CONFIG_FIELD_NUMBER

        public static final int PAYLOAD_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HISTOGRAM_PARAMS_FIELD_NUMBER

        public static final int HISTOGRAM_PARAMS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CORE_LIMIT_FIELD_NUMBER

        public static final int CORE_LIMIT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OTHER_CLIENT_API_FIELD_NUMBER

        public static final int OTHER_CLIENT_API_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CHANNEL_ARGS_FIELD_NUMBER

        public static final int CHANNEL_ARGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MESSAGES_PER_STREAM_FIELD_NUMBER

        public static final int MESSAGES_PER_STREAM_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Control.ClientConfig parseFrom​(java.nio.ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Control.ClientConfig parseFrom​(java.nio.ByteBuffer data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Control.ClientConfig parseFrom​(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Control.ClientConfig parseFrom​(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Control.ClientConfig parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Control.ClientConfig parseFrom​(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Control.ClientConfig parseFrom​(java.io.InputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Control.ClientConfig parseFrom​(java.io.InputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Control.ClientConfig parseDelimitedFrom​(java.io.InputStream input)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Control.ClientConfig parseDelimitedFrom​(java.io.InputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Control.ClientConfig parseFrom​(com.google.protobuf.CodedInputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Control.ClientConfig parseFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

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

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

        protected Control.ClientConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Control.ClientConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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