Class ConnectionDraining.Builder (1.29.0)

public static final class ConnectionDraining.Builder extends GeneratedMessageV3.Builder<ConnectionDraining.Builder> implements ConnectionDrainingOrBuilder

Message containing connection draining configuration.

Protobuf type google.cloud.compute.v1.ConnectionDraining

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConnectionDraining.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConnectionDraining.Builder
Overrides

build()

public ConnectionDraining build()
Returns
TypeDescription
ConnectionDraining

buildPartial()

public ConnectionDraining buildPartial()
Returns
TypeDescription
ConnectionDraining

clear()

public ConnectionDraining.Builder clear()
Returns
TypeDescription
ConnectionDraining.Builder
Overrides

clearDrainingTimeoutSec()

public ConnectionDraining.Builder clearDrainingTimeoutSec()

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
ConnectionDraining.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ConnectionDraining.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConnectionDraining.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConnectionDraining.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConnectionDraining.Builder
Overrides

clone()

public ConnectionDraining.Builder clone()
Returns
TypeDescription
ConnectionDraining.Builder
Overrides

getDefaultInstanceForType()

public ConnectionDraining getDefaultInstanceForType()
Returns
TypeDescription
ConnectionDraining

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConnectionDraining other)

public ConnectionDraining.Builder mergeFrom(ConnectionDraining other)
Parameter
NameDescription
otherConnectionDraining
Returns
TypeDescription
ConnectionDraining.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConnectionDraining.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionDraining.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConnectionDraining.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConnectionDraining.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionDraining.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConnectionDraining.Builder
Overrides

setDrainingTimeoutSec(int value)

public ConnectionDraining.Builder setDrainingTimeoutSec(int value)

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;

Parameter
NameDescription
valueint

The drainingTimeoutSec to set.

Returns
TypeDescription
ConnectionDraining.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ConnectionDraining.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConnectionDraining.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ConnectionDraining.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConnectionDraining.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionDraining.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConnectionDraining.Builder
Overrides