Package io.grpc.serviceconfig
Class EdsLoadBalancingPolicyConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,EdsLoadBalancingPolicyConfigOrBuilder,Serializable
public final class EdsLoadBalancingPolicyConfig extends com.google.protobuf.GeneratedMessageV3 implements EdsLoadBalancingPolicyConfigOrBuilder
Configuration for eds LB policy.
Protobuf typegrpc.service_config.EdsLoadBalancingPolicyConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEdsLoadBalancingPolicyConfig.BuilderConfiguration for eds LB policy.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCLUSTER_FIELD_NUMBERstatic intEDS_SERVICE_NAME_FIELD_NUMBERstatic intENDPOINT_PICKING_POLICY_FIELD_NUMBERstatic intLOCALITY_PICKING_POLICY_FIELD_NUMBERstatic intLRS_LOAD_REPORTING_SERVER_NAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCluster()Cluster name.com.google.protobuf.ByteStringgetClusterBytes()Cluster name.static EdsLoadBalancingPolicyConfiggetDefaultInstance()EdsLoadBalancingPolicyConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetEdsServiceName()EDS service name, as returned in CDS.com.google.protobuf.ByteStringgetEdsServiceNameBytes()EDS service name, as returned in CDS.LoadBalancingConfiggetEndpointPickingPolicy(int index)Endpoint-picking policy.intgetEndpointPickingPolicyCount()Endpoint-picking policy.List<LoadBalancingConfig>getEndpointPickingPolicyList()Endpoint-picking policy.LoadBalancingConfigOrBuildergetEndpointPickingPolicyOrBuilder(int index)Endpoint-picking policy.List<? extends LoadBalancingConfigOrBuilder>getEndpointPickingPolicyOrBuilderList()Endpoint-picking policy.LoadBalancingConfiggetLocalityPickingPolicy(int index)Locality-picking policy.intgetLocalityPickingPolicyCount()Locality-picking policy.List<LoadBalancingConfig>getLocalityPickingPolicyList()Locality-picking policy.LoadBalancingConfigOrBuildergetLocalityPickingPolicyOrBuilder(int index)Locality-picking policy.List<? extends LoadBalancingConfigOrBuilder>getLocalityPickingPolicyOrBuilderList()Locality-picking policy.com.google.protobuf.StringValuegetLrsLoadReportingServerName()Server to send load reports to.com.google.protobuf.StringValueOrBuildergetLrsLoadReportingServerNameOrBuilder()Server to send load reports to.com.google.protobuf.Parser<EdsLoadBalancingPolicyConfig>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasLrsLoadReportingServerName()Server to send load reports to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static EdsLoadBalancingPolicyConfig.BuildernewBuilder()static EdsLoadBalancingPolicyConfig.BuildernewBuilder(EdsLoadBalancingPolicyConfig prototype)EdsLoadBalancingPolicyConfig.BuildernewBuilderForType()protected EdsLoadBalancingPolicyConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static EdsLoadBalancingPolicyConfigparseDelimitedFrom(InputStream input)static EdsLoadBalancingPolicyConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EdsLoadBalancingPolicyConfigparseFrom(byte[] data)static EdsLoadBalancingPolicyConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EdsLoadBalancingPolicyConfigparseFrom(com.google.protobuf.ByteString data)static EdsLoadBalancingPolicyConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EdsLoadBalancingPolicyConfigparseFrom(com.google.protobuf.CodedInputStream input)static EdsLoadBalancingPolicyConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EdsLoadBalancingPolicyConfigparseFrom(InputStream input)static EdsLoadBalancingPolicyConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EdsLoadBalancingPolicyConfigparseFrom(ByteBuffer data)static EdsLoadBalancingPolicyConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<EdsLoadBalancingPolicyConfig>parser()EdsLoadBalancingPolicyConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CLUSTER_FIELD_NUMBER
public static final int CLUSTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EDS_SERVICE_NAME_FIELD_NUMBER
public static final int EDS_SERVICE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LRS_LOAD_REPORTING_SERVER_NAME_FIELD_NUMBER
public static final int LRS_LOAD_REPORTING_SERVER_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCALITY_PICKING_POLICY_FIELD_NUMBER
public static final int LOCALITY_PICKING_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENDPOINT_PICKING_POLICY_FIELD_NUMBER
public static final int ENDPOINT_PICKING_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
public String getCluster()
Cluster name. Required.
string cluster = 1;- Specified by:
getClusterin interfaceEdsLoadBalancingPolicyConfigOrBuilder- Returns:
- The cluster.
-
getClusterBytes
public com.google.protobuf.ByteString getClusterBytes()
Cluster name. Required.
string cluster = 1;- Specified by:
getClusterBytesin interfaceEdsLoadBalancingPolicyConfigOrBuilder- Returns:
- The bytes for cluster.
-
getEdsServiceName
public String getEdsServiceName()
EDS service name, as returned in CDS. May be unset if not specified in CDS.
string eds_service_name = 2;- Specified by:
getEdsServiceNamein interfaceEdsLoadBalancingPolicyConfigOrBuilder- Returns:
- The edsServiceName.
-
getEdsServiceNameBytes
public com.google.protobuf.ByteString getEdsServiceNameBytes()
EDS service name, as returned in CDS. May be unset if not specified in CDS.
string eds_service_name = 2;- Specified by:
getEdsServiceNameBytesin interfaceEdsLoadBalancingPolicyConfigOrBuilder- Returns:
- The bytes for edsServiceName.
-
hasLrsLoadReportingServerName
public boolean hasLrsLoadReportingServerName()
Server to send load reports to. If unset, no load reporting is done. If set to empty string, load reporting will be sent to the same server as we are getting xds data from.
.google.protobuf.StringValue lrs_load_reporting_server_name = 3;- Specified by:
hasLrsLoadReportingServerNamein interfaceEdsLoadBalancingPolicyConfigOrBuilder- Returns:
- Whether the lrsLoadReportingServerName field is set.
-
getLrsLoadReportingServerName
public com.google.protobuf.StringValue getLrsLoadReportingServerName()
Server to send load reports to. If unset, no load reporting is done. If set to empty string, load reporting will be sent to the same server as we are getting xds data from.
.google.protobuf.StringValue lrs_load_reporting_server_name = 3;- Specified by:
getLrsLoadReportingServerNamein interfaceEdsLoadBalancingPolicyConfigOrBuilder- Returns:
- The lrsLoadReportingServerName.
-
getLrsLoadReportingServerNameOrBuilder
public com.google.protobuf.StringValueOrBuilder getLrsLoadReportingServerNameOrBuilder()
Server to send load reports to. If unset, no load reporting is done. If set to empty string, load reporting will be sent to the same server as we are getting xds data from.
.google.protobuf.StringValue lrs_load_reporting_server_name = 3;- Specified by:
getLrsLoadReportingServerNameOrBuilderin interfaceEdsLoadBalancingPolicyConfigOrBuilder
-
getLocalityPickingPolicyList
public List<LoadBalancingConfig> getLocalityPickingPolicyList()
Locality-picking policy. This policy's config is expected to be in the format used by the weighted_target policy. Note that the config should include an empty value for the "targets" field; that empty value will be replaced by one that is dynamically generated based on the EDS data. Optional; defaults to "weighted_target".
repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;- Specified by:
getLocalityPickingPolicyListin interfaceEdsLoadBalancingPolicyConfigOrBuilder
-
getLocalityPickingPolicyOrBuilderList
public List<? extends LoadBalancingConfigOrBuilder> getLocalityPickingPolicyOrBuilderList()
Locality-picking policy. This policy's config is expected to be in the format used by the weighted_target policy. Note that the config should include an empty value for the "targets" field; that empty value will be replaced by one that is dynamically generated based on the EDS data. Optional; defaults to "weighted_target".
repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;- Specified by:
getLocalityPickingPolicyOrBuilderListin interfaceEdsLoadBalancingPolicyConfigOrBuilder
-
getLocalityPickingPolicyCount
public int getLocalityPickingPolicyCount()
Locality-picking policy. This policy's config is expected to be in the format used by the weighted_target policy. Note that the config should include an empty value for the "targets" field; that empty value will be replaced by one that is dynamically generated based on the EDS data. Optional; defaults to "weighted_target".
repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;- Specified by:
getLocalityPickingPolicyCountin interfaceEdsLoadBalancingPolicyConfigOrBuilder
-
getLocalityPickingPolicy
public LoadBalancingConfig getLocalityPickingPolicy(int index)
Locality-picking policy. This policy's config is expected to be in the format used by the weighted_target policy. Note that the config should include an empty value for the "targets" field; that empty value will be replaced by one that is dynamically generated based on the EDS data. Optional; defaults to "weighted_target".
repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;- Specified by:
getLocalityPickingPolicyin interfaceEdsLoadBalancingPolicyConfigOrBuilder
-
getLocalityPickingPolicyOrBuilder
public LoadBalancingConfigOrBuilder getLocalityPickingPolicyOrBuilder(int index)
Locality-picking policy. This policy's config is expected to be in the format used by the weighted_target policy. Note that the config should include an empty value for the "targets" field; that empty value will be replaced by one that is dynamically generated based on the EDS data. Optional; defaults to "weighted_target".
repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;- Specified by:
getLocalityPickingPolicyOrBuilderin interfaceEdsLoadBalancingPolicyConfigOrBuilder
-
getEndpointPickingPolicyList
public List<LoadBalancingConfig> getEndpointPickingPolicyList()
Endpoint-picking policy. This will be configured as the policy for each child in the locality-policy's config. Optional; defaults to "round_robin".
repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;- Specified by:
getEndpointPickingPolicyListin interfaceEdsLoadBalancingPolicyConfigOrBuilder
-
getEndpointPickingPolicyOrBuilderList
public List<? extends LoadBalancingConfigOrBuilder> getEndpointPickingPolicyOrBuilderList()
Endpoint-picking policy. This will be configured as the policy for each child in the locality-policy's config. Optional; defaults to "round_robin".
repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;- Specified by:
getEndpointPickingPolicyOrBuilderListin interfaceEdsLoadBalancingPolicyConfigOrBuilder
-
getEndpointPickingPolicyCount
public int getEndpointPickingPolicyCount()
Endpoint-picking policy. This will be configured as the policy for each child in the locality-policy's config. Optional; defaults to "round_robin".
repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;- Specified by:
getEndpointPickingPolicyCountin interfaceEdsLoadBalancingPolicyConfigOrBuilder
-
getEndpointPickingPolicy
public LoadBalancingConfig getEndpointPickingPolicy(int index)
Endpoint-picking policy. This will be configured as the policy for each child in the locality-policy's config. Optional; defaults to "round_robin".
repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;- Specified by:
getEndpointPickingPolicyin interfaceEdsLoadBalancingPolicyConfigOrBuilder
-
getEndpointPickingPolicyOrBuilder
public LoadBalancingConfigOrBuilder getEndpointPickingPolicyOrBuilder(int index)
Endpoint-picking policy. This will be configured as the policy for each child in the locality-policy's config. Optional; defaults to "round_robin".
repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;- Specified by:
getEndpointPickingPolicyOrBuilderin interfaceEdsLoadBalancingPolicyConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- 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 EdsLoadBalancingPolicyConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EdsLoadBalancingPolicyConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EdsLoadBalancingPolicyConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EdsLoadBalancingPolicyConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EdsLoadBalancingPolicyConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EdsLoadBalancingPolicyConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EdsLoadBalancingPolicyConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static EdsLoadBalancingPolicyConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static EdsLoadBalancingPolicyConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static EdsLoadBalancingPolicyConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static EdsLoadBalancingPolicyConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static EdsLoadBalancingPolicyConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public EdsLoadBalancingPolicyConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static EdsLoadBalancingPolicyConfig.Builder newBuilder()
-
newBuilder
public static EdsLoadBalancingPolicyConfig.Builder newBuilder(EdsLoadBalancingPolicyConfig prototype)
-
toBuilder
public EdsLoadBalancingPolicyConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EdsLoadBalancingPolicyConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static EdsLoadBalancingPolicyConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<EdsLoadBalancingPolicyConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<EdsLoadBalancingPolicyConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public EdsLoadBalancingPolicyConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-