Class ConnectionDraining (1.40.0)

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
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConnectionDraining getDefaultInstance()
Returns
TypeDescription
ConnectionDraining

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ConnectionDraining.Builder newBuilder()
Returns
TypeDescription
ConnectionDraining.Builder

newBuilder(ConnectionDraining prototype)

public static ConnectionDraining.Builder newBuilder(ConnectionDraining prototype)
Parameter
NameDescription
prototypeConnectionDraining
Returns
TypeDescription
ConnectionDraining.Builder

parseDelimitedFrom(InputStream input)

public static ConnectionDraining parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectionDraining parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConnectionDraining parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConnectionDraining parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConnectionDraining parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConnectionDraining parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConnectionDraining parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectionDraining parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConnectionDraining parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectionDraining parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConnectionDraining parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConnectionDraining parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionDraining
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConnectionDraining> parser()
Returns
TypeDescription
Parser<ConnectionDraining>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ConnectionDraining getDefaultInstanceForType()
Returns
TypeDescription
ConnectionDraining

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
TypeDescription
int

The drainingTimeoutSec.

getParserForType()

public Parser<ConnectionDraining> getParserForType()
Returns
TypeDescription
Parser<ConnectionDraining>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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
TypeDescription
boolean

Whether the drainingTimeoutSec field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConnectionDraining.Builder newBuilderForType()
Returns
TypeDescription
ConnectionDraining.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConnectionDraining.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConnectionDraining.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConnectionDraining.Builder toBuilder()
Returns
TypeDescription
ConnectionDraining.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException