Class RepairRolloutRule

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

@Generated public final class RepairRolloutRule extends com.google.protobuf.GeneratedMessage implements RepairRolloutRuleOrBuilder
 The `RepairRolloutRule` automation rule will automatically repair a failed
 `Rollout`.
 
Protobuf type google.cloud.deploy.v1.RepairRolloutRule
See Also:
  • Field Details

  • 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 RepairRolloutRuleOrBuilder
      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 RepairRolloutRuleOrBuilder
      Returns:
      The bytes for id.
    • getPhasesList

      public com.google.protobuf.ProtocolStringList getPhasesList()
       Optional. Phases within which jobs are subject to automatic repair actions
       on failure. Proceeds only after phase name matched any one in the list, or
       for all phases if unspecified. This value must consist of lower-case
       letters, numbers, and hyphens, start with a letter and end with a letter or
       a number, and have a max length of 63 characters. In other words, it must
       match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPhasesList in interface RepairRolloutRuleOrBuilder
      Returns:
      A list containing the phases.
    • getPhasesCount

      public int getPhasesCount()
       Optional. Phases within which jobs are subject to automatic repair actions
       on failure. Proceeds only after phase name matched any one in the list, or
       for all phases if unspecified. This value must consist of lower-case
       letters, numbers, and hyphens, start with a letter and end with a letter or
       a number, and have a max length of 63 characters. In other words, it must
       match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPhasesCount in interface RepairRolloutRuleOrBuilder
      Returns:
      The count of phases.
    • getPhases

      public String getPhases(int index)
       Optional. Phases within which jobs are subject to automatic repair actions
       on failure. Proceeds only after phase name matched any one in the list, or
       for all phases if unspecified. This value must consist of lower-case
       letters, numbers, and hyphens, start with a letter and end with a letter or
       a number, and have a max length of 63 characters. In other words, it must
       match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPhases in interface RepairRolloutRuleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The phases at the given index.
    • getPhasesBytes

      public com.google.protobuf.ByteString getPhasesBytes(int index)
       Optional. Phases within which jobs are subject to automatic repair actions
       on failure. Proceeds only after phase name matched any one in the list, or
       for all phases if unspecified. This value must consist of lower-case
       letters, numbers, and hyphens, start with a letter and end with a letter or
       a number, and have a max length of 63 characters. In other words, it must
       match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPhasesBytes in interface RepairRolloutRuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the phases at the given index.
    • getJobsList

      public com.google.protobuf.ProtocolStringList getJobsList()
       Optional. Jobs to repair. Proceeds only after job name matched any one in
       the list, or for all jobs if unspecified or empty. The phase that includes
       the job must match the phase ID specified in `source_phase`. This value
       must consist of lower-case letters, numbers, and hyphens, start with a
       letter and end with a letter or a number, and have a max length of 63
       characters. In other words, it must match the following regex:
       `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getJobsList in interface RepairRolloutRuleOrBuilder
      Returns:
      A list containing the jobs.
    • getJobsCount

      public int getJobsCount()
       Optional. Jobs to repair. Proceeds only after job name matched any one in
       the list, or for all jobs if unspecified or empty. The phase that includes
       the job must match the phase ID specified in `source_phase`. This value
       must consist of lower-case letters, numbers, and hyphens, start with a
       letter and end with a letter or a number, and have a max length of 63
       characters. In other words, it must match the following regex:
       `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getJobsCount in interface RepairRolloutRuleOrBuilder
      Returns:
      The count of jobs.
    • getJobs

      public String getJobs(int index)
       Optional. Jobs to repair. Proceeds only after job name matched any one in
       the list, or for all jobs if unspecified or empty. The phase that includes
       the job must match the phase ID specified in `source_phase`. This value
       must consist of lower-case letters, numbers, and hyphens, start with a
       letter and end with a letter or a number, and have a max length of 63
       characters. In other words, it must match the following regex:
       `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getJobs in interface RepairRolloutRuleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The jobs at the given index.
    • getJobsBytes

      public com.google.protobuf.ByteString getJobsBytes(int index)
       Optional. Jobs to repair. Proceeds only after job name matched any one in
       the list, or for all jobs if unspecified or empty. The phase that includes
       the job must match the phase ID specified in `source_phase`. This value
       must consist of lower-case letters, numbers, and hyphens, start with a
       letter and end with a letter or a number, and have a max length of 63
       characters. In other words, it must match the following regex:
       `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getJobsBytes in interface RepairRolloutRuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the jobs at the given index.
    • hasCondition

      public boolean hasCondition()
       Output only. Information around the state of the 'Automation' rule.
       
      .google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCondition in interface RepairRolloutRuleOrBuilder
      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 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCondition in interface RepairRolloutRuleOrBuilder
      Returns:
      The condition.
    • getConditionOrBuilder

      public AutomationRuleConditionOrBuilder getConditionOrBuilder()
       Output only. Information around the state of the 'Automation' rule.
       
      .google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConditionOrBuilder in interface RepairRolloutRuleOrBuilder
    • getRepairPhasesList

      public List<RepairPhaseConfig> getRepairPhasesList()
       Required. Defines the types of automatic repair phases for failed jobs.
       
      repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRepairPhasesList in interface RepairRolloutRuleOrBuilder
    • getRepairPhasesOrBuilderList

      public List<? extends RepairPhaseConfigOrBuilder> getRepairPhasesOrBuilderList()
       Required. Defines the types of automatic repair phases for failed jobs.
       
      repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRepairPhasesOrBuilderList in interface RepairRolloutRuleOrBuilder
    • getRepairPhasesCount

      public int getRepairPhasesCount()
       Required. Defines the types of automatic repair phases for failed jobs.
       
      repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRepairPhasesCount in interface RepairRolloutRuleOrBuilder
    • getRepairPhases

      public RepairPhaseConfig getRepairPhases(int index)
       Required. Defines the types of automatic repair phases for failed jobs.
       
      repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRepairPhases in interface RepairRolloutRuleOrBuilder
    • getRepairPhasesOrBuilder

      public RepairPhaseConfigOrBuilder getRepairPhasesOrBuilder(int index)
       Required. Defines the types of automatic repair phases for failed jobs.
       
      repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRepairPhasesOrBuilder in interface RepairRolloutRuleOrBuilder
    • 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 RepairRolloutRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static RepairRolloutRule.Builder newBuilder()
    • newBuilder

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

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

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

      public static RepairRolloutRule getDefaultInstance()
    • parser

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

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