public final class ConnectionDraining extends GeneratedMessageV3 implements ConnectionDrainingOrBuilder
Message containing connection draining configuration.
Protobuf type google.cloud.compute.v1.ConnectionDraining
Static Fields
DRAINING_TIMEOUT_SEC_FIELD_NUMBER
public static final int DRAINING_TIMEOUT_SEC_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ConnectionDraining getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ConnectionDraining.Builder newBuilder()
Returns
newBuilder(ConnectionDraining prototype)
public static ConnectionDraining.Builder newBuilder(ConnectionDraining prototype)
Parameter
Returns
public static ConnectionDraining parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConnectionDraining parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ConnectionDraining parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConnectionDraining parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ConnectionDraining parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConnectionDraining parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConnectionDraining parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ConnectionDraining parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConnectionDraining parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConnectionDraining parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ConnectionDraining parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConnectionDraining parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ConnectionDraining> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ConnectionDraining getDefaultInstanceForType()
Returns
getDrainingTimeoutSec()
public int getDrainingTimeoutSec()
Configures a duration timeout for existing requests on a removed backend instance. For supported load balancers and protocols, as described in Enabling connection draining.
optional int32 draining_timeout_sec = 225127070;
Returns
Type | Description |
int | The drainingTimeoutSec.
|
getParserForType()
public Parser<ConnectionDraining> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasDrainingTimeoutSec()
public boolean hasDrainingTimeoutSec()
Configures a duration timeout for existing requests on a removed backend instance. For supported load balancers and protocols, as described in Enabling connection draining.
optional int32 draining_timeout_sec = 225127070;
Returns
Type | Description |
boolean | Whether the drainingTimeoutSec field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ConnectionDraining.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConnectionDraining.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ConnectionDraining.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions