Package io.grpc.serviceconfig
Class MethodConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typegrpc.service_config.MethodConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodConfig.BuilderaddAllName(Iterable<? extends MethodConfig.Name> values)repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.BuilderaddName(int index, MethodConfig.Name value)repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.BuilderaddName(int index, MethodConfig.Name.Builder builderForValue)repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.BuilderaddName(MethodConfig.Name value)repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.BuilderaddName(MethodConfig.Name.Builder builderForValue)repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.Name.BuilderaddNameBuilder()repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.Name.BuilderaddNameBuilder(int index)repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MethodConfigbuild()MethodConfigbuildPartial()MethodConfig.Builderclear()MethodConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MethodConfig.BuilderclearHedgingPolicy().grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;MethodConfig.BuilderclearMaxRequestMessageBytes()The maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.MethodConfig.BuilderclearMaxResponseMessageBytes()The maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.MethodConfig.BuilderclearName()repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MethodConfig.BuilderclearRetryOrHedgingPolicy()MethodConfig.BuilderclearRetryPolicy().grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;MethodConfig.BuilderclearTimeout()The default timeout in seconds for RPCs sent to this method.MethodConfig.BuilderclearWaitForReady()Whether RPCs sent to this method should wait until the connection is ready by default.MethodConfig.Builderclone()MethodConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()MethodConfig.HedgingPolicygetHedgingPolicy().grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;MethodConfig.HedgingPolicy.BuildergetHedgingPolicyBuilder().grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;MethodConfig.HedgingPolicyOrBuildergetHedgingPolicyOrBuilder().grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;com.google.protobuf.UInt32ValuegetMaxRequestMessageBytes()The maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.com.google.protobuf.UInt32Value.BuildergetMaxRequestMessageBytesBuilder()The maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.com.google.protobuf.UInt32ValueOrBuildergetMaxRequestMessageBytesOrBuilder()The maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.com.google.protobuf.UInt32ValuegetMaxResponseMessageBytes()The maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.com.google.protobuf.UInt32Value.BuildergetMaxResponseMessageBytesBuilder()The maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.com.google.protobuf.UInt32ValueOrBuildergetMaxResponseMessageBytesOrBuilder()The maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.MethodConfig.NamegetName(int index)repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.Name.BuildergetNameBuilder(int index)repeated .grpc.service_config.MethodConfig.Name name = 1;List<MethodConfig.Name.Builder>getNameBuilderList()repeated .grpc.service_config.MethodConfig.Name name = 1;intgetNameCount()repeated .grpc.service_config.MethodConfig.Name name = 1;List<MethodConfig.Name>getNameList()repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.NameOrBuildergetNameOrBuilder(int index)repeated .grpc.service_config.MethodConfig.Name name = 1;List<? extends MethodConfig.NameOrBuilder>getNameOrBuilderList()repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.RetryOrHedgingPolicyCasegetRetryOrHedgingPolicyCase()MethodConfig.RetryPolicygetRetryPolicy().grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;MethodConfig.RetryPolicy.BuildergetRetryPolicyBuilder().grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;MethodConfig.RetryPolicyOrBuildergetRetryPolicyOrBuilder().grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;com.google.protobuf.DurationgetTimeout()The default timeout in seconds for RPCs sent to this method.com.google.protobuf.Duration.BuildergetTimeoutBuilder()The default timeout in seconds for RPCs sent to this method.com.google.protobuf.DurationOrBuildergetTimeoutOrBuilder()The default timeout in seconds for RPCs sent to this method.com.google.protobuf.BoolValuegetWaitForReady()Whether RPCs sent to this method should wait until the connection is ready by default.com.google.protobuf.BoolValue.BuildergetWaitForReadyBuilder()Whether RPCs sent to this method should wait until the connection is ready by default.com.google.protobuf.BoolValueOrBuildergetWaitForReadyOrBuilder()Whether RPCs sent to this method should wait until the connection is ready by default.booleanhasHedgingPolicy().grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;booleanhasMaxRequestMessageBytes()The maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.booleanhasMaxResponseMessageBytes()The maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.booleanhasRetryPolicy().grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;booleanhasTimeout()The default timeout in seconds for RPCs sent to this method.booleanhasWaitForReady()Whether RPCs sent to this method should wait until the connection is ready by default.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MethodConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MethodConfig.BuildermergeFrom(com.google.protobuf.Message other)MethodConfig.BuildermergeFrom(MethodConfig other)MethodConfig.BuildermergeHedgingPolicy(MethodConfig.HedgingPolicy value).grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;MethodConfig.BuildermergeMaxRequestMessageBytes(com.google.protobuf.UInt32Value value)The maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.MethodConfig.BuildermergeMaxResponseMessageBytes(com.google.protobuf.UInt32Value value)The maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.MethodConfig.BuildermergeRetryPolicy(MethodConfig.RetryPolicy value).grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;MethodConfig.BuildermergeTimeout(com.google.protobuf.Duration value)The default timeout in seconds for RPCs sent to this method.MethodConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MethodConfig.BuildermergeWaitForReady(com.google.protobuf.BoolValue value)Whether RPCs sent to this method should wait until the connection is ready by default.MethodConfig.BuilderremoveName(int index)repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MethodConfig.BuildersetHedgingPolicy(MethodConfig.HedgingPolicy value).grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;MethodConfig.BuildersetHedgingPolicy(MethodConfig.HedgingPolicy.Builder builderForValue).grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;MethodConfig.BuildersetMaxRequestMessageBytes(com.google.protobuf.UInt32Value value)The maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.MethodConfig.BuildersetMaxRequestMessageBytes(com.google.protobuf.UInt32Value.Builder builderForValue)The maximum allowed payload size for an individual request or object in a stream (client->server) in bytes.MethodConfig.BuildersetMaxResponseMessageBytes(com.google.protobuf.UInt32Value value)The maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.MethodConfig.BuildersetMaxResponseMessageBytes(com.google.protobuf.UInt32Value.Builder builderForValue)The maximum allowed payload size for an individual response or object in a stream (server->client) in bytes.MethodConfig.BuildersetName(int index, MethodConfig.Name value)repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.BuildersetName(int index, MethodConfig.Name.Builder builderForValue)repeated .grpc.service_config.MethodConfig.Name name = 1;MethodConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)MethodConfig.BuildersetRetryPolicy(MethodConfig.RetryPolicy value).grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;MethodConfig.BuildersetRetryPolicy(MethodConfig.RetryPolicy.Builder builderForValue).grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;MethodConfig.BuildersetTimeout(com.google.protobuf.Duration value)The default timeout in seconds for RPCs sent to this method.MethodConfig.BuildersetTimeout(com.google.protobuf.Duration.Builder builderForValue)The default timeout in seconds for RPCs sent to this method.MethodConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MethodConfig.BuildersetWaitForReady(com.google.protobuf.BoolValue value)Whether RPCs sent to this method should wait until the connection is ready by default.MethodConfig.BuildersetWaitForReady(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public MethodConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MethodConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MethodConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MethodConfig.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
public MethodConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MethodConfig.Builder>
-
clearOneof
public MethodConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public MethodConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MethodConfig.Builder>
-
mergeFrom
public MethodConfig.Builder mergeFrom(MethodConfig other)
-
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
public MethodConfig.RetryOrHedgingPolicyCase getRetryOrHedgingPolicyCase()
- Specified by:
getRetryOrHedgingPolicyCasein interfaceMethodConfigOrBuilder
-
clearRetryOrHedgingPolicy
public MethodConfig.Builder clearRetryOrHedgingPolicy()
-
getNameList
public List<MethodConfig.Name> 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
public MethodConfig.Name getName(int index)
repeated .grpc.service_config.MethodConfig.Name name = 1;- Specified by:
getNamein interfaceMethodConfigOrBuilder
-
setName
public MethodConfig.Builder setName(int index, MethodConfig.Name value)
repeated .grpc.service_config.MethodConfig.Name name = 1;
-
setName
public MethodConfig.Builder setName(int index, MethodConfig.Name.Builder builderForValue)
repeated .grpc.service_config.MethodConfig.Name name = 1;
-
addName
public MethodConfig.Builder addName(MethodConfig.Name value)
repeated .grpc.service_config.MethodConfig.Name name = 1;
-
addName
public MethodConfig.Builder addName(int index, MethodConfig.Name value)
repeated .grpc.service_config.MethodConfig.Name name = 1;
-
addName
public MethodConfig.Builder addName(MethodConfig.Name.Builder builderForValue)
repeated .grpc.service_config.MethodConfig.Name name = 1;
-
addName
public MethodConfig.Builder addName(int index, MethodConfig.Name.Builder builderForValue)
repeated .grpc.service_config.MethodConfig.Name name = 1;
-
addAllName
public MethodConfig.Builder addAllName(Iterable<? extends MethodConfig.Name> values)
repeated .grpc.service_config.MethodConfig.Name name = 1;
-
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;
-
getNameOrBuilder
public MethodConfig.NameOrBuilder getNameOrBuilder(int index)
repeated .grpc.service_config.MethodConfig.Name name = 1;- Specified by:
getNameOrBuilderin interfaceMethodConfigOrBuilder
-
getNameOrBuilderList
public List<? extends MethodConfig.NameOrBuilder> getNameOrBuilderList()
repeated .grpc.service_config.MethodConfig.Name name = 1;- Specified by:
getNameOrBuilderListin interfaceMethodConfigOrBuilder
-
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;
-
getNameBuilderList
public List<MethodConfig.Name.Builder> 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
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:
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
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:
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
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:
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
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:
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
public MethodConfig.RetryPolicy getRetryPolicy()
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;- Specified by:
getRetryPolicyin interfaceMethodConfigOrBuilder- Returns:
- The retryPolicy.
-
setRetryPolicy
public MethodConfig.Builder setRetryPolicy(MethodConfig.RetryPolicy value)
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;
-
setRetryPolicy
public MethodConfig.Builder setRetryPolicy(MethodConfig.RetryPolicy.Builder builderForValue)
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;
-
mergeRetryPolicy
public MethodConfig.Builder mergeRetryPolicy(MethodConfig.RetryPolicy value)
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;
-
clearRetryPolicy
public MethodConfig.Builder clearRetryPolicy()
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;
-
getRetryPolicyBuilder
public MethodConfig.RetryPolicy.Builder getRetryPolicyBuilder()
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;
-
getRetryPolicyOrBuilder
public MethodConfig.RetryPolicyOrBuilder 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
public MethodConfig.HedgingPolicy getHedgingPolicy()
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;- Specified by:
getHedgingPolicyin interfaceMethodConfigOrBuilder- Returns:
- The hedgingPolicy.
-
setHedgingPolicy
public MethodConfig.Builder setHedgingPolicy(MethodConfig.HedgingPolicy value)
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;
-
setHedgingPolicy
public MethodConfig.Builder setHedgingPolicy(MethodConfig.HedgingPolicy.Builder builderForValue)
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;
-
mergeHedgingPolicy
public MethodConfig.Builder mergeHedgingPolicy(MethodConfig.HedgingPolicy value)
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;
-
clearHedgingPolicy
public MethodConfig.Builder clearHedgingPolicy()
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;
-
getHedgingPolicyBuilder
public MethodConfig.HedgingPolicy.Builder getHedgingPolicyBuilder()
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;
-
getHedgingPolicyOrBuilder
public MethodConfig.HedgingPolicyOrBuilder 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>
-
-