Class PromoteReleaseRule.Builder (1.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PromoteReleaseRule build()
Returns
TypeDescription
PromoteReleaseRule

buildPartial()

public PromoteReleaseRule buildPartial()
Returns
TypeDescription
PromoteReleaseRule

clear()

public PromoteReleaseRule.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PromoteReleaseRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PromoteReleaseRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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{0,62}.

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

Returns
TypeDescription
PromoteReleaseRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PromoteReleaseRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
PromoteReleaseRule.Builder

clone()

public PromoteReleaseRule.Builder clone()
Returns
TypeDescription
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
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 PromoteReleaseRule getDefaultInstanceForType()
Returns
TypeDescription
PromoteReleaseRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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{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.

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
TypeDescription
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
TypeDescription
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
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 the release need to be paused until being promoted to the next target.

.google.protobuf.Duration wait = 2 [(.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 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
NameDescription
valueAutomationRuleCondition
Returns
TypeDescription
PromoteReleaseRule.Builder

mergeFrom(PromoteReleaseRule other)

public PromoteReleaseRule.Builder mergeFrom(PromoteReleaseRule other)
Parameter
NameDescription
otherPromoteReleaseRule
Returns
TypeDescription
PromoteReleaseRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PromoteReleaseRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
valueAutomationRuleCondition
Returns
TypeDescription
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
NameDescription
builderForValueAutomationRuleCondition.Builder
Returns
TypeDescription
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
NameDescription
valueString

The destinationPhase to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for destinationPhase to set.

Returns
TypeDescription
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
NameDescription
valueString

The destinationTargetId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for destinationTargetId to set.

Returns
TypeDescription
PromoteReleaseRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PromoteReleaseRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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{0,62}.

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

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
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{0,62}.

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

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PromoteReleaseRule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PromoteReleaseRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
PromoteReleaseRule.Builder