Class TimedPromoteReleaseCondition.Targets.Builder (1.83.0)

public static final class TimedPromoteReleaseCondition.Targets.Builder extends GeneratedMessage.Builder<TimedPromoteReleaseCondition.Targets.Builder> implements TimedPromoteReleaseCondition.TargetsOrBuilder

The targets involved in a single timed promotion.

Protobuf type google.cloud.deploy.v1.TimedPromoteReleaseCondition.Targets

Static Methods

getDescriptor()

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

Methods

build()

public TimedPromoteReleaseCondition.Targets build()
Returns
Type Description
TimedPromoteReleaseCondition.Targets

buildPartial()

public TimedPromoteReleaseCondition.Targets buildPartial()
Returns
Type Description
TimedPromoteReleaseCondition.Targets

clear()

public TimedPromoteReleaseCondition.Targets.Builder clear()
Returns
Type Description
TimedPromoteReleaseCondition.Targets.Builder
Overrides

clearDestinationTargetId()

public TimedPromoteReleaseCondition.Targets.Builder clearDestinationTargetId()

Optional. The destination target ID.

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

Returns
Type Description
TimedPromoteReleaseCondition.Targets.Builder

This builder for chaining.

clearSourceTargetId()

public TimedPromoteReleaseCondition.Targets.Builder clearSourceTargetId()

Optional. The source target ID.

string source_target_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimedPromoteReleaseCondition.Targets.Builder

This builder for chaining.

getDefaultInstanceForType()

public TimedPromoteReleaseCondition.Targets getDefaultInstanceForType()
Returns
Type Description
TimedPromoteReleaseCondition.Targets

getDescriptorForType()

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

getDestinationTargetId()

public String getDestinationTargetId()

Optional. The destination target ID.

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

Returns
Type Description
String

The destinationTargetId.

getDestinationTargetIdBytes()

public ByteString getDestinationTargetIdBytes()

Optional. The destination target ID.

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

Returns
Type Description
ByteString

The bytes for destinationTargetId.

getSourceTargetId()

public String getSourceTargetId()

Optional. The source target ID.

string source_target_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sourceTargetId.

getSourceTargetIdBytes()

public ByteString getSourceTargetIdBytes()

Optional. The source target ID.

string source_target_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sourceTargetId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TimedPromoteReleaseCondition.Targets other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDestinationTargetId(String value)

public TimedPromoteReleaseCondition.Targets.Builder setDestinationTargetId(String value)

Optional. The destination target ID.

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

Parameter
Name Description
value String

The destinationTargetId to set.

Returns
Type Description
TimedPromoteReleaseCondition.Targets.Builder

This builder for chaining.

setDestinationTargetIdBytes(ByteString value)

public TimedPromoteReleaseCondition.Targets.Builder setDestinationTargetIdBytes(ByteString value)

Optional. The destination target ID.

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

Parameter
Name Description
value ByteString

The bytes for destinationTargetId to set.

Returns
Type Description
TimedPromoteReleaseCondition.Targets.Builder

This builder for chaining.

setSourceTargetId(String value)

public TimedPromoteReleaseCondition.Targets.Builder setSourceTargetId(String value)

Optional. The source target ID.

string source_target_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The sourceTargetId to set.

Returns
Type Description
TimedPromoteReleaseCondition.Targets.Builder

This builder for chaining.

setSourceTargetIdBytes(ByteString value)

public TimedPromoteReleaseCondition.Targets.Builder setSourceTargetIdBytes(ByteString value)

Optional. The source target ID.

string source_target_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for sourceTargetId to set.

Returns
Type Description
TimedPromoteReleaseCondition.Targets.Builder

This builder for chaining.