Package io.grpc.serviceconfig
Interface XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism,XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Builder
- Enclosing class:
- XdsClusterResolverLoadBalancingPolicyConfig
public static interface XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanismOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionCluster name.com.google.protobuf.ByteStringCluster name.For 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.getType().grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Type type = 4;int.grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Type type = 4;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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getCluster
String getCluster()Cluster name.
string cluster = 1;- Returns:
- The cluster.
-
getClusterBytes
com.google.protobuf.ByteString getClusterBytes()Cluster name.
string cluster = 1;- 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];- 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];- Returns:
- The lrsLoadReportingServerName.
-
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]; -
hasLrsLoadReportingServer
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;- Returns:
- Whether the lrsLoadReportingServer field is set.
-
getLrsLoadReportingServer
XdsServer 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;- Returns:
- The lrsLoadReportingServer.
-
getLrsLoadReportingServerOrBuilder
XdsServerOrBuilder 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; -
hasMaxConcurrentRequests
boolean hasMaxConcurrentRequests()Maximum number of outstanding requests can be made to the upstream cluster. Default is 1024.
.google.protobuf.UInt32Value max_concurrent_requests = 3;- Returns:
- Whether the maxConcurrentRequests field is set.
-
getMaxConcurrentRequests
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;- Returns:
- The maxConcurrentRequests.
-
getMaxConcurrentRequestsOrBuilder
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; -
getTypeValue
int getTypeValue().grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Type type = 4;- Returns:
- The enum numeric value on the wire for type.
-
getType
.grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Type type = 4;- Returns:
- The type.
-
getEdsServiceName
String 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;- Returns:
- The edsServiceName.
-
getEdsServiceNameBytes
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;- Returns:
- The bytes for edsServiceName.
-
getDnsHostname
String getDnsHostname()For type LOGICAL_DNS only. DNS name to resolve in "host:port" form.
string dns_hostname = 6;- Returns:
- The dnsHostname.
-
getDnsHostnameBytes
com.google.protobuf.ByteString getDnsHostnameBytes()For type LOGICAL_DNS only. DNS name to resolve in "host:port" form.
string dns_hostname = 6;- Returns:
- The bytes for dnsHostname.
-