Class TimedPromoteReleaseRule.Builder (1.52.0)

public static final class TimedPromoteReleaseRule.Builder extends GeneratedMessageV3.Builder<TimedPromoteReleaseRule.Builder> implements TimedPromoteReleaseRuleOrBuilder

The TimedPromoteReleaseRule will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.

Protobuf type google.cloud.deploy.v1.TimedPromoteReleaseRule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimedPromoteReleaseRule build()
Returns
Type Description
TimedPromoteReleaseRule

buildPartial()

public TimedPromoteReleaseRule buildPartial()
Returns
Type Description
TimedPromoteReleaseRule

clear()

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

clearCondition()

public TimedPromoteReleaseRule.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
TimedPromoteReleaseRule.Builder

clearDestinationPhase()

public TimedPromoteReleaseRule.Builder clearDestinationPhase()

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

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

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

clearDestinationTargetId()

public TimedPromoteReleaseRule.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
  • "@next", the next target in the promotion sequence

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

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public TimedPromoteReleaseRule.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
TimedPromoteReleaseRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchedule()

public TimedPromoteReleaseRule.Builder clearSchedule()

Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.

string schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

clearTimeZone()

public TimedPromoteReleaseRule.Builder clearTimeZone()

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

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

getDestinationPhase()

public String getDestinationPhase()

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

string destination_phase = 6 [(.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 rule. Default to the first phase.

string destination_phase = 6 [(.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
  • "@next", the next target in the promotion sequence

string destination_target_id = 2 [(.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
  • "@next", the next target in the promotion sequence

string destination_target_id = 2 [(.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.

getSchedule()

public String getSchedule()

Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.

string schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The schedule.

getScheduleBytes()

public ByteString getScheduleBytes()

Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.

string schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for schedule.

getTimeZone()

public String getTimeZone()

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for timeZone.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCondition(AutomationRuleCondition value)

public TimedPromoteReleaseRule.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
TimedPromoteReleaseRule.Builder

mergeFrom(TimedPromoteReleaseRule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCondition(AutomationRuleCondition value)

public TimedPromoteReleaseRule.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
TimedPromoteReleaseRule.Builder

setCondition(AutomationRuleCondition.Builder builderForValue)

public TimedPromoteReleaseRule.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
TimedPromoteReleaseRule.Builder

setDestinationPhase(String value)

public TimedPromoteReleaseRule.Builder setDestinationPhase(String value)

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

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

Parameter
Name Description
value String

The destinationPhase to set.

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

setDestinationPhaseBytes(ByteString value)

public TimedPromoteReleaseRule.Builder setDestinationPhaseBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for destinationPhase to set.

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

setDestinationTargetId(String value)

public TimedPromoteReleaseRule.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
  • "@next", the next target in the promotion sequence

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

Parameter
Name Description
value String

The destinationTargetId to set.

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

setDestinationTargetIdBytes(ByteString value)

public TimedPromoteReleaseRule.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
  • "@next", the next target in the promotion sequence

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

Parameter
Name Description
value ByteString

The bytes for destinationTargetId to set.

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public TimedPromoteReleaseRule.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
TimedPromoteReleaseRule.Builder

This builder for chaining.

setIdBytes(ByteString value)

public TimedPromoteReleaseRule.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
TimedPromoteReleaseRule.Builder

This builder for chaining.

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

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

setSchedule(String value)

public TimedPromoteReleaseRule.Builder setSchedule(String value)

Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.

string schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The schedule to set.

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

setScheduleBytes(ByteString value)

public TimedPromoteReleaseRule.Builder setScheduleBytes(ByteString value)

Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.

string schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for schedule to set.

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

setTimeZone(String value)

public TimedPromoteReleaseRule.Builder setTimeZone(String value)

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The timeZone to set.

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

setTimeZoneBytes(ByteString value)

public TimedPromoteReleaseRule.Builder setTimeZoneBytes(ByteString value)

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for timeZone to set.

Returns
Type Description
TimedPromoteReleaseRule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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