Class SearchNearestEntitiesResponse (3.37.0)

public final class SearchNearestEntitiesResponse extends GeneratedMessageV3 implements SearchNearestEntitiesResponseOrBuilder

Response message for FeatureOnlineStoreService.SearchNearestEntities

Protobuf type google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse

Static Fields

NEAREST_NEIGHBORS_FIELD_NUMBER

public static final int NEAREST_NEIGHBORS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SearchNearestEntitiesResponse getDefaultInstance()
Returns
TypeDescription
SearchNearestEntitiesResponse

getDescriptor()

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

newBuilder()

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

newBuilder(SearchNearestEntitiesResponse prototype)

public static SearchNearestEntitiesResponse.Builder newBuilder(SearchNearestEntitiesResponse prototype)
Parameter
NameDescription
prototypeSearchNearestEntitiesResponse
Returns
TypeDescription
SearchNearestEntitiesResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SearchNearestEntitiesResponse getDefaultInstanceForType()
Returns
TypeDescription
SearchNearestEntitiesResponse

getNearestNeighbors()

public NearestNeighbors getNearestNeighbors()

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1beta1.NearestNeighbors nearest_neighbors = 1;

Returns
TypeDescription
NearestNeighbors

The nearestNeighbors.

getNearestNeighborsOrBuilder()

public NearestNeighborsOrBuilder getNearestNeighborsOrBuilder()

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1beta1.NearestNeighbors nearest_neighbors = 1;

Returns
TypeDescription
NearestNeighborsOrBuilder

getParserForType()

public Parser<SearchNearestEntitiesResponse> getParserForType()
Returns
TypeDescription
Parser<SearchNearestEntitiesResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasNearestNeighbors()

public boolean hasNearestNeighbors()

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1beta1.NearestNeighbors nearest_neighbors = 1;

Returns
TypeDescription
boolean

Whether the nearestNeighbors field is set.

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 SearchNearestEntitiesResponse.Builder newBuilderForType()
Returns
TypeDescription
SearchNearestEntitiesResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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