Class Rollback.Builder

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

public static final class Rollback.Builder extends com.google.protobuf.GeneratedMessage.Builder<Rollback.Builder> implements RollbackOrBuilder
 Rolls back a `Rollout`.
 
Protobuf type google.cloud.deploy.v1.Rollback
  • 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<Rollback.Builder>
    • clear

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

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

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

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

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

      public Rollback.Builder mergeFrom(Rollback other)
    • isInitialized

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

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

      public String getDestinationPhase()
       Optional. The starting phase ID for the `Rollout`. If unspecified, the
       `Rollout` will start in the stable phase.
       
      string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationPhase in interface RollbackOrBuilder
      Returns:
      The destinationPhase.
    • getDestinationPhaseBytes

      public com.google.protobuf.ByteString getDestinationPhaseBytes()
       Optional. The starting phase ID for the `Rollout`. If unspecified, the
       `Rollout` will start in the stable phase.
       
      string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationPhaseBytes in interface RollbackOrBuilder
      Returns:
      The bytes for destinationPhase.
    • setDestinationPhase

      public Rollback.Builder setDestinationPhase(String value)
       Optional. The starting phase ID for the `Rollout`. If unspecified, the
       `Rollout` will start in the stable phase.
       
      string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The destinationPhase to set.
      Returns:
      This builder for chaining.
    • clearDestinationPhase

      public Rollback.Builder clearDestinationPhase()
       Optional. The starting phase ID for the `Rollout`. If unspecified, the
       `Rollout` will start in the stable phase.
       
      string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDestinationPhaseBytes

      public Rollback.Builder setDestinationPhaseBytes(com.google.protobuf.ByteString value)
       Optional. The starting phase ID for the `Rollout`. If unspecified, the
       `Rollout` will start in the stable phase.
       
      string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for destinationPhase to set.
      Returns:
      This builder for chaining.
    • getDisableRollbackIfRolloutPending

      public boolean getDisableRollbackIfRolloutPending()
       Optional. If pending rollout exists on the target, the rollback operation
       will be aborted.
       
      bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisableRollbackIfRolloutPending in interface RollbackOrBuilder
      Returns:
      The disableRollbackIfRolloutPending.
    • setDisableRollbackIfRolloutPending

      public Rollback.Builder setDisableRollbackIfRolloutPending(boolean value)
       Optional. If pending rollout exists on the target, the rollback operation
       will be aborted.
       
      bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The disableRollbackIfRolloutPending to set.
      Returns:
      This builder for chaining.
    • clearDisableRollbackIfRolloutPending

      public Rollback.Builder clearDisableRollbackIfRolloutPending()
       Optional. If pending rollout exists on the target, the rollback operation
       will be aborted.
       
      bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.