public static final class BlueGreenSettings.StandardRolloutPolicy.Builder extends GeneratedMessage.Builder<BlueGreenSettings.StandardRolloutPolicy.Builder> implements BlueGreenSettings.StandardRolloutPolicyOrBuilderStandard rollout policy is the default policy for blue-green.
Protobuf type google.container.v1.BlueGreenSettings.StandardRolloutPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BlueGreenSettings.StandardRolloutPolicy.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BlueGreenSettings.StandardRolloutPolicy build()| Returns | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy |
|
buildPartial()
public BlueGreenSettings.StandardRolloutPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy |
|
clear()
public BlueGreenSettings.StandardRolloutPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy.Builder |
|
clearBatchNodeCount()
public BlueGreenSettings.StandardRolloutPolicy.Builder clearBatchNodeCount()Number of blue nodes to drain in a batch.
int32 batch_node_count = 2;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy.Builder |
|
clearUpdateBatchSize()
public BlueGreenSettings.StandardRolloutPolicy.Builder clearUpdateBatchSize()| Returns | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy.Builder |
|
getBatchNodeCount()
public int getBatchNodeCount()Number of blue nodes to drain in a batch.
int32 batch_node_count = 2;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
Builder |
|
getBatchSoakDurationOrBuilder()
public DurationOrBuilder getBatchSoakDurationOrBuilder()Soak time after each batch gets drained. Default to zero.
optional .google.protobuf.Duration batch_soak_duration = 3;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getDefaultInstanceForType()
public BlueGreenSettings.StandardRolloutPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getUpdateBatchSizeCase()
public BlueGreenSettings.StandardRolloutPolicy.UpdateBatchSizeCase getUpdateBatchSizeCase()| Returns | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy.UpdateBatchSizeCase |
|
hasBatchNodeCount()
public boolean hasBatchNodeCount()Number of blue nodes to drain in a batch.
int32 batch_node_count = 2;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
boolean |
Whether the batchSoakDuration field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy.Builder |
|
mergeFrom(BlueGreenSettings.StandardRolloutPolicy other)
public BlueGreenSettings.StandardRolloutPolicy.Builder mergeFrom(BlueGreenSettings.StandardRolloutPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
BlueGreenSettings.StandardRolloutPolicy |
| Returns | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BlueGreenSettings.StandardRolloutPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BlueGreenSettings.StandardRolloutPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
intThe batchNodeCount to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
floatThe batchPercentage to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
BlueGreenSettings.StandardRolloutPolicy.Builder |
|