public static final class FindNeighborsResponse.NearestNeighbors extends GeneratedMessageV3 implements FindNeighborsResponse.NearestNeighborsOrBuilder
Nearest neighbors for one query.
Protobuf type google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors
Static Fields
public static final int ID_FIELD_NUMBER
Field Value
public static final int NEIGHBORS_FIELD_NUMBER
Field Value
Static Methods
public static FindNeighborsResponse.NearestNeighbors getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static FindNeighborsResponse.NearestNeighbors.Builder newBuilder()
Returns
public static FindNeighborsResponse.NearestNeighbors.Builder newBuilder(FindNeighborsResponse.NearestNeighbors prototype)
Parameter
Returns
public static FindNeighborsResponse.NearestNeighbors parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static FindNeighborsResponse.NearestNeighbors parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FindNeighborsResponse.NearestNeighbors parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static FindNeighborsResponse.NearestNeighbors parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FindNeighborsResponse.NearestNeighbors parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static FindNeighborsResponse.NearestNeighbors parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FindNeighborsResponse.NearestNeighbors parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static FindNeighborsResponse.NearestNeighbors parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FindNeighborsResponse.NearestNeighbors parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static FindNeighborsResponse.NearestNeighbors parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FindNeighborsResponse.NearestNeighbors parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static FindNeighborsResponse.NearestNeighbors parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<FindNeighborsResponse.NearestNeighbors> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public FindNeighborsResponse.NearestNeighbors getDefaultInstanceForType()
Returns
The ID of the query datapoint.
string id = 1;
Returns
public ByteString getIdBytes()
The ID of the query datapoint.
string id = 1;
Returns
public FindNeighborsResponse.Neighbor getNeighbors(int index)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameter
Returns
public int getNeighborsCount()
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Returns
public List<FindNeighborsResponse.Neighbor> getNeighborsList()
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Returns
public FindNeighborsResponse.NeighborOrBuilder getNeighborsOrBuilder(int index)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameter
Returns
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> | |
public Parser<FindNeighborsResponse.NearestNeighbors> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public FindNeighborsResponse.NearestNeighbors.Builder newBuilderForType()
Returns
protected FindNeighborsResponse.NearestNeighbors.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public FindNeighborsResponse.NearestNeighbors.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions