Class FindNeighborsResponse.Builder (3.46.0)

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

The response message for MatchService.FindNeighbors.

Protobuf type google.cloud.aiplatform.v1.FindNeighborsResponse

Static Methods

getDescriptor()

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

Methods

addAllNearestNeighbors(Iterable<? extends FindNeighborsResponse.NearestNeighbors> values)

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

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

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

addNearestNeighbors(FindNeighborsResponse.NearestNeighbors value)

public FindNeighborsResponse.Builder addNearestNeighbors(FindNeighborsResponse.NearestNeighbors value)

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

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

addNearestNeighbors(FindNeighborsResponse.NearestNeighbors.Builder builderForValue)

public FindNeighborsResponse.Builder addNearestNeighbors(FindNeighborsResponse.NearestNeighbors.Builder builderForValue)

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

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

addNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors value)

public FindNeighborsResponse.Builder addNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors value)

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

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

addNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors.Builder builderForValue)

public FindNeighborsResponse.Builder addNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors.Builder builderForValue)

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

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

addNearestNeighborsBuilder()

public FindNeighborsResponse.NearestNeighbors.Builder addNearestNeighborsBuilder()

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

addNearestNeighborsBuilder(int index)

public FindNeighborsResponse.NearestNeighbors.Builder addNearestNeighborsBuilder(int index)

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FindNeighborsResponse build()
Returns
Type Description
FindNeighborsResponse

buildPartial()

public FindNeighborsResponse buildPartial()
Returns
Type Description
FindNeighborsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNearestNeighbors()

public FindNeighborsResponse.Builder clearNearestNeighbors()

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
FindNeighborsResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public FindNeighborsResponse getDefaultInstanceForType()
Returns
Type Description
FindNeighborsResponse

getDescriptorForType()

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

getNearestNeighbors(int index)

public FindNeighborsResponse.NearestNeighbors getNearestNeighbors(int index)

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Parameter
Name Description
index int
Returns
Type Description
FindNeighborsResponse.NearestNeighbors

getNearestNeighborsBuilder(int index)

public FindNeighborsResponse.NearestNeighbors.Builder getNearestNeighborsBuilder(int index)

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

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

getNearestNeighborsBuilderList()

public List<FindNeighborsResponse.NearestNeighbors.Builder> getNearestNeighborsBuilderList()

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
List<Builder>

getNearestNeighborsCount()

public int getNearestNeighborsCount()

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
int

getNearestNeighborsList()

public List<FindNeighborsResponse.NearestNeighbors> getNearestNeighborsList()

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
List<NearestNeighbors>

getNearestNeighborsOrBuilder(int index)

public FindNeighborsResponse.NearestNeighborsOrBuilder getNearestNeighborsOrBuilder(int index)

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Parameter
Name Description
index int
Returns
Type Description
FindNeighborsResponse.NearestNeighborsOrBuilder

getNearestNeighborsOrBuilderList()

public List<? extends FindNeighborsResponse.NearestNeighborsOrBuilder> getNearestNeighborsOrBuilderList()

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighborsOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FindNeighborsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNearestNeighbors(int index)

public FindNeighborsResponse.Builder removeNearestNeighbors(int index)

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Parameter
Name Description
index int
Returns
Type Description
FindNeighborsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors value)

public FindNeighborsResponse.Builder setNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors value)

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

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

setNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors.Builder builderForValue)

public FindNeighborsResponse.Builder setNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors.Builder builderForValue)

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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