Class AutomationRule.Builder (1.52.0)

public static final class AutomationRule.Builder extends GeneratedMessageV3.Builder<AutomationRule.Builder> implements AutomationRuleOrBuilder

AutomationRule defines the automation activities.

Protobuf type google.cloud.deploy.v1.AutomationRule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutomationRule build()
Returns
Type Description
AutomationRule

buildPartial()

public AutomationRule buildPartial()
Returns
Type Description
AutomationRule

clear()

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

clearAdvanceRolloutRule()

public AutomationRule.Builder clearAdvanceRolloutRule()

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

.google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomationRule.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPromoteReleaseRule()

public AutomationRule.Builder clearPromoteReleaseRule()

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

.google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomationRule.Builder

clearRepairRolloutRule()

public AutomationRule.Builder clearRepairRolloutRule()

Optional. The RepairRolloutRule will automatically repair a failed rollout.

.google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomationRule.Builder

clearRule()

public AutomationRule.Builder clearRule()
Returns
Type Description
AutomationRule.Builder

clearTimedPromoteReleaseRule()

public AutomationRule.Builder clearTimedPromoteReleaseRule()

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

.google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomationRule.Builder

clone()

public AutomationRule.Builder clone()
Returns
Type Description
AutomationRule.Builder
Overrides

getAdvanceRolloutRule()

public AdvanceRolloutRule getAdvanceRolloutRule()

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

.google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvanceRolloutRule

The advanceRolloutRule.

getAdvanceRolloutRuleBuilder()

public AdvanceRolloutRule.Builder getAdvanceRolloutRuleBuilder()

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

.google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvanceRolloutRule.Builder

getAdvanceRolloutRuleOrBuilder()

public AdvanceRolloutRuleOrBuilder getAdvanceRolloutRuleOrBuilder()

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

.google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvanceRolloutRuleOrBuilder

getDefaultInstanceForType()

public AutomationRule getDefaultInstanceForType()
Returns
Type Description
AutomationRule

getDescriptorForType()

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

getPromoteReleaseRule()

public PromoteReleaseRule getPromoteReleaseRule()

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

.google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PromoteReleaseRule

The promoteReleaseRule.

getPromoteReleaseRuleBuilder()

public PromoteReleaseRule.Builder getPromoteReleaseRuleBuilder()

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

.google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PromoteReleaseRule.Builder

getPromoteReleaseRuleOrBuilder()

public PromoteReleaseRuleOrBuilder getPromoteReleaseRuleOrBuilder()

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

.google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PromoteReleaseRuleOrBuilder

getRepairRolloutRule()

public RepairRolloutRule getRepairRolloutRule()

Optional. The RepairRolloutRule will automatically repair a failed rollout.

.google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RepairRolloutRule

The repairRolloutRule.

getRepairRolloutRuleBuilder()

public RepairRolloutRule.Builder getRepairRolloutRuleBuilder()

Optional. The RepairRolloutRule will automatically repair a failed rollout.

.google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RepairRolloutRule.Builder

getRepairRolloutRuleOrBuilder()

public RepairRolloutRuleOrBuilder getRepairRolloutRuleOrBuilder()

Optional. The RepairRolloutRule will automatically repair a failed rollout.

.google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RepairRolloutRuleOrBuilder

getRuleCase()

public AutomationRule.RuleCase getRuleCase()
Returns
Type Description
AutomationRule.RuleCase

getTimedPromoteReleaseRule()

public TimedPromoteReleaseRule getTimedPromoteReleaseRule()

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

.google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimedPromoteReleaseRule

The timedPromoteReleaseRule.

getTimedPromoteReleaseRuleBuilder()

public TimedPromoteReleaseRule.Builder getTimedPromoteReleaseRuleBuilder()

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

.google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimedPromoteReleaseRule.Builder

getTimedPromoteReleaseRuleOrBuilder()

public TimedPromoteReleaseRuleOrBuilder getTimedPromoteReleaseRuleOrBuilder()

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

.google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimedPromoteReleaseRuleOrBuilder

hasAdvanceRolloutRule()

public boolean hasAdvanceRolloutRule()

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

.google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the advanceRolloutRule field is set.

hasPromoteReleaseRule()

public boolean hasPromoteReleaseRule()

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

.google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the promoteReleaseRule field is set.

hasRepairRolloutRule()

public boolean hasRepairRolloutRule()

Optional. The RepairRolloutRule will automatically repair a failed rollout.

.google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the repairRolloutRule field is set.

hasTimedPromoteReleaseRule()

public boolean hasTimedPromoteReleaseRule()

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

.google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the timedPromoteReleaseRule field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdvanceRolloutRule(AdvanceRolloutRule value)

public AutomationRule.Builder mergeAdvanceRolloutRule(AdvanceRolloutRule value)

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

.google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AdvanceRolloutRule
Returns
Type Description
AutomationRule.Builder

mergeFrom(AutomationRule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePromoteReleaseRule(PromoteReleaseRule value)

public AutomationRule.Builder mergePromoteReleaseRule(PromoteReleaseRule value)

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

.google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PromoteReleaseRule
Returns
Type Description
AutomationRule.Builder

mergeRepairRolloutRule(RepairRolloutRule value)

public AutomationRule.Builder mergeRepairRolloutRule(RepairRolloutRule value)

Optional. The RepairRolloutRule will automatically repair a failed rollout.

.google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RepairRolloutRule
Returns
Type Description
AutomationRule.Builder

mergeTimedPromoteReleaseRule(TimedPromoteReleaseRule value)

public AutomationRule.Builder mergeTimedPromoteReleaseRule(TimedPromoteReleaseRule value)

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

.google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TimedPromoteReleaseRule
Returns
Type Description
AutomationRule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAdvanceRolloutRule(AdvanceRolloutRule value)

public AutomationRule.Builder setAdvanceRolloutRule(AdvanceRolloutRule value)

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

.google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AdvanceRolloutRule
Returns
Type Description
AutomationRule.Builder

setAdvanceRolloutRule(AdvanceRolloutRule.Builder builderForValue)

public AutomationRule.Builder setAdvanceRolloutRule(AdvanceRolloutRule.Builder builderForValue)

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

.google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AdvanceRolloutRule.Builder
Returns
Type Description
AutomationRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPromoteReleaseRule(PromoteReleaseRule value)

public AutomationRule.Builder setPromoteReleaseRule(PromoteReleaseRule value)

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

.google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PromoteReleaseRule
Returns
Type Description
AutomationRule.Builder

setPromoteReleaseRule(PromoteReleaseRule.Builder builderForValue)

public AutomationRule.Builder setPromoteReleaseRule(PromoteReleaseRule.Builder builderForValue)

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

.google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue PromoteReleaseRule.Builder
Returns
Type Description
AutomationRule.Builder

setRepairRolloutRule(RepairRolloutRule value)

public AutomationRule.Builder setRepairRolloutRule(RepairRolloutRule value)

Optional. The RepairRolloutRule will automatically repair a failed rollout.

.google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RepairRolloutRule
Returns
Type Description
AutomationRule.Builder

setRepairRolloutRule(RepairRolloutRule.Builder builderForValue)

public AutomationRule.Builder setRepairRolloutRule(RepairRolloutRule.Builder builderForValue)

Optional. The RepairRolloutRule will automatically repair a failed rollout.

.google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RepairRolloutRule.Builder
Returns
Type Description
AutomationRule.Builder

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

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

setTimedPromoteReleaseRule(TimedPromoteReleaseRule value)

public AutomationRule.Builder setTimedPromoteReleaseRule(TimedPromoteReleaseRule value)

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

.google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TimedPromoteReleaseRule
Returns
Type Description
AutomationRule.Builder

setTimedPromoteReleaseRule(TimedPromoteReleaseRule.Builder builderForValue)

public AutomationRule.Builder setTimedPromoteReleaseRule(TimedPromoteReleaseRule.Builder builderForValue)

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

.google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue TimedPromoteReleaseRule.Builder
Returns
Type Description
AutomationRule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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