Class PromoteReleaseRule

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

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

    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • WAIT_FIELD_NUMBER

      public static final int WAIT_FIELD_NUMBER
      See Also:
    • DESTINATION_TARGET_ID_FIELD_NUMBER

      public static final int DESTINATION_TARGET_ID_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 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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 PromoteReleaseRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static PromoteReleaseRule.Builder newBuilder()
    • newBuilder

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

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

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

      public static PromoteReleaseRule getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<PromoteReleaseRule> 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 PromoteReleaseRule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder