Class Retry.Builder (1.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Retry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Retry.Builder
Overrides

build()

public Retry build()
Returns
TypeDescription
Retry

buildPartial()

public Retry buildPartial()
Returns
TypeDescription
Retry

clear()

public Retry.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Retry.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Retry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Retry.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Retry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Retry.Builder

clone()

public Retry.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for backoffMode.

getDefaultInstanceForType()

public Retry getDefaultInstanceForType()
Returns
TypeDescription
Retry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the wait field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Retry other)

public Retry.Builder mergeFrom(Retry other)
Parameter
NameDescription
otherRetry
Returns
TypeDescription
Retry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Retry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Retry.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Retry.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Retry.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Retry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
valuelong

The attempts to set.

Returns
TypeDescription
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
NameDescription
valueBackoffMode

The backoffMode to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Retry.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Retry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Retry.Builder
Overrides

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

public Retry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Retry.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Retry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Retry.Builder