Class FindNeighborsResponse.NearestNeighbors (3.42.0)

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

Nearest neighbors for one query.

Protobuf type google.cloud.aiplatform.v1beta1.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
Type Description
int

NEIGHBORS_FIELD_NUMBER

public static final int NEIGHBORS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FindNeighborsResponse.NearestNeighbors getDefaultInstance()
Returns
Type Description
FindNeighborsResponse.NearestNeighbors

getDescriptor()

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

newBuilder()

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

newBuilder(FindNeighborsResponse.NearestNeighbors prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<FindNeighborsResponse.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 FindNeighborsResponse.NearestNeighbors getDefaultInstanceForType()
Returns
Type Description
FindNeighborsResponse.NearestNeighbors

getId()

public String getId()

The ID of the query datapoint.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The ID of the query datapoint.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getNeighbors(int index)

public FindNeighborsResponse.Neighbor getNeighbors(int index)

All its neighbors.

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

Parameter
Name Description
index int
Returns
Type Description
FindNeighborsResponse.Neighbor

getNeighborsCount()

public int getNeighborsCount()

All its neighbors.

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

Returns
Type Description
int

getNeighborsList()

public List<FindNeighborsResponse.Neighbor> getNeighborsList()

All its neighbors.

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

Returns
Type Description
List<Neighbor>

getNeighborsOrBuilder(int index)

public FindNeighborsResponse.NeighborOrBuilder getNeighborsOrBuilder(int index)

All its neighbors.

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

Parameter
Name Description
index int
Returns
Type Description
FindNeighborsResponse.NeighborOrBuilder

getNeighborsOrBuilderList()

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

All its neighbors.

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

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

getParserForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FindNeighborsResponse.NearestNeighbors.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FindNeighborsResponse.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 FindNeighborsResponse.NearestNeighbors.Builder toBuilder()
Returns
Type Description
FindNeighborsResponse.NearestNeighbors.Builder

writeTo(CodedOutputStream output)

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