Class SearchHint (0.1.0)

public final class SearchHint extends GeneratedMessageV3 implements SearchHintOrBuilder

Represents a hint to the search index engine.

Protobuf type google.cloud.vectorsearch.v1beta.SearchHint

Implements

SearchHintOrBuilder

Static Fields

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

getIndexTypeCase()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUseIndex()

public SearchHint.IndexHint getUseIndex()

Specifies that the search should use a particular index.

.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1;

Returns
Type Description
SearchHint.IndexHint

The useIndex.

getUseIndexOrBuilder()

public SearchHint.IndexHintOrBuilder getUseIndexOrBuilder()

Specifies that the search should use a particular index.

.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1;

Returns
Type Description
SearchHint.IndexHintOrBuilder

getUseKnn()

public boolean getUseKnn()

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

bool use_knn = 2;

Returns
Type Description
boolean

The useKnn.

hasUseIndex()

public boolean hasUseIndex()

Specifies that the search should use a particular index.

.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1;

Returns
Type Description
boolean

Whether the useIndex field is set.

hasUseKnn()

public boolean hasUseKnn()

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

bool use_knn = 2;

Returns
Type Description
boolean

Whether the useKnn field is set.

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 SearchHint.Builder newBuilderForType()
Returns
Type Description
SearchHint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
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