Class RetryAttempt.Builder (1.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RetryAttempt build()
Returns
TypeDescription
RetryAttempt

buildPartial()

public RetryAttempt buildPartial()
Returns
TypeDescription
RetryAttempt

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

The attempt.

getDefaultInstanceForType()

public RetryAttempt getDefaultInstanceForType()
Returns
TypeDescription
RetryAttempt

getDescriptorForType()

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

public RetryAttempt.Builder mergeFrom(RetryAttempt other)
Parameter
NameDescription
otherRetryAttempt
Returns
TypeDescription
RetryAttempt.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The attempt to set.

Returns
TypeDescription
RetryAttempt.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public RetryAttempt.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRepairState

The state to set.

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

The stateDesc to set.

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

The bytes for stateDesc to set.

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

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

Returns
TypeDescription
RetryAttempt.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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