Class FindNeighborsResponse.NearestNeighbors (3.36.0)

public static final class FindNeighborsResponse.NearestNeighbors extends GeneratedMessageV3 implements FindNeighborsResponse.NearestNeighborsOrBuilder

Nearest neighbors for one query.

Protobuf type google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > FindNeighborsResponse.NearestNeighbors

Static Fields

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

NEIGHBORS_FIELD_NUMBER

public static final int NEIGHBORS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FindNeighborsResponse.NearestNeighbors getDefaultInstance()
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors

getDescriptor()

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

newBuilder()

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

newBuilder(FindNeighborsResponse.NearestNeighbors prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public FindNeighborsResponse.NearestNeighbors getDefaultInstanceForType()
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors

getId()

public String getId()

The ID of the query datapoint.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

The ID of the query datapoint.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getNeighbors(int index)

public FindNeighborsResponse.Neighbor getNeighbors(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.Neighbor

getNeighborsCount()

public int getNeighborsCount()

All its neighbors.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
TypeDescription
int

getNeighborsList()

public List<FindNeighborsResponse.Neighbor> getNeighborsList()

All its neighbors.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
TypeDescription
List<Neighbor>

getNeighborsOrBuilder(int index)

public FindNeighborsResponse.NeighborOrBuilder getNeighborsOrBuilder(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.NeighborOrBuilder

getNeighborsOrBuilderList()

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

All its neighbors.

repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2;

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

getParserForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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