Class AdvanceRolloutRule.Builder (1.38.0)

public static final class AdvanceRolloutRule.Builder extends GeneratedMessageV3.Builder<AdvanceRolloutRule.Builder> implements AdvanceRolloutRuleOrBuilder

The AdvanceRollout automation rule will automatically advance a successful Rollout to the next phase.

Protobuf type google.cloud.deploy.v1.AdvanceRolloutRule

Static Methods

getDescriptor()

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

Methods

addAllSourcePhases(Iterable<String> values)

public AdvanceRolloutRule.Builder addAllSourcePhases(Iterable<String> values)

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The sourcePhases to add.

Returns
TypeDescription
AdvanceRolloutRule.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSourcePhases(String value)

public AdvanceRolloutRule.Builder addSourcePhases(String value)

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The sourcePhases to add.

Returns
TypeDescription
AdvanceRolloutRule.Builder

This builder for chaining.

addSourcePhasesBytes(ByteString value)

public AdvanceRolloutRule.Builder addSourcePhasesBytes(ByteString value)

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the sourcePhases to add.

Returns
TypeDescription
AdvanceRolloutRule.Builder

This builder for chaining.

build()

public AdvanceRolloutRule build()
Returns
TypeDescription
AdvanceRolloutRule

buildPartial()

public AdvanceRolloutRule buildPartial()
Returns
TypeDescription
AdvanceRolloutRule

clear()

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

clearCondition()

public AdvanceRolloutRule.Builder clearCondition()

Output only. Information around the state of the Automation rule.

.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AdvanceRolloutRule.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public AdvanceRolloutRule.Builder clearId()

Required. ID of the rule. This id must be unique in the Automation resource to which this rule belongs. The format is a-z{0,62}.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AdvanceRolloutRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourcePhases()

public AdvanceRolloutRule.Builder clearSourcePhases()

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AdvanceRolloutRule.Builder

This builder for chaining.

clearWait()

public AdvanceRolloutRule.Builder clearWait()

Optional. How long to wait after a rollout is finished.

.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AdvanceRolloutRule.Builder

clone()

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

getCondition()

public AutomationRuleCondition getCondition()

Output only. Information around the state of the Automation rule.

.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AutomationRuleCondition

The condition.

getConditionBuilder()

public AutomationRuleCondition.Builder getConditionBuilder()

Output only. Information around the state of the Automation rule.

.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AutomationRuleCondition.Builder

getConditionOrBuilder()

public AutomationRuleConditionOrBuilder getConditionOrBuilder()

Output only. Information around the state of the Automation rule.

.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AutomationRuleConditionOrBuilder

getDefaultInstanceForType()

public AdvanceRolloutRule getDefaultInstanceForType()
Returns
TypeDescription
AdvanceRolloutRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

Required. ID of the rule. This id must be unique in the Automation resource to which this rule belongs. The format is a-z{0,62}.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Required. ID of the rule. This id must be unique in the Automation resource to which this rule belongs. The format is a-z{0,62}.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for id.

getSourcePhases(int index)

public String getSourcePhases(int index)

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The sourcePhases at the given index.

getSourcePhasesBytes(int index)

public ByteString getSourcePhasesBytes(int index)

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the sourcePhases at the given index.

getSourcePhasesCount()

public int getSourcePhasesCount()

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of sourcePhases.

getSourcePhasesList()

public ProtocolStringList getSourcePhasesList()

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the sourcePhases.

getWait()

public Duration getWait()

Optional. How long to wait after a rollout is finished.

.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Duration

The wait.

getWaitBuilder()

public Duration.Builder getWaitBuilder()

Optional. How long to wait after a rollout is finished.

.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Builder

getWaitOrBuilder()

public DurationOrBuilder getWaitOrBuilder()

Optional. How long to wait after a rollout is finished.

.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DurationOrBuilder

hasCondition()

public boolean hasCondition()

Output only. Information around the state of the Automation rule.

.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the condition field is set.

hasWait()

public boolean hasWait()

Optional. How long to wait after a rollout is finished.

.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the wait field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCondition(AutomationRuleCondition value)

public AdvanceRolloutRule.Builder mergeCondition(AutomationRuleCondition value)

Output only. Information around the state of the Automation rule.

.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAutomationRuleCondition
Returns
TypeDescription
AdvanceRolloutRule.Builder

mergeFrom(AdvanceRolloutRule other)

public AdvanceRolloutRule.Builder mergeFrom(AdvanceRolloutRule other)
Parameter
NameDescription
otherAdvanceRolloutRule
Returns
TypeDescription
AdvanceRolloutRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWait(Duration value)

public AdvanceRolloutRule.Builder mergeWait(Duration value)

Optional. How long to wait after a rollout is finished.

.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AdvanceRolloutRule.Builder

setCondition(AutomationRuleCondition value)

public AdvanceRolloutRule.Builder setCondition(AutomationRuleCondition value)

Output only. Information around the state of the Automation rule.

.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAutomationRuleCondition
Returns
TypeDescription
AdvanceRolloutRule.Builder

setCondition(AutomationRuleCondition.Builder builderForValue)

public AdvanceRolloutRule.Builder setCondition(AutomationRuleCondition.Builder builderForValue)

Output only. Information around the state of the Automation rule.

.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueAutomationRuleCondition.Builder
Returns
TypeDescription
AdvanceRolloutRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public AdvanceRolloutRule.Builder setId(String value)

Required. ID of the rule. This id must be unique in the Automation resource to which this rule belongs. The format is a-z{0,62}.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
AdvanceRolloutRule.Builder

This builder for chaining.

setIdBytes(ByteString value)

public AdvanceRolloutRule.Builder setIdBytes(ByteString value)

Required. ID of the rule. This id must be unique in the Automation resource to which this rule belongs. The format is a-z{0,62}.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
AdvanceRolloutRule.Builder

This builder for chaining.

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

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

setSourcePhases(int index, String value)

public AdvanceRolloutRule.Builder setSourcePhases(int index, String value)

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The sourcePhases to set.

Returns
TypeDescription
AdvanceRolloutRule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setWait(Duration value)

public AdvanceRolloutRule.Builder setWait(Duration value)

Optional. How long to wait after a rollout is finished.

.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AdvanceRolloutRule.Builder

setWait(Duration.Builder builderForValue)

public AdvanceRolloutRule.Builder setWait(Duration.Builder builderForValue)

Optional. How long to wait after a rollout is finished.

.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AdvanceRolloutRule.Builder