Class MethodConfig.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MethodConfigOrBuilder, Cloneable
    Enclosing class:
    MethodConfig

    public static final class MethodConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
    implements MethodConfigOrBuilder
     Configuration for a method.
     
    Protobuf type grpc.service_config.MethodConfig
    • 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<MethodConfig.Builder>
      • clear

        public MethodConfig.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<MethodConfig.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<MethodConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public MethodConfig.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<MethodConfig.Builder>
      • setField

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

        public MethodConfig.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<MethodConfig.Builder>
      • clearOneof

        public MethodConfig.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<MethodConfig.Builder>
      • setRepeatedField

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

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

        public MethodConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MethodConfig.Builder>
      • isInitialized

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

        public MethodConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws 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<MethodConfig.Builder>
        Throws:
        IOException
      • clearName

        public MethodConfig.Builder clearName()
        repeated .grpc.service_config.MethodConfig.Name name = 1;
      • removeName

        public MethodConfig.Builder removeName​(int index)
        repeated .grpc.service_config.MethodConfig.Name name = 1;
      • getNameBuilder

        public MethodConfig.Name.Builder getNameBuilder​(int index)
        repeated .grpc.service_config.MethodConfig.Name name = 1;
      • addNameBuilder

        public MethodConfig.Name.Builder addNameBuilder()
        repeated .grpc.service_config.MethodConfig.Name name = 1;
      • addNameBuilder

        public MethodConfig.Name.Builder addNameBuilder​(int index)
        repeated .grpc.service_config.MethodConfig.Name name = 1;
      • hasWaitForReady

        public boolean hasWaitForReady()
         Whether RPCs sent to this method should wait until the connection is
         ready by default. If false, the RPC will abort immediately if there is
         a transient failure connecting to the server. Otherwise, gRPC will
         attempt to connect until the deadline is exceeded.
         The value specified via the gRPC client API will override the value
         set here. However, note that setting the value in the client API will
         also affect transient errors encountered during name resolution, which
         cannot be caught by the value here, since the service config is
         obtained by the gRPC client via name resolution.
         
        .google.protobuf.BoolValue wait_for_ready = 2;
        Specified by:
        hasWaitForReady in interface MethodConfigOrBuilder
        Returns:
        Whether the waitForReady field is set.
      • getWaitForReady

        public com.google.protobuf.BoolValue getWaitForReady()
         Whether RPCs sent to this method should wait until the connection is
         ready by default. If false, the RPC will abort immediately if there is
         a transient failure connecting to the server. Otherwise, gRPC will
         attempt to connect until the deadline is exceeded.
         The value specified via the gRPC client API will override the value
         set here. However, note that setting the value in the client API will
         also affect transient errors encountered during name resolution, which
         cannot be caught by the value here, since the service config is
         obtained by the gRPC client via name resolution.
         
        .google.protobuf.BoolValue wait_for_ready = 2;
        Specified by:
        getWaitForReady in interface MethodConfigOrBuilder
        Returns:
        The waitForReady.
      • setWaitForReady

        public MethodConfig.Builder setWaitForReady​(com.google.protobuf.BoolValue value)
         Whether RPCs sent to this method should wait until the connection is
         ready by default. If false, the RPC will abort immediately if there is
         a transient failure connecting to the server. Otherwise, gRPC will
         attempt to connect until the deadline is exceeded.
         The value specified via the gRPC client API will override the value
         set here. However, note that setting the value in the client API will
         also affect transient errors encountered during name resolution, which
         cannot be caught by the value here, since the service config is
         obtained by the gRPC client via name resolution.
         
        .google.protobuf.BoolValue wait_for_ready = 2;
      • setWaitForReady

        public MethodConfig.Builder setWaitForReady​(com.google.protobuf.BoolValue.Builder builderForValue)
         Whether RPCs sent to this method should wait until the connection is
         ready by default. If false, the RPC will abort immediately if there is
         a transient failure connecting to the server. Otherwise, gRPC will
         attempt to connect until the deadline is exceeded.
         The value specified via the gRPC client API will override the value
         set here. However, note that setting the value in the client API will
         also affect transient errors encountered during name resolution, which
         cannot be caught by the value here, since the service config is
         obtained by the gRPC client via name resolution.
         
        .google.protobuf.BoolValue wait_for_ready = 2;
      • mergeWaitForReady

        public MethodConfig.Builder mergeWaitForReady​(com.google.protobuf.BoolValue value)
         Whether RPCs sent to this method should wait until the connection is
         ready by default. If false, the RPC will abort immediately if there is
         a transient failure connecting to the server. Otherwise, gRPC will
         attempt to connect until the deadline is exceeded.
         The value specified via the gRPC client API will override the value
         set here. However, note that setting the value in the client API will
         also affect transient errors encountered during name resolution, which
         cannot be caught by the value here, since the service config is
         obtained by the gRPC client via name resolution.
         
        .google.protobuf.BoolValue wait_for_ready = 2;
      • clearWaitForReady

        public MethodConfig.Builder clearWaitForReady()
         Whether RPCs sent to this method should wait until the connection is
         ready by default. If false, the RPC will abort immediately if there is
         a transient failure connecting to the server. Otherwise, gRPC will
         attempt to connect until the deadline is exceeded.
         The value specified via the gRPC client API will override the value
         set here. However, note that setting the value in the client API will
         also affect transient errors encountered during name resolution, which
         cannot be caught by the value here, since the service config is
         obtained by the gRPC client via name resolution.
         
        .google.protobuf.BoolValue wait_for_ready = 2;
      • getWaitForReadyBuilder

        public com.google.protobuf.BoolValue.Builder getWaitForReadyBuilder()
         Whether RPCs sent to this method should wait until the connection is
         ready by default. If false, the RPC will abort immediately if there is
         a transient failure connecting to the server. Otherwise, gRPC will
         attempt to connect until the deadline is exceeded.
         The value specified via the gRPC client API will override the value
         set here. However, note that setting the value in the client API will
         also affect transient errors encountered during name resolution, which
         cannot be caught by the value here, since the service config is
         obtained by the gRPC client via name resolution.
         
        .google.protobuf.BoolValue wait_for_ready = 2;
      • getWaitForReadyOrBuilder

        public com.google.protobuf.BoolValueOrBuilder getWaitForReadyOrBuilder()
         Whether RPCs sent to this method should wait until the connection is
         ready by default. If false, the RPC will abort immediately if there is
         a transient failure connecting to the server. Otherwise, gRPC will
         attempt to connect until the deadline is exceeded.
         The value specified via the gRPC client API will override the value
         set here. However, note that setting the value in the client API will
         also affect transient errors encountered during name resolution, which
         cannot be caught by the value here, since the service config is
         obtained by the gRPC client via name resolution.
         
        .google.protobuf.BoolValue wait_for_ready = 2;
        Specified by:
        getWaitForReadyOrBuilder in interface MethodConfigOrBuilder
      • hasTimeout

        public boolean hasTimeout()
         The default timeout in seconds for RPCs sent to this method. This can be
         overridden in code. If no reply is received in the specified amount of
         time, the request is aborted and a DEADLINE_EXCEEDED error status
         is returned to the caller.
         The actual deadline used will be the minimum of the value specified here
         and the value set by the application via the gRPC client API.  If either
         one is not set, then the other will be used.  If neither is set, then the
         request has no deadline.
         
        .google.protobuf.Duration timeout = 3;
        Specified by:
        hasTimeout in interface MethodConfigOrBuilder
        Returns:
        Whether the timeout field is set.
      • getTimeout

        public com.google.protobuf.Duration getTimeout()
         The default timeout in seconds for RPCs sent to this method. This can be
         overridden in code. If no reply is received in the specified amount of
         time, the request is aborted and a DEADLINE_EXCEEDED error status
         is returned to the caller.
         The actual deadline used will be the minimum of the value specified here
         and the value set by the application via the gRPC client API.  If either
         one is not set, then the other will be used.  If neither is set, then the
         request has no deadline.
         
        .google.protobuf.Duration timeout = 3;
        Specified by:
        getTimeout in interface MethodConfigOrBuilder
        Returns:
        The timeout.
      • setTimeout

        public MethodConfig.Builder setTimeout​(com.google.protobuf.Duration value)
         The default timeout in seconds for RPCs sent to this method. This can be
         overridden in code. If no reply is received in the specified amount of
         time, the request is aborted and a DEADLINE_EXCEEDED error status
         is returned to the caller.
         The actual deadline used will be the minimum of the value specified here
         and the value set by the application via the gRPC client API.  If either
         one is not set, then the other will be used.  If neither is set, then the
         request has no deadline.
         
        .google.protobuf.Duration timeout = 3;
      • setTimeout

        public MethodConfig.Builder setTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         The default timeout in seconds for RPCs sent to this method. This can be
         overridden in code. If no reply is received in the specified amount of
         time, the request is aborted and a DEADLINE_EXCEEDED error status
         is returned to the caller.
         The actual deadline used will be the minimum of the value specified here
         and the value set by the application via the gRPC client API.  If either
         one is not set, then the other will be used.  If neither is set, then the
         request has no deadline.
         
        .google.protobuf.Duration timeout = 3;
      • mergeTimeout

        public MethodConfig.Builder mergeTimeout​(com.google.protobuf.Duration value)
         The default timeout in seconds for RPCs sent to this method. This can be
         overridden in code. If no reply is received in the specified amount of
         time, the request is aborted and a DEADLINE_EXCEEDED error status
         is returned to the caller.
         The actual deadline used will be the minimum of the value specified here
         and the value set by the application via the gRPC client API.  If either
         one is not set, then the other will be used.  If neither is set, then the
         request has no deadline.
         
        .google.protobuf.Duration timeout = 3;
      • clearTimeout

        public MethodConfig.Builder clearTimeout()
         The default timeout in seconds for RPCs sent to this method. This can be
         overridden in code. If no reply is received in the specified amount of
         time, the request is aborted and a DEADLINE_EXCEEDED error status
         is returned to the caller.
         The actual deadline used will be the minimum of the value specified here
         and the value set by the application via the gRPC client API.  If either
         one is not set, then the other will be used.  If neither is set, then the
         request has no deadline.
         
        .google.protobuf.Duration timeout = 3;
      • getTimeoutBuilder

        public com.google.protobuf.Duration.Builder getTimeoutBuilder()
         The default timeout in seconds for RPCs sent to this method. This can be
         overridden in code. If no reply is received in the specified amount of
         time, the request is aborted and a DEADLINE_EXCEEDED error status
         is returned to the caller.
         The actual deadline used will be the minimum of the value specified here
         and the value set by the application via the gRPC client API.  If either
         one is not set, then the other will be used.  If neither is set, then the
         request has no deadline.
         
        .google.protobuf.Duration timeout = 3;
      • getTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
         The default timeout in seconds for RPCs sent to this method. This can be
         overridden in code. If no reply is received in the specified amount of
         time, the request is aborted and a DEADLINE_EXCEEDED error status
         is returned to the caller.
         The actual deadline used will be the minimum of the value specified here
         and the value set by the application via the gRPC client API.  If either
         one is not set, then the other will be used.  If neither is set, then the
         request has no deadline.
         
        .google.protobuf.Duration timeout = 3;
        Specified by:
        getTimeoutOrBuilder in interface MethodConfigOrBuilder
      • hasMaxRequestMessageBytes

        public boolean hasMaxRequestMessageBytes()
         The maximum allowed payload size for an individual request or object in a
         stream (client->server) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a client attempts to send an object larger than this value, it will not
         be sent and the client will see a ClientError.
         Note that 0 is a valid value, meaning that the request message
         must be empty.
         
        .google.protobuf.UInt32Value max_request_message_bytes = 4;
        Specified by:
        hasMaxRequestMessageBytes in interface MethodConfigOrBuilder
        Returns:
        Whether the maxRequestMessageBytes field is set.
      • getMaxRequestMessageBytes

        public com.google.protobuf.UInt32Value getMaxRequestMessageBytes()
         The maximum allowed payload size for an individual request or object in a
         stream (client->server) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a client attempts to send an object larger than this value, it will not
         be sent and the client will see a ClientError.
         Note that 0 is a valid value, meaning that the request message
         must be empty.
         
        .google.protobuf.UInt32Value max_request_message_bytes = 4;
        Specified by:
        getMaxRequestMessageBytes in interface MethodConfigOrBuilder
        Returns:
        The maxRequestMessageBytes.
      • setMaxRequestMessageBytes

        public MethodConfig.Builder setMaxRequestMessageBytes​(com.google.protobuf.UInt32Value value)
         The maximum allowed payload size for an individual request or object in a
         stream (client->server) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a client attempts to send an object larger than this value, it will not
         be sent and the client will see a ClientError.
         Note that 0 is a valid value, meaning that the request message
         must be empty.
         
        .google.protobuf.UInt32Value max_request_message_bytes = 4;
      • setMaxRequestMessageBytes

        public MethodConfig.Builder setMaxRequestMessageBytes​(com.google.protobuf.UInt32Value.Builder builderForValue)
         The maximum allowed payload size for an individual request or object in a
         stream (client->server) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a client attempts to send an object larger than this value, it will not
         be sent and the client will see a ClientError.
         Note that 0 is a valid value, meaning that the request message
         must be empty.
         
        .google.protobuf.UInt32Value max_request_message_bytes = 4;
      • mergeMaxRequestMessageBytes

        public MethodConfig.Builder mergeMaxRequestMessageBytes​(com.google.protobuf.UInt32Value value)
         The maximum allowed payload size for an individual request or object in a
         stream (client->server) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a client attempts to send an object larger than this value, it will not
         be sent and the client will see a ClientError.
         Note that 0 is a valid value, meaning that the request message
         must be empty.
         
        .google.protobuf.UInt32Value max_request_message_bytes = 4;
      • clearMaxRequestMessageBytes

        public MethodConfig.Builder clearMaxRequestMessageBytes()
         The maximum allowed payload size for an individual request or object in a
         stream (client->server) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a client attempts to send an object larger than this value, it will not
         be sent and the client will see a ClientError.
         Note that 0 is a valid value, meaning that the request message
         must be empty.
         
        .google.protobuf.UInt32Value max_request_message_bytes = 4;
      • getMaxRequestMessageBytesBuilder

        public com.google.protobuf.UInt32Value.Builder getMaxRequestMessageBytesBuilder()
         The maximum allowed payload size for an individual request or object in a
         stream (client->server) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a client attempts to send an object larger than this value, it will not
         be sent and the client will see a ClientError.
         Note that 0 is a valid value, meaning that the request message
         must be empty.
         
        .google.protobuf.UInt32Value max_request_message_bytes = 4;
      • getMaxRequestMessageBytesOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getMaxRequestMessageBytesOrBuilder()
         The maximum allowed payload size for an individual request or object in a
         stream (client->server) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a client attempts to send an object larger than this value, it will not
         be sent and the client will see a ClientError.
         Note that 0 is a valid value, meaning that the request message
         must be empty.
         
        .google.protobuf.UInt32Value max_request_message_bytes = 4;
        Specified by:
        getMaxRequestMessageBytesOrBuilder in interface MethodConfigOrBuilder
      • hasMaxResponseMessageBytes

        public boolean hasMaxResponseMessageBytes()
         The maximum allowed payload size for an individual response or object in a
         stream (server->client) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a server attempts to send an object larger than this value, it will not
         be sent, and a ServerError will be sent to the client instead.
         Note that 0 is a valid value, meaning that the response message
         must be empty.
         
        .google.protobuf.UInt32Value max_response_message_bytes = 5;
        Specified by:
        hasMaxResponseMessageBytes in interface MethodConfigOrBuilder
        Returns:
        Whether the maxResponseMessageBytes field is set.
      • getMaxResponseMessageBytes

        public com.google.protobuf.UInt32Value getMaxResponseMessageBytes()
         The maximum allowed payload size for an individual response or object in a
         stream (server->client) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a server attempts to send an object larger than this value, it will not
         be sent, and a ServerError will be sent to the client instead.
         Note that 0 is a valid value, meaning that the response message
         must be empty.
         
        .google.protobuf.UInt32Value max_response_message_bytes = 5;
        Specified by:
        getMaxResponseMessageBytes in interface MethodConfigOrBuilder
        Returns:
        The maxResponseMessageBytes.
      • setMaxResponseMessageBytes

        public MethodConfig.Builder setMaxResponseMessageBytes​(com.google.protobuf.UInt32Value value)
         The maximum allowed payload size for an individual response or object in a
         stream (server->client) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a server attempts to send an object larger than this value, it will not
         be sent, and a ServerError will be sent to the client instead.
         Note that 0 is a valid value, meaning that the response message
         must be empty.
         
        .google.protobuf.UInt32Value max_response_message_bytes = 5;
      • setMaxResponseMessageBytes

        public MethodConfig.Builder setMaxResponseMessageBytes​(com.google.protobuf.UInt32Value.Builder builderForValue)
         The maximum allowed payload size for an individual response or object in a
         stream (server->client) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a server attempts to send an object larger than this value, it will not
         be sent, and a ServerError will be sent to the client instead.
         Note that 0 is a valid value, meaning that the response message
         must be empty.
         
        .google.protobuf.UInt32Value max_response_message_bytes = 5;
      • mergeMaxResponseMessageBytes

        public MethodConfig.Builder mergeMaxResponseMessageBytes​(com.google.protobuf.UInt32Value value)
         The maximum allowed payload size for an individual response or object in a
         stream (server->client) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a server attempts to send an object larger than this value, it will not
         be sent, and a ServerError will be sent to the client instead.
         Note that 0 is a valid value, meaning that the response message
         must be empty.
         
        .google.protobuf.UInt32Value max_response_message_bytes = 5;
      • clearMaxResponseMessageBytes

        public MethodConfig.Builder clearMaxResponseMessageBytes()
         The maximum allowed payload size for an individual response or object in a
         stream (server->client) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a server attempts to send an object larger than this value, it will not
         be sent, and a ServerError will be sent to the client instead.
         Note that 0 is a valid value, meaning that the response message
         must be empty.
         
        .google.protobuf.UInt32Value max_response_message_bytes = 5;
      • getMaxResponseMessageBytesBuilder

        public com.google.protobuf.UInt32Value.Builder getMaxResponseMessageBytesBuilder()
         The maximum allowed payload size for an individual response or object in a
         stream (server->client) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a server attempts to send an object larger than this value, it will not
         be sent, and a ServerError will be sent to the client instead.
         Note that 0 is a valid value, meaning that the response message
         must be empty.
         
        .google.protobuf.UInt32Value max_response_message_bytes = 5;
      • getMaxResponseMessageBytesOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getMaxResponseMessageBytesOrBuilder()
         The maximum allowed payload size for an individual response or object in a
         stream (server->client) in bytes. The size which is measured is the
         serialized payload after per-message compression (but before stream
         compression) in bytes. This applies both to streaming and non-streaming
         requests.
         The actual value used is the minimum of the value specified here and the
         value set by the application via the gRPC client API.  If either one is
         not set, then the other will be used.  If neither is set, then the
         built-in default is used.
         If a server attempts to send an object larger than this value, it will not
         be sent, and a ServerError will be sent to the client instead.
         Note that 0 is a valid value, meaning that the response message
         must be empty.
         
        .google.protobuf.UInt32Value max_response_message_bytes = 5;
        Specified by:
        getMaxResponseMessageBytesOrBuilder in interface MethodConfigOrBuilder
      • hasRetryPolicy

        public boolean hasRetryPolicy()
        .grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;
        Specified by:
        hasRetryPolicy in interface MethodConfigOrBuilder
        Returns:
        Whether the retryPolicy field is set.
      • clearRetryPolicy

        public MethodConfig.Builder clearRetryPolicy()
        .grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;
      • hasHedgingPolicy

        public boolean hasHedgingPolicy()
        .grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;
        Specified by:
        hasHedgingPolicy in interface MethodConfigOrBuilder
        Returns:
        Whether the hedgingPolicy field is set.
      • clearHedgingPolicy

        public MethodConfig.Builder clearHedgingPolicy()
        .grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;
      • setUnknownFields

        public final MethodConfig.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<MethodConfig.Builder>
      • mergeUnknownFields

        public final MethodConfig.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<MethodConfig.Builder>