Package io.grpc.serviceconfig
Class ServiceConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.grpc.serviceconfig.ServiceConfig
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ServiceConfigOrBuilder,Serializable
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA ServiceConfig represents information about a service but is not specific to any name resolver.static final classProtobuf typegrpc.service_config.ServiceConfig.HealthCheckConfigstatic interfacestatic enumLoad balancing policy.static final classIf 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 interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ServiceConfigstatic final com.google.protobuf.Descriptors.Descriptor.grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5;.grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5;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.intMultiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.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>Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.Deprecated.grpc.service_config.ServiceConfig.load_balancing_policy is deprecated.intDeprecated.grpc.service_config.ServiceConfig.load_balancing_policy is deprecated.getMethodConfig(int index) Per-method configuration.intPer-method configuration.Per-method configuration.getMethodConfigOrBuilder(int index) Per-method configuration.List<? extends MethodConfigOrBuilder>Per-method configuration.com.google.protobuf.Parser<ServiceConfig>.grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3;.grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3;intinthashCode()boolean.grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5;boolean.grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ServiceConfig.Builderstatic ServiceConfig.BuildernewBuilder(ServiceConfig prototype) protected ServiceConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ServiceConfigparseDelimitedFrom(InputStream input) static ServiceConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceConfigparseFrom(byte[] data) static ServiceConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceConfigparseFrom(com.google.protobuf.ByteString data) static ServiceConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceConfigparseFrom(com.google.protobuf.CodedInputStream input) static ServiceConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceConfigparseFrom(InputStream input) static ServiceConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceConfigparseFrom(ByteBuffer data) static ServiceConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ServiceConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
LOAD_BALANCING_POLICY_FIELD_NUMBER
public static final int LOAD_BALANCING_POLICY_FIELD_NUMBER- See Also:
-
LOAD_BALANCING_CONFIG_FIELD_NUMBER
public static final int LOAD_BALANCING_CONFIG_FIELD_NUMBER- See Also:
-
METHOD_CONFIG_FIELD_NUMBER
public static final int METHOD_CONFIG_FIELD_NUMBER- See Also:
-
RETRY_THROTTLING_FIELD_NUMBER
public static final int RETRY_THROTTLING_FIELD_NUMBER- See Also:
-
HEALTH_CHECK_CONFIG_FIELD_NUMBER
public static final int HEALTH_CHECK_CONFIG_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getLoadBalancingPolicyValue
Deprecated.grpc.service_config.ServiceConfig.load_balancing_policy is deprecated. See service_config.proto;l=548.grpc.service_config.ServiceConfig.LoadBalancingPolicy load_balancing_policy = 1 [deprecated = true];- Specified by:
getLoadBalancingPolicyValuein interfaceServiceConfigOrBuilder- Returns:
- The enum numeric value on the wire for loadBalancingPolicy.
-
getLoadBalancingPolicy
Deprecated.grpc.service_config.ServiceConfig.load_balancing_policy is deprecated. See service_config.proto;l=548.grpc.service_config.ServiceConfig.LoadBalancingPolicy load_balancing_policy = 1 [deprecated = true];- Specified by:
getLoadBalancingPolicyin interfaceServiceConfigOrBuilder- Returns:
- The loadBalancingPolicy.
-
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;- Specified by:
getLoadBalancingConfigListin interfaceServiceConfigOrBuilder
-
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;- Specified by:
getLoadBalancingConfigOrBuilderListin interfaceServiceConfigOrBuilder
-
getLoadBalancingConfigCount
public 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;- Specified by:
getLoadBalancingConfigCountin interfaceServiceConfigOrBuilder
-
getLoadBalancingConfig
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;- Specified by:
getLoadBalancingConfigin interfaceServiceConfigOrBuilder
-
getLoadBalancingConfigOrBuilder
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;- Specified by:
getLoadBalancingConfigOrBuilderin interfaceServiceConfigOrBuilder
-
getMethodConfigList
Per-method configuration.
repeated .grpc.service_config.MethodConfig method_config = 2;- Specified by:
getMethodConfigListin interfaceServiceConfigOrBuilder
-
getMethodConfigOrBuilderList
Per-method configuration.
repeated .grpc.service_config.MethodConfig method_config = 2;- Specified by:
getMethodConfigOrBuilderListin interfaceServiceConfigOrBuilder
-
getMethodConfigCount
public int getMethodConfigCount()Per-method configuration.
repeated .grpc.service_config.MethodConfig method_config = 2;- Specified by:
getMethodConfigCountin interfaceServiceConfigOrBuilder
-
getMethodConfig
Per-method configuration.
repeated .grpc.service_config.MethodConfig method_config = 2;- Specified by:
getMethodConfigin interfaceServiceConfigOrBuilder
-
getMethodConfigOrBuilder
Per-method configuration.
repeated .grpc.service_config.MethodConfig method_config = 2;- Specified by:
getMethodConfigOrBuilderin interfaceServiceConfigOrBuilder
-
hasRetryThrottling
public boolean hasRetryThrottling().grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3;- Specified by:
hasRetryThrottlingin interfaceServiceConfigOrBuilder- Returns:
- Whether the retryThrottling field is set.
-
getRetryThrottling
.grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3;- Specified by:
getRetryThrottlingin interfaceServiceConfigOrBuilder- Returns:
- The retryThrottling.
-
getRetryThrottlingOrBuilder
.grpc.service_config.ServiceConfig.RetryThrottlingPolicy retry_throttling = 3;- Specified by:
getRetryThrottlingOrBuilderin interfaceServiceConfigOrBuilder
-
hasHealthCheckConfig
public boolean hasHealthCheckConfig().grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5;- Specified by:
hasHealthCheckConfigin interfaceServiceConfigOrBuilder- Returns:
- Whether the healthCheckConfig field is set.
-
getHealthCheckConfig
.grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5;- Specified by:
getHealthCheckConfigin interfaceServiceConfigOrBuilder- Returns:
- The healthCheckConfig.
-
getHealthCheckConfigOrBuilder
.grpc.service_config.ServiceConfig.HealthCheckConfig health_check_config = 5;- Specified by:
getHealthCheckConfigOrBuilderin interfaceServiceConfigOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ServiceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ServiceConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ServiceConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ServiceConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ServiceConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ServiceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-