Class PromoteReleaseOperation.Builder (1.41.0)

public static final class PromoteReleaseOperation.Builder extends GeneratedMessageV3.Builder<PromoteReleaseOperation.Builder> implements PromoteReleaseOperationOrBuilder

Contains the information of an automated promote-release operation.

Protobuf type google.cloud.deploy.v1.PromoteReleaseOperation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PromoteReleaseOperation build()
Returns
Type Description
PromoteReleaseOperation

buildPartial()

public PromoteReleaseOperation buildPartial()
Returns
Type Description
PromoteReleaseOperation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhase()

public PromoteReleaseOperation.Builder clearPhase()

Output only. The starting phase of the rollout created by this operation.

string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromoteReleaseOperation.Builder

This builder for chaining.

clearRollout()

public PromoteReleaseOperation.Builder clearRollout()

Output only. The name of the rollout that initiates the AutomationRun.

string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromoteReleaseOperation.Builder

This builder for chaining.

clearTargetId()

public PromoteReleaseOperation.Builder clearTargetId()

Output only. The ID of the target that represents the promotion stage to which the release will be promoted. The value of this field is the last segment of a target name.

string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromoteReleaseOperation.Builder

This builder for chaining.

clearWait()

public PromoteReleaseOperation.Builder clearWait()

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromoteReleaseOperation.Builder

clone()

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

getDefaultInstanceForType()

public PromoteReleaseOperation getDefaultInstanceForType()
Returns
Type Description
PromoteReleaseOperation

getDescriptorForType()

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

getPhase()

public String getPhase()

Output only. The starting phase of the rollout created by this operation.

string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The phase.

getPhaseBytes()

public ByteString getPhaseBytes()

Output only. The starting phase of the rollout created by this operation.

string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for phase.

getRollout()

public String getRollout()

Output only. The name of the rollout that initiates the AutomationRun.

string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The rollout.

getRolloutBytes()

public ByteString getRolloutBytes()

Output only. The name of the rollout that initiates the AutomationRun.

string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for rollout.

getTargetId()

public String getTargetId()

Output only. The ID of the target that represents the promotion stage to which the release will be promoted. The value of this field is the last segment of a target name.

string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The targetId.

getTargetIdBytes()

public ByteString getTargetIdBytes()

Output only. The ID of the target that represents the promotion stage to which the release will be promoted. The value of this field is the last segment of a target name.

string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for targetId.

getWait()

public Duration getWait()

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Duration

The wait.

getWaitBuilder()

public Duration.Builder getWaitBuilder()

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getWaitOrBuilder()

public DurationOrBuilder getWaitOrBuilder()

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DurationOrBuilder

hasWait()

public boolean hasWait()

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the wait field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PromoteReleaseOperation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWait(Duration value)

public PromoteReleaseOperation.Builder mergeWait(Duration value)

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
PromoteReleaseOperation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPhase(String value)

public PromoteReleaseOperation.Builder setPhase(String value)

Output only. The starting phase of the rollout created by this operation.

string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The phase to set.

Returns
Type Description
PromoteReleaseOperation.Builder

This builder for chaining.

setPhaseBytes(ByteString value)

public PromoteReleaseOperation.Builder setPhaseBytes(ByteString value)

Output only. The starting phase of the rollout created by this operation.

string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for phase to set.

Returns
Type Description
PromoteReleaseOperation.Builder

This builder for chaining.

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

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

setRollout(String value)

public PromoteReleaseOperation.Builder setRollout(String value)

Output only. The name of the rollout that initiates the AutomationRun.

string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The rollout to set.

Returns
Type Description
PromoteReleaseOperation.Builder

This builder for chaining.

setRolloutBytes(ByteString value)

public PromoteReleaseOperation.Builder setRolloutBytes(ByteString value)

Output only. The name of the rollout that initiates the AutomationRun.

string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for rollout to set.

Returns
Type Description
PromoteReleaseOperation.Builder

This builder for chaining.

setTargetId(String value)

public PromoteReleaseOperation.Builder setTargetId(String value)

Output only. The ID of the target that represents the promotion stage to which the release will be promoted. The value of this field is the last segment of a target name.

string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The targetId to set.

Returns
Type Description
PromoteReleaseOperation.Builder

This builder for chaining.

setTargetIdBytes(ByteString value)

public PromoteReleaseOperation.Builder setTargetIdBytes(ByteString value)

Output only. The ID of the target that represents the promotion stage to which the release will be promoted. The value of this field is the last segment of a target name.

string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for targetId to set.

Returns
Type Description
PromoteReleaseOperation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setWait(Duration value)

public PromoteReleaseOperation.Builder setWait(Duration value)

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
PromoteReleaseOperation.Builder

setWait(Duration.Builder builderForValue)

public PromoteReleaseOperation.Builder setWait(Duration.Builder builderForValue)

Output only. How long the operation will be paused.

.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PromoteReleaseOperation.Builder