Class TimedPromoteReleaseOperation.Builder (1.81.0)

public static final class TimedPromoteReleaseOperation.Builder extends GeneratedMessage.Builder<TimedPromoteReleaseOperation.Builder> implements TimedPromoteReleaseOperationOrBuilder

Contains the information of an automated timed promote-release operation.

Protobuf type google.cloud.deploy.v1.TimedPromoteReleaseOperation

Static Methods

getDescriptor()

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

Methods

build()

public TimedPromoteReleaseOperation build()
Returns
Type Description
TimedPromoteReleaseOperation

buildPartial()

public TimedPromoteReleaseOperation buildPartial()
Returns
Type Description
TimedPromoteReleaseOperation

clear()

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

clearPhase()

public TimedPromoteReleaseOperation.Builder clearPhase()

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

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

Returns
Type Description
TimedPromoteReleaseOperation.Builder

This builder for chaining.

clearRelease()

public TimedPromoteReleaseOperation.Builder clearRelease()

Output only. The name of the release to be promoted.

string release = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimedPromoteReleaseOperation.Builder

This builder for chaining.

clearTargetId()

public TimedPromoteReleaseOperation.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
TimedPromoteReleaseOperation.Builder

This builder for chaining.

getDefaultInstanceForType()

public TimedPromoteReleaseOperation getDefaultInstanceForType()
Returns
Type Description
TimedPromoteReleaseOperation

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 = 3 [(.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 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for phase.

getRelease()

public String getRelease()

Output only. The name of the release to be promoted.

string release = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The release.

getReleaseBytes()

public ByteString getReleaseBytes()

Output only. The name of the release to be promoted.

string release = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for release.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TimedPromoteReleaseOperation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPhase(String value)

public TimedPromoteReleaseOperation.Builder setPhase(String value)

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

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

Parameter
Name Description
value String

The phase to set.

Returns
Type Description
TimedPromoteReleaseOperation.Builder

This builder for chaining.

setPhaseBytes(ByteString value)

public TimedPromoteReleaseOperation.Builder setPhaseBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for phase to set.

Returns
Type Description
TimedPromoteReleaseOperation.Builder

This builder for chaining.

setRelease(String value)

public TimedPromoteReleaseOperation.Builder setRelease(String value)

Output only. The name of the release to be promoted.

string release = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The release to set.

Returns
Type Description
TimedPromoteReleaseOperation.Builder

This builder for chaining.

setReleaseBytes(ByteString value)

public TimedPromoteReleaseOperation.Builder setReleaseBytes(ByteString value)

Output only. The name of the release to be promoted.

string release = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for release to set.

Returns
Type Description
TimedPromoteReleaseOperation.Builder

This builder for chaining.

setTargetId(String value)

public TimedPromoteReleaseOperation.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
TimedPromoteReleaseOperation.Builder

This builder for chaining.

setTargetIdBytes(ByteString value)

public TimedPromoteReleaseOperation.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
TimedPromoteReleaseOperation.Builder

This builder for chaining.