Class TimedPromoteReleaseCondition.Targets.Builder (1.52.0)

public static final class TimedPromoteReleaseCondition.Targets.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimedPromoteReleaseCondition.Targets.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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