public static final class RetryAttempt.Builder extends GeneratedMessage.Builder<RetryAttempt.Builder> implements RetryAttemptOrBuilderRetryAttempt represents an action of retrying the failed Cloud Deploy job.
Protobuf type google.cloud.deploy.v1.RetryAttempt
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RetryAttempt.BuilderImplements
RetryAttemptOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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 |
|
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RetryAttempt.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RetryAttempt.Builder |
|
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 |
longThe attempt to set. |
| Returns | |
|---|---|
| Type | Description |
RetryAttempt.Builder |
This builder for chaining. |
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 |
RepairStateThe 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 |
StringThe 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 |
ByteStringThe 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 |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
RetryAttempt.Builder |
This builder for chaining. |
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 |
|