public static final class Retry.Builder extends GeneratedMessageV3.Builder<Retry.Builder> implements RetryOrBuilder
Retries the failed job.
Protobuf type google.cloud.deploy.v1.Retry
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Retry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
Type |
Description |
Retry |
|
buildPartial()
public Retry buildPartial()
Returns |
Type |
Description |
Retry |
|
clear()
public Retry.Builder clear()
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)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Retry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public Retry.Builder clone()
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];
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()
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Retry other)
public Retry.Builder mergeFrom(Retry other)
Parameter |
Name |
Description |
other |
Retry
|
public Retry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Retry.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Retry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Retry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Retry.Builder setUnknownFields(UnknownFieldSet unknownFields)
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
|
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
|