Class PromoteReleaseRule.Builder (1.41.0)

public static final class PromoteReleaseRule.Builder extends GeneratedMessageV3.Builder<PromoteReleaseRule.Builder> implements PromoteReleaseRuleOrBuilder

PromoteRelease rule will automatically promote a release from the current target to a specified target.

Protobuf type google.cloud.deploy.v1.PromoteReleaseRule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PromoteReleaseRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PromoteReleaseRule.Builder
Overrides

build()

public PromoteReleaseRule build()
Returns
Type Description
PromoteReleaseRule

buildPartial()

public PromoteReleaseRule buildPartial()
Returns
Type Description
PromoteReleaseRule

clear()

public PromoteReleaseRule.Builder clear()
Returns
Type Description
PromoteReleaseRule.Builder
Overrides

clearCondition()

public PromoteReleaseRule.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
Type Description
PromoteReleaseRule.Builder

clearDestinationPhase()

public PromoteReleaseRule.Builder clearDestinationPhase()

Optional. The starting phase of the rollout created by this operation. Default to the first phase.

string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PromoteReleaseRule.Builder

This builder for chaining.

clearDestinationTargetId()

public PromoteReleaseRule.Builder clearDestinationTargetId()

Optional. The ID of the stage in the pipeline to which this Release is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following:

  • The last segment of a target name. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline.
  • "@next", the next target in the promotion sequence.

string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PromoteReleaseRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PromoteReleaseRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PromoteReleaseRule.Builder
Overrides

clearId()

public PromoteReleaseRule.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?.

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

Returns
Type Description
PromoteReleaseRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PromoteReleaseRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PromoteReleaseRule.Builder
Overrides

clearWait()

public PromoteReleaseRule.Builder clearWait()

Optional. How long the release need to be paused until being promoted to the next target.

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

Returns
Type Description
PromoteReleaseRule.Builder

clone()

public PromoteReleaseRule.Builder clone()
Returns
Type Description
PromoteReleaseRule.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
Type Description
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
Type Description
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
Type Description
AutomationRuleConditionOrBuilder

getDefaultInstanceForType()

public PromoteReleaseRule getDefaultInstanceForType()
Returns
Type Description
PromoteReleaseRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinationPhase()

public String getDestinationPhase()

Optional. The starting phase of the rollout created by this operation. Default to the first phase.

string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The destinationPhase.

getDestinationPhaseBytes()

public ByteString getDestinationPhaseBytes()

Optional. The starting phase of the rollout created by this operation. Default to the first phase.

string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for destinationPhase.

getDestinationTargetId()

public String getDestinationTargetId()

Optional. The ID of the stage in the pipeline to which this Release is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following:

  • The last segment of a target name. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline.
  • "@next", the next target in the promotion sequence.

string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The destinationTargetId.

getDestinationTargetIdBytes()

public ByteString getDestinationTargetIdBytes()

Optional. The ID of the stage in the pipeline to which this Release is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following:

  • The last segment of a target name. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline.
  • "@next", the next target in the promotion sequence.

string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for destinationTargetId.

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?.

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

Returns
Type Description
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?.

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

Returns
Type Description
ByteString

The bytes for id.

getWait()

public Duration getWait()

Optional. How long the release need to be paused until being promoted to the next target.

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

Returns
Type Description
Duration

The wait.

getWaitBuilder()

public Duration.Builder getWaitBuilder()

Optional. How long the release need to be paused until being promoted to the next target.

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

Returns
Type Description
Builder

getWaitOrBuilder()

public DurationOrBuilder getWaitOrBuilder()

Optional. How long the release need to be paused until being promoted to the next target.

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

Returns
Type Description
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
Type Description
boolean

Whether the condition field is set.

hasWait()

public boolean hasWait()

Optional. How long the release need to be paused until being promoted to the next target.

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

Returns
Type Description
boolean

Whether the wait field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCondition(AutomationRuleCondition value)

public PromoteReleaseRule.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
Name Description
value AutomationRuleCondition
Returns
Type Description
PromoteReleaseRule.Builder

mergeFrom(PromoteReleaseRule other)

public PromoteReleaseRule.Builder mergeFrom(PromoteReleaseRule other)
Parameter
Name Description
other PromoteReleaseRule
Returns
Type Description
PromoteReleaseRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PromoteReleaseRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PromoteReleaseRule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PromoteReleaseRule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PromoteReleaseRule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PromoteReleaseRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PromoteReleaseRule.Builder
Overrides

mergeWait(Duration value)

public PromoteReleaseRule.Builder mergeWait(Duration value)

Optional. How long the release need to be paused until being promoted to the next target.

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

Parameter
Name Description
value Duration
Returns
Type Description
PromoteReleaseRule.Builder

setCondition(AutomationRuleCondition value)

public PromoteReleaseRule.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
Name Description
value AutomationRuleCondition
Returns
Type Description
PromoteReleaseRule.Builder

setCondition(AutomationRuleCondition.Builder builderForValue)

public PromoteReleaseRule.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
Name Description
builderForValue AutomationRuleCondition.Builder
Returns
Type Description
PromoteReleaseRule.Builder

setDestinationPhase(String value)

public PromoteReleaseRule.Builder setDestinationPhase(String value)

Optional. The starting phase of the rollout created by this operation. Default to the first phase.

string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The destinationPhase to set.

Returns
Type Description
PromoteReleaseRule.Builder

This builder for chaining.

setDestinationPhaseBytes(ByteString value)

public PromoteReleaseRule.Builder setDestinationPhaseBytes(ByteString value)

Optional. The starting phase of the rollout created by this operation. Default to the first phase.

string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for destinationPhase to set.

Returns
Type Description
PromoteReleaseRule.Builder

This builder for chaining.

setDestinationTargetId(String value)

public PromoteReleaseRule.Builder setDestinationTargetId(String value)

Optional. The ID of the stage in the pipeline to which this Release is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following:

  • The last segment of a target name. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline.
  • "@next", the next target in the promotion sequence.

string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The destinationTargetId to set.

Returns
Type Description
PromoteReleaseRule.Builder

This builder for chaining.

setDestinationTargetIdBytes(ByteString value)

public PromoteReleaseRule.Builder setDestinationTargetIdBytes(ByteString value)

Optional. The ID of the stage in the pipeline to which this Release is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following:

  • The last segment of a target name. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline.
  • "@next", the next target in the promotion sequence.

string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for destinationTargetId to set.

Returns
Type Description
PromoteReleaseRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PromoteReleaseRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PromoteReleaseRule.Builder
Overrides

setId(String value)

public PromoteReleaseRule.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?.

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

Parameter
Name Description
value String

The id to set.

Returns
Type Description
PromoteReleaseRule.Builder

This builder for chaining.

setIdBytes(ByteString value)

public PromoteReleaseRule.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?.

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

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
PromoteReleaseRule.Builder

This builder for chaining.

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

public PromoteReleaseRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PromoteReleaseRule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PromoteReleaseRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PromoteReleaseRule.Builder
Overrides

setWait(Duration value)

public PromoteReleaseRule.Builder setWait(Duration value)

Optional. How long the release need to be paused until being promoted to the next target.

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

Parameter
Name Description
value Duration
Returns
Type Description
PromoteReleaseRule.Builder

setWait(Duration.Builder builderForValue)

public PromoteReleaseRule.Builder setWait(Duration.Builder builderForValue)

Optional. How long the release need to be paused until being promoted to the next target.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PromoteReleaseRule.Builder