Package io.grpc.serviceconfig
Class LrsLoadBalancingPolicyConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LrsLoadBalancingPolicyConfigOrBuilder,Serializable
public final class LrsLoadBalancingPolicyConfig
extends com.google.protobuf.GeneratedMessageV3
implements LrsLoadBalancingPolicyConfigOrBuilder
Configuration for lrs LB policy.Protobuf type
grpc.service_config.LrsLoadBalancingPolicyConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for lrs LB policy.static final classThe locality for which this policy will report load.static interfaceNested 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 TypeMethodDescriptionbooleangetChildPolicy(int index) Endpoint-picking policy.intEndpoint-picking policy.Endpoint-picking policy.getChildPolicyOrBuilder(int index) Endpoint-picking policy.List<? extends LoadBalancingConfigOrBuilder>Endpoint-picking policy.Cluster name.com.google.protobuf.ByteStringCluster name.static LrsLoadBalancingPolicyConfigstatic final com.google.protobuf.Descriptors.DescriptorEDS service name, as returned in CDS.com.google.protobuf.ByteStringEDS service name, as returned in CDS..grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;.grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;Server to send load reports to.com.google.protobuf.ByteStringServer to send load reports to.com.google.protobuf.Parser<LrsLoadBalancingPolicyConfig>intinthashCode()boolean.grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(LrsLoadBalancingPolicyConfig prototype) protected LrsLoadBalancingPolicyConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static LrsLoadBalancingPolicyConfigparseDelimitedFrom(InputStream input) static LrsLoadBalancingPolicyConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LrsLoadBalancingPolicyConfigparseFrom(byte[] data) static LrsLoadBalancingPolicyConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LrsLoadBalancingPolicyConfigparseFrom(com.google.protobuf.ByteString data) static LrsLoadBalancingPolicyConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LrsLoadBalancingPolicyConfigparseFrom(com.google.protobuf.CodedInputStream input) static LrsLoadBalancingPolicyConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LrsLoadBalancingPolicyConfigparseFrom(InputStream input) static LrsLoadBalancingPolicyConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LrsLoadBalancingPolicyConfigparseFrom(ByteBuffer data) static LrsLoadBalancingPolicyConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<LrsLoadBalancingPolicyConfig>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_NAME_FIELD_NUMBER
public static final int CLUSTER_NAME_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_FIELD_NUMBER
public static final int LOCALITY_FIELD_NUMBER- See Also:
-
CHILD_POLICY_FIELD_NUMBER
public static final int CHILD_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
-
getClusterName
Cluster name. Required.
string cluster_name = 1;- Specified by:
getClusterNamein interfaceLrsLoadBalancingPolicyConfigOrBuilder- Returns:
- The clusterName.
-
getClusterNameBytes
public com.google.protobuf.ByteString getClusterNameBytes()Cluster name. Required.
string cluster_name = 1;- Specified by:
getClusterNameBytesin interfaceLrsLoadBalancingPolicyConfigOrBuilder- Returns:
- The bytes for clusterName.
-
getEdsServiceName
EDS service name, as returned in CDS. May be unset if not specified in CDS.
string eds_service_name = 2;- Specified by:
getEdsServiceNamein interfaceLrsLoadBalancingPolicyConfigOrBuilder- 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 interfaceLrsLoadBalancingPolicyConfigOrBuilder- Returns:
- The bytes for edsServiceName.
-
getLrsLoadReportingServerName
Server to send load reports to. Required. If set to empty string, load reporting will be sent to the same server as we are getting xds data from.
string lrs_load_reporting_server_name = 3;- Specified by:
getLrsLoadReportingServerNamein interfaceLrsLoadBalancingPolicyConfigOrBuilder- Returns:
- The lrsLoadReportingServerName.
-
getLrsLoadReportingServerNameBytes
public com.google.protobuf.ByteString getLrsLoadReportingServerNameBytes()Server to send load reports to. Required. If set to empty string, load reporting will be sent to the same server as we are getting xds data from.
string lrs_load_reporting_server_name = 3;- Specified by:
getLrsLoadReportingServerNameBytesin interfaceLrsLoadBalancingPolicyConfigOrBuilder- Returns:
- The bytes for lrsLoadReportingServerName.
-
hasLocality
public boolean hasLocality().grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;- Specified by:
hasLocalityin interfaceLrsLoadBalancingPolicyConfigOrBuilder- Returns:
- Whether the locality field is set.
-
getLocality
.grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;- Specified by:
getLocalityin interfaceLrsLoadBalancingPolicyConfigOrBuilder- Returns:
- The locality.
-
getLocalityOrBuilder
.grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;- Specified by:
getLocalityOrBuilderin interfaceLrsLoadBalancingPolicyConfigOrBuilder
-
getChildPolicyList
Endpoint-picking policy.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;- Specified by:
getChildPolicyListin interfaceLrsLoadBalancingPolicyConfigOrBuilder
-
getChildPolicyOrBuilderList
Endpoint-picking policy.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;- Specified by:
getChildPolicyOrBuilderListin interfaceLrsLoadBalancingPolicyConfigOrBuilder
-
getChildPolicyCount
public int getChildPolicyCount()Endpoint-picking policy.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;- Specified by:
getChildPolicyCountin interfaceLrsLoadBalancingPolicyConfigOrBuilder
-
getChildPolicy
Endpoint-picking policy.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;- Specified by:
getChildPolicyin interfaceLrsLoadBalancingPolicyConfigOrBuilder
-
getChildPolicyOrBuilder
Endpoint-picking policy.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;- Specified by:
getChildPolicyOrBuilderin interfaceLrsLoadBalancingPolicyConfigOrBuilder
-
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 LrsLoadBalancingPolicyConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LrsLoadBalancingPolicyConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LrsLoadBalancingPolicyConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LrsLoadBalancingPolicyConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LrsLoadBalancingPolicyConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LrsLoadBalancingPolicyConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static LrsLoadBalancingPolicyConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static LrsLoadBalancingPolicyConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static LrsLoadBalancingPolicyConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static LrsLoadBalancingPolicyConfig 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 LrsLoadBalancingPolicyConfig.Builder newBuilder(LrsLoadBalancingPolicyConfig prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LrsLoadBalancingPolicyConfig.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
-