Class RollbackAttempt.Builder (1.43.0)

public static final class RollbackAttempt.Builder extends GeneratedMessageV3.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

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
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public RollbackAttempt.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RollbackAttempt.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RollbackAttempt.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RollbackAttempt.Builder
Overrides

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
Overrides

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.

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RollbackAttempt.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

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
Overrides

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
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final RollbackAttempt.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RollbackAttempt.Builder
Overrides