Class AutomationRule.Builder (1.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutomationRule build()
Returns
TypeDescription
AutomationRule

buildPartial()

public AutomationRule buildPartial()
Returns
TypeDescription
AutomationRule

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AutomationRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutomationRule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRule()

public AutomationRule.Builder clearRule()
Returns
TypeDescription
AutomationRule.Builder

clone()

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

getDefaultInstanceForType()

public AutomationRule getDefaultInstanceForType()
Returns
TypeDescription
AutomationRule

getDescriptorForType()

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

getRuleCase()

public AutomationRule.RuleCase getRuleCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the repairRolloutRule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAdvanceRolloutRule
Returns
TypeDescription
AutomationRule.Builder

mergeFrom(AutomationRule other)

public AutomationRule.Builder mergeFrom(AutomationRule other)
Parameter
NameDescription
otherAutomationRule
Returns
TypeDescription
AutomationRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AutomationRule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePromoteReleaseRule
Returns
TypeDescription
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
NameDescription
valueRepairRolloutRule
Returns
TypeDescription
AutomationRule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomationRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAdvanceRolloutRule
Returns
TypeDescription
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
NameDescription
builderForValueAdvanceRolloutRule.Builder
Returns
TypeDescription
AutomationRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AutomationRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePromoteReleaseRule
Returns
TypeDescription
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
NameDescription
builderForValuePromoteReleaseRule.Builder
Returns
TypeDescription
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
NameDescription
valueRepairRolloutRule
Returns
TypeDescription
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
NameDescription
builderForValueRepairRolloutRule.Builder
Returns
TypeDescription
AutomationRule.Builder

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

public AutomationRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AutomationRule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomationRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomationRule.Builder
Overrides