Class Rollback.Builder (1.83.0)

public static final class Rollback.Builder extends GeneratedMessage.Builder<Rollback.Builder> implements RollbackOrBuilder

Rolls back a Rollout.

Protobuf type google.cloud.deploy.v1.Rollback

Implements

RollbackOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Rollback build()
Returns
Type Description
Rollback

buildPartial()

public Rollback buildPartial()
Returns
Type Description
Rollback

clear()

public Rollback.Builder clear()
Returns
Type Description
Rollback.Builder
Overrides

clearDestinationPhase()

public Rollback.Builder clearDestinationPhase()

Optional. The starting phase ID for the Rollout. If unspecified, the Rollout will start in the stable phase.

string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Rollback.Builder

This builder for chaining.

clearDisableRollbackIfRolloutPending()

public Rollback.Builder clearDisableRollbackIfRolloutPending()

Optional. If pending rollout exists on the target, the rollback operation will be aborted.

bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Rollback.Builder

This builder for chaining.

getDefaultInstanceForType()

public Rollback getDefaultInstanceForType()
Returns
Type Description
Rollback

getDescriptorForType()

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

getDestinationPhase()

public String getDestinationPhase()

Optional. The starting phase ID for the Rollout. If unspecified, the Rollout will start in the stable phase.

string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The destinationPhase.

getDestinationPhaseBytes()

public ByteString getDestinationPhaseBytes()

Optional. The starting phase ID for the Rollout. If unspecified, the Rollout will start in the stable phase.

string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for destinationPhase.

getDisableRollbackIfRolloutPending()

public boolean getDisableRollbackIfRolloutPending()

Optional. If pending rollout exists on the target, the rollback operation will be aborted.

bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The disableRollbackIfRolloutPending.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Rollback other)

public Rollback.Builder mergeFrom(Rollback other)
Parameter
Name Description
other Rollback
Returns
Type Description
Rollback.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Rollback.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rollback.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setDestinationPhase(String value)

public Rollback.Builder setDestinationPhase(String value)

Optional. The starting phase ID for the Rollout. If unspecified, the Rollout will start in the stable phase.

string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The destinationPhase to set.

Returns
Type Description
Rollback.Builder

This builder for chaining.

setDestinationPhaseBytes(ByteString value)

public Rollback.Builder setDestinationPhaseBytes(ByteString value)

Optional. The starting phase ID for the Rollout. If unspecified, the Rollout will start in the stable phase.

string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for destinationPhase to set.

Returns
Type Description
Rollback.Builder

This builder for chaining.

setDisableRollbackIfRolloutPending(boolean value)

public Rollback.Builder setDisableRollbackIfRolloutPending(boolean value)

Optional. If pending rollout exists on the target, the rollback operation will be aborted.

bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The disableRollbackIfRolloutPending to set.

Returns
Type Description
Rollback.Builder

This builder for chaining.