Package io.grpc.serviceconfig
Class MethodConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
io.grpc.serviceconfig.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 Summary
Modifier and TypeMethodDescriptionaddAllName(Iterable<? extends MethodConfig.Name> values) repeated .grpc.service_config.MethodConfig.Name name = 1;addName(int index, MethodConfig.Name value) repeated .grpc.service_config.MethodConfig.Name name = 1;addName(int index, MethodConfig.Name.Builder builderForValue) repeated .grpc.service_config.MethodConfig.Name name = 1;addName(MethodConfig.Name value) repeated .grpc.service_config.MethodConfig.Name name = 1;addName(MethodConfig.Name.Builder builderForValue) repeated .grpc.service_config.MethodConfig.Name name = 1;repeated .grpc.service_config.MethodConfig.Name name = 1;addNameBuilder(int index) repeated .grpc.service_config.MethodConfig.Name name = 1;addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) .grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;The maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.The maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.repeated .grpc.service_config.MethodConfig.Name name = 1;clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) .grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;The default timeout in seconds for RPCs sent to this method.Whether RPCs sent to this method should wait until the connection is ready by default.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;com.google.protobuf.UInt32ValueThe maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.com.google.protobuf.UInt32Value.BuilderThe maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.com.google.protobuf.UInt32ValueOrBuilderThe maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.com.google.protobuf.UInt32ValueThe maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.com.google.protobuf.UInt32Value.BuilderThe maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.com.google.protobuf.UInt32ValueOrBuilderThe maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.getName(int index) repeated .grpc.service_config.MethodConfig.Name name = 1;getNameBuilder(int index) repeated .grpc.service_config.MethodConfig.Name name = 1;repeated .grpc.service_config.MethodConfig.Name name = 1;intrepeated .grpc.service_config.MethodConfig.Name name = 1;repeated .grpc.service_config.MethodConfig.Name name = 1;getNameOrBuilder(int index) repeated .grpc.service_config.MethodConfig.Name name = 1;List<? extends MethodConfig.NameOrBuilder>repeated .grpc.service_config.MethodConfig.Name name = 1;.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;com.google.protobuf.DurationThe default timeout in seconds for RPCs sent to this method.com.google.protobuf.Duration.BuilderThe default timeout in seconds for RPCs sent to this method.com.google.protobuf.DurationOrBuilderThe default timeout in seconds for RPCs sent to this method.com.google.protobuf.BoolValueWhether RPCs sent to this method should wait until the connection is ready by default.com.google.protobuf.BoolValue.BuilderWhether RPCs sent to this method should wait until the connection is ready by default.com.google.protobuf.BoolValueOrBuilderWhether RPCs sent to this method should wait until the connection is ready by default.boolean.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;booleanThe maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.booleanThe maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.boolean.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;booleanThe default timeout in seconds for RPCs sent to this method.booleanWhether RPCs sent to this method should wait until the connection is ready by default.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(MethodConfig other) .grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;mergeMaxRequestMessageBytes(com.google.protobuf.UInt32Value value) The maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.mergeMaxResponseMessageBytes(com.google.protobuf.UInt32Value value) The maximum allowed payload size for an individual response or object in a stream (server->client) in bytes..grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;mergeTimeout(com.google.protobuf.Duration value) The default timeout in seconds for RPCs sent to this method.final MethodConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeWaitForReady(com.google.protobuf.BoolValue value) Whether RPCs sent to this method should wait until the connection is ready by default.removeName(int index) repeated .grpc.service_config.MethodConfig.Name name = 1;.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;setHedgingPolicy(MethodConfig.HedgingPolicy.Builder builderForValue) .grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;setMaxRequestMessageBytes(com.google.protobuf.UInt32Value value) The maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.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.setMaxResponseMessageBytes(com.google.protobuf.UInt32Value value) The maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.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.setName(int index, MethodConfig.Name value) repeated .grpc.service_config.MethodConfig.Name name = 1;setName(int index, MethodConfig.Name.Builder builderForValue) repeated .grpc.service_config.MethodConfig.Name name = 1;setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) .grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;setRetryPolicy(MethodConfig.RetryPolicy.Builder builderForValue) .grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;setTimeout(com.google.protobuf.Duration value) The default timeout in seconds for RPCs sent to this method.setTimeout(com.google.protobuf.Duration.Builder builderForValue) The default timeout in seconds for RPCs sent to this method.final MethodConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWaitForReady(com.google.protobuf.BoolValue value) Whether RPCs sent to this method should wait until the connection is ready by default.setWaitForReady(com.google.protobuf.BoolValue.Builder builderForValue) Whether RPCs sent to this method should wait until the connection is ready by default.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-
setField
public MethodConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-
setRepeatedField
public MethodConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-
addRepeatedField
public MethodConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MethodConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MethodConfig.Builder>- Throws:
IOException
-
getRetryOrHedgingPolicyCase
- Specified by:
getRetryOrHedgingPolicyCasein interfaceMethodConfigOrBuilder
-
clearRetryOrHedgingPolicy
-
getNameList
repeated .grpc.service_config.MethodConfig.Name name = 1;- Specified by:
getNameListin interfaceMethodConfigOrBuilder
-
getNameCount
public int getNameCount()repeated .grpc.service_config.MethodConfig.Name name = 1;- Specified by:
getNameCountin interfaceMethodConfigOrBuilder
-
getName
repeated .grpc.service_config.MethodConfig.Name name = 1;- Specified by:
getNamein interfaceMethodConfigOrBuilder
-
setName
repeated .grpc.service_config.MethodConfig.Name name = 1; -
setName
repeated .grpc.service_config.MethodConfig.Name name = 1; -
addName
repeated .grpc.service_config.MethodConfig.Name name = 1; -
addName
repeated .grpc.service_config.MethodConfig.Name name = 1; -
addName
repeated .grpc.service_config.MethodConfig.Name name = 1; -
addName
repeated .grpc.service_config.MethodConfig.Name name = 1; -
addAllName
repeated .grpc.service_config.MethodConfig.Name name = 1; -
clearName
repeated .grpc.service_config.MethodConfig.Name name = 1; -
removeName
repeated .grpc.service_config.MethodConfig.Name name = 1; -
getNameBuilder
repeated .grpc.service_config.MethodConfig.Name name = 1; -
getNameOrBuilder
repeated .grpc.service_config.MethodConfig.Name name = 1;- Specified by:
getNameOrBuilderin interfaceMethodConfigOrBuilder
-
getNameOrBuilderList
repeated .grpc.service_config.MethodConfig.Name name = 1;- Specified by:
getNameOrBuilderListin interfaceMethodConfigOrBuilder
-
addNameBuilder
repeated .grpc.service_config.MethodConfig.Name name = 1; -
addNameBuilder
repeated .grpc.service_config.MethodConfig.Name name = 1; -
getNameBuilderList
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:
hasWaitForReadyin interfaceMethodConfigOrBuilder- 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:
getWaitForReadyin interfaceMethodConfigOrBuilder- Returns:
- The waitForReady.
-
setWaitForReady
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
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
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
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:
getWaitForReadyOrBuilderin interfaceMethodConfigOrBuilder
-
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:
hasTimeoutin interfaceMethodConfigOrBuilder- 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:
getTimeoutin interfaceMethodConfigOrBuilder- Returns:
- The timeout.
-
setTimeout
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
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
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
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:
getTimeoutOrBuilderin interfaceMethodConfigOrBuilder
-
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:
hasMaxRequestMessageBytesin interfaceMethodConfigOrBuilder- 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:
getMaxRequestMessageBytesin interfaceMethodConfigOrBuilder- Returns:
- The maxRequestMessageBytes.
-
setMaxRequestMessageBytes
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
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
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:
getMaxRequestMessageBytesOrBuilderin interfaceMethodConfigOrBuilder
-
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:
hasMaxResponseMessageBytesin interfaceMethodConfigOrBuilder- 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:
getMaxResponseMessageBytesin interfaceMethodConfigOrBuilder- Returns:
- The maxResponseMessageBytes.
-
setMaxResponseMessageBytes
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
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
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:
getMaxResponseMessageBytesOrBuilderin interfaceMethodConfigOrBuilder
-
hasRetryPolicy
public boolean hasRetryPolicy().grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;- Specified by:
hasRetryPolicyin interfaceMethodConfigOrBuilder- Returns:
- Whether the retryPolicy field is set.
-
getRetryPolicy
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;- Specified by:
getRetryPolicyin interfaceMethodConfigOrBuilder- Returns:
- The retryPolicy.
-
setRetryPolicy
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6; -
setRetryPolicy
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6; -
mergeRetryPolicy
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6; -
clearRetryPolicy
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6; -
getRetryPolicyBuilder
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6; -
getRetryPolicyOrBuilder
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;- Specified by:
getRetryPolicyOrBuilderin interfaceMethodConfigOrBuilder
-
hasHedgingPolicy
public boolean hasHedgingPolicy().grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;- Specified by:
hasHedgingPolicyin interfaceMethodConfigOrBuilder- Returns:
- Whether the hedgingPolicy field is set.
-
getHedgingPolicy
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;- Specified by:
getHedgingPolicyin interfaceMethodConfigOrBuilder- Returns:
- The hedgingPolicy.
-
setHedgingPolicy
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7; -
setHedgingPolicy
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7; -
mergeHedgingPolicy
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7; -
clearHedgingPolicy
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7; -
getHedgingPolicyBuilder
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7; -
getHedgingPolicyOrBuilder
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;- Specified by:
getHedgingPolicyOrBuilderin interfaceMethodConfigOrBuilder
-
setUnknownFields
public final MethodConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-
mergeUnknownFields
public final MethodConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-