Class RepairRolloutOperation.Builder

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

public static final class RepairRolloutOperation.Builder extends com.google.protobuf.GeneratedMessage.Builder<RepairRolloutOperation.Builder> implements RepairRolloutOperationOrBuilder
 Contains the information for an automated `repair rollout` operation.
 
Protobuf type google.cloud.deploy.v1.RepairRolloutOperation
  • 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<RepairRolloutOperation.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<RepairRolloutOperation.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<RepairRolloutOperation.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RepairRolloutOperation.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<RepairRolloutOperation.Builder>
      Throws:
      IOException
    • getRollout

      public String getRollout()
       Output only. The name of the rollout that initiates the `AutomationRun`.
       
      string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRollout in interface RepairRolloutOperationOrBuilder
      Returns:
      The rollout.
    • getRolloutBytes

      public com.google.protobuf.ByteString getRolloutBytes()
       Output only. The name of the rollout that initiates the `AutomationRun`.
       
      string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRolloutBytes in interface RepairRolloutOperationOrBuilder
      Returns:
      The bytes for rollout.
    • setRollout

      public RepairRolloutOperation.Builder setRollout(String value)
       Output only. The name of the rollout that initiates the `AutomationRun`.
       
      string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The rollout to set.
      Returns:
      This builder for chaining.
    • clearRollout

      public RepairRolloutOperation.Builder clearRollout()
       Output only. The name of the rollout that initiates the `AutomationRun`.
       
      string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setRolloutBytes

      public RepairRolloutOperation.Builder setRolloutBytes(com.google.protobuf.ByteString value)
       Output only. The name of the rollout that initiates the `AutomationRun`.
       
      string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for rollout to set.
      Returns:
      This builder for chaining.
    • getCurrentRepairPhaseIndex

      public long getCurrentRepairPhaseIndex()
       Output only. The index of the current repair action in the repair sequence.
       
      int64 current_repair_phase_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCurrentRepairPhaseIndex in interface RepairRolloutOperationOrBuilder
      Returns:
      The currentRepairPhaseIndex.
    • setCurrentRepairPhaseIndex

      public RepairRolloutOperation.Builder setCurrentRepairPhaseIndex(long value)
       Output only. The index of the current repair action in the repair sequence.
       
      int64 current_repair_phase_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The currentRepairPhaseIndex to set.
      Returns:
      This builder for chaining.
    • clearCurrentRepairPhaseIndex

      public RepairRolloutOperation.Builder clearCurrentRepairPhaseIndex()
       Output only. The index of the current repair action in the repair sequence.
       
      int64 current_repair_phase_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getRepairPhasesList

      public List<RepairPhase> getRepairPhasesList()
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRepairPhasesList in interface RepairRolloutOperationOrBuilder
    • getRepairPhasesCount

      public int getRepairPhasesCount()
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRepairPhasesCount in interface RepairRolloutOperationOrBuilder
    • getRepairPhases

      public RepairPhase getRepairPhases(int index)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRepairPhases in interface RepairRolloutOperationOrBuilder
    • setRepairPhases

      public RepairRolloutOperation.Builder setRepairPhases(int index, RepairPhase value)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setRepairPhases

      public RepairRolloutOperation.Builder setRepairPhases(int index, RepairPhase.Builder builderForValue)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addRepairPhases

      public RepairRolloutOperation.Builder addRepairPhases(RepairPhase value)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addRepairPhases

      public RepairRolloutOperation.Builder addRepairPhases(int index, RepairPhase value)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addRepairPhases

      public RepairRolloutOperation.Builder addRepairPhases(RepairPhase.Builder builderForValue)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addRepairPhases

      public RepairRolloutOperation.Builder addRepairPhases(int index, RepairPhase.Builder builderForValue)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllRepairPhases

      public RepairRolloutOperation.Builder addAllRepairPhases(Iterable<? extends RepairPhase> values)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearRepairPhases

      public RepairRolloutOperation.Builder clearRepairPhases()
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeRepairPhases

      public RepairRolloutOperation.Builder removeRepairPhases(int index)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getRepairPhasesBuilder

      public RepairPhase.Builder getRepairPhasesBuilder(int index)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getRepairPhasesOrBuilder

      public RepairPhaseOrBuilder getRepairPhasesOrBuilder(int index)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRepairPhasesOrBuilder in interface RepairRolloutOperationOrBuilder
    • getRepairPhasesOrBuilderList

      public List<? extends RepairPhaseOrBuilder> getRepairPhasesOrBuilderList()
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRepairPhasesOrBuilderList in interface RepairRolloutOperationOrBuilder
    • addRepairPhasesBuilder

      public RepairPhase.Builder addRepairPhasesBuilder()
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addRepairPhasesBuilder

      public RepairPhase.Builder addRepairPhasesBuilder(int index)
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getRepairPhasesBuilderList

      public List<RepairPhase.Builder> getRepairPhasesBuilderList()
       Output only. Records of the repair attempts. Each repair phase may have
       multiple retry attempts or single rollback attempt.
       
      repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPhaseId

      public String getPhaseId()
       Output only. The phase ID of the phase that includes the job being
       repaired.
       
      string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPhaseId in interface RepairRolloutOperationOrBuilder
      Returns:
      The phaseId.
    • getPhaseIdBytes

      public com.google.protobuf.ByteString getPhaseIdBytes()
       Output only. The phase ID of the phase that includes the job being
       repaired.
       
      string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPhaseIdBytes in interface RepairRolloutOperationOrBuilder
      Returns:
      The bytes for phaseId.
    • setPhaseId

      public RepairRolloutOperation.Builder setPhaseId(String value)
       Output only. The phase ID of the phase that includes the job being
       repaired.
       
      string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The phaseId to set.
      Returns:
      This builder for chaining.
    • clearPhaseId

      public RepairRolloutOperation.Builder clearPhaseId()
       Output only. The phase ID of the phase that includes the job being
       repaired.
       
      string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPhaseIdBytes

      public RepairRolloutOperation.Builder setPhaseIdBytes(com.google.protobuf.ByteString value)
       Output only. The phase ID of the phase that includes the job being
       repaired.
       
      string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for phaseId to set.
      Returns:
      This builder for chaining.
    • getJobId

      public String getJobId()
       Output only. The job ID for the Job to repair.
       
      string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getJobId in interface RepairRolloutOperationOrBuilder
      Returns:
      The jobId.
    • getJobIdBytes

      public com.google.protobuf.ByteString getJobIdBytes()
       Output only. The job ID for the Job to repair.
       
      string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getJobIdBytes in interface RepairRolloutOperationOrBuilder
      Returns:
      The bytes for jobId.
    • setJobId

      public RepairRolloutOperation.Builder setJobId(String value)
       Output only. The job ID for the Job to repair.
       
      string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The jobId to set.
      Returns:
      This builder for chaining.
    • clearJobId

      public RepairRolloutOperation.Builder clearJobId()
       Output only. The job ID for the Job to repair.
       
      string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setJobIdBytes

      public RepairRolloutOperation.Builder setJobIdBytes(com.google.protobuf.ByteString value)
       Output only. The job ID for the Job to repair.
       
      string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for jobId to set.
      Returns:
      This builder for chaining.