public final class FindNeighborsResponse extends GeneratedMessageV3 implements FindNeighborsResponseOrBuilder
The response message for
MatchService.FindNeighbors.
Protobuf type google.cloud.aiplatform.v1beta1.FindNeighborsResponse
Static Fields
public static final int NEAREST_NEIGHBORS_FIELD_NUMBER
Field Value
Static Methods
public static FindNeighborsResponse getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static FindNeighborsResponse.Builder newBuilder()
Returns
public static FindNeighborsResponse.Builder newBuilder(FindNeighborsResponse prototype)
Parameter
Returns
public static FindNeighborsResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static FindNeighborsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FindNeighborsResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static FindNeighborsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FindNeighborsResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static FindNeighborsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FindNeighborsResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static FindNeighborsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FindNeighborsResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static FindNeighborsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FindNeighborsResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static FindNeighborsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<FindNeighborsResponse> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public FindNeighborsResponse getDefaultInstanceForType()
Returns
public FindNeighborsResponse.NearestNeighbors getNearestNeighbors(int index)
The nearest neighbors of the query datapoints.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
Parameter
Returns
public int getNearestNeighborsCount()
The nearest neighbors of the query datapoints.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
Returns
public List<FindNeighborsResponse.NearestNeighbors> getNearestNeighborsList()
The nearest neighbors of the query datapoints.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
Returns
public FindNeighborsResponse.NearestNeighborsOrBuilder getNearestNeighborsOrBuilder(int index)
The nearest neighbors of the query datapoints.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
Parameter
Returns
public List<? extends FindNeighborsResponse.NearestNeighborsOrBuilder> getNearestNeighborsOrBuilderList()
The nearest neighbors of the query datapoints.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
Returns
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighborsOrBuilder> | |
public Parser<FindNeighborsResponse> 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.Builder newBuilderForType()
Returns
protected FindNeighborsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public FindNeighborsResponse.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions