Class RollbackTargetConfig.Builder (1.46.0)

public static final class RollbackTargetConfig.Builder extends GeneratedMessageV3.Builder<RollbackTargetConfig.Builder> implements RollbackTargetConfigOrBuilder

Configs for the Rollback rollout.

Protobuf type google.cloud.deploy.v1.RollbackTargetConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RollbackTargetConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RollbackTargetConfig.Builder
Overrides

build()

public RollbackTargetConfig build()
Returns
Type Description
RollbackTargetConfig

buildPartial()

public RollbackTargetConfig buildPartial()
Returns
Type Description
RollbackTargetConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRollout()

public RollbackTargetConfig.Builder clearRollout()

Optional. The rollback Rollout to create.

.google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RollbackTargetConfig.Builder

clearStartingPhaseId()

public RollbackTargetConfig.Builder clearStartingPhaseId()

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

string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RollbackTargetConfig.Builder

This builder for chaining.

clone()

public RollbackTargetConfig.Builder clone()
Returns
Type Description
RollbackTargetConfig.Builder
Overrides

getDefaultInstanceForType()

public RollbackTargetConfig getDefaultInstanceForType()
Returns
Type Description
RollbackTargetConfig

getDescriptorForType()

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

getRollout()

public Rollout getRollout()

Optional. The rollback Rollout to create.

.google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Rollout

The rollout.

getRolloutBuilder()

public Rollout.Builder getRolloutBuilder()

Optional. The rollback Rollout to create.

.google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Rollout.Builder

getRolloutOrBuilder()

public RolloutOrBuilder getRolloutOrBuilder()

Optional. The rollback Rollout to create.

.google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RolloutOrBuilder

getStartingPhaseId()

public String getStartingPhaseId()

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

string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The startingPhaseId.

getStartingPhaseIdBytes()

public ByteString getStartingPhaseIdBytes()

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

string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for startingPhaseId.

hasRollout()

public boolean hasRollout()

Optional. The rollback Rollout to create.

.google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rollout field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RollbackTargetConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRollout(Rollout value)

public RollbackTargetConfig.Builder mergeRollout(Rollout value)

Optional. The rollback Rollout to create.

.google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Rollout
Returns
Type Description
RollbackTargetConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RollbackTargetConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RollbackTargetConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RollbackTargetConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RollbackTargetConfig.Builder
Overrides

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

public RollbackTargetConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RollbackTargetConfig.Builder
Overrides

setRollout(Rollout value)

public RollbackTargetConfig.Builder setRollout(Rollout value)

Optional. The rollback Rollout to create.

.google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Rollout
Returns
Type Description
RollbackTargetConfig.Builder

setRollout(Rollout.Builder builderForValue)

public RollbackTargetConfig.Builder setRollout(Rollout.Builder builderForValue)

Optional. The rollback Rollout to create.

.google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Rollout.Builder
Returns
Type Description
RollbackTargetConfig.Builder

setStartingPhaseId(String value)

public RollbackTargetConfig.Builder setStartingPhaseId(String value)

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

string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The startingPhaseId to set.

Returns
Type Description
RollbackTargetConfig.Builder

This builder for chaining.

setStartingPhaseIdBytes(ByteString value)

public RollbackTargetConfig.Builder setStartingPhaseIdBytes(ByteString value)

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

string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for startingPhaseId to set.

Returns
Type Description
RollbackTargetConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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