Class Rollback.Builder (1.31.0)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Rollback build()
Returns
TypeDescription
Rollback

buildPartial()

public Rollback buildPartial()
Returns
TypeDescription
Rollback

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Rollback.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Rollback.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public Rollback getDefaultInstanceForType()
Returns
TypeDescription
Rollback

getDescriptorForType()

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

The bytes for destinationPhase.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Rollback other)

public Rollback.Builder mergeFrom(Rollback other)
Parameter
NameDescription
otherRollback
Returns
TypeDescription
Rollback.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The destinationPhase to set.

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

The bytes for destinationPhase to set.

Returns
TypeDescription
Rollback.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Rollback.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Rollback.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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