Class RollbackAttempt.Builder (1.83.0)

public static final class RollbackAttempt.Builder extends GeneratedMessage.Builder<RollbackAttempt.Builder> implements RollbackAttemptOrBuilder

RollbackAttempt represents an action of rolling back a Cloud Deploy 'Target'.

Protobuf type google.cloud.deploy.v1.RollbackAttempt

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

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
Overrides

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.

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.

getDefaultInstanceForType()

public RollbackAttempt getDefaultInstanceForType()
Returns
Type Description
RollbackAttempt

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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 String

The 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 ByteString

The 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 boolean

The disableRollbackIfRolloutPending to set.

Returns
Type Description
RollbackAttempt.Builder

This builder for chaining.

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 String

The 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 ByteString

The 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 RepairState

The 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 String

The 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 ByteString

The 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 int

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

Returns
Type Description
RollbackAttempt.Builder

This builder for chaining.