public static final class ServiceLbPolicy.AutoCapacityDrain extends GeneratedMessage implements ServiceLbPolicy.AutoCapacityDrainOrBuilderOption to specify if an unhealthy IG/NEG should be considered for global load balancing and traffic routing.
Protobuf type google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ServiceLbPolicy.AutoCapacityDrainImplements
ServiceLbPolicy.AutoCapacityDrainOrBuilderStatic Fields
ENABLE_FIELD_NUMBER
public static final int ENABLE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ServiceLbPolicy.AutoCapacityDrain getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ServiceLbPolicy.AutoCapacityDrain.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain.Builder |
|
newBuilder(ServiceLbPolicy.AutoCapacityDrain prototype)
public static ServiceLbPolicy.AutoCapacityDrain.Builder newBuilder(ServiceLbPolicy.AutoCapacityDrain prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ServiceLbPolicy.AutoCapacityDrain |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain.Builder |
|
parseDelimitedFrom(InputStream input)
public static ServiceLbPolicy.AutoCapacityDrain parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ServiceLbPolicy.AutoCapacityDrain parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ServiceLbPolicy.AutoCapacityDrain parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ServiceLbPolicy.AutoCapacityDrain parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ServiceLbPolicy.AutoCapacityDrain parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ServiceLbPolicy.AutoCapacityDrain parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ServiceLbPolicy.AutoCapacityDrain parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ServiceLbPolicy.AutoCapacityDrain parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ServiceLbPolicy.AutoCapacityDrain parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ServiceLbPolicy.AutoCapacityDrain parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ServiceLbPolicy.AutoCapacityDrain parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ServiceLbPolicy.AutoCapacityDrain parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ServiceLbPolicy.AutoCapacityDrain> parser()| Returns | |
|---|---|
| Type | Description |
Parser<AutoCapacityDrain> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public ServiceLbPolicy.AutoCapacityDrain getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
|
getEnable()
public boolean getEnable()Optional. If set to 'True', an unhealthy IG/NEG will be set as drained.
- An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy.
- This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enable. |
getParserForType()
public Parser<ServiceLbPolicy.AutoCapacityDrain> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<AutoCapacityDrain> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public ServiceLbPolicy.AutoCapacityDrain.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ServiceLbPolicy.AutoCapacityDrain.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain.Builder |
|
toBuilder()
public ServiceLbPolicy.AutoCapacityDrain.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|