Class RetryAttempt.Builder (1.52.0)

public static final class RetryAttempt.Builder extends GeneratedMessageV3.Builder<RetryAttempt.Builder> implements RetryAttemptOrBuilder

RetryAttempt represents an action of retrying the failed Cloud Deploy job.

Protobuf type google.cloud.deploy.v1.RetryAttempt

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RetryAttempt build()
Returns
Type Description
RetryAttempt

buildPartial()

public RetryAttempt buildPartial()
Returns
Type Description
RetryAttempt

clear()

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

clearAttempt()

public RetryAttempt.Builder clearAttempt()

Output only. The index of this retry attempt.

int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RetryAttempt.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public RetryAttempt.Builder clearState()

Output only. Valid state of this retry action.

.google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RetryAttempt.Builder

This builder for chaining.

clearStateDesc()

public RetryAttempt.Builder clearStateDesc()

Output only. Description of the state of the Retry.

string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RetryAttempt.Builder

This builder for chaining.

clearWait()

public RetryAttempt.Builder clearWait()

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RetryAttempt.Builder

clone()

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

getAttempt()

public long getAttempt()

Output only. The index of this retry attempt.

int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The attempt.

getDefaultInstanceForType()

public RetryAttempt getDefaultInstanceForType()
Returns
Type Description
RetryAttempt

getDescriptorForType()

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

getState()

public RepairState getState()

Output only. Valid state of this retry action.

.google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RepairState

The state.

getStateDesc()

public String getStateDesc()

Output only. Description of the state of the Retry.

string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The stateDesc.

getStateDescBytes()

public ByteString getStateDescBytes()

Output only. Description of the state of the Retry.

string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for stateDesc.

getStateValue()

public int getStateValue()

Output only. Valid state of this retry action.

.google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getWait()

public Duration getWait()

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Duration

The wait.

getWaitBuilder()

public Duration.Builder getWaitBuilder()

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getWaitOrBuilder()

public DurationOrBuilder getWaitOrBuilder()

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DurationOrBuilder

hasWait()

public boolean hasWait()

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

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(RetryAttempt other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RetryAttempt.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RetryAttempt.Builder
Overrides

mergeWait(Duration value)

public RetryAttempt.Builder mergeWait(Duration value)

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
RetryAttempt.Builder

setAttempt(long value)

public RetryAttempt.Builder setAttempt(long value)

Output only. The index of this retry attempt.

int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The attempt to set.

Returns
Type Description
RetryAttempt.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(RepairState value)

public RetryAttempt.Builder setState(RepairState value)

Output only. Valid state of this retry action.

.google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value RepairState

The state to set.

Returns
Type Description
RetryAttempt.Builder

This builder for chaining.

setStateDesc(String value)

public RetryAttempt.Builder setStateDesc(String value)

Output only. Description of the state of the Retry.

string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The stateDesc to set.

Returns
Type Description
RetryAttempt.Builder

This builder for chaining.

setStateDescBytes(ByteString value)

public RetryAttempt.Builder setStateDescBytes(ByteString value)

Output only. Description of the state of the Retry.

string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for stateDesc to set.

Returns
Type Description
RetryAttempt.Builder

This builder for chaining.

setStateValue(int value)

public RetryAttempt.Builder setStateValue(int value)

Output only. Valid state of this retry action.

.google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
RetryAttempt.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setWait(Duration value)

public RetryAttempt.Builder setWait(Duration value)

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
RetryAttempt.Builder

setWait(Duration.Builder builderForValue)

public RetryAttempt.Builder setWait(Duration.Builder builderForValue)

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RetryAttempt.Builder