public static final class RollbackAttempt.Builder extends GeneratedMessageV3.Builder<RollbackAttempt.Builder> implements RollbackAttemptOrBuilderRollbackAttempt represents an action of rolling back a Cloud Deploy 'Target'.
Protobuf type google.cloud.deploy.v1.RollbackAttempt
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RollbackAttempt.BuilderImplements
RollbackAttemptOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RollbackAttempt.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|
build()
public RollbackAttempt build()| Returns | |
|---|---|
| Type | Description |
RollbackAttempt |
|
buildPartial()
public RollbackAttempt buildPartial()| Returns | |
|---|---|
| Type | Description |
RollbackAttempt |
|
clear()
public RollbackAttempt.Builder clear()| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|
clearDestinationPhase()
public RollbackAttempt.Builder 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 | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
clearDisableRollbackIfRolloutPending()
public RollbackAttempt.Builder 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 | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public RollbackAttempt.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public RollbackAttempt.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|
clearRolloutId()
public RollbackAttempt.Builder clearRolloutId() Output only. ID of the rollback Rollout to create.
string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
clearState()
public RollbackAttempt.Builder clearState()Output only. Valid state of this rollback action.
.google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
clearStateDesc()
public RollbackAttempt.Builder clearStateDesc()Output only. Description of the state of the Rollback.
string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
clone()
public RollbackAttempt.Builder clone()| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|
getDefaultInstanceForType()
public RollbackAttempt getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RollbackAttempt |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDestinationPhase()
public String getDestinationPhase()Output only. The phase to which the rollout will be rolled back to.
string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The destinationPhase. |
getDestinationPhaseBytes()
public 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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for destinationPhase. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
The disableRollbackIfRolloutPending. |
getRolloutId()
public String getRolloutId() Output only. ID of the rollback Rollout to create.
string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The rolloutId. |
getRolloutIdBytes()
public ByteString getRolloutIdBytes() Output only. ID of the rollback Rollout to create.
string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for rolloutId. |
getState()
public RepairState getState()Output only. Valid state of this rollback action.
.google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
RepairState |
The state. |
getStateDesc()
public String getStateDesc()Output only. Description of the state of the Rollback.
string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The stateDesc. |
getStateDescBytes()
public ByteString getStateDescBytes()Output only. Description of the state of the Rollback.
string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for stateDesc. |
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];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RollbackAttempt other)
public RollbackAttempt.Builder mergeFrom(RollbackAttempt other)| Parameter | |
|---|---|
| Name | Description |
other |
RollbackAttempt |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RollbackAttempt.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RollbackAttempt.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RollbackAttempt.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|
setDestinationPhase(String value)
public RollbackAttempt.Builder setDestinationPhase(String value)Output only. The phase to which the rollout will be rolled back to.
string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe destinationPhase to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
setDestinationPhaseBytes(ByteString value)
public RollbackAttempt.Builder setDestinationPhaseBytes(ByteString value)Output only. The phase to which the rollout will be rolled back to.
string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for destinationPhase to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
setDisableRollbackIfRolloutPending(boolean value)
public RollbackAttempt.Builder setDisableRollbackIfRolloutPending(boolean value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe disableRollbackIfRolloutPending to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public RollbackAttempt.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RollbackAttempt.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|
setRolloutId(String value)
public RollbackAttempt.Builder setRolloutId(String value) Output only. ID of the rollback Rollout to create.
string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe rolloutId to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
setRolloutIdBytes(ByteString value)
public RollbackAttempt.Builder setRolloutIdBytes(ByteString value) Output only. ID of the rollback Rollout to create.
string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for rolloutId to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
setState(RepairState value)
public RollbackAttempt.Builder setState(RepairState value)Output only. Valid state of this rollback action.
.google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
RepairStateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
setStateDesc(String value)
public RollbackAttempt.Builder setStateDesc(String value)Output only. Description of the state of the Rollback.
string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe stateDesc to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
setStateDescBytes(ByteString value)
public RollbackAttempt.Builder setStateDescBytes(ByteString value)Output only. Description of the state of the Rollback.
string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for stateDesc to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
setStateValue(int value)
public RollbackAttempt.Builder setStateValue(int value)Output only. Valid state of this rollback action.
.google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final RollbackAttempt.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
RollbackAttempt.Builder |
|