Class TargetsPresentCondition.Builder (1.40.0)

public static final class TargetsPresentCondition.Builder extends GeneratedMessageV3.Builder<TargetsPresentCondition.Builder> implements TargetsPresentConditionOrBuilder

TargetsPresentCondition contains information on any Targets referenced in the Delivery Pipeline that do not actually exist.

Protobuf type google.cloud.deploy.v1.TargetsPresentCondition

Static Methods

getDescriptor()

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

Methods

addAllMissingTargets(Iterable<String> values)

public TargetsPresentCondition.Builder addAllMissingTargets(Iterable<String> values)

The list of Target names that do not exist. For example, projects/{project_id}/locations/{location_name}/targets/{target_name}.

repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The missingTargets to add.

Returns
Type Description
TargetsPresentCondition.Builder

This builder for chaining.

addMissingTargets(String value)

public TargetsPresentCondition.Builder addMissingTargets(String value)

The list of Target names that do not exist. For example, projects/{project_id}/locations/{location_name}/targets/{target_name}.

repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The missingTargets to add.

Returns
Type Description
TargetsPresentCondition.Builder

This builder for chaining.

addMissingTargetsBytes(ByteString value)

public TargetsPresentCondition.Builder addMissingTargetsBytes(ByteString value)

The list of Target names that do not exist. For example, projects/{project_id}/locations/{location_name}/targets/{target_name}.

repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the missingTargets to add.

Returns
Type Description
TargetsPresentCondition.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetsPresentCondition build()
Returns
Type Description
TargetsPresentCondition

buildPartial()

public TargetsPresentCondition buildPartial()
Returns
Type Description
TargetsPresentCondition

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMissingTargets()

public TargetsPresentCondition.Builder clearMissingTargets()

The list of Target names that do not exist. For example, projects/{project_id}/locations/{location_name}/targets/{target_name}.

repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
TargetsPresentCondition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStatus()

public TargetsPresentCondition.Builder clearStatus()

True if there aren't any missing Targets.

bool status = 1;

Returns
Type Description
TargetsPresentCondition.Builder

This builder for chaining.

clearUpdateTime()

public TargetsPresentCondition.Builder clearUpdateTime()

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
TargetsPresentCondition.Builder

clone()

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

getDefaultInstanceForType()

public TargetsPresentCondition getDefaultInstanceForType()
Returns
Type Description
TargetsPresentCondition

getDescriptorForType()

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

getMissingTargets(int index)

public String getMissingTargets(int index)

The list of Target names that do not exist. For example, projects/{project_id}/locations/{location_name}/targets/{target_name}.

repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The missingTargets at the given index.

getMissingTargetsBytes(int index)

public ByteString getMissingTargetsBytes(int index)

The list of Target names that do not exist. For example, projects/{project_id}/locations/{location_name}/targets/{target_name}.

repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the missingTargets at the given index.

getMissingTargetsCount()

public int getMissingTargetsCount()

The list of Target names that do not exist. For example, projects/{project_id}/locations/{location_name}/targets/{target_name}.

repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of missingTargets.

getMissingTargetsList()

public ProtocolStringList getMissingTargetsList()

The list of Target names that do not exist. For example, projects/{project_id}/locations/{location_name}/targets/{target_name}.

repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the missingTargets.

getStatus()

public boolean getStatus()

True if there aren't any missing Targets.

bool status = 1;

Returns
Type Description
boolean

The status.

getUpdateTime()

public Timestamp getUpdateTime()

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TargetsPresentCondition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public TargetsPresentCondition.Builder mergeUpdateTime(Timestamp value)

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
TargetsPresentCondition.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMissingTargets(int index, String value)

public TargetsPresentCondition.Builder setMissingTargets(int index, String value)

The list of Target names that do not exist. For example, projects/{project_id}/locations/{location_name}/targets/{target_name}.

repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The missingTargets to set.

Returns
Type Description
TargetsPresentCondition.Builder

This builder for chaining.

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

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

setStatus(boolean value)

public TargetsPresentCondition.Builder setStatus(boolean value)

True if there aren't any missing Targets.

bool status = 1;

Parameter
Name Description
value boolean

The status to set.

Returns
Type Description
TargetsPresentCondition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public TargetsPresentCondition.Builder setUpdateTime(Timestamp value)

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
TargetsPresentCondition.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public TargetsPresentCondition.Builder setUpdateTime(Timestamp.Builder builderForValue)

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TargetsPresentCondition.Builder