Class TimedPromoteReleaseRule.Builder

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

public static final class TimedPromoteReleaseRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<TimedPromoteReleaseRule.Builder> implements TimedPromoteReleaseRuleOrBuilder
 The `TimedPromoteReleaseRule` will automatically promote a release from the
 current target(s) to the specified target(s) on a configured schedule.
 
Protobuf type google.cloud.deploy.v1.TimedPromoteReleaseRule
  • 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<TimedPromoteReleaseRule.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<TimedPromoteReleaseRule.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<TimedPromoteReleaseRule.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public TimedPromoteReleaseRule.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<TimedPromoteReleaseRule.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 TimedPromoteReleaseRuleOrBuilder
      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 TimedPromoteReleaseRuleOrBuilder
      Returns:
      The bytes for id.
    • setId

       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

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

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

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

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

      public String getSchedule()
       Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at
       9am.
       
      string schedule = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSchedule in interface TimedPromoteReleaseRuleOrBuilder
      Returns:
      The schedule.
    • getScheduleBytes

      public com.google.protobuf.ByteString getScheduleBytes()
       Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at
       9am.
       
      string schedule = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScheduleBytes in interface TimedPromoteReleaseRuleOrBuilder
      Returns:
      The bytes for schedule.
    • setSchedule

      public TimedPromoteReleaseRule.Builder setSchedule(String value)
       Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at
       9am.
       
      string schedule = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The schedule to set.
      Returns:
      This builder for chaining.
    • clearSchedule

      public TimedPromoteReleaseRule.Builder clearSchedule()
       Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at
       9am.
       
      string schedule = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setScheduleBytes

      public TimedPromoteReleaseRule.Builder setScheduleBytes(com.google.protobuf.ByteString value)
       Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at
       9am.
       
      string schedule = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for schedule to set.
      Returns:
      This builder for chaining.
    • getTimeZone

      public String getTimeZone()
       Required. The time zone in IANA format [IANA Time Zone
       Database](https://www.iana.org/time-zones) (e.g. America/New_York).
       
      string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeZone in interface TimedPromoteReleaseRuleOrBuilder
      Returns:
      The timeZone.
    • getTimeZoneBytes

      public com.google.protobuf.ByteString getTimeZoneBytes()
       Required. The time zone in IANA format [IANA Time Zone
       Database](https://www.iana.org/time-zones) (e.g. America/New_York).
       
      string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeZoneBytes in interface TimedPromoteReleaseRuleOrBuilder
      Returns:
      The bytes for timeZone.
    • setTimeZone

      public TimedPromoteReleaseRule.Builder setTimeZone(String value)
       Required. The time zone in IANA format [IANA Time Zone
       Database](https://www.iana.org/time-zones) (e.g. America/New_York).
       
      string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The timeZone to set.
      Returns:
      This builder for chaining.
    • clearTimeZone

      public TimedPromoteReleaseRule.Builder clearTimeZone()
       Required. The time zone in IANA format [IANA Time Zone
       Database](https://www.iana.org/time-zones) (e.g. America/New_York).
       
      string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTimeZoneBytes

      public TimedPromoteReleaseRule.Builder setTimeZoneBytes(com.google.protobuf.ByteString value)
       Required. The time zone in IANA format [IANA Time Zone
       Database](https://www.iana.org/time-zones) (e.g. America/New_York).
       
      string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for timeZone 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 TimedPromoteReleaseRuleOrBuilder
      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 TimedPromoteReleaseRuleOrBuilder
      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

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

       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 TimedPromoteReleaseRule.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 TimedPromoteReleaseRuleOrBuilder
    • getDestinationPhase

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

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

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

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

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