Interface RetryOrBuilder (1.38.0)

public interface RetryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAttempts()

public abstract 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
TypeDescription
long

The attempts.

getBackoffMode()

public abstract 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
TypeDescription
BackoffMode

The backoffMode.

getBackoffModeValue()

public abstract 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
TypeDescription
int

The enum numeric value on the wire for backoffMode.

getWait()

public abstract 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
TypeDescription
Duration

The wait.

getWaitOrBuilder()

public abstract 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];

Returns
TypeDescription
DurationOrBuilder

hasWait()

public abstract 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
TypeDescription
boolean

Whether the wait field is set.