Class MultiTarget.Builder (1.30.0)

public static final class MultiTarget.Builder extends GeneratedMessageV3.Builder<MultiTarget.Builder> implements MultiTargetOrBuilder

Information specifying a multiTarget.

Protobuf type google.cloud.deploy.v1.MultiTarget

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllTargetIds(Iterable<String> values)

public MultiTarget.Builder addAllTargetIds(Iterable<String> values)

Required. The target_ids of this multiTarget.

repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<String>

The targetIds to add.

Returns
TypeDescription
MultiTarget.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTargetIds(String value)

public MultiTarget.Builder addTargetIds(String value)

Required. The target_ids of this multiTarget.

repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The targetIds to add.

Returns
TypeDescription
MultiTarget.Builder

This builder for chaining.

addTargetIdsBytes(ByteString value)

public MultiTarget.Builder addTargetIdsBytes(ByteString value)

Required. The target_ids of this multiTarget.

repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes of the targetIds to add.

Returns
TypeDescription
MultiTarget.Builder

This builder for chaining.

build()

public MultiTarget build()
Returns
TypeDescription
MultiTarget

buildPartial()

public MultiTarget buildPartial()
Returns
TypeDescription
MultiTarget

clear()

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

clearField(Descriptors.FieldDescriptor field)

public MultiTarget.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MultiTarget.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetIds()

public MultiTarget.Builder clearTargetIds()

Required. The target_ids of this multiTarget.

repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MultiTarget.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MultiTarget getDefaultInstanceForType()
Returns
TypeDescription
MultiTarget

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTargetIds(int index)

public String getTargetIds(int index)

Required. The target_ids of this multiTarget.

repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The targetIds at the given index.

getTargetIdsBytes(int index)

public ByteString getTargetIdsBytes(int index)

Required. The target_ids of this multiTarget.

repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the targetIds at the given index.

getTargetIdsCount()

public int getTargetIdsCount()

Required. The target_ids of this multiTarget.

repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of targetIds.

getTargetIdsList()

public ProtocolStringList getTargetIdsList()

Required. The target_ids of this multiTarget.

repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the targetIds.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MultiTarget other)

public MultiTarget.Builder mergeFrom(MultiTarget other)
Parameter
NameDescription
otherMultiTarget
Returns
TypeDescription
MultiTarget.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MultiTarget.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MultiTarget.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public MultiTarget.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MultiTarget.Builder
Overrides

setTargetIds(int index, String value)

public MultiTarget.Builder setTargetIds(int index, String value)

Required. The target_ids of this multiTarget.

repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The targetIds to set.

Returns
TypeDescription
MultiTarget.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MultiTarget.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MultiTarget.Builder
Overrides