Class FindNeighborsResponse.Builder (3.41.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.v1beta1.FindNeighborsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors>
Returns
TypeDescription
FindNeighborsResponse.Builder

addNearestNeighbors(FindNeighborsResponse.NearestNeighbors value)

public FindNeighborsResponse.Builder addNearestNeighbors(FindNeighborsResponse.NearestNeighbors value)

The nearest neighbors of the query datapoints.

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

Parameter
NameDescription
valueFindNeighborsResponse.NearestNeighbors
Returns
TypeDescription
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.v1beta1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Parameter
NameDescription
builderForValueFindNeighborsResponse.NearestNeighbors.Builder
Returns
TypeDescription
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.v1beta1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Parameters
NameDescription
indexint
valueFindNeighborsResponse.NearestNeighbors
Returns
TypeDescription
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.v1beta1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Parameters
NameDescription
indexint
builderForValueFindNeighborsResponse.NearestNeighbors.Builder
Returns
TypeDescription
FindNeighborsResponse.Builder

addNearestNeighborsBuilder()

public FindNeighborsResponse.NearestNeighbors.Builder addNearestNeighborsBuilder()

The nearest neighbors of the query datapoints.

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

Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

addNearestNeighborsBuilder(int index)

public FindNeighborsResponse.NearestNeighbors.Builder addNearestNeighborsBuilder(int index)

The nearest neighbors of the query datapoints.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FindNeighborsResponse build()
Returns
TypeDescription
FindNeighborsResponse

buildPartial()

public FindNeighborsResponse buildPartial()
Returns
TypeDescription
FindNeighborsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNearestNeighbors()

public FindNeighborsResponse.Builder clearNearestNeighbors()

The nearest neighbors of the query datapoints.

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

Returns
TypeDescription
FindNeighborsResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public FindNeighborsResponse getDefaultInstanceForType()
Returns
TypeDescription
FindNeighborsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNearestNeighbors(int index)

public FindNeighborsResponse.NearestNeighbors getNearestNeighbors(int index)

The nearest neighbors of the query datapoints.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors

getNearestNeighborsBuilder(int index)

public FindNeighborsResponse.NearestNeighbors.Builder getNearestNeighborsBuilder(int index)

The nearest neighbors of the query datapoints.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

getNearestNeighborsBuilderList()

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

The nearest neighbors of the query datapoints.

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

Returns
TypeDescription
List<Builder>

getNearestNeighborsCount()

public int getNearestNeighborsCount()

The nearest neighbors of the query datapoints.

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

Returns
TypeDescription
int

getNearestNeighborsList()

public List<FindNeighborsResponse.NearestNeighbors> getNearestNeighborsList()

The nearest neighbors of the query datapoints.

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

Returns
TypeDescription
List<NearestNeighbors>

getNearestNeighborsOrBuilder(int index)

public FindNeighborsResponse.NearestNeighborsOrBuilder getNearestNeighborsOrBuilder(int index)

The nearest neighbors of the query datapoints.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.NearestNeighborsOrBuilder

getNearestNeighborsOrBuilderList()

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

The nearest neighbors of the query datapoints.

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

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighborsOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FindNeighborsResponse other)

public FindNeighborsResponse.Builder mergeFrom(FindNeighborsResponse other)
Parameter
NameDescription
otherFindNeighborsResponse
Returns
TypeDescription
FindNeighborsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNearestNeighbors(int index)

public FindNeighborsResponse.Builder removeNearestNeighbors(int index)

The nearest neighbors of the query datapoints.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FindNeighborsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Parameters
NameDescription
indexint
valueFindNeighborsResponse.NearestNeighbors
Returns
TypeDescription
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.v1beta1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

Parameters
NameDescription
indexint
builderForValueFindNeighborsResponse.NearestNeighbors.Builder
Returns
TypeDescription
FindNeighborsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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