Class RetryPhase.Builder (1.42.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.deploy.v1.RetryAttempt>
Returns
Type Description
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
Name Description
value RetryAttempt
Returns
Type Description
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
Name Description
builderForValue RetryAttempt.Builder
Returns
Type Description
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
Name Description
index int
value RetryAttempt
Returns
Type Description
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
Name Description
index int
builderForValue RetryAttempt.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
RetryAttempt.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RetryPhase build()
Returns
Type Description
RetryPhase

buildPartial()

public RetryPhase buildPartial()
Returns
Type Description
RetryPhase

clear()

public RetryPhase.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
RetryPhase.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RetryPhase.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
RetryPhase.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RetryPhase.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
RetryPhase.Builder

This builder for chaining.

clone()

public RetryPhase.Builder clone()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for backoffMode.

getDefaultInstanceForType()

public RetryPhase getDefaultInstanceForType()
Returns
Type Description
RetryPhase

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
long

The totalAttempts.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RetryPhase other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RetryPhase.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
value RetryAttempt
Returns
Type Description
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
Name Description
index int
builderForValue RetryAttempt.Builder
Returns
Type Description
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
Name Description
value BackoffMode

The backoffMode to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
RetryPhase.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RetryPhase.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The jobId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for jobId to set.

Returns
Type Description
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
Name Description
value String

The phaseId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for phaseId to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value long

The totalAttempts to set.

Returns
Type Description
RetryPhase.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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