Class RollbackTargetConfig.Builder

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

public static final class RollbackTargetConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<RollbackTargetConfig.Builder> implements RollbackTargetConfigOrBuilder
 Configs for the Rollback rollout.
 
Protobuf type google.cloud.deploy.v1.RollbackTargetConfig
  • 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<RollbackTargetConfig.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<RollbackTargetConfig.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<RollbackTargetConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RollbackTargetConfig.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<RollbackTargetConfig.Builder>
      Throws:
      IOException
    • hasRollout

      public boolean hasRollout()
       Optional. The rollback `Rollout` to create.
       
      .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRollout in interface RollbackTargetConfigOrBuilder
      Returns:
      Whether the rollout field is set.
    • getRollout

      public Rollout getRollout()
       Optional. The rollback `Rollout` to create.
       
      .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRollout in interface RollbackTargetConfigOrBuilder
      Returns:
      The rollout.
    • setRollout

      public RollbackTargetConfig.Builder setRollout(Rollout value)
       Optional. The rollback `Rollout` to create.
       
      .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setRollout

      public RollbackTargetConfig.Builder setRollout(Rollout.Builder builderForValue)
       Optional. The rollback `Rollout` to create.
       
      .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRollout

      public RollbackTargetConfig.Builder mergeRollout(Rollout value)
       Optional. The rollback `Rollout` to create.
       
      .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearRollout

      public RollbackTargetConfig.Builder clearRollout()
       Optional. The rollback `Rollout` to create.
       
      .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getRolloutBuilder

      public Rollout.Builder getRolloutBuilder()
       Optional. The rollback `Rollout` to create.
       
      .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getRolloutOrBuilder

      public RolloutOrBuilder getRolloutOrBuilder()
       Optional. The rollback `Rollout` to create.
       
      .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRolloutOrBuilder in interface RollbackTargetConfigOrBuilder
    • getStartingPhaseId

      public String getStartingPhaseId()
       Optional. The starting phase ID for the `Rollout`. If unspecified, the
       `Rollout` will start in the stable phase.
       
      string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStartingPhaseId in interface RollbackTargetConfigOrBuilder
      Returns:
      The startingPhaseId.
    • getStartingPhaseIdBytes

      public com.google.protobuf.ByteString getStartingPhaseIdBytes()
       Optional. The starting phase ID for the `Rollout`. If unspecified, the
       `Rollout` will start in the stable phase.
       
      string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStartingPhaseIdBytes in interface RollbackTargetConfigOrBuilder
      Returns:
      The bytes for startingPhaseId.
    • setStartingPhaseId

      public RollbackTargetConfig.Builder setStartingPhaseId(String value)
       Optional. The starting phase ID for the `Rollout`. If unspecified, the
       `Rollout` will start in the stable phase.
       
      string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The startingPhaseId to set.
      Returns:
      This builder for chaining.
    • clearStartingPhaseId

      public RollbackTargetConfig.Builder clearStartingPhaseId()
       Optional. The starting phase ID for the `Rollout`. If unspecified, the
       `Rollout` will start in the stable phase.
       
      string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setStartingPhaseIdBytes

      public RollbackTargetConfig.Builder setStartingPhaseIdBytes(com.google.protobuf.ByteString value)
       Optional. The starting phase ID for the `Rollout`. If unspecified, the
       `Rollout` will start in the stable phase.
       
      string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for startingPhaseId to set.
      Returns:
      This builder for chaining.