Class Retry.Builder (1.42.0)

public static final class Retry.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Retry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Retry.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public Retry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Retry.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Retry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Retry.Builder
Overrides

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Retry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public Retry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Retry.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Retry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Retry.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Retry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Retry.Builder
Overrides

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