Interface RetryOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Retry, Retry.Builder

@Generated public interface RetryOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Required.
    Optional.
    int
    Optional.
    com.google.protobuf.Duration
    Optional.
    com.google.protobuf.DurationOrBuilder
    Optional.
    boolean
    Optional.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getAttempts

      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];
      Returns:
      The attempts.
    • hasWait

      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];
      Returns:
      Whether the wait field is set.
    • getWait

      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];
      Returns:
      The wait.
    • getWaitOrBuilder

      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];
    • getBackoffModeValue

      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];
      Returns:
      The enum numeric value on the wire for backoffMode.
    • getBackoffMode

      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];
      Returns:
      The backoffMode.