Class AutomationRule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutomationRule.Builder>
com.google.cloud.deploy.v1.AutomationRule.Builder
All Implemented Interfaces:
AutomationRuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AutomationRule

public static final class AutomationRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutomationRule.Builder> implements AutomationRuleOrBuilder
 `AutomationRule` defines the automation activities.
 
Protobuf type google.cloud.deploy.v1.AutomationRule
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AutomationRule.Builder>
    • clear

      public AutomationRule.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AutomationRule.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AutomationRule.Builder>
    • getDefaultInstanceForType

      public AutomationRule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AutomationRule build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AutomationRule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AutomationRule.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutomationRule.Builder>
    • mergeFrom

      public AutomationRule.Builder mergeFrom(AutomationRule other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AutomationRule.Builder>
    • mergeFrom

      public AutomationRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutomationRule.Builder>
      Throws:
      IOException
    • getRuleCase

      public AutomationRule.RuleCase getRuleCase()
      Specified by:
      getRuleCase in interface AutomationRuleOrBuilder
    • clearRule

      public AutomationRule.Builder clearRule()
    • 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];
      Specified by:
      hasPromoteReleaseRule in interface AutomationRuleOrBuilder
      Returns:
      Whether the promoteReleaseRule field is set.
    • 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];
      Specified by:
      getPromoteReleaseRule in interface AutomationRuleOrBuilder
      Returns:
      The promoteReleaseRule.
    • setPromoteReleaseRule

      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];
    • setPromoteReleaseRule

      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];
    • mergePromoteReleaseRule

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getPromoteReleaseRuleOrBuilder in interface AutomationRuleOrBuilder
    • 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];
      Specified by:
      hasAdvanceRolloutRule in interface AutomationRuleOrBuilder
      Returns:
      Whether the advanceRolloutRule field is set.
    • 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];
      Specified by:
      getAdvanceRolloutRule in interface AutomationRuleOrBuilder
      Returns:
      The advanceRolloutRule.
    • setAdvanceRolloutRule

      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];
    • setAdvanceRolloutRule

      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];
    • mergeAdvanceRolloutRule

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getAdvanceRolloutRuleOrBuilder in interface AutomationRuleOrBuilder
    • 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];
      Specified by:
      hasRepairRolloutRule in interface AutomationRuleOrBuilder
      Returns:
      Whether the repairRolloutRule field is set.
    • 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];
      Specified by:
      getRepairRolloutRule in interface AutomationRuleOrBuilder
      Returns:
      The repairRolloutRule.
    • setRepairRolloutRule

      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];
    • setRepairRolloutRule

      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];
    • mergeRepairRolloutRule

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getRepairRolloutRuleOrBuilder in interface AutomationRuleOrBuilder
    • 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];
      Specified by:
      hasTimedPromoteReleaseRule in interface AutomationRuleOrBuilder
      Returns:
      Whether the timedPromoteReleaseRule field is set.
    • 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];
      Specified by:
      getTimedPromoteReleaseRule in interface AutomationRuleOrBuilder
      Returns:
      The timedPromoteReleaseRule.
    • setTimedPromoteReleaseRule

      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];
    • setTimedPromoteReleaseRule

      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];
    • mergeTimedPromoteReleaseRule

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getTimedPromoteReleaseRuleOrBuilder in interface AutomationRuleOrBuilder