Class RollbackAttempt.Builder (1.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RollbackAttempt.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RollbackAttempt.Builder
Overrides

build()

public RollbackAttempt build()
Returns
TypeDescription
RollbackAttempt

buildPartial()

public RollbackAttempt buildPartial()
Returns
TypeDescription
RollbackAttempt

clear()

public RollbackAttempt.Builder clear()
Returns
TypeDescription
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
TypeDescription
RollbackAttempt.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RollbackAttempt.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RollbackAttempt.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RollbackAttempt.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RollbackAttempt.Builder

This builder for chaining.

clone()

public RollbackAttempt.Builder clone()
Returns
TypeDescription
RollbackAttempt.Builder
Overrides

getDefaultInstanceForType()

public RollbackAttempt getDefaultInstanceForType()
Returns
TypeDescription
RollbackAttempt

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RollbackAttempt other)

public RollbackAttempt.Builder mergeFrom(RollbackAttempt other)
Parameter
NameDescription
otherRollbackAttempt
Returns
TypeDescription
RollbackAttempt.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RollbackAttempt.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RollbackAttempt.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RollbackAttempt.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RollbackAttempt.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RollbackAttempt.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The destinationPhase to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for destinationPhase to set.

Returns
TypeDescription
RollbackAttempt.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RollbackAttempt.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RollbackAttempt.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RollbackAttempt.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The rolloutId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for rolloutId to set.

Returns
TypeDescription
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
NameDescription
valueRepairState

The state to set.

Returns
TypeDescription
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
NameDescription
valueString

The stateDesc to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for stateDesc to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
RollbackAttempt.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RollbackAttempt.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RollbackAttempt.Builder
Overrides