Class Retry.Builder

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

public static final class Retry.Builder extends com.google.protobuf.GeneratedMessage.Builder<Retry.Builder> implements RetryOrBuilder
 Retries the failed job.
 
Protobuf type google.cloud.deploy.v1.Retry
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Required.
    Optional.
    Optional.
    long
    Required.
    Optional.
    int
    Optional.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Duration
    Optional.
    com.google.protobuf.Duration.Builder
    Optional.
    com.google.protobuf.DurationOrBuilder
    Optional.
    boolean
    Optional.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeWait(com.google.protobuf.Duration value)
    Optional.
    setAttempts(long value)
    Required.
    Optional.
    Optional.
    setWait(com.google.protobuf.Duration value)
    Optional.
    setWait(com.google.protobuf.Duration.Builder builderForValue)
    Optional.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Retry.Builder>
    • clear

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

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

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

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

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

      public Retry.Builder mergeFrom(Retry other)
    • isInitialized

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

      public Retry.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<Retry.Builder>
      Throws:
      IOException
    • getAttempts

      public long getAttempts()
       Required. Total number of retries. Retry is skipped if set to 0; The
       minimum value is 1, and the maximum value is 10.
       
      int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAttempts in interface RetryOrBuilder
      Returns:
      The attempts.
    • setAttempts

      public Retry.Builder setAttempts(long value)
       Required. Total number of retries. Retry is skipped if set to 0; The
       minimum value is 1, and the maximum value is 10.
       
      int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The attempts to set.
      Returns:
      This builder for chaining.
    • clearAttempts

      public Retry.Builder clearAttempts()
       Required. Total number of retries. Retry is skipped if set to 0; The
       minimum value is 1, and the maximum value is 10.
       
      int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasWait

      public boolean hasWait()
       Optional. How long to wait for the first retry. Default is 0, and the
       maximum value is 14d.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasWait in interface RetryOrBuilder
      Returns:
      Whether the wait field is set.
    • getWait

      public com.google.protobuf.Duration getWait()
       Optional. How long to wait for the first retry. Default is 0, and the
       maximum value is 14d.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWait in interface RetryOrBuilder
      Returns:
      The wait.
    • setWait

      public Retry.Builder setWait(com.google.protobuf.Duration value)
       Optional. How long to wait for the first retry. Default is 0, and the
       maximum value is 14d.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setWait

      public Retry.Builder setWait(com.google.protobuf.Duration.Builder builderForValue)
       Optional. How long to wait for the first retry. Default is 0, and the
       maximum value is 14d.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeWait

      public Retry.Builder mergeWait(com.google.protobuf.Duration value)
       Optional. How long to wait for the first retry. Default is 0, and the
       maximum value is 14d.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearWait

      public Retry.Builder clearWait()
       Optional. How long to wait for the first retry. Default is 0, and the
       maximum value is 14d.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getWaitBuilder

      public com.google.protobuf.Duration.Builder getWaitBuilder()
       Optional. How long to wait for the first retry. Default is 0, and the
       maximum value is 14d.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getWaitOrBuilder

      public com.google.protobuf.DurationOrBuilder getWaitOrBuilder()
       Optional. How long to wait for the first retry. Default is 0, and the
       maximum value is 14d.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWaitOrBuilder in interface RetryOrBuilder
    • getBackoffModeValue

      public int getBackoffModeValue()
       Optional. The pattern of how wait time will be increased. Default is
       linear. Backoff mode will be ignored if `wait` is 0.
       
      .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBackoffModeValue in interface RetryOrBuilder
      Returns:
      The enum numeric value on the wire for backoffMode.
    • setBackoffModeValue

      public Retry.Builder setBackoffModeValue(int value)
       Optional. The pattern of how wait time will be increased. Default is
       linear. Backoff mode will be ignored if `wait` is 0.
       
      .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for backoffMode to set.
      Returns:
      This builder for chaining.
    • getBackoffMode

      public BackoffMode getBackoffMode()
       Optional. The pattern of how wait time will be increased. Default is
       linear. Backoff mode will be ignored if `wait` is 0.
       
      .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBackoffMode in interface RetryOrBuilder
      Returns:
      The backoffMode.
    • setBackoffMode

      public Retry.Builder setBackoffMode(BackoffMode value)
       Optional. The pattern of how wait time will be increased. Default is
       linear. Backoff mode will be ignored if `wait` is 0.
       
      .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The backoffMode to set.
      Returns:
      This builder for chaining.
    • clearBackoffMode

      public Retry.Builder clearBackoffMode()
       Optional. The pattern of how wait time will be increased. Default is
       linear. Backoff mode will be ignored if `wait` is 0.
       
      .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.