Class IdMatcher.Builder (3.84.0)

public static final class IdMatcher.Builder extends GeneratedMessage.Builder<IdMatcher.Builder> implements IdMatcherOrBuilder

Matcher for Features of an EntityType by Feature ID.

Protobuf type google.cloud.aiplatform.v1.IdMatcher

Implements

IdMatcherOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllIds(Iterable<String> values)

public IdMatcher.Builder addAllIds(Iterable<String> values)

Required. The following are accepted as ids:

  • A single-element list containing only *, which selects all Features in the target EntityType, or
  • A list containing only Feature IDs, which selects only Features with those IDs in the target EntityType.

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

Parameter
Name Description
values Iterable<String>

The ids to add.

Returns
Type Description
IdMatcher.Builder

This builder for chaining.

addIds(String value)

public IdMatcher.Builder addIds(String value)

Required. The following are accepted as ids:

  • A single-element list containing only *, which selects all Features in the target EntityType, or
  • A list containing only Feature IDs, which selects only Features with those IDs in the target EntityType.

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

Parameter
Name Description
value String

The ids to add.

Returns
Type Description
IdMatcher.Builder

This builder for chaining.

addIdsBytes(ByteString value)

public IdMatcher.Builder addIdsBytes(ByteString value)

Required. The following are accepted as ids:

  • A single-element list containing only *, which selects all Features in the target EntityType, or
  • A list containing only Feature IDs, which selects only Features with those IDs in the target EntityType.

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

Parameter
Name Description
value ByteString

The bytes of the ids to add.

Returns
Type Description
IdMatcher.Builder

This builder for chaining.

build()

public IdMatcher build()
Returns
Type Description
IdMatcher

buildPartial()

public IdMatcher buildPartial()
Returns
Type Description
IdMatcher

clear()

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

clearIds()

public IdMatcher.Builder clearIds()

Required. The following are accepted as ids:

  • A single-element list containing only *, which selects all Features in the target EntityType, or
  • A list containing only Feature IDs, which selects only Features with those IDs in the target EntityType.

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

Returns
Type Description
IdMatcher.Builder

This builder for chaining.

getDefaultInstanceForType()

public IdMatcher getDefaultInstanceForType()
Returns
Type Description
IdMatcher

getDescriptorForType()

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

getIds(int index)

public String getIds(int index)

Required. The following are accepted as ids:

  • A single-element list containing only *, which selects all Features in the target EntityType, or
  • A list containing only Feature IDs, which selects only Features with those IDs in the target EntityType.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ids at the given index.

getIdsBytes(int index)

public ByteString getIdsBytes(int index)

Required. The following are accepted as ids:

  • A single-element list containing only *, which selects all Features in the target EntityType, or
  • A list containing only Feature IDs, which selects only Features with those IDs in the target EntityType.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ids at the given index.

getIdsCount()

public int getIdsCount()

Required. The following are accepted as ids:

  • A single-element list containing only *, which selects all Features in the target EntityType, or
  • A list containing only Feature IDs, which selects only Features with those IDs in the target EntityType.

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

Returns
Type Description
int

The count of ids.

getIdsList()

public ProtocolStringList getIdsList()

Required. The following are accepted as ids:

  • A single-element list containing only *, which selects all Features in the target EntityType, or
  • A list containing only Feature IDs, which selects only Features with those IDs in the target EntityType.

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

Returns
Type Description
ProtocolStringList

A list containing the ids.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IdMatcher other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setIds(int index, String value)

public IdMatcher.Builder setIds(int index, String value)

Required. The following are accepted as ids:

  • A single-element list containing only *, which selects all Features in the target EntityType, or
  • A list containing only Feature IDs, which selects only Features with those IDs in the target EntityType.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The ids to set.

Returns
Type Description
IdMatcher.Builder

This builder for chaining.