Class RetryPhase.Builder (1.35.0)

public static final class RetryPhase.Builder extends GeneratedMessageV3.Builder<RetryPhase.Builder> implements RetryPhaseOrBuilder

RetryPhase contains the retry attempts and the metadata for initiating a new attempt.

Protobuf type google.cloud.deploy.v1.RetryPhase

Implements

RetryPhaseOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAttempts(Iterable<? extends RetryAttempt> values)

public RetryPhase.Builder addAllAttempts(Iterable<? extends RetryAttempt> values)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.deploy.v1.RetryAttempt>
Returns
TypeDescription
RetryPhase.Builder

addAttempts(RetryAttempt value)

public RetryPhase.Builder addAttempts(RetryAttempt value)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueRetryAttempt
Returns
TypeDescription
RetryPhase.Builder

addAttempts(RetryAttempt.Builder builderForValue)

public RetryPhase.Builder addAttempts(RetryAttempt.Builder builderForValue)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueRetryAttempt.Builder
Returns
TypeDescription
RetryPhase.Builder

addAttempts(int index, RetryAttempt value)

public RetryPhase.Builder addAttempts(int index, RetryAttempt value)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueRetryAttempt
Returns
TypeDescription
RetryPhase.Builder

addAttempts(int index, RetryAttempt.Builder builderForValue)

public RetryPhase.Builder addAttempts(int index, RetryAttempt.Builder builderForValue)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueRetryAttempt.Builder
Returns
TypeDescription
RetryPhase.Builder

addAttemptsBuilder()

public RetryAttempt.Builder addAttemptsBuilder()

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RetryAttempt.Builder

addAttemptsBuilder(int index)

public RetryAttempt.Builder addAttemptsBuilder(int index)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
RetryAttempt.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RetryPhase build()
Returns
TypeDescription
RetryPhase

buildPartial()

public RetryPhase buildPartial()
Returns
TypeDescription
RetryPhase

clear()

public RetryPhase.Builder clear()
Returns
TypeDescription
RetryPhase.Builder
Overrides

clearAttempts()

public RetryPhase.Builder clearAttempts()

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RetryPhase.Builder

clearBackoffMode()

public RetryPhase.Builder clearBackoffMode()

Output only. The pattern of how the wait time of the retry attempt is calculated.

.google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RetryPhase.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearJobId()

public RetryPhase.Builder clearJobId()

Output only. The job ID for the Job to retry.

string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RetryPhase.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RetryPhase.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RetryPhase.Builder
Overrides

clearPhaseId()

public RetryPhase.Builder clearPhaseId()

Output only. The phase ID of the phase that includes the job being retried.

string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RetryPhase.Builder

This builder for chaining.

clearTotalAttempts()

public RetryPhase.Builder clearTotalAttempts()

Output only. The number of attempts that have been made.

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

Returns
TypeDescription
RetryPhase.Builder

This builder for chaining.

clone()

public RetryPhase.Builder clone()
Returns
TypeDescription
RetryPhase.Builder
Overrides

getAttempts(int index)

public RetryAttempt getAttempts(int index)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
RetryAttempt

getAttemptsBuilder(int index)

public RetryAttempt.Builder getAttemptsBuilder(int index)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
RetryAttempt.Builder

getAttemptsBuilderList()

public List<RetryAttempt.Builder> getAttemptsBuilderList()

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getAttemptsCount()

public int getAttemptsCount()

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getAttemptsList()

public List<RetryAttempt> getAttemptsList()

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<RetryAttempt>

getAttemptsOrBuilder(int index)

public RetryAttemptOrBuilder getAttemptsOrBuilder(int index)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
RetryAttemptOrBuilder

getAttemptsOrBuilderList()

public List<? extends RetryAttemptOrBuilder> getAttemptsOrBuilderList()

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.deploy.v1.RetryAttemptOrBuilder>

getBackoffMode()

public BackoffMode getBackoffMode()

Output only. The pattern of how the wait time of the retry attempt is calculated.

.google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BackoffMode

The backoffMode.

getBackoffModeValue()

public int getBackoffModeValue()

Output only. The pattern of how the wait time of the retry attempt is calculated.

.google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for backoffMode.

getDefaultInstanceForType()

public RetryPhase getDefaultInstanceForType()
Returns
TypeDescription
RetryPhase

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getJobId()

public String getJobId()

Output only. The job ID for the Job to retry.

string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The jobId.

getJobIdBytes()

public ByteString getJobIdBytes()

Output only. The job ID for the Job to retry.

string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for jobId.

getPhaseId()

public String getPhaseId()

Output only. The phase ID of the phase that includes the job being retried.

string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The phaseId.

getPhaseIdBytes()

public ByteString getPhaseIdBytes()

Output only. The phase ID of the phase that includes the job being retried.

string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for phaseId.

getTotalAttempts()

public long getTotalAttempts()

Output only. The number of attempts that have been made.

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

Returns
TypeDescription
long

The totalAttempts.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RetryPhase other)

public RetryPhase.Builder mergeFrom(RetryPhase other)
Parameter
NameDescription
otherRetryPhase
Returns
TypeDescription
RetryPhase.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RetryPhase.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RetryPhase.Builder
Overrides

removeAttempts(int index)

public RetryPhase.Builder removeAttempts(int index)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
RetryPhase.Builder

setAttempts(int index, RetryAttempt value)

public RetryPhase.Builder setAttempts(int index, RetryAttempt value)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueRetryAttempt
Returns
TypeDescription
RetryPhase.Builder

setAttempts(int index, RetryAttempt.Builder builderForValue)

public RetryPhase.Builder setAttempts(int index, RetryAttempt.Builder builderForValue)

Output only. Detail of a retry action.

repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueRetryAttempt.Builder
Returns
TypeDescription
RetryPhase.Builder

setBackoffMode(BackoffMode value)

public RetryPhase.Builder setBackoffMode(BackoffMode value)

Output only. The pattern of how the wait time of the retry attempt is calculated.

.google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueBackoffMode

The backoffMode to set.

Returns
TypeDescription
RetryPhase.Builder

This builder for chaining.

setBackoffModeValue(int value)

public RetryPhase.Builder setBackoffModeValue(int value)

Output only. The pattern of how the wait time of the retry attempt is calculated.

.google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
RetryPhase.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setJobId(String value)

public RetryPhase.Builder setJobId(String value)

Output only. The job ID for the Job to retry.

string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The jobId to set.

Returns
TypeDescription
RetryPhase.Builder

This builder for chaining.

setJobIdBytes(ByteString value)

public RetryPhase.Builder setJobIdBytes(ByteString value)

Output only. The job ID for the Job to retry.

string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for jobId to set.

Returns
TypeDescription
RetryPhase.Builder

This builder for chaining.

setPhaseId(String value)

public RetryPhase.Builder setPhaseId(String value)

Output only. The phase ID of the phase that includes the job being retried.

string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The phaseId to set.

Returns
TypeDescription
RetryPhase.Builder

This builder for chaining.

setPhaseIdBytes(ByteString value)

public RetryPhase.Builder setPhaseIdBytes(ByteString value)

Output only. The phase ID of the phase that includes the job being retried.

string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for phaseId to set.

Returns
TypeDescription
RetryPhase.Builder

This builder for chaining.

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

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

setTotalAttempts(long value)

public RetryPhase.Builder setTotalAttempts(long value)

Output only. The number of attempts that have been made.

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

Parameter
NameDescription
valuelong

The totalAttempts to set.

Returns
TypeDescription
RetryPhase.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RetryPhase.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RetryPhase.Builder
Overrides