public final class ServiceConfig extends com.google.protobuf.GeneratedMessageV3 implements ServiceConfigOrBuilder
A ServiceConfig represents information about a service but is not specific to any name resolver.Protobuf type
grpc.service_config.ServiceConfig| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceConfig.Builder
A ServiceConfig represents information about a service but is not specific to
any name resolver.
|
static class |
ServiceConfig.HealthCheckConfig
Protobuf type
grpc.service_config.ServiceConfig.HealthCheckConfig |
static interface |
ServiceConfig.HealthCheckConfigOrBuilder |
static class |
ServiceConfig.LoadBalancingPolicy
Load balancing policy.
|
static class |
ServiceConfig.RetryThrottlingPolicy
If a RetryThrottlingPolicy is provided, gRPC will automatically throttle
retry attempts and hedged RPCs when the client's ratio of failures to
successes exceeds a threshold.
|
static interface |
ServiceConfig.RetryThrottlingPolicyOrBuilder |
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 |
HEALTH_CHECK_CONFIG_FIELD_NUMBER |
static int |
LOAD_BALANCING_CONFIG_FIELD_NUMBER |
static int |
LOAD_BALANCING_POLICY_FIELD_NUMBER |
static int |
METHOD_CONFIG_FIELD_NUMBER |
static int |
RETRY_THROTTLING_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static ServiceConfig |
getDefaultInstance() |
ServiceConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ServiceConfig.HealthCheckConfig |
getHealthCheckConfig()
.grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5; |
ServiceConfig.HealthCheckConfigOrBuilder |
getHealthCheckConfigOrBuilder()
.grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5; |
LoadBalancingConfig |
getLoadBalancingConfig(int index)
Multiple LB policies can be specified; clients will iterate through
the list in order and stop at the first policy that they support.
|
int |
getLoadBalancingConfigCount()
Multiple LB policies can be specified; clients will iterate through
the list in order and stop at the first policy that they support.
|
List<LoadBalancingConfig> |
getLoadBalancingConfigList()
Multiple LB policies can be specified; clients will iterate through
the list in order and stop at the first policy that they support.
|
LoadBalancingConfigOrBuilder |
getLoadBalancingConfigOrBuilder(int index)
Multiple LB policies can be specified; clients will iterate through
the list in order and stop at the first policy that they support.
|
List<? extends LoadBalancingConfigOrBuilder> |
getLoadBalancingConfigOrBuilderList()
Multiple LB policies can be specified; clients will iterate through
the list in order and stop at the first policy that they support.
|
ServiceConfig.LoadBalancingPolicy |
getLoadBalancingPolicy()
Deprecated.
grpc.service_config.ServiceConfig.load_balancing_policy is deprecated.
See service_config.proto;l=548
|
int |
getLoadBalancingPolicyValue()
Deprecated.
grpc.service_config.ServiceConfig.load_balancing_policy is deprecated.
See service_config.proto;l=548
|
MethodConfig |
getMethodConfig(int index)
Per-method configuration.
|
int |
getMethodConfigCount()
Per-method configuration.
|
List<MethodConfig> |
getMethodConfigList()
Per-method configuration.
|
MethodConfigOrBuilder |
getMethodConfigOrBuilder(int index)
Per-method configuration.
|
List<? extends MethodConfigOrBuilder> |
getMethodConfigOrBuilderList()
Per-method configuration.
|
com.google.protobuf.Parser<ServiceConfig> |
getParserForType() |
ServiceConfig.RetryThrottlingPolicy |
getRetryThrottling()
.grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3; |
ServiceConfig.RetryThrottlingPolicyOrBuilder |
getRetryThrottlingOrBuilder()
.grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasHealthCheckConfig()
.grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5; |
boolean |
hasRetryThrottling()
.grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ServiceConfig.Builder |
newBuilder() |
static ServiceConfig.Builder |
newBuilder(ServiceConfig prototype) |
ServiceConfig.Builder |
newBuilderForType() |
protected ServiceConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ServiceConfig |
parseDelimitedFrom(InputStream input) |
static ServiceConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceConfig |
parseFrom(byte[] data) |
static ServiceConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceConfig |
parseFrom(ByteBuffer data) |
static ServiceConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceConfig |
parseFrom(com.google.protobuf.ByteString data) |
static ServiceConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ServiceConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceConfig |
parseFrom(InputStream input) |
static ServiceConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ServiceConfig> |
parser() |
ServiceConfig.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 LOAD_BALANCING_POLICY_FIELD_NUMBER
public static final int LOAD_BALANCING_CONFIG_FIELD_NUMBER
public static final int METHOD_CONFIG_FIELD_NUMBER
public static final int RETRY_THROTTLING_FIELD_NUMBER
public static final int HEALTH_CHECK_CONFIG_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.GeneratedMessageV3@Deprecated public int getLoadBalancingPolicyValue()
.grpc.service_config.ServiceConfig.LoadBalancingPolicy load_balancing_policy = 1 [deprecated = true];getLoadBalancingPolicyValue in interface ServiceConfigOrBuilder@Deprecated public ServiceConfig.LoadBalancingPolicy getLoadBalancingPolicy()
.grpc.service_config.ServiceConfig.LoadBalancingPolicy load_balancing_policy = 1 [deprecated = true];getLoadBalancingPolicy in interface ServiceConfigOrBuilderpublic List<LoadBalancingConfig> getLoadBalancingConfigList()
Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support. If none are supported, the service config is considered invalid.
repeated .grpc.service_config.LoadBalancingConfig load_balancing_config = 4;getLoadBalancingConfigList in interface ServiceConfigOrBuilderpublic List<? extends LoadBalancingConfigOrBuilder> getLoadBalancingConfigOrBuilderList()
Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support. If none are supported, the service config is considered invalid.
repeated .grpc.service_config.LoadBalancingConfig load_balancing_config = 4;getLoadBalancingConfigOrBuilderList in interface ServiceConfigOrBuilderpublic int getLoadBalancingConfigCount()
Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support. If none are supported, the service config is considered invalid.
repeated .grpc.service_config.LoadBalancingConfig load_balancing_config = 4;getLoadBalancingConfigCount in interface ServiceConfigOrBuilderpublic LoadBalancingConfig getLoadBalancingConfig(int index)
Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support. If none are supported, the service config is considered invalid.
repeated .grpc.service_config.LoadBalancingConfig load_balancing_config = 4;getLoadBalancingConfig in interface ServiceConfigOrBuilderpublic LoadBalancingConfigOrBuilder getLoadBalancingConfigOrBuilder(int index)
Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support. If none are supported, the service config is considered invalid.
repeated .grpc.service_config.LoadBalancingConfig load_balancing_config = 4;getLoadBalancingConfigOrBuilder in interface ServiceConfigOrBuilderpublic List<MethodConfig> getMethodConfigList()
Per-method configuration.
repeated .grpc.service_config.MethodConfig method_config = 2;getMethodConfigList in interface ServiceConfigOrBuilderpublic List<? extends MethodConfigOrBuilder> getMethodConfigOrBuilderList()
Per-method configuration.
repeated .grpc.service_config.MethodConfig method_config = 2;getMethodConfigOrBuilderList in interface ServiceConfigOrBuilderpublic int getMethodConfigCount()
Per-method configuration.
repeated .grpc.service_config.MethodConfig method_config = 2;getMethodConfigCount in interface ServiceConfigOrBuilderpublic MethodConfig getMethodConfig(int index)
Per-method configuration.
repeated .grpc.service_config.MethodConfig method_config = 2;getMethodConfig in interface ServiceConfigOrBuilderpublic MethodConfigOrBuilder getMethodConfigOrBuilder(int index)
Per-method configuration.
repeated .grpc.service_config.MethodConfig method_config = 2;getMethodConfigOrBuilder in interface ServiceConfigOrBuilderpublic boolean hasRetryThrottling()
.grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3;hasRetryThrottling in interface ServiceConfigOrBuilderpublic ServiceConfig.RetryThrottlingPolicy getRetryThrottling()
.grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3;getRetryThrottling in interface ServiceConfigOrBuilderpublic ServiceConfig.RetryThrottlingPolicyOrBuilder getRetryThrottlingOrBuilder()
.grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3;getRetryThrottlingOrBuilder in interface ServiceConfigOrBuilderpublic boolean hasHealthCheckConfig()
.grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5;hasHealthCheckConfig in interface ServiceConfigOrBuilderpublic ServiceConfig.HealthCheckConfig getHealthCheckConfig()
.grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5;getHealthCheckConfig in interface ServiceConfigOrBuilderpublic ServiceConfig.HealthCheckConfigOrBuilder getHealthCheckConfigOrBuilder()
.grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5;getHealthCheckConfigOrBuilder in interface ServiceConfigOrBuilderpublic 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 ServiceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static ServiceConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ServiceConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ServiceConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ServiceConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ServiceConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ServiceConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ServiceConfig.Builder newBuilder()
public static ServiceConfig.Builder newBuilder(ServiceConfig prototype)
public ServiceConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ServiceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ServiceConfig getDefaultInstance()
public static com.google.protobuf.Parser<ServiceConfig> parser()
public com.google.protobuf.Parser<ServiceConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ServiceConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.