Class TimedPromoteReleaseRule

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.deploy.v1.TimedPromoteReleaseRule
All Implemented Interfaces:
TimedPromoteReleaseRuleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class TimedPromoteReleaseRule extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • DESTINATION_TARGET_ID_FIELD_NUMBER

      public static final int DESTINATION_TARGET_ID_FIELD_NUMBER
      See Also:
    • SCHEDULE_FIELD_NUMBER

      public static final int SCHEDULE_FIELD_NUMBER
      See Also:
    • TIME_ZONE_FIELD_NUMBER

      public static final int TIME_ZONE_FIELD_NUMBER
      See Also:
    • CONDITION_FIELD_NUMBER

      public static final int CONDITION_FIELD_NUMBER
      See Also:
    • DESTINATION_PHASE_FIELD_NUMBER

      public static final int DESTINATION_PHASE_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static TimedPromoteReleaseRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimedPromoteReleaseRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimedPromoteReleaseRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimedPromoteReleaseRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimedPromoteReleaseRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimedPromoteReleaseRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimedPromoteReleaseRule parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TimedPromoteReleaseRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TimedPromoteReleaseRule parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TimedPromoteReleaseRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TimedPromoteReleaseRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TimedPromoteReleaseRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static TimedPromoteReleaseRule.Builder newBuilder()
    • newBuilder

      public static TimedPromoteReleaseRule.Builder newBuilder(TimedPromoteReleaseRule prototype)
    • toBuilder

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

      protected TimedPromoteReleaseRule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static TimedPromoteReleaseRule getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TimedPromoteReleaseRule> parser()
    • getParserForType

      public com.google.protobuf.Parser<TimedPromoteReleaseRule> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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