Class RetryAttempt.Builder

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

public static final class RetryAttempt.Builder extends com.google.protobuf.GeneratedMessage.Builder<RetryAttempt.Builder> implements RetryAttemptOrBuilder
 RetryAttempt represents an action of retrying the failed Cloud Deploy job.
 
Protobuf type google.cloud.deploy.v1.RetryAttempt
  • 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<RetryAttempt.Builder>
    • clear

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

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

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

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

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

      public RetryAttempt.Builder mergeFrom(RetryAttempt other)
    • isInitialized

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

      public RetryAttempt.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<RetryAttempt.Builder>
      Throws:
      IOException
    • getAttempt

      public long getAttempt()
       Output only. The index of this retry attempt.
       
      int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttempt in interface RetryAttemptOrBuilder
      Returns:
      The attempt.
    • setAttempt

      public RetryAttempt.Builder setAttempt(long value)
       Output only. The index of this retry attempt.
       
      int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The attempt to set.
      Returns:
      This builder for chaining.
    • clearAttempt

      public RetryAttempt.Builder clearAttempt()
       Output only. The index of this retry attempt.
       
      int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      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 RetryAttemptOrBuilder
      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 RetryAttemptOrBuilder
      Returns:
      The wait.
    • setWait

      public RetryAttempt.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 RetryAttempt.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 RetryAttempt.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 RetryAttempt.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 RetryAttemptOrBuilder
    • getStateValue

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

      public RetryAttempt.Builder setStateValue(int value)
       Output only. Valid state of this retry action.
       
      .google.cloud.deploy.v1.RepairState state = 5 [(.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 retry action.
       
      .google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface RetryAttemptOrBuilder
      Returns:
      The state.
    • setState

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

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

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

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

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

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

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