Class AutomationRule.Builder (1.42.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

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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