Package com.google.cloud.deploy.v1
Class RollbackAttempt.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RollbackAttempt.Builder>
com.google.cloud.deploy.v1.RollbackAttempt.Builder
- All Implemented Interfaces:
RollbackAttemptOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RollbackAttempt
public static final class RollbackAttempt.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RollbackAttempt.Builder>
implements RollbackAttemptOrBuilder
RollbackAttempt represents an action of rolling back a Cloud Deploy 'Target'.Protobuf type
google.cloud.deploy.v1.RollbackAttempt-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.booleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.getState()Output only.Output only.com.google.protobuf.ByteStringOutput only.intOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RollbackAttempt other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDestinationPhase(String value) Output only.setDestinationPhaseBytes(com.google.protobuf.ByteString value) Output only.setDisableRollbackIfRolloutPending(boolean value) Output only.setRolloutId(String value) Output only.setRolloutIdBytes(com.google.protobuf.ByteString 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.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<RollbackAttempt.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<RollbackAttempt.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<RollbackAttempt.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<RollbackAttempt.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RollbackAttempt.Builder>
-
mergeFrom
public RollbackAttempt.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<RollbackAttempt.Builder>- Throws:
IOException
-
getDestinationPhase
Output only. The phase to which the rollout will be rolled back to.
string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDestinationPhasein interfaceRollbackAttemptOrBuilder- Returns:
- The destinationPhase.
-
getDestinationPhaseBytes
public com.google.protobuf.ByteString getDestinationPhaseBytes()Output only. The phase to which the rollout will be rolled back to.
string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDestinationPhaseBytesin interfaceRollbackAttemptOrBuilder- Returns:
- The bytes for destinationPhase.
-
setDestinationPhase
Output only. The phase to which the rollout will be rolled back to.
string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The destinationPhase to set.- Returns:
- This builder for chaining.
-
clearDestinationPhase
Output only. The phase to which the rollout will be rolled back to.
string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDestinationPhaseBytes
Output only. The phase to which the rollout will be rolled back to.
string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for destinationPhase to set.- Returns:
- This builder for chaining.
-
getRolloutId
Output only. ID of the rollback `Rollout` to create.
string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRolloutIdin interfaceRollbackAttemptOrBuilder- Returns:
- The rolloutId.
-
getRolloutIdBytes
public com.google.protobuf.ByteString getRolloutIdBytes()Output only. ID of the rollback `Rollout` to create.
string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRolloutIdBytesin interfaceRollbackAttemptOrBuilder- Returns:
- The bytes for rolloutId.
-
setRolloutId
Output only. ID of the rollback `Rollout` to create.
string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The rolloutId to set.- Returns:
- This builder for chaining.
-
clearRolloutId
Output only. ID of the rollback `Rollout` to create.
string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setRolloutIdBytes
Output only. ID of the rollback `Rollout` to create.
string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for rolloutId to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()Output only. Valid state of this rollback action.
.google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceRollbackAttemptOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. Valid state of this rollback action.
.google.cloud.deploy.v1.RepairState state = 3 [(.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 rollback action.
.google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceRollbackAttemptOrBuilder- Returns:
- The state.
-
setState
Output only. Valid state of this rollback action.
.google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. Valid state of this rollback action.
.google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getStateDesc
Output only. Description of the state of the Rollback.
string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateDescin interfaceRollbackAttemptOrBuilder- Returns:
- The stateDesc.
-
getStateDescBytes
public com.google.protobuf.ByteString getStateDescBytes()Output only. Description of the state of the Rollback.
string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateDescBytesin interfaceRollbackAttemptOrBuilder- Returns:
- The bytes for stateDesc.
-
setStateDesc
Output only. Description of the state of the Rollback.
string state_desc = 4 [(.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 Rollback.
string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setStateDescBytes
Output only. Description of the state of the Rollback.
string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for stateDesc to set.- Returns:
- This builder for chaining.
-
getDisableRollbackIfRolloutPending
public boolean getDisableRollbackIfRolloutPending()Output only. If active rollout exists on the target, abort this rollback.
bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisableRollbackIfRolloutPendingin interfaceRollbackAttemptOrBuilder- Returns:
- The disableRollbackIfRolloutPending.
-
setDisableRollbackIfRolloutPending
Output only. If active rollout exists on the target, abort this rollback.
bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The disableRollbackIfRolloutPending to set.- Returns:
- This builder for chaining.
-
clearDisableRollbackIfRolloutPending
Output only. If active rollout exists on the target, abort this rollback.
bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-