Class FindNeighborsResponse.NearestNeighbors.Builder (3.48.0)

public static final class FindNeighborsResponse.NearestNeighbors.Builder extends GeneratedMessageV3.Builder<FindNeighborsResponse.NearestNeighbors.Builder> implements FindNeighborsResponse.NearestNeighborsOrBuilder

Nearest neighbors for one query.

Protobuf type google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors

Static Methods

getDescriptor()

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

Methods

addAllNeighbors(Iterable<? extends FindNeighborsResponse.Neighbor> values)

public FindNeighborsResponse.NearestNeighbors.Builder addAllNeighbors(Iterable<? extends FindNeighborsResponse.Neighbor> values)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor>
Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

addNeighbors(FindNeighborsResponse.Neighbor value)

public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(FindNeighborsResponse.Neighbor value)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
Name Description
value FindNeighborsResponse.Neighbor
Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

addNeighbors(FindNeighborsResponse.Neighbor.Builder builderForValue)

public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(FindNeighborsResponse.Neighbor.Builder builderForValue)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
Name Description
builderForValue FindNeighborsResponse.Neighbor.Builder
Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

addNeighbors(int index, FindNeighborsResponse.Neighbor value)

public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(int index, FindNeighborsResponse.Neighbor value)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameters
Name Description
index int
value FindNeighborsResponse.Neighbor
Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

addNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue)

public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameters
Name Description
index int
builderForValue FindNeighborsResponse.Neighbor.Builder
Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

addNeighborsBuilder()

public FindNeighborsResponse.Neighbor.Builder addNeighborsBuilder()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
Type Description
FindNeighborsResponse.Neighbor.Builder

addNeighborsBuilder(int index)

public FindNeighborsResponse.Neighbor.Builder addNeighborsBuilder(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
Name Description
index int
Returns
Type Description
FindNeighborsResponse.Neighbor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FindNeighborsResponse.NearestNeighbors build()
Returns
Type Description
FindNeighborsResponse.NearestNeighbors

buildPartial()

public FindNeighborsResponse.NearestNeighbors buildPartial()
Returns
Type Description
FindNeighborsResponse.NearestNeighbors

clear()

public FindNeighborsResponse.NearestNeighbors.Builder clear()
Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public FindNeighborsResponse.NearestNeighbors.Builder clearId()

The ID of the query datapoint.

string id = 1;

Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

This builder for chaining.

clearNeighbors()

public FindNeighborsResponse.NearestNeighbors.Builder clearNeighbors()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public FindNeighborsResponse.NearestNeighbors.Builder clone()
Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder
Overrides

getDefaultInstanceForType()

public FindNeighborsResponse.NearestNeighbors getDefaultInstanceForType()
Returns
Type Description
FindNeighborsResponse.NearestNeighbors

getDescriptorForType()

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

getId()

public String getId()

The ID of the query datapoint.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The ID of the query datapoint.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getNeighbors(int index)

public FindNeighborsResponse.Neighbor getNeighbors(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
Name Description
index int
Returns
Type Description
FindNeighborsResponse.Neighbor

getNeighborsBuilder(int index)

public FindNeighborsResponse.Neighbor.Builder getNeighborsBuilder(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
Name Description
index int
Returns
Type Description
FindNeighborsResponse.Neighbor.Builder

getNeighborsBuilderList()

public List<FindNeighborsResponse.Neighbor.Builder> getNeighborsBuilderList()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
Type Description
List<Builder>

getNeighborsCount()

public int getNeighborsCount()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
Type Description
int

getNeighborsList()

public List<FindNeighborsResponse.Neighbor> getNeighborsList()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
Type Description
List<Neighbor>

getNeighborsOrBuilder(int index)

public FindNeighborsResponse.NeighborOrBuilder getNeighborsOrBuilder(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
Name Description
index int
Returns
Type Description
FindNeighborsResponse.NeighborOrBuilder

getNeighborsOrBuilderList()

public List<? extends FindNeighborsResponse.NeighborOrBuilder> getNeighborsOrBuilderList()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NeighborOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FindNeighborsResponse.NearestNeighbors other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNeighbors(int index)

public FindNeighborsResponse.NearestNeighbors.Builder removeNeighbors(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
Name Description
index int
Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public FindNeighborsResponse.NearestNeighbors.Builder setId(String value)

The ID of the query datapoint.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

This builder for chaining.

setIdBytes(ByteString value)

public FindNeighborsResponse.NearestNeighbors.Builder setIdBytes(ByteString value)

The ID of the query datapoint.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

This builder for chaining.

setNeighbors(int index, FindNeighborsResponse.Neighbor value)

public FindNeighborsResponse.NearestNeighbors.Builder setNeighbors(int index, FindNeighborsResponse.Neighbor value)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameters
Name Description
index int
value FindNeighborsResponse.Neighbor
Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

setNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue)

public FindNeighborsResponse.NearestNeighbors.Builder setNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameters
Name Description
index int
builderForValue FindNeighborsResponse.Neighbor.Builder
Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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