Class PromoteReleaseRule.Builder

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

public static final class PromoteReleaseRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<PromoteReleaseRule.Builder> implements PromoteReleaseRuleOrBuilder
 The `PromoteRelease` rule will automatically promote a release from the
 current target to a specified target.
 
Protobuf type google.cloud.deploy.v1.PromoteReleaseRule
  • 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<PromoteReleaseRule.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<PromoteReleaseRule.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<PromoteReleaseRule.Builder>
    • getDefaultInstanceForType

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

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

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

      public PromoteReleaseRule.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<PromoteReleaseRule.Builder>
    • mergeFrom

    • isInitialized

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

      public PromoteReleaseRule.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<PromoteReleaseRule.Builder>
      Throws:
      IOException
    • 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]([a-z0-9-]{0,61}[a-z0-9])?`.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getId in interface PromoteReleaseRuleOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.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]([a-z0-9-]{0,61}[a-z0-9])?`.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdBytes in interface PromoteReleaseRuleOrBuilder
      Returns:
      The bytes for id.
    • setId

      public PromoteReleaseRule.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]([a-z0-9-]{0,61}[a-z0-9])?`.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public PromoteReleaseRule.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]([a-z0-9-]{0,61}[a-z0-9])?`.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setIdBytes

      public PromoteReleaseRule.Builder setIdBytes(com.google.protobuf.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]([a-z0-9-]{0,61}[a-z0-9])?`.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasWait

      public boolean hasWait()
       Optional. How long the release need to be paused until being promoted to
       the next target.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasWait in interface PromoteReleaseRuleOrBuilder
      Returns:
      Whether the wait field is set.
    • getWait

      public com.google.protobuf.Duration getWait()
       Optional. How long the release need to be paused until being promoted to
       the next target.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWait in interface PromoteReleaseRuleOrBuilder
      Returns:
      The wait.
    • setWait

      public PromoteReleaseRule.Builder setWait(com.google.protobuf.Duration value)
       Optional. How long the release need to be paused until being promoted to
       the next target.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setWait

      public PromoteReleaseRule.Builder setWait(com.google.protobuf.Duration.Builder builderForValue)
       Optional. How long the release need to be paused until being promoted to
       the next target.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeWait

      public PromoteReleaseRule.Builder mergeWait(com.google.protobuf.Duration value)
       Optional. How long the release need to be paused until being promoted to
       the next target.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearWait

      public PromoteReleaseRule.Builder clearWait()
       Optional. How long the release need to be paused until being promoted to
       the next target.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getWaitBuilder

      public com.google.protobuf.Duration.Builder getWaitBuilder()
       Optional. How long the release need to be paused until being promoted to
       the next target.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getWaitOrBuilder

      public com.google.protobuf.DurationOrBuilder getWaitOrBuilder()
       Optional. How long the release need to be paused until being promoted to
       the next target.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWaitOrBuilder in interface PromoteReleaseRuleOrBuilder
    • 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 = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationTargetId in interface PromoteReleaseRuleOrBuilder
      Returns:
      The destinationTargetId.
    • getDestinationTargetIdBytes

      public com.google.protobuf.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 = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationTargetIdBytes in interface PromoteReleaseRuleOrBuilder
      Returns:
      The bytes for destinationTargetId.
    • setDestinationTargetId

      public PromoteReleaseRule.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 = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The destinationTargetId to set.
      Returns:
      This builder for chaining.
    • clearDestinationTargetId

      public PromoteReleaseRule.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 = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDestinationTargetIdBytes

      public PromoteReleaseRule.Builder setDestinationTargetIdBytes(com.google.protobuf.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 = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for destinationTargetId to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasCondition in interface PromoteReleaseRuleOrBuilder
      Returns:
      Whether the condition field is set.
    • 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];
      Specified by:
      getCondition in interface PromoteReleaseRuleOrBuilder
      Returns:
      The condition.
    • setCondition

       Output only. Information around the state of the Automation rule.
       
      .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCondition

      public PromoteReleaseRule.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];
    • mergeCondition

      public PromoteReleaseRule.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];
    • clearCondition

      public PromoteReleaseRule.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];
    • 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];
    • 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];
      Specified by:
      getConditionOrBuilder in interface PromoteReleaseRuleOrBuilder
    • getDestinationPhase

      public String getDestinationPhase()
       Optional. The starting phase of the rollout created by this operation.
       Default to the first phase.
       
      string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationPhase in interface PromoteReleaseRuleOrBuilder
      Returns:
      The destinationPhase.
    • getDestinationPhaseBytes

      public com.google.protobuf.ByteString getDestinationPhaseBytes()
       Optional. The starting phase of the rollout created by this operation.
       Default to the first phase.
       
      string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationPhaseBytes in interface PromoteReleaseRuleOrBuilder
      Returns:
      The bytes for destinationPhase.
    • setDestinationPhase

      public PromoteReleaseRule.Builder setDestinationPhase(String value)
       Optional. The starting phase of the rollout created by this operation.
       Default to the first phase.
       
      string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The destinationPhase to set.
      Returns:
      This builder for chaining.
    • clearDestinationPhase

      public PromoteReleaseRule.Builder clearDestinationPhase()
       Optional. The starting phase of the rollout created by this operation.
       Default to the first phase.
       
      string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDestinationPhaseBytes

      public PromoteReleaseRule.Builder setDestinationPhaseBytes(com.google.protobuf.ByteString value)
       Optional. The starting phase of the rollout created by this operation.
       Default to the first phase.
       
      string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for destinationPhase to set.
      Returns:
      This builder for chaining.