Class BlueGreenSettings.StandardRolloutPolicy.Builder (2.9.0)

public static final class BlueGreenSettings.StandardRolloutPolicy.Builder extends GeneratedMessageV3.Builder<BlueGreenSettings.StandardRolloutPolicy.Builder> implements BlueGreenSettings.StandardRolloutPolicyOrBuilder

Standard rollout policy is the default policy for blue-green.

Protobuf type google.container.v1.BlueGreenSettings.StandardRolloutPolicy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BlueGreenSettings.StandardRolloutPolicy build()
Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy

buildPartial()

public BlueGreenSettings.StandardRolloutPolicy buildPartial()
Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy

clear()

public BlueGreenSettings.StandardRolloutPolicy.Builder clear()
Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder
Overrides

clearBatchNodeCount()

public BlueGreenSettings.StandardRolloutPolicy.Builder clearBatchNodeCount()

Number of blue nodes to drain in a batch.

int32 batch_node_count = 2;

Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder

This builder for chaining.

clearBatchPercentage()

public BlueGreenSettings.StandardRolloutPolicy.Builder clearBatchPercentage()

Percentage of the blue pool nodes to drain in a batch. The range of this field should be (0.0, 1.0].

float batch_percentage = 1;

Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder

This builder for chaining.

clearBatchSoakDuration()

public BlueGreenSettings.StandardRolloutPolicy.Builder clearBatchSoakDuration()

Soak time after each batch gets drained. Default to zero.

optional .google.protobuf.Duration batch_soak_duration = 3;

Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateBatchSize()

public BlueGreenSettings.StandardRolloutPolicy.Builder clearUpdateBatchSize()
Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder

clone()

public BlueGreenSettings.StandardRolloutPolicy.Builder clone()
Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder
Overrides

getBatchNodeCount()

public int getBatchNodeCount()

Number of blue nodes to drain in a batch.

int32 batch_node_count = 2;

Returns
TypeDescription
int

The batchNodeCount.

getBatchPercentage()

public float getBatchPercentage()

Percentage of the blue pool nodes to drain in a batch. The range of this field should be (0.0, 1.0].

float batch_percentage = 1;

Returns
TypeDescription
float

The batchPercentage.

getBatchSoakDuration()

public Duration getBatchSoakDuration()

Soak time after each batch gets drained. Default to zero.

optional .google.protobuf.Duration batch_soak_duration = 3;

Returns
TypeDescription
Duration

The batchSoakDuration.

getBatchSoakDurationBuilder()

public Duration.Builder getBatchSoakDurationBuilder()

Soak time after each batch gets drained. Default to zero.

optional .google.protobuf.Duration batch_soak_duration = 3;

Returns
TypeDescription
Builder

getBatchSoakDurationOrBuilder()

public DurationOrBuilder getBatchSoakDurationOrBuilder()

Soak time after each batch gets drained. Default to zero.

optional .google.protobuf.Duration batch_soak_duration = 3;

Returns
TypeDescription
DurationOrBuilder

getDefaultInstanceForType()

public BlueGreenSettings.StandardRolloutPolicy getDefaultInstanceForType()
Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUpdateBatchSizeCase()

public BlueGreenSettings.StandardRolloutPolicy.UpdateBatchSizeCase getUpdateBatchSizeCase()
Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.UpdateBatchSizeCase

hasBatchNodeCount()

public boolean hasBatchNodeCount()

Number of blue nodes to drain in a batch.

int32 batch_node_count = 2;

Returns
TypeDescription
boolean

Whether the batchNodeCount field is set.

hasBatchPercentage()

public boolean hasBatchPercentage()

Percentage of the blue pool nodes to drain in a batch. The range of this field should be (0.0, 1.0].

float batch_percentage = 1;

Returns
TypeDescription
boolean

Whether the batchPercentage field is set.

hasBatchSoakDuration()

public boolean hasBatchSoakDuration()

Soak time after each batch gets drained. Default to zero.

optional .google.protobuf.Duration batch_soak_duration = 3;

Returns
TypeDescription
boolean

Whether the batchSoakDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBatchSoakDuration(Duration value)

public BlueGreenSettings.StandardRolloutPolicy.Builder mergeBatchSoakDuration(Duration value)

Soak time after each batch gets drained. Default to zero.

optional .google.protobuf.Duration batch_soak_duration = 3;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder

mergeFrom(BlueGreenSettings.StandardRolloutPolicy other)

public BlueGreenSettings.StandardRolloutPolicy.Builder mergeFrom(BlueGreenSettings.StandardRolloutPolicy other)
Parameter
NameDescription
otherBlueGreenSettings.StandardRolloutPolicy
Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBatchNodeCount(int value)

public BlueGreenSettings.StandardRolloutPolicy.Builder setBatchNodeCount(int value)

Number of blue nodes to drain in a batch.

int32 batch_node_count = 2;

Parameter
NameDescription
valueint

The batchNodeCount to set.

Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder

This builder for chaining.

setBatchPercentage(float value)

public BlueGreenSettings.StandardRolloutPolicy.Builder setBatchPercentage(float value)

Percentage of the blue pool nodes to drain in a batch. The range of this field should be (0.0, 1.0].

float batch_percentage = 1;

Parameter
NameDescription
valuefloat

The batchPercentage to set.

Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder

This builder for chaining.

setBatchSoakDuration(Duration value)

public BlueGreenSettings.StandardRolloutPolicy.Builder setBatchSoakDuration(Duration value)

Soak time after each batch gets drained. Default to zero.

optional .google.protobuf.Duration batch_soak_duration = 3;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder

setBatchSoakDuration(Duration.Builder builderForValue)

public BlueGreenSettings.StandardRolloutPolicy.Builder setBatchSoakDuration(Duration.Builder builderForValue)

Soak time after each batch gets drained. Default to zero.

optional .google.protobuf.Duration batch_soak_duration = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BlueGreenSettings.StandardRolloutPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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