Class RollbackTargetConfig.Builder (1.30.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RollbackTargetConfig build()
Returns
TypeDescription
RollbackTargetConfig

buildPartial()

public RollbackTargetConfig buildPartial()
Returns
TypeDescription
RollbackTargetConfig

clear()

public RollbackTargetConfig.Builder clear()
Returns
TypeDescription
RollbackTargetConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RollbackTargetConfig getDefaultInstanceForType()
Returns
TypeDescription
RollbackTargetConfig

getDescriptorForType()

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

Whether the rollout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RollbackTargetConfig other)

public RollbackTargetConfig.Builder mergeFrom(RollbackTargetConfig other)
Parameter
NameDescription
otherRollbackTargetConfig
Returns
TypeDescription
RollbackTargetConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RollbackTargetConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRollout
Returns
TypeDescription
RollbackTargetConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RollbackTargetConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RollbackTargetConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

The startingPhaseId to set.

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

The bytes for startingPhaseId to set.

Returns
TypeDescription
RollbackTargetConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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