Package com.google.container.v1
Class BlueGreenSettings.StandardRolloutPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BlueGreenSettings.StandardRolloutPolicy.Builder>
com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder
- All Implemented Interfaces:
BlueGreenSettings.StandardRolloutPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BlueGreenSettings.StandardRolloutPolicy
public static final class BlueGreenSettings.StandardRolloutPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BlueGreenSettings.StandardRolloutPolicy.Builder>
implements BlueGreenSettings.StandardRolloutPolicyOrBuilder
Standard rollout policy is the default policy for blue-green.Protobuf type
google.container.v1.BlueGreenSettings.StandardRolloutPolicy-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Number of blue nodes to drain in a batch.Percentage of the blue pool nodes to drain in a batch.Soak time after each batch gets drained.intNumber of blue nodes to drain in a batch.floatPercentage of the blue pool nodes to drain in a batch.com.google.protobuf.DurationSoak time after each batch gets drained.com.google.protobuf.Duration.BuilderSoak time after each batch gets drained.com.google.protobuf.DurationOrBuilderSoak time after each batch gets drained.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanNumber of blue nodes to drain in a batch.booleanPercentage of the blue pool nodes to drain in a batch.booleanSoak time after each batch gets drained.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBatchSoakDuration(com.google.protobuf.Duration value) Soak time after each batch gets drained.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBatchNodeCount(int value) Number of blue nodes to drain in a batch.setBatchPercentage(float value) Percentage of the blue pool nodes to drain in a batch.setBatchSoakDuration(com.google.protobuf.Duration value) Soak time after each batch gets drained.setBatchSoakDuration(com.google.protobuf.Duration.Builder builderForValue) Soak time after each batch gets drained.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BlueGreenSettings.StandardRolloutPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BlueGreenSettings.StandardRolloutPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BlueGreenSettings.StandardRolloutPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BlueGreenSettings.StandardRolloutPolicy.Builder>
-
mergeFrom
public BlueGreenSettings.StandardRolloutPolicy.Builder mergeFrom(BlueGreenSettings.StandardRolloutPolicy other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BlueGreenSettings.StandardRolloutPolicy.Builder>
-
mergeFrom
public BlueGreenSettings.StandardRolloutPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BlueGreenSettings.StandardRolloutPolicy.Builder>- Throws:
IOException
-
getUpdateBatchSizeCase
- Specified by:
getUpdateBatchSizeCasein interfaceBlueGreenSettings.StandardRolloutPolicyOrBuilder
-
clearUpdateBatchSize
-
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;- Specified by:
hasBatchPercentagein interfaceBlueGreenSettings.StandardRolloutPolicyOrBuilder- Returns:
- Whether the batchPercentage field is set.
-
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;- Specified by:
getBatchPercentagein interfaceBlueGreenSettings.StandardRolloutPolicyOrBuilder- Returns:
- The batchPercentage.
-
setBatchPercentage
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;- Parameters:
value- The batchPercentage to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
hasBatchNodeCount
public boolean hasBatchNodeCount()Number of blue nodes to drain in a batch.
int32 batch_node_count = 2;- Specified by:
hasBatchNodeCountin interfaceBlueGreenSettings.StandardRolloutPolicyOrBuilder- Returns:
- Whether the batchNodeCount field is set.
-
getBatchNodeCount
public int getBatchNodeCount()Number of blue nodes to drain in a batch.
int32 batch_node_count = 2;- Specified by:
getBatchNodeCountin interfaceBlueGreenSettings.StandardRolloutPolicyOrBuilder- Returns:
- The batchNodeCount.
-
setBatchNodeCount
Number of blue nodes to drain in a batch.
int32 batch_node_count = 2;- Parameters:
value- The batchNodeCount to set.- Returns:
- This builder for chaining.
-
clearBatchNodeCount
Number of blue nodes to drain in a batch.
int32 batch_node_count = 2;- Returns:
- This builder for chaining.
-
hasBatchSoakDuration
public boolean hasBatchSoakDuration()Soak time after each batch gets drained. Default to zero.
optional .google.protobuf.Duration batch_soak_duration = 3;- Specified by:
hasBatchSoakDurationin interfaceBlueGreenSettings.StandardRolloutPolicyOrBuilder- Returns:
- Whether the batchSoakDuration field is set.
-
getBatchSoakDuration
public com.google.protobuf.Duration getBatchSoakDuration()Soak time after each batch gets drained. Default to zero.
optional .google.protobuf.Duration batch_soak_duration = 3;- Specified by:
getBatchSoakDurationin interfaceBlueGreenSettings.StandardRolloutPolicyOrBuilder- Returns:
- The batchSoakDuration.
-
setBatchSoakDuration
public BlueGreenSettings.StandardRolloutPolicy.Builder setBatchSoakDuration(com.google.protobuf.Duration value) Soak time after each batch gets drained. Default to zero.
optional .google.protobuf.Duration batch_soak_duration = 3; -
setBatchSoakDuration
public BlueGreenSettings.StandardRolloutPolicy.Builder setBatchSoakDuration(com.google.protobuf.Duration.Builder builderForValue) Soak time after each batch gets drained. Default to zero.
optional .google.protobuf.Duration batch_soak_duration = 3; -
mergeBatchSoakDuration
public BlueGreenSettings.StandardRolloutPolicy.Builder mergeBatchSoakDuration(com.google.protobuf.Duration value) Soak time after each batch gets drained. Default to zero.
optional .google.protobuf.Duration batch_soak_duration = 3; -
clearBatchSoakDuration
Soak time after each batch gets drained. Default to zero.
optional .google.protobuf.Duration batch_soak_duration = 3; -
getBatchSoakDurationBuilder
public com.google.protobuf.Duration.Builder getBatchSoakDurationBuilder()Soak time after each batch gets drained. Default to zero.
optional .google.protobuf.Duration batch_soak_duration = 3; -
getBatchSoakDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder()Soak time after each batch gets drained. Default to zero.
optional .google.protobuf.Duration batch_soak_duration = 3;- Specified by:
getBatchSoakDurationOrBuilderin interfaceBlueGreenSettings.StandardRolloutPolicyOrBuilder
-