Package com.google.cloud.deploy.v1
Class RetryAttempt.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RetryAttempt.Builder>
com.google.cloud.deploy.v1.RetryAttempt.Builder
- All Implemented Interfaces:
RetryAttemptOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RetryAttempt
public static final class RetryAttempt.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RetryAttempt.Builder>
implements RetryAttemptOrBuilder
RetryAttempt represents an action of retrying the failed Cloud Deploy job.Protobuf type
google.cloud.deploy.v1.RetryAttempt-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.longOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetState()Output only.Output only.com.google.protobuf.ByteStringOutput only.intOutput only.com.google.protobuf.DurationgetWait()Output only.com.google.protobuf.Duration.BuilderOutput only.com.google.protobuf.DurationOrBuilderOutput only.booleanhasWait()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RetryAttempt other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeWait(com.google.protobuf.Duration value) Output only.setAttempt(long value) Output only.setState(RepairState value) Output only.setStateDesc(String value) Output only.setStateDescBytes(com.google.protobuf.ByteString value) Output only.setStateValue(int value) Output only.setWait(com.google.protobuf.Duration value) Output only.setWait(com.google.protobuf.Duration.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RetryAttempt.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RetryAttempt.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RetryAttempt.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RetryAttempt.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RetryAttempt.Builder>
-
mergeFrom
public RetryAttempt.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RetryAttempt.Builder>- Throws:
IOException
-
getAttempt
public long getAttempt()Output only. The index of this retry attempt.
int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAttemptin interfaceRetryAttemptOrBuilder- Returns:
- The attempt.
-
setAttempt
Output only. The index of this retry attempt.
int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The attempt to set.- Returns:
- This builder for chaining.
-
clearAttempt
Output only. The index of this retry attempt.
int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasWait
public boolean hasWait()Output only. How long the operation will be paused.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasWaitin interfaceRetryAttemptOrBuilder- Returns:
- Whether the wait field is set.
-
getWait
public com.google.protobuf.Duration getWait()Output only. How long the operation will be paused.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getWaitin interfaceRetryAttemptOrBuilder- Returns:
- The wait.
-
setWait
Output only. How long the operation will be paused.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setWait
Output only. How long the operation will be paused.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeWait
Output only. How long the operation will be paused.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearWait
Output only. How long the operation will be paused.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getWaitBuilder
public com.google.protobuf.Duration.Builder getWaitBuilder()Output only. How long the operation will be paused.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getWaitOrBuilder
public com.google.protobuf.DurationOrBuilder getWaitOrBuilder()Output only. How long the operation will be paused.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getWaitOrBuilderin interfaceRetryAttemptOrBuilder
-
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];- Specified by:
getStateValuein interfaceRetryAttemptOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. Valid state of this retry action.
.google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. Valid state of this retry action.
.google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceRetryAttemptOrBuilder- Returns:
- The state.
-
setState
Output only. Valid state of this retry action.
.google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. Valid state of this retry action.
.google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getStateDesc
Output only. Description of the state of the Retry.
string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateDescin interfaceRetryAttemptOrBuilder- Returns:
- The stateDesc.
-
getStateDescBytes
public com.google.protobuf.ByteString getStateDescBytes()Output only. Description of the state of the Retry.
string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateDescBytesin interfaceRetryAttemptOrBuilder- Returns:
- The bytes for stateDesc.
-
setStateDesc
Output only. Description of the state of the Retry.
string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The stateDesc to set.- Returns:
- This builder for chaining.
-
clearStateDesc
Output only. Description of the state of the Retry.
string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setStateDescBytes
Output only. Description of the state of the Retry.
string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for stateDesc to set.- Returns:
- This builder for chaining.
-