Class RetryPhase.Builder

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

public static final class RetryPhase.Builder extends com.google.protobuf.GeneratedMessage.Builder<RetryPhase.Builder> implements RetryPhaseOrBuilder
 RetryPhase contains the retry attempts and the metadata for initiating a
 new attempt.
 
Protobuf type google.cloud.deploy.v1.RetryPhase
  • 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<RetryPhase.Builder>
    • clear

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

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

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

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

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

      public RetryPhase.Builder mergeFrom(RetryPhase other)
    • isInitialized

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

      public RetryPhase.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<RetryPhase.Builder>
      Throws:
      IOException
    • getTotalAttempts

      public long getTotalAttempts()
       Output only. The number of attempts that have been made.
       
      int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTotalAttempts in interface RetryPhaseOrBuilder
      Returns:
      The totalAttempts.
    • setTotalAttempts

      public RetryPhase.Builder setTotalAttempts(long value)
       Output only. The number of attempts that have been made.
       
      int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The totalAttempts to set.
      Returns:
      This builder for chaining.
    • clearTotalAttempts

      public RetryPhase.Builder clearTotalAttempts()
       Output only. The number of attempts that have been made.
       
      int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getBackoffModeValue

      public int getBackoffModeValue()
       Output only. The pattern of how the wait time of the retry attempt is
       calculated.
       
      .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackoffModeValue in interface RetryPhaseOrBuilder
      Returns:
      The enum numeric value on the wire for backoffMode.
    • setBackoffModeValue

      public RetryPhase.Builder setBackoffModeValue(int value)
       Output only. The pattern of how the wait time of the retry attempt is
       calculated.
       
      .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for backoffMode to set.
      Returns:
      This builder for chaining.
    • getBackoffMode

      public BackoffMode getBackoffMode()
       Output only. The pattern of how the wait time of the retry attempt is
       calculated.
       
      .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackoffMode in interface RetryPhaseOrBuilder
      Returns:
      The backoffMode.
    • setBackoffMode

      public RetryPhase.Builder setBackoffMode(BackoffMode value)
       Output only. The pattern of how the wait time of the retry attempt is
       calculated.
       
      .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The backoffMode to set.
      Returns:
      This builder for chaining.
    • clearBackoffMode

      public RetryPhase.Builder clearBackoffMode()
       Output only. The pattern of how the wait time of the retry attempt is
       calculated.
       
      .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getAttemptsList

      public List<RetryAttempt> getAttemptsList()
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttemptsList in interface RetryPhaseOrBuilder
    • getAttemptsCount

      public int getAttemptsCount()
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttemptsCount in interface RetryPhaseOrBuilder
    • getAttempts

      public RetryAttempt getAttempts(int index)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttempts in interface RetryPhaseOrBuilder
    • setAttempts

      public RetryPhase.Builder setAttempts(int index, RetryAttempt value)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setAttempts

      public RetryPhase.Builder setAttempts(int index, RetryAttempt.Builder builderForValue)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAttempts

      public RetryPhase.Builder addAttempts(RetryAttempt value)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAttempts

      public RetryPhase.Builder addAttempts(int index, RetryAttempt value)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAttempts

      public RetryPhase.Builder addAttempts(RetryAttempt.Builder builderForValue)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAttempts

      public RetryPhase.Builder addAttempts(int index, RetryAttempt.Builder builderForValue)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllAttempts

      public RetryPhase.Builder addAllAttempts(Iterable<? extends RetryAttempt> values)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearAttempts

      public RetryPhase.Builder clearAttempts()
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeAttempts

      public RetryPhase.Builder removeAttempts(int index)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAttemptsBuilder

      public RetryAttempt.Builder getAttemptsBuilder(int index)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAttemptsOrBuilder

      public RetryAttemptOrBuilder getAttemptsOrBuilder(int index)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttemptsOrBuilder in interface RetryPhaseOrBuilder
    • getAttemptsOrBuilderList

      public List<? extends RetryAttemptOrBuilder> getAttemptsOrBuilderList()
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttemptsOrBuilderList in interface RetryPhaseOrBuilder
    • addAttemptsBuilder

      public RetryAttempt.Builder addAttemptsBuilder()
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAttemptsBuilder

      public RetryAttempt.Builder addAttemptsBuilder(int index)
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAttemptsBuilderList

      public List<RetryAttempt.Builder> getAttemptsBuilderList()
       Output only. Detail of a retry action.
       
      repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];