Class NearestNeighbors (3.36.0)

public final class NearestNeighbors extends GeneratedMessageV3 implements NearestNeighborsOrBuilder

Nearest neighbors for one query.

Protobuf type google.cloud.aiplatform.v1.NearestNeighbors

Static Fields

NEIGHBORS_FIELD_NUMBER

public static final int NEIGHBORS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NearestNeighbors getDefaultInstance()
Returns
TypeDescription
NearestNeighbors

getDescriptor()

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

newBuilder()

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

newBuilder(NearestNeighbors prototype)

public static NearestNeighbors.Builder newBuilder(NearestNeighbors prototype)
Parameter
NameDescription
prototypeNearestNeighbors
Returns
TypeDescription
NearestNeighbors.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public NearestNeighbors getDefaultInstanceForType()
Returns
TypeDescription
NearestNeighbors

getNeighbors(int index)

public NearestNeighbors.Neighbor getNeighbors(int index)

All its neighbors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NearestNeighbors.Neighbor

getNeighborsCount()

public int getNeighborsCount()

All its neighbors.

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

Returns
TypeDescription
int

getNeighborsList()

public List<NearestNeighbors.Neighbor> getNeighborsList()

All its neighbors.

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

Returns
TypeDescription
List<Neighbor>

getNeighborsOrBuilder(int index)

public NearestNeighbors.NeighborOrBuilder getNeighborsOrBuilder(int index)

All its neighbors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NearestNeighbors.NeighborOrBuilder

getNeighborsOrBuilderList()

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

All its neighbors.

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

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1.NearestNeighbors.NeighborOrBuilder>

getParserForType()

public Parser<NearestNeighbors> getParserForType()
Returns
TypeDescription
Parser<NearestNeighbors>
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 NearestNeighbors.Builder newBuilderForType()
Returns
TypeDescription
NearestNeighbors.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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