Class Retry.Builder (1.81.0)

public static final class Retry.Builder extends GeneratedMessage.Builder<Retry.Builder> implements RetryOrBuilder

Retries the failed job.

Protobuf type google.cloud.deploy.v1.Retry

Implements

RetryOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Retry build()
Returns
Type Description
Retry

buildPartial()

public Retry buildPartial()
Returns
Type Description
Retry

clear()

public Retry.Builder clear()
Returns
Type Description
Retry.Builder
Overrides

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
Type Description
Retry.Builder

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
Type Description
Retry.Builder

This builder for chaining.

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

Returns
Type Description
Retry.Builder

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

Returns
Type Description
long

The attempts.

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

Returns
Type Description
BackoffMode

The backoffMode.

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

Returns
Type Description
int

The enum numeric value on the wire for backoffMode.

getDefaultInstanceForType()

public Retry getDefaultInstanceForType()
Returns
Type Description
Retry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getWait()

public 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
Type Description
Duration

The wait.

getWaitBuilder()

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

Returns
Type Description
Builder

getWaitOrBuilder()

public 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
Type Description
DurationOrBuilder

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

Returns
Type Description
boolean

Whether the wait field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Retry other)

public Retry.Builder mergeFrom(Retry other)
Parameter
Name Description
other Retry
Returns
Type Description
Retry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Retry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Retry.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Retry.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Retry.Builder
Overrides

mergeWait(Duration value)

public Retry.Builder mergeWait(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];

Parameter
Name Description
value Duration
Returns
Type Description
Retry.Builder

setAttempts(long value)

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

Parameter
Name Description
value long

The attempts to set.

Returns
Type Description
Retry.Builder

This builder for chaining.

setBackoffMode(BackoffMode value)

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

Parameter
Name Description
value BackoffMode

The backoffMode to set.

Returns
Type Description
Retry.Builder

This builder for chaining.

setBackoffModeValue(int value)

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

Parameter
Name Description
value int

The enum numeric value on the wire for backoffMode to set.

Returns
Type Description
Retry.Builder

This builder for chaining.

setWait(Duration value)

public Retry.Builder setWait(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];

Parameter
Name Description
value Duration
Returns
Type Description
Retry.Builder

setWait(Duration.Builder builderForValue)

public Retry.Builder setWait(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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Retry.Builder