Class Control.ServerConfig

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

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

      • SERVER_TYPE_FIELD_NUMBER

        public static final int SERVER_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
      • ASYNC_SERVER_THREADS_FIELD_NUMBER

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

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

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

        public static final int OTHER_SERVER_API_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RESOURCE_QUOTA_SIZE_FIELD_NUMBER

        public static final int RESOURCE_QUOTA_SIZE_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
      • hasSecurityParams

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

        public int getPort()
         Port on which to listen. Zero means pick unused port.
         
        int32 port = 4;
        Specified by:
        getPort in interface Control.ServerConfigOrBuilder
        Returns:
        The port.
      • getAsyncServerThreads

        public int getAsyncServerThreads()
         Only for async server. Number of threads used to serve the requests.
         
        int32 async_server_threads = 7;
        Specified by:
        getAsyncServerThreads in interface Control.ServerConfigOrBuilder
        Returns:
        The asyncServerThreads.
      • getCoreLimit

        public int getCoreLimit()
         Specify the number of cores to limit server to, if desired
         
        int32 core_limit = 8;
        Specified by:
        getCoreLimit in interface Control.ServerConfigOrBuilder
        Returns:
        The coreLimit.
      • hasPayloadConfig

        public boolean hasPayloadConfig()
         payload config, used in generic server.
         Note this must NOT be used in proto (non-generic) servers. For proto servers,
         'response sizes' must be configured from the 'response_size' field of the
         'SimpleRequest' objects in RPC requests.
         
        .grpc.testing.PayloadConfig payload_config = 9;
        Specified by:
        hasPayloadConfig in interface Control.ServerConfigOrBuilder
        Returns:
        Whether the payloadConfig field is set.
      • getPayloadConfig

        public Payloads.PayloadConfig getPayloadConfig()
         payload config, used in generic server.
         Note this must NOT be used in proto (non-generic) servers. For proto servers,
         'response sizes' must be configured from the 'response_size' field of the
         'SimpleRequest' objects in RPC requests.
         
        .grpc.testing.PayloadConfig payload_config = 9;
        Specified by:
        getPayloadConfig in interface Control.ServerConfigOrBuilder
        Returns:
        The payloadConfig.
      • getPayloadConfigOrBuilder

        public Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder()
         payload config, used in generic server.
         Note this must NOT be used in proto (non-generic) servers. For proto servers,
         'response sizes' must be configured from the 'response_size' field of the
         'SimpleRequest' objects in RPC requests.
         
        .grpc.testing.PayloadConfig payload_config = 9;
        Specified by:
        getPayloadConfigOrBuilder in interface Control.ServerConfigOrBuilder
      • getCoreListList

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

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

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

        public java.lang.String getOtherServerApi()
         If we use an OTHER_SERVER client_type, this string gives more detail
         
        string other_server_api = 11;
        Specified by:
        getOtherServerApi in interface Control.ServerConfigOrBuilder
        Returns:
        The otherServerApi.
      • getOtherServerApiBytes

        public com.google.protobuf.ByteString getOtherServerApiBytes()
         If we use an OTHER_SERVER client_type, this string gives more detail
         
        string other_server_api = 11;
        Specified by:
        getOtherServerApiBytes in interface Control.ServerConfigOrBuilder
        Returns:
        The bytes for otherServerApi.
      • getResourceQuotaSize

        public int getResourceQuotaSize()
         Buffer pool size (no buffer pool specified if unset)
         
        int32 resource_quota_size = 1001;
        Specified by:
        getResourceQuotaSize in interface Control.ServerConfigOrBuilder
        Returns:
        The resourceQuotaSize.
      • 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.ServerConfig parseFrom​(java.nio.ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

        public static Control.ServerConfig 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.ServerConfig parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<Control.ServerConfig> 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.ServerConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder