Class TargetsPresentCondition.Builder (1.33.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
TypeDescription
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
NameDescription
valuesIterable<String>

The missingTargets to add.

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

The missingTargets to add.

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

The bytes of the missingTargets to add.

Returns
TypeDescription
TargetsPresentCondition.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetsPresentCondition build()
Returns
TypeDescription
TargetsPresentCondition

buildPartial()

public TargetsPresentCondition buildPartial()
Returns
TypeDescription
TargetsPresentCondition

clear()

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

clearField(Descriptors.FieldDescriptor field)

public TargetsPresentCondition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
TargetsPresentCondition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TargetsPresentCondition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TargetsPresentCondition.Builder
Overrides

clearStatus()

public TargetsPresentCondition.Builder clearStatus()

True if there aren't any missing Targets.

bool status = 1;

Returns
TypeDescription
TargetsPresentCondition.Builder

This builder for chaining.

clearUpdateTime()

public TargetsPresentCondition.Builder clearUpdateTime()

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
TargetsPresentCondition.Builder

clone()

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

getDefaultInstanceForType()

public TargetsPresentCondition getDefaultInstanceForType()
Returns
TypeDescription
TargetsPresentCondition

getDescriptorForType()

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the missingTargets.

getStatus()

public boolean getStatus()

True if there aren't any missing Targets.

bool status = 1;

Returns
TypeDescription
boolean

The status.

getUpdateTime()

public Timestamp getUpdateTime()

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Last time the condition was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TargetsPresentCondition other)

public TargetsPresentCondition.Builder mergeFrom(TargetsPresentCondition other)
Parameter
NameDescription
otherTargetsPresentCondition
Returns
TypeDescription
TargetsPresentCondition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valueString

The missingTargets to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TargetsPresentCondition.Builder
Overrides

setStatus(boolean value)

public TargetsPresentCondition.Builder setStatus(boolean value)

True if there aren't any missing Targets.

bool status = 1;

Parameter
NameDescription
valueboolean

The status to set.

Returns
TypeDescription
TargetsPresentCondition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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