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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PromoteReleaseOperation build()
Returns
TypeDescription
PromoteReleaseOperation

buildPartial()

public PromoteReleaseOperation buildPartial()
Returns
TypeDescription
PromoteReleaseOperation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PromoteReleaseOperation getDefaultInstanceForType()
Returns
TypeDescription
PromoteReleaseOperation

getDescriptorForType()

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

Whether the wait field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PromoteReleaseOperation other)

public PromoteReleaseOperation.Builder mergeFrom(PromoteReleaseOperation other)
Parameter
NameDescription
otherPromoteReleaseOperation
Returns
TypeDescription
PromoteReleaseOperation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public PromoteReleaseOperation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The phase to set.

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

The bytes for phase to set.

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

The rollout to set.

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

The bytes for rollout to set.

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

The targetId to set.

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

The bytes for targetId to set.

Returns
TypeDescription
PromoteReleaseOperation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PromoteReleaseOperation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
PromoteReleaseOperation.Builder