Class SearchHint (0.8.0)

public final class SearchHint extends GeneratedMessage implements SearchHintOrBuilder

Represents a hint to the search index engine.

Protobuf type google.cloud.vectorsearch.v1beta.SearchHint

Implements

SearchHintOrBuilder

Static Fields

INDEX_HINT_FIELD_NUMBER

public static final int INDEX_HINT_FIELD_NUMBER
Field Value
Type Description
int

KNN_HINT_FIELD_NUMBER

public static final int KNN_HINT_FIELD_NUMBER
Field Value
Type Description
int

USE_INDEX_FIELD_NUMBER

public static final int USE_INDEX_FIELD_NUMBER
Field Value
Type Description
int

USE_KNN_FIELD_NUMBER

public static final int USE_KNN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SearchHint getDefaultInstance()
Returns
Type Description
SearchHint

getDescriptor()

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

newBuilder()

public static SearchHint.Builder newBuilder()
Returns
Type Description
SearchHint.Builder

newBuilder(SearchHint prototype)

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

parseDelimitedFrom(InputStream input)

public static SearchHint parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SearchHint
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SearchHint parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SearchHint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SearchHint parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SearchHint
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SearchHint parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SearchHint
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SearchHint parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SearchHint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SearchHint> parser()
Returns
Type Description
Parser<SearchHint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SearchHint getDefaultInstanceForType()
Returns
Type Description
SearchHint

getIndexHint()

public SearchHint.IndexHint getIndexHint()

Optional. Specifies that the search should use a particular index.

.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint index_hint = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchHint.IndexHint

The indexHint.

getIndexHintOrBuilder()

public SearchHint.IndexHintOrBuilder getIndexHintOrBuilder()

Optional. Specifies that the search should use a particular index.

.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint index_hint = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchHint.IndexHintOrBuilder

getIndexTypeCase()

public SearchHint.IndexTypeCase getIndexTypeCase()
Returns
Type Description
SearchHint.IndexTypeCase

getKnnHint()

public SearchHint.KnnHint getKnnHint()

Optional. If set, the search will use the system's default K-Nearest Neighbor (KNN) index engine.

.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint knn_hint = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchHint.KnnHint

The knnHint.

getKnnHintOrBuilder()

public SearchHint.KnnHintOrBuilder getKnnHintOrBuilder()

Optional. If set, the search will use the system's default K-Nearest Neighbor (KNN) index engine.

.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint knn_hint = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchHint.KnnHintOrBuilder

getParserForType()

public Parser<SearchHint> getParserForType()
Returns
Type Description
Parser<SearchHint>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUseIndex() (deprecated)

public SearchHint.IndexHint getUseIndex()

Deprecated. google.cloud.vectorsearch.v1beta.SearchHint.use_index is deprecated. See google/cloud/vectorsearch/v1beta/data_object_search_service.proto;l=142

Optional. Deprecated: Use index_hint instead. Specifies that the search should use a particular index.

.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchHint.IndexHint

The useIndex.

getUseIndexOrBuilder() (deprecated)

public SearchHint.IndexHintOrBuilder getUseIndexOrBuilder()

Optional. Deprecated: Use index_hint instead. Specifies that the search should use a particular index.

.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchHint.IndexHintOrBuilder

getUseKnn() (deprecated)

public boolean getUseKnn()

Deprecated. google.cloud.vectorsearch.v1beta.SearchHint.use_knn is deprecated. See google/cloud/vectorsearch/v1beta/data_object_search_service.proto;l=148

Optional. Deprecated: Use knn_hint instead. If set to true, the search will use the system's default K-Nearest Neighbor (KNN) index engine.

bool use_knn = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The useKnn.

hasIndexHint()

public boolean hasIndexHint()

Optional. Specifies that the search should use a particular index.

.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint index_hint = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the indexHint field is set.

hasKnnHint()

public boolean hasKnnHint()

Optional. If set, the search will use the system's default K-Nearest Neighbor (KNN) index engine.

.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint knn_hint = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the knnHint field is set.

hasUseIndex() (deprecated)

public boolean hasUseIndex()

Deprecated. google.cloud.vectorsearch.v1beta.SearchHint.use_index is deprecated. See google/cloud/vectorsearch/v1beta/data_object_search_service.proto;l=142

Optional. Deprecated: Use index_hint instead. Specifies that the search should use a particular index.

.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the useIndex field is set.

hasUseKnn() (deprecated)

public boolean hasUseKnn()

Deprecated. google.cloud.vectorsearch.v1beta.SearchHint.use_knn is deprecated. See google/cloud/vectorsearch/v1beta/data_object_search_service.proto;l=148

Optional. Deprecated: Use knn_hint instead. If set to true, the search will use the system's default K-Nearest Neighbor (KNN) index engine.

bool use_knn = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the useKnn field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SearchHint.Builder newBuilderForType()
Returns
Type Description
SearchHint.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SearchHint.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SearchHint.Builder
Overrides

toBuilder()

public SearchHint.Builder toBuilder()
Returns
Type Description
SearchHint.Builder

writeTo(CodedOutputStream output)

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