Class RollbackAttempt.Builder

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

public static final class RollbackAttempt.Builder extends com.google.protobuf.GeneratedMessage.Builder<RollbackAttempt.Builder> implements RollbackAttemptOrBuilder
 RollbackAttempt represents an action of rolling back a Cloud Deploy 'Target'.
 
Protobuf type google.cloud.deploy.v1.RollbackAttempt
  • 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<RollbackAttempt.Builder>
    • clear

      public RollbackAttempt.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<RollbackAttempt.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<RollbackAttempt.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RollbackAttempt.Builder mergeFrom(RollbackAttempt other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RollbackAttempt.Builder>
    • mergeFrom

      public RollbackAttempt.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<RollbackAttempt.Builder>
      Throws:
      IOException
    • getDestinationPhase

      public String getDestinationPhase()
       Output only. The phase to which the rollout will be rolled back to.
       
      string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDestinationPhase in interface RollbackAttemptOrBuilder
      Returns:
      The destinationPhase.
    • getDestinationPhaseBytes

      public com.google.protobuf.ByteString getDestinationPhaseBytes()
       Output only. The phase to which the rollout will be rolled back to.
       
      string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDestinationPhaseBytes in interface RollbackAttemptOrBuilder
      Returns:
      The bytes for destinationPhase.
    • setDestinationPhase

      public RollbackAttempt.Builder setDestinationPhase(String value)
       Output only. The phase to which the rollout will be rolled back to.
       
      string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The destinationPhase to set.
      Returns:
      This builder for chaining.
    • clearDestinationPhase

      public RollbackAttempt.Builder clearDestinationPhase()
       Output only. The phase to which the rollout will be rolled back to.
       
      string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDestinationPhaseBytes

      public RollbackAttempt.Builder setDestinationPhaseBytes(com.google.protobuf.ByteString value)
       Output only. The phase to which the rollout will be rolled back to.
       
      string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for destinationPhase to set.
      Returns:
      This builder for chaining.
    • getRolloutId

      public String getRolloutId()
       Output only. ID of the rollback `Rollout` to create.
       
      string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRolloutId in interface RollbackAttemptOrBuilder
      Returns:
      The rolloutId.
    • getRolloutIdBytes

      public com.google.protobuf.ByteString getRolloutIdBytes()
       Output only. ID of the rollback `Rollout` to create.
       
      string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRolloutIdBytes in interface RollbackAttemptOrBuilder
      Returns:
      The bytes for rolloutId.
    • setRolloutId

      public RollbackAttempt.Builder setRolloutId(String value)
       Output only. ID of the rollback `Rollout` to create.
       
      string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The rolloutId to set.
      Returns:
      This builder for chaining.
    • clearRolloutId

      public RollbackAttempt.Builder clearRolloutId()
       Output only. ID of the rollback `Rollout` to create.
       
      string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setRolloutIdBytes

      public RollbackAttempt.Builder setRolloutIdBytes(com.google.protobuf.ByteString value)
       Output only. ID of the rollback `Rollout` to create.
       
      string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for rolloutId to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. Valid state of this rollback action.
       
      .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface RollbackAttemptOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public RollbackAttempt.Builder setStateValue(int value)
       Output only. Valid state of this rollback action.
       
      .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public RepairState getState()
       Output only. Valid state of this rollback action.
       
      .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface RollbackAttemptOrBuilder
      Returns:
      The state.
    • setState

      public RollbackAttempt.Builder setState(RepairState value)
       Output only. Valid state of this rollback action.
       
      .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public RollbackAttempt.Builder clearState()
       Output only. Valid state of this rollback action.
       
      .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStateDesc

      public String getStateDesc()
       Output only. Description of the state of the Rollback.
       
      string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateDesc in interface RollbackAttemptOrBuilder
      Returns:
      The stateDesc.
    • getStateDescBytes

      public com.google.protobuf.ByteString getStateDescBytes()
       Output only. Description of the state of the Rollback.
       
      string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateDescBytes in interface RollbackAttemptOrBuilder
      Returns:
      The bytes for stateDesc.
    • setStateDesc

      public RollbackAttempt.Builder setStateDesc(String value)
       Output only. Description of the state of the Rollback.
       
      string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The stateDesc to set.
      Returns:
      This builder for chaining.
    • clearStateDesc

      public RollbackAttempt.Builder clearStateDesc()
       Output only. Description of the state of the Rollback.
       
      string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setStateDescBytes

      public RollbackAttempt.Builder setStateDescBytes(com.google.protobuf.ByteString value)
       Output only. Description of the state of the Rollback.
       
      string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for stateDesc to set.
      Returns:
      This builder for chaining.
    • getDisableRollbackIfRolloutPending

      public boolean getDisableRollbackIfRolloutPending()
       Output only. If active rollout exists on the target, abort this rollback.
       
      bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisableRollbackIfRolloutPending in interface RollbackAttemptOrBuilder
      Returns:
      The disableRollbackIfRolloutPending.
    • setDisableRollbackIfRolloutPending

      public RollbackAttempt.Builder setDisableRollbackIfRolloutPending(boolean value)
       Output only. If active rollout exists on the target, abort this rollback.
       
      bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The disableRollbackIfRolloutPending to set.
      Returns:
      This builder for chaining.
    • clearDisableRollbackIfRolloutPending

      public RollbackAttempt.Builder clearDisableRollbackIfRolloutPending()
       Output only. If active rollout exists on the target, abort this rollback.
       
      bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.