Class AdvanceRolloutOperation.Builder

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

public static final class AdvanceRolloutOperation.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdvanceRolloutOperation.Builder> implements AdvanceRolloutOperationOrBuilder
 Contains the information of an automated advance-rollout operation.
 
Protobuf type google.cloud.deploy.v1.AdvanceRolloutOperation
  • 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<AdvanceRolloutOperation.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<AdvanceRolloutOperation.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<AdvanceRolloutOperation.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AdvanceRolloutOperation.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<AdvanceRolloutOperation.Builder>
      Throws:
      IOException
    • getSourcePhase

      public String getSourcePhase()
       Output only. The phase of a deployment that initiated the operation.
       
      string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourcePhase in interface AdvanceRolloutOperationOrBuilder
      Returns:
      The sourcePhase.
    • getSourcePhaseBytes

      public com.google.protobuf.ByteString getSourcePhaseBytes()
       Output only. The phase of a deployment that initiated the operation.
       
      string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourcePhaseBytes in interface AdvanceRolloutOperationOrBuilder
      Returns:
      The bytes for sourcePhase.
    • setSourcePhase

      public AdvanceRolloutOperation.Builder setSourcePhase(String value)
       Output only. The phase of a deployment that initiated the operation.
       
      string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The sourcePhase to set.
      Returns:
      This builder for chaining.
    • clearSourcePhase

      public AdvanceRolloutOperation.Builder clearSourcePhase()
       Output only. The phase of a deployment that initiated the operation.
       
      string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSourcePhaseBytes

      public AdvanceRolloutOperation.Builder setSourcePhaseBytes(com.google.protobuf.ByteString value)
       Output only. The phase of a deployment that initiated the operation.
       
      string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for sourcePhase to set.
      Returns:
      This builder for chaining.
    • hasWait

      public boolean hasWait()
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasWait in interface AdvanceRolloutOperationOrBuilder
      Returns:
      Whether the wait field is set.
    • getWait

      public com.google.protobuf.Duration getWait()
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWait in interface AdvanceRolloutOperationOrBuilder
      Returns:
      The wait.
    • setWait

      public AdvanceRolloutOperation.Builder setWait(com.google.protobuf.Duration value)
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setWait

      public AdvanceRolloutOperation.Builder setWait(com.google.protobuf.Duration.Builder builderForValue)
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeWait

      public AdvanceRolloutOperation.Builder mergeWait(com.google.protobuf.Duration value)
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearWait

      public AdvanceRolloutOperation.Builder clearWait()
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getWaitBuilder

      public com.google.protobuf.Duration.Builder getWaitBuilder()
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getWaitOrBuilder

      public com.google.protobuf.DurationOrBuilder getWaitOrBuilder()
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWaitOrBuilder in interface AdvanceRolloutOperationOrBuilder
    • getRollout

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

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

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

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

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

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

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

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

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

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