public final class GrpcLbConfig extends com.google.protobuf.GeneratedMessageV3 implements GrpcLbConfigOrBuilder
Configuration for grpclb LB policy.Protobuf type
grpc.service_config.GrpcLbConfig| Modifier and Type | Class and Description |
|---|---|
static class |
GrpcLbConfig.Builder
Configuration for grpclb 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 |
CHILD_POLICY_FIELD_NUMBER |
static int |
SERVICE_NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LoadBalancingConfig |
getChildPolicy(int index)
Optional.
|
int |
getChildPolicyCount()
Optional.
|
List<LoadBalancingConfig> |
getChildPolicyList()
Optional.
|
LoadBalancingConfigOrBuilder |
getChildPolicyOrBuilder(int index)
Optional.
|
List<? extends LoadBalancingConfigOrBuilder> |
getChildPolicyOrBuilderList()
Optional.
|
static GrpcLbConfig |
getDefaultInstance() |
GrpcLbConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<GrpcLbConfig> |
getParserForType() |
int |
getSerializedSize() |
String |
getServiceName()
Optional.
|
com.google.protobuf.ByteString |
getServiceNameBytes()
Optional.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GrpcLbConfig.Builder |
newBuilder() |
static GrpcLbConfig.Builder |
newBuilder(GrpcLbConfig prototype) |
GrpcLbConfig.Builder |
newBuilderForType() |
protected GrpcLbConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static GrpcLbConfig |
parseDelimitedFrom(InputStream input) |
static GrpcLbConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GrpcLbConfig |
parseFrom(byte[] data) |
static GrpcLbConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GrpcLbConfig |
parseFrom(ByteBuffer data) |
static GrpcLbConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GrpcLbConfig |
parseFrom(com.google.protobuf.ByteString data) |
static GrpcLbConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GrpcLbConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GrpcLbConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GrpcLbConfig |
parseFrom(InputStream input) |
static GrpcLbConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<GrpcLbConfig> |
parser() |
GrpcLbConfig.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 CHILD_POLICY_FIELD_NUMBER
public static final int SERVICE_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.GeneratedMessageV3public List<LoadBalancingConfig> getChildPolicyList()
Optional. What LB policy to use for routing between the backend addresses. If unset, defaults to round_robin. Currently, the only supported values are round_robin and pick_first. Note that this will be used both in balancer mode and in fallback mode. 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 = 1;getChildPolicyList in interface GrpcLbConfigOrBuilderpublic List<? extends LoadBalancingConfigOrBuilder> getChildPolicyOrBuilderList()
Optional. What LB policy to use for routing between the backend addresses. If unset, defaults to round_robin. Currently, the only supported values are round_robin and pick_first. Note that this will be used both in balancer mode and in fallback mode. 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 = 1;getChildPolicyOrBuilderList in interface GrpcLbConfigOrBuilderpublic int getChildPolicyCount()
Optional. What LB policy to use for routing between the backend addresses. If unset, defaults to round_robin. Currently, the only supported values are round_robin and pick_first. Note that this will be used both in balancer mode and in fallback mode. 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 = 1;getChildPolicyCount in interface GrpcLbConfigOrBuilderpublic LoadBalancingConfig getChildPolicy(int index)
Optional. What LB policy to use for routing between the backend addresses. If unset, defaults to round_robin. Currently, the only supported values are round_robin and pick_first. Note that this will be used both in balancer mode and in fallback mode. 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 = 1;getChildPolicy in interface GrpcLbConfigOrBuilderpublic LoadBalancingConfigOrBuilder getChildPolicyOrBuilder(int index)
Optional. What LB policy to use for routing between the backend addresses. If unset, defaults to round_robin. Currently, the only supported values are round_robin and pick_first. Note that this will be used both in balancer mode and in fallback mode. 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 = 1;getChildPolicyOrBuilder in interface GrpcLbConfigOrBuilderpublic String getServiceName()
Optional. If specified, overrides the name of the service to be sent to the balancer.
string service_name = 2;getServiceName in interface GrpcLbConfigOrBuilderpublic com.google.protobuf.ByteString getServiceNameBytes()
Optional. If specified, overrides the name of the service to be sent to the balancer.
string service_name = 2;getServiceNameBytes in interface GrpcLbConfigOrBuilderpublic 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 GrpcLbConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLbConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLbConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLbConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLbConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLbConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLbConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static GrpcLbConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GrpcLbConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GrpcLbConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GrpcLbConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GrpcLbConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GrpcLbConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GrpcLbConfig.Builder newBuilder()
public static GrpcLbConfig.Builder newBuilder(GrpcLbConfig prototype)
public GrpcLbConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GrpcLbConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GrpcLbConfig getDefaultInstance()
public static com.google.protobuf.Parser<GrpcLbConfig> parser()
public com.google.protobuf.Parser<GrpcLbConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GrpcLbConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.