Class FindNeighborsResponse (3.29.0)

public final class FindNeighborsResponse extends GeneratedMessageV3 implements FindNeighborsResponseOrBuilder

The response message for MatchService.FindNeighbors.

Protobuf type google.cloud.aiplatform.v1.FindNeighborsResponse

Static Fields

NEAREST_NEIGHBORS_FIELD_NUMBER

public static final int NEAREST_NEIGHBORS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FindNeighborsResponse getDefaultInstance()
Returns
TypeDescription
FindNeighborsResponse

getDescriptor()

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

newBuilder()

public static FindNeighborsResponse.Builder newBuilder()
Returns
TypeDescription
FindNeighborsResponse.Builder

newBuilder(FindNeighborsResponse prototype)

public static FindNeighborsResponse.Builder newBuilder(FindNeighborsResponse prototype)
Parameter
NameDescription
prototypeFindNeighborsResponse
Returns
TypeDescription
FindNeighborsResponse.Builder

parseDelimitedFrom(InputStream input)

public static FindNeighborsResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FindNeighborsResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FindNeighborsResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FindNeighborsResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FindNeighborsResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FindNeighborsResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FindNeighborsResponse> parser()
Returns
TypeDescription
Parser<FindNeighborsResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public FindNeighborsResponse getDefaultInstanceForType()
Returns
TypeDescription
FindNeighborsResponse

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
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors

getNearestNeighborsCount()

public int getNearestNeighborsCount()

The nearest neighbors of the query datapoints.

repeated .google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;

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

getParserForType()

public Parser<FindNeighborsResponse> getParserForType()
Returns
TypeDescription
Parser<FindNeighborsResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FindNeighborsResponse.Builder newBuilderForType()
Returns
TypeDescription
FindNeighborsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FindNeighborsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FindNeighborsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FindNeighborsResponse.Builder toBuilder()
Returns
TypeDescription
FindNeighborsResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException