public final class MethodConfig extends com.google.protobuf.GeneratedMessageV3 implements MethodConfigOrBuilder
Configuration for a method.Protobuf type
grpc.service_config.MethodConfig| Modifier and Type | Class and Description |
|---|---|
static class |
MethodConfig.Builder
Configuration for a method.
|
static class |
MethodConfig.HedgingPolicy
The hedging policy for outgoing RPCs.
|
static interface |
MethodConfig.HedgingPolicyOrBuilder |
static class |
MethodConfig.Name
The names of the methods to which this configuration applies.
|
static interface |
MethodConfig.NameOrBuilder |
static class |
MethodConfig.RetryOrHedgingPolicyCase |
static class |
MethodConfig.RetryPolicy
The retry policy for outgoing RPCs.
|
static interface |
MethodConfig.RetryPolicyOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
HEDGING_POLICY_FIELD_NUMBER |
static int |
MAX_REQUEST_MESSAGE_BYTES_FIELD_NUMBER |
static int |
MAX_RESPONSE_MESSAGE_BYTES_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
RETRY_POLICY_FIELD_NUMBER |
static int |
TIMEOUT_FIELD_NUMBER |
static int |
WAIT_FOR_READY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static MethodConfig |
getDefaultInstance() |
MethodConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
MethodConfig.HedgingPolicy |
getHedgingPolicy()
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7; |
MethodConfig.HedgingPolicyOrBuilder |
getHedgingPolicyOrBuilder()
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7; |
com.google.protobuf.UInt32Value |
getMaxRequestMessageBytes()
The maximum allowed payload size for an individual request or object in a
stream (client->server) in bytes.
|
com.google.protobuf.UInt32ValueOrBuilder |
getMaxRequestMessageBytesOrBuilder()
The maximum allowed payload size for an individual request or object in a
stream (client->server) in bytes.
|
com.google.protobuf.UInt32Value |
getMaxResponseMessageBytes()
The maximum allowed payload size for an individual response or object in a
stream (server->client) in bytes.
|
com.google.protobuf.UInt32ValueOrBuilder |
getMaxResponseMessageBytesOrBuilder()
The maximum allowed payload size for an individual response or object in a
stream (server->client) in bytes.
|
MethodConfig.Name |
getName(int index)
repeated .grpc.service_config.MethodConfig.Name name = 1; |
int |
getNameCount()
repeated .grpc.service_config.MethodConfig.Name name = 1; |
List<MethodConfig.Name> |
getNameList()
repeated .grpc.service_config.MethodConfig.Name name = 1; |
MethodConfig.NameOrBuilder |
getNameOrBuilder(int index)
repeated .grpc.service_config.MethodConfig.Name name = 1; |
List<? extends MethodConfig.NameOrBuilder> |
getNameOrBuilderList()
repeated .grpc.service_config.MethodConfig.Name name = 1; |
com.google.protobuf.Parser<MethodConfig> |
getParserForType() |
MethodConfig.RetryOrHedgingPolicyCase |
getRetryOrHedgingPolicyCase() |
MethodConfig.RetryPolicy |
getRetryPolicy()
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6; |
MethodConfig.RetryPolicyOrBuilder |
getRetryPolicyOrBuilder()
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6; |
int |
getSerializedSize() |
com.google.protobuf.Duration |
getTimeout()
The default timeout in seconds for RPCs sent to this method.
|
com.google.protobuf.DurationOrBuilder |
getTimeoutOrBuilder()
The default timeout in seconds for RPCs sent to this method.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
com.google.protobuf.BoolValue |
getWaitForReady()
Whether RPCs sent to this method should wait until the connection is
ready by default.
|
com.google.protobuf.BoolValueOrBuilder |
getWaitForReadyOrBuilder()
Whether RPCs sent to this method should wait until the connection is
ready by default.
|
int |
hashCode() |
boolean |
hasHedgingPolicy()
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7; |
boolean |
hasMaxRequestMessageBytes()
The maximum allowed payload size for an individual request or object in a
stream (client->server) in bytes.
|
boolean |
hasMaxResponseMessageBytes()
The maximum allowed payload size for an individual response or object in a
stream (server->client) in bytes.
|
boolean |
hasRetryPolicy()
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6; |
boolean |
hasTimeout()
The default timeout in seconds for RPCs sent to this method.
|
boolean |
hasWaitForReady()
Whether RPCs sent to this method should wait until the connection is
ready by default.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MethodConfig.Builder |
newBuilder() |
static MethodConfig.Builder |
newBuilder(MethodConfig prototype) |
MethodConfig.Builder |
newBuilderForType() |
protected MethodConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static MethodConfig |
parseDelimitedFrom(InputStream input) |
static MethodConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig |
parseFrom(byte[] data) |
static MethodConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig |
parseFrom(ByteBuffer data) |
static MethodConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig |
parseFrom(com.google.protobuf.ByteString data) |
static MethodConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MethodConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig |
parseFrom(InputStream input) |
static MethodConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MethodConfig> |
parser() |
MethodConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int WAIT_FOR_READY_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
public static final int MAX_REQUEST_MESSAGE_BYTES_FIELD_NUMBER
public static final int MAX_RESPONSE_MESSAGE_BYTES_FIELD_NUMBER
public static final int RETRY_POLICY_FIELD_NUMBER
public static final int HEDGING_POLICY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public MethodConfig.RetryOrHedgingPolicyCase getRetryOrHedgingPolicyCase()
getRetryOrHedgingPolicyCase in interface MethodConfigOrBuilderpublic List<MethodConfig.Name> getNameList()
repeated .grpc.service_config.MethodConfig.Name name = 1;getNameList in interface MethodConfigOrBuilderpublic List<? extends MethodConfig.NameOrBuilder> getNameOrBuilderList()
repeated .grpc.service_config.MethodConfig.Name name = 1;getNameOrBuilderList in interface MethodConfigOrBuilderpublic int getNameCount()
repeated .grpc.service_config.MethodConfig.Name name = 1;getNameCount in interface MethodConfigOrBuilderpublic MethodConfig.Name getName(int index)
repeated .grpc.service_config.MethodConfig.Name name = 1;getName in interface MethodConfigOrBuilderpublic MethodConfig.NameOrBuilder getNameOrBuilder(int index)
repeated .grpc.service_config.MethodConfig.Name name = 1;getNameOrBuilder in interface MethodConfigOrBuilderpublic 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;hasWaitForReady in interface MethodConfigOrBuilderpublic 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;getWaitForReady in interface MethodConfigOrBuilderpublic 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;getWaitForReadyOrBuilder in interface MethodConfigOrBuilderpublic 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;hasTimeout in interface MethodConfigOrBuilderpublic 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;getTimeout in interface MethodConfigOrBuilderpublic 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;getTimeoutOrBuilder in interface MethodConfigOrBuilderpublic 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;hasMaxRequestMessageBytes in interface MethodConfigOrBuilderpublic 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;getMaxRequestMessageBytes in interface MethodConfigOrBuilderpublic 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;getMaxRequestMessageBytesOrBuilder in interface MethodConfigOrBuilderpublic 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;hasMaxResponseMessageBytes in interface MethodConfigOrBuilderpublic 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;getMaxResponseMessageBytes in interface MethodConfigOrBuilderpublic 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;getMaxResponseMessageBytesOrBuilder in interface MethodConfigOrBuilderpublic boolean hasRetryPolicy()
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;hasRetryPolicy in interface MethodConfigOrBuilderpublic MethodConfig.RetryPolicy getRetryPolicy()
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;getRetryPolicy in interface MethodConfigOrBuilderpublic MethodConfig.RetryPolicyOrBuilder getRetryPolicyOrBuilder()
.grpc.service_config.MethodConfig.RetryPolicy retry_policy = 6;getRetryPolicyOrBuilder in interface MethodConfigOrBuilderpublic boolean hasHedgingPolicy()
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;hasHedgingPolicy in interface MethodConfigOrBuilderpublic MethodConfig.HedgingPolicy getHedgingPolicy()
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;getHedgingPolicy in interface MethodConfigOrBuilderpublic MethodConfig.HedgingPolicyOrBuilder getHedgingPolicyOrBuilder()
.grpc.service_config.MethodConfig.HedgingPolicy hedging_policy = 7;getHedgingPolicyOrBuilder in interface MethodConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MethodConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static MethodConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MethodConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static MethodConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MethodConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static MethodConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic MethodConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MethodConfig.Builder newBuilder()
public static MethodConfig.Builder newBuilder(MethodConfig prototype)
public MethodConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MethodConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MethodConfig getDefaultInstance()
public static com.google.protobuf.Parser<MethodConfig> parser()
public com.google.protobuf.Parser<MethodConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MethodConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.