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 type
grpc.service_config.EdsLoadBalancingPolicyConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for eds LB policy.Nested 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 TypeMethodDescriptionbooleanCluster name.com.google.protobuf.ByteStringCluster name.static EdsLoadBalancingPolicyConfigstatic final com.google.protobuf.Descriptors.DescriptorEDS service name, as returned in CDS.com.google.protobuf.ByteStringEDS service name, as returned in CDS.getEndpointPickingPolicy(int index) Endpoint-picking policy.intEndpoint-picking policy.Endpoint-picking policy.getEndpointPickingPolicyOrBuilder(int index) Endpoint-picking policy.List<? extends LoadBalancingConfigOrBuilder>Endpoint-picking policy.getLocalityPickingPolicy(int index) Locality-picking policy.intLocality-picking policy.Locality-picking policy.getLocalityPickingPolicyOrBuilder(int index) Locality-picking policy.List<? extends LoadBalancingConfigOrBuilder>Locality-picking policy.com.google.protobuf.StringValueServer to send load reports to.com.google.protobuf.StringValueOrBuilderServer to send load reports to.com.google.protobuf.Parser<EdsLoadBalancingPolicyConfig>intinthashCode()booleanServer to send load reports to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(EdsLoadBalancingPolicyConfig prototype) 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()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:
-
EDS_SERVICE_NAME_FIELD_NUMBER
public static final int EDS_SERVICE_NAME_FIELD_NUMBER- See Also:
-
LRS_LOAD_REPORTING_SERVER_NAME_FIELD_NUMBER
public static final int LRS_LOAD_REPORTING_SERVER_NAME_FIELD_NUMBER- See Also:
-
LOCALITY_PICKING_POLICY_FIELD_NUMBER
public static final int LOCALITY_PICKING_POLICY_FIELD_NUMBER- See Also:
-
ENDPOINT_PICKING_POLICY_FIELD_NUMBER
public static final int ENDPOINT_PICKING_POLICY_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. 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
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
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
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
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
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
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
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
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
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
- 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 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
- Throws:
IOException
-
parseFrom
public static EdsLoadBalancingPolicyConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static EdsLoadBalancingPolicyConfig.Builder newBuilder(EdsLoadBalancingPolicyConfig prototype) -
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
-
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
-