Class NearestNeighbors (3.42.0)

public final class NearestNeighbors extends GeneratedMessageV3 implements NearestNeighborsOrBuilder

Nearest neighbors for one query.

Protobuf type google.cloud.aiplatform.v1beta1.NearestNeighbors

Static Fields

NEIGHBORS_FIELD_NUMBER

public static final int NEIGHBORS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NearestNeighbors getDefaultInstance()
Returns
Type Description
NearestNeighbors

getDescriptor()

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

newBuilder()

public static NearestNeighbors.Builder newBuilder()
Returns
Type Description
NearestNeighbors.Builder

newBuilder(NearestNeighbors prototype)

public static NearestNeighbors.Builder newBuilder(NearestNeighbors prototype)
Parameter
Name Description
prototype NearestNeighbors
Returns
Type Description
NearestNeighbors.Builder

parseDelimitedFrom(InputStream input)

public static NearestNeighbors parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NearestNeighbors parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NearestNeighbors parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NearestNeighbors parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NearestNeighbors parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NearestNeighbors parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NearestNeighbors parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NearestNeighbors parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NearestNeighbors parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NearestNeighbors parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NearestNeighbors parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NearestNeighbors parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NearestNeighbors
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NearestNeighbors> parser()
Returns
Type Description
Parser<NearestNeighbors>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public NearestNeighbors getDefaultInstanceForType()
Returns
Type Description
NearestNeighbors

getNeighbors(int index)

public NearestNeighbors.Neighbor getNeighbors(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.NearestNeighbors.Neighbor neighbors = 1;

Parameter
Name Description
index int
Returns
Type Description
NearestNeighbors.Neighbor

getNeighborsCount()

public int getNeighborsCount()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.NearestNeighbors.Neighbor neighbors = 1;

Returns
Type Description
int

getNeighborsList()

public List<NearestNeighbors.Neighbor> getNeighborsList()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.NearestNeighbors.Neighbor neighbors = 1;

Returns
Type Description
List<Neighbor>

getNeighborsOrBuilder(int index)

public NearestNeighbors.NeighborOrBuilder getNeighborsOrBuilder(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.NearestNeighbors.Neighbor neighbors = 1;

Parameter
Name Description
index int
Returns
Type Description
NearestNeighbors.NeighborOrBuilder

getNeighborsOrBuilderList()

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

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.NearestNeighbors.Neighbor neighbors = 1;

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

getParserForType()

public Parser<NearestNeighbors> getParserForType()
Returns
Type Description
Parser<NearestNeighbors>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NearestNeighbors.Builder newBuilderForType()
Returns
Type Description
NearestNeighbors.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NearestNeighbors.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NearestNeighbors.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NearestNeighbors.Builder toBuilder()
Returns
Type Description
NearestNeighbors.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException