Package io.grpc.serviceconfig
Class XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder,Serializable
- Enclosing class:
- XdsClusterResolverLoadBalancingPolicyConfig
public static final class XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism
extends com.google.protobuf.GeneratedMessageV3
implements XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder
Describes a discovery mechanism instance. For EDS or LOGICAL_DNS clusters, there will be exactly one DiscoveryMechanism, which will describe the cluster of the parent CDS policy. For aggregate clusters, there will be one DiscoveryMechanism for each underlying cluster.Protobuf type
grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescribes a discovery mechanism instance.static enumProtobuf enumgrpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.TypeNested 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 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 TypeMethodDescriptionbooleanCluster name.com.google.protobuf.ByteStringCluster name.static final com.google.protobuf.Descriptors.DescriptorFor type LOGICAL_DNS only.com.google.protobuf.ByteStringFor type LOGICAL_DNS only.For type EDS only.com.google.protobuf.ByteStringFor type EDS only.LRS server to send load reports to.com.google.protobuf.StringValueDeprecated.grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.lrs_load_reporting_server_name is deprecated.com.google.protobuf.StringValueOrBuilderDeprecated.LRS server to send load reports to.com.google.protobuf.UInt32ValueMaximum number of outstanding requests can be made to the upstream cluster.com.google.protobuf.UInt32ValueOrBuilderMaximum number of outstanding requests can be made to the upstream cluster.com.google.protobuf.Parser<XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism>intgetType().grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Type type = 4;int.grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Type type = 4;inthashCode()booleanLRS server to send load reports to.booleanDeprecated.grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.lrs_load_reporting_server_name is deprecated.booleanMaximum number of outstanding requests can be made to the upstream cluster.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism>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
-
CLUSTER_FIELD_NUMBER
public static final int CLUSTER_FIELD_NUMBER- See Also:
-
LRS_LOAD_REPORTING_SERVER_NAME_FIELD_NUMBER
public static final int LRS_LOAD_REPORTING_SERVER_NAME_FIELD_NUMBER- See Also:
-
LRS_LOAD_REPORTING_SERVER_FIELD_NUMBER
public static final int LRS_LOAD_REPORTING_SERVER_FIELD_NUMBER- See Also:
-
MAX_CONCURRENT_REQUESTS_FIELD_NUMBER
public static final int MAX_CONCURRENT_REQUESTS_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
EDS_SERVICE_NAME_FIELD_NUMBER
public static final int EDS_SERVICE_NAME_FIELD_NUMBER- See Also:
-
DNS_HOSTNAME_FIELD_NUMBER
public static final int DNS_HOSTNAME_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
-
getCluster
Cluster name.
string cluster = 1;- Specified by:
getClusterin interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- The cluster.
-
getClusterBytes
public com.google.protobuf.ByteString getClusterBytes()Cluster name.
string cluster = 1;- Specified by:
getClusterBytesin interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- The bytes for cluster.
-
hasLrsLoadReportingServerName
Deprecated.grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.lrs_load_reporting_server_name is deprecated. See service_config.proto;l=285LRS server to send load reports to. If not present, load reporting will be disabled. If set to the empty string, load reporting will be sent to the same server that we obtained CDS data from. DEPRECATED: Use new lrs_load_reporting_server field instead.
.google.protobuf.StringValue lrs_load_reporting_server_name = 2 [deprecated = true];- Specified by:
hasLrsLoadReportingServerNamein interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- Whether the lrsLoadReportingServerName field is set.
-
getLrsLoadReportingServerName
Deprecated.grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.lrs_load_reporting_server_name is deprecated. See service_config.proto;l=285LRS server to send load reports to. If not present, load reporting will be disabled. If set to the empty string, load reporting will be sent to the same server that we obtained CDS data from. DEPRECATED: Use new lrs_load_reporting_server field instead.
.google.protobuf.StringValue lrs_load_reporting_server_name = 2 [deprecated = true];- Specified by:
getLrsLoadReportingServerNamein interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- The lrsLoadReportingServerName.
-
getLrsLoadReportingServerNameOrBuilder
@Deprecated public com.google.protobuf.StringValueOrBuilder getLrsLoadReportingServerNameOrBuilder()Deprecated.LRS server to send load reports to. If not present, load reporting will be disabled. If set to the empty string, load reporting will be sent to the same server that we obtained CDS data from. DEPRECATED: Use new lrs_load_reporting_server field instead.
.google.protobuf.StringValue lrs_load_reporting_server_name = 2 [deprecated = true];- Specified by:
getLrsLoadReportingServerNameOrBuilderin interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder
-
hasLrsLoadReportingServer
public boolean hasLrsLoadReportingServer()LRS server to send load reports to. If not present, load reporting will be disabled. Supercedes lrs_load_reporting_server_name field.
.grpc.service_config.XdsServer lrs_load_reporting_server = 7;- Specified by:
hasLrsLoadReportingServerin interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- Whether the lrsLoadReportingServer field is set.
-
getLrsLoadReportingServer
LRS server to send load reports to. If not present, load reporting will be disabled. Supercedes lrs_load_reporting_server_name field.
.grpc.service_config.XdsServer lrs_load_reporting_server = 7;- Specified by:
getLrsLoadReportingServerin interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- The lrsLoadReportingServer.
-
getLrsLoadReportingServerOrBuilder
LRS server to send load reports to. If not present, load reporting will be disabled. Supercedes lrs_load_reporting_server_name field.
.grpc.service_config.XdsServer lrs_load_reporting_server = 7;- Specified by:
getLrsLoadReportingServerOrBuilderin interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder
-
hasMaxConcurrentRequests
public boolean hasMaxConcurrentRequests()Maximum number of outstanding requests can be made to the upstream cluster. Default is 1024.
.google.protobuf.UInt32Value max_concurrent_requests = 3;- Specified by:
hasMaxConcurrentRequestsin interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- Whether the maxConcurrentRequests field is set.
-
getMaxConcurrentRequests
public com.google.protobuf.UInt32Value getMaxConcurrentRequests()Maximum number of outstanding requests can be made to the upstream cluster. Default is 1024.
.google.protobuf.UInt32Value max_concurrent_requests = 3;- Specified by:
getMaxConcurrentRequestsin interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- The maxConcurrentRequests.
-
getMaxConcurrentRequestsOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxConcurrentRequestsOrBuilder()Maximum number of outstanding requests can be made to the upstream cluster. Default is 1024.
.google.protobuf.UInt32Value max_concurrent_requests = 3;- Specified by:
getMaxConcurrentRequestsOrBuilderin interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder
-
getTypeValue
public int getTypeValue().grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Type type = 4;- Specified by:
getTypeValuein interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
.grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Type type = 4;- Specified by:
getTypein interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- The type.
-
getEdsServiceName
For type EDS only. EDS service name, as returned in CDS. May be unset if not specified in CDS.
string eds_service_name = 5;- Specified by:
getEdsServiceNamein interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- The edsServiceName.
-
getEdsServiceNameBytes
public com.google.protobuf.ByteString getEdsServiceNameBytes()For type EDS only. EDS service name, as returned in CDS. May be unset if not specified in CDS.
string eds_service_name = 5;- Specified by:
getEdsServiceNameBytesin interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- The bytes for edsServiceName.
-
getDnsHostname
For type LOGICAL_DNS only. DNS name to resolve in "host:port" form.
string dns_hostname = 6;- Specified by:
getDnsHostnamein interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- The dnsHostname.
-
getDnsHostnameBytes
public com.google.protobuf.ByteString getDnsHostnameBytes()For type LOGICAL_DNS only. DNS name to resolve in "host:port" form.
string dns_hostname = 6;- Specified by:
getDnsHostnameBytesin interfaceXdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder- Returns:
- The bytes for dnsHostname.
-
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 XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism 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
public static XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Builder newBuilder(XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
public static com.google.protobuf.Parser<XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism> parser() -
getParserForType
public com.google.protobuf.Parser<XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism> 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
-