public final class XdsConfig extends com.google.protobuf.GeneratedMessageV3 implements XdsConfigOrBuilder
Configuration for xds LB policy.Protobuf type
grpc.service_config.XdsConfig| Modifier and Type | Class and Description |
|---|---|
static class |
XdsConfig.Builder
Configuration for xds LB policy.
|
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 |
BALANCER_NAME_FIELD_NUMBER |
static int |
CHILD_POLICY_FIELD_NUMBER |
static int |
EDS_SERVICE_NAME_FIELD_NUMBER |
static int |
FALLBACK_POLICY_FIELD_NUMBER |
static int |
LRS_LOAD_REPORTING_SERVER_NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBalancerName()
Deprecated.
grpc.service_config.XdsConfig.balancer_name is deprecated.
See service_config.proto;l=432
|
com.google.protobuf.ByteString |
getBalancerNameBytes()
Deprecated.
grpc.service_config.XdsConfig.balancer_name is deprecated.
See service_config.proto;l=432
|
LoadBalancingConfig |
getChildPolicy(int index)
Optional.
|
int |
getChildPolicyCount()
Optional.
|
List<LoadBalancingConfig> |
getChildPolicyList()
Optional.
|
LoadBalancingConfigOrBuilder |
getChildPolicyOrBuilder(int index)
Optional.
|
List<? extends LoadBalancingConfigOrBuilder> |
getChildPolicyOrBuilderList()
Optional.
|
static XdsConfig |
getDefaultInstance() |
XdsConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getEdsServiceName()
Optional.
|
com.google.protobuf.ByteString |
getEdsServiceNameBytes()
Optional.
|
LoadBalancingConfig |
getFallbackPolicy(int index)
Optional.
|
int |
getFallbackPolicyCount()
Optional.
|
List<LoadBalancingConfig> |
getFallbackPolicyList()
Optional.
|
LoadBalancingConfigOrBuilder |
getFallbackPolicyOrBuilder(int index)
Optional.
|
List<? extends LoadBalancingConfigOrBuilder> |
getFallbackPolicyOrBuilderList()
Optional.
|
com.google.protobuf.StringValue |
getLrsLoadReportingServerName()
LRS server to send load reports to.
|
com.google.protobuf.StringValueOrBuilder |
getLrsLoadReportingServerNameOrBuilder()
LRS server to send load reports to.
|
com.google.protobuf.Parser<XdsConfig> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasLrsLoadReportingServerName()
LRS server to send load reports to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static XdsConfig.Builder |
newBuilder() |
static XdsConfig.Builder |
newBuilder(XdsConfig prototype) |
XdsConfig.Builder |
newBuilderForType() |
protected XdsConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static XdsConfig |
parseDelimitedFrom(InputStream input) |
static XdsConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static XdsConfig |
parseFrom(byte[] data) |
static XdsConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static XdsConfig |
parseFrom(ByteBuffer data) |
static XdsConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static XdsConfig |
parseFrom(com.google.protobuf.ByteString data) |
static XdsConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static XdsConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static XdsConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static XdsConfig |
parseFrom(InputStream input) |
static XdsConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<XdsConfig> |
parser() |
XdsConfig.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 BALANCER_NAME_FIELD_NUMBER
public static final int CHILD_POLICY_FIELD_NUMBER
public static final int FALLBACK_POLICY_FIELD_NUMBER
public static final int EDS_SERVICE_NAME_FIELD_NUMBER
public static final int LRS_LOAD_REPORTING_SERVER_NAME_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 String getBalancerName()
Name of balancer to connect to.
string balancer_name = 1 [deprecated = true];getBalancerName in interface XdsConfigOrBuilder@Deprecated public com.google.protobuf.ByteString getBalancerNameBytes()
Name of balancer to connect to.
string balancer_name = 1 [deprecated = true];getBalancerNameBytes in interface XdsConfigOrBuilderpublic List<LoadBalancingConfig> getChildPolicyList()
Optional. What LB policy to use for intra-locality routing. If unset, will use whatever algorithm is specified by the balancer. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 2;getChildPolicyList in interface XdsConfigOrBuilderpublic List<? extends LoadBalancingConfigOrBuilder> getChildPolicyOrBuilderList()
Optional. What LB policy to use for intra-locality routing. If unset, will use whatever algorithm is specified by the balancer. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 2;getChildPolicyOrBuilderList in interface XdsConfigOrBuilderpublic int getChildPolicyCount()
Optional. What LB policy to use for intra-locality routing. If unset, will use whatever algorithm is specified by the balancer. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 2;getChildPolicyCount in interface XdsConfigOrBuilderpublic LoadBalancingConfig getChildPolicy(int index)
Optional. What LB policy to use for intra-locality routing. If unset, will use whatever algorithm is specified by the balancer. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 2;getChildPolicy in interface XdsConfigOrBuilderpublic LoadBalancingConfigOrBuilder getChildPolicyOrBuilder(int index)
Optional. What LB policy to use for intra-locality routing. If unset, will use whatever algorithm is specified by the balancer. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 2;getChildPolicyOrBuilder in interface XdsConfigOrBuilderpublic List<LoadBalancingConfig> getFallbackPolicyList()
Optional. What LB policy to use in fallback mode. If not specified, defaults to round_robin. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig fallback_policy = 3;getFallbackPolicyList in interface XdsConfigOrBuilderpublic List<? extends LoadBalancingConfigOrBuilder> getFallbackPolicyOrBuilderList()
Optional. What LB policy to use in fallback mode. If not specified, defaults to round_robin. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig fallback_policy = 3;getFallbackPolicyOrBuilderList in interface XdsConfigOrBuilderpublic int getFallbackPolicyCount()
Optional. What LB policy to use in fallback mode. If not specified, defaults to round_robin. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig fallback_policy = 3;getFallbackPolicyCount in interface XdsConfigOrBuilderpublic LoadBalancingConfig getFallbackPolicy(int index)
Optional. What LB policy to use in fallback mode. If not specified, defaults to round_robin. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig fallback_policy = 3;getFallbackPolicy in interface XdsConfigOrBuilderpublic LoadBalancingConfigOrBuilder getFallbackPolicyOrBuilder(int index)
Optional. What LB policy to use in fallback mode. If not specified, defaults to round_robin. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig fallback_policy = 3;getFallbackPolicyOrBuilder in interface XdsConfigOrBuilderpublic String getEdsServiceName()
Optional. Name to use in EDS query. If not present, defaults to the server name from the target URI.
string eds_service_name = 4;getEdsServiceName in interface XdsConfigOrBuilderpublic com.google.protobuf.ByteString getEdsServiceNameBytes()
Optional. Name to use in EDS query. If not present, defaults to the server name from the target URI.
string eds_service_name = 4;getEdsServiceNameBytes in interface XdsConfigOrBuilderpublic boolean hasLrsLoadReportingServerName()
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.
.google.protobuf.StringValue lrs_load_reporting_server_name = 5;hasLrsLoadReportingServerName in interface XdsConfigOrBuilderpublic com.google.protobuf.StringValue getLrsLoadReportingServerName()
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.
.google.protobuf.StringValue lrs_load_reporting_server_name = 5;getLrsLoadReportingServerName in interface XdsConfigOrBuilderpublic com.google.protobuf.StringValueOrBuilder getLrsLoadReportingServerNameOrBuilder()
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.
.google.protobuf.StringValue lrs_load_reporting_server_name = 5;getLrsLoadReportingServerNameOrBuilder in interface XdsConfigOrBuilderpublic 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 XdsConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XdsConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XdsConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XdsConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XdsConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XdsConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XdsConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static XdsConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static XdsConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static XdsConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static XdsConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static XdsConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic XdsConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static XdsConfig.Builder newBuilder()
public static XdsConfig.Builder newBuilder(XdsConfig prototype)
public XdsConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected XdsConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static XdsConfig getDefaultInstance()
public static com.google.protobuf.Parser<XdsConfig> parser()
public com.google.protobuf.Parser<XdsConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public XdsConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.