public static final class SearchHint.Builder extends GeneratedMessage.Builder<SearchHint.Builder> implements SearchHintOrBuilderRepresents a hint to the search index engine.
Protobuf type google.cloud.vectorsearch.v1beta.SearchHint
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SearchHint.BuilderImplements
SearchHintOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SearchHint build()| Returns | |
|---|---|
| Type | Description |
SearchHint |
|
buildPartial()
public SearchHint buildPartial()| Returns | |
|---|---|
| Type | Description |
SearchHint |
|
clear()
public SearchHint.Builder clear()| Returns | |
|---|---|
| Type | Description |
SearchHint.Builder |
|
clearIndexType()
public SearchHint.Builder clearIndexType()| Returns | |
|---|---|
| Type | Description |
SearchHint.Builder |
|
clearUseIndex()
public SearchHint.Builder clearUseIndex()Optional. Specifies that the search should use a particular index.
.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SearchHint.Builder |
|
clearUseKnn()
public SearchHint.Builder clearUseKnn()Optional. If set to true, the search will use the system's default K-Nearest Neighbor (KNN) index engine.
bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SearchHint.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public SearchHint getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SearchHint |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getIndexTypeCase()
public SearchHint.IndexTypeCase getIndexTypeCase()| Returns | |
|---|---|
| Type | Description |
SearchHint.IndexTypeCase |
|
getUseIndex()
public SearchHint.IndexHint getUseIndex()Optional. Specifies that the search should use a particular index.
.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SearchHint.IndexHint |
The useIndex. |
getUseIndexBuilder()
public SearchHint.IndexHint.Builder getUseIndexBuilder()Optional. Specifies that the search should use a particular index.
.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SearchHint.IndexHint.Builder |
|
getUseIndexOrBuilder()
public SearchHint.IndexHintOrBuilder getUseIndexOrBuilder()Optional. Specifies that the search should use a particular index.
.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SearchHint.IndexHintOrBuilder |
|
getUseKnn()
public boolean getUseKnn()Optional. If set to true, the search will use the system's default K-Nearest Neighbor (KNN) index engine.
bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The useKnn. |
hasUseIndex()
public boolean hasUseIndex()Optional. Specifies that the search should use a particular index.
.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the useIndex field is set. |
hasUseKnn()
public boolean hasUseKnn()Optional. If set to true, the search will use the system's default K-Nearest Neighbor (KNN) index engine.
bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the useKnn field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SearchHint other)
public SearchHint.Builder mergeFrom(SearchHint other)| Parameter | |
|---|---|
| Name | Description |
other |
SearchHint |
| Returns | |
|---|---|
| Type | Description |
SearchHint.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SearchHint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchHint.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SearchHint.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SearchHint.Builder |
|
mergeUseIndex(SearchHint.IndexHint value)
public SearchHint.Builder mergeUseIndex(SearchHint.IndexHint value)Optional. Specifies that the search should use a particular index.
.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SearchHint.IndexHint |
| Returns | |
|---|---|
| Type | Description |
SearchHint.Builder |
|
setUseIndex(SearchHint.IndexHint value)
public SearchHint.Builder setUseIndex(SearchHint.IndexHint value)Optional. Specifies that the search should use a particular index.
.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SearchHint.IndexHint |
| Returns | |
|---|---|
| Type | Description |
SearchHint.Builder |
|
setUseIndex(SearchHint.IndexHint.Builder builderForValue)
public SearchHint.Builder setUseIndex(SearchHint.IndexHint.Builder builderForValue)Optional. Specifies that the search should use a particular index.
.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SearchHint.IndexHint.Builder |
| Returns | |
|---|---|
| Type | Description |
SearchHint.Builder |
|
setUseKnn(boolean value)
public SearchHint.Builder setUseKnn(boolean value)Optional. If set to true, the search will use the system's default K-Nearest Neighbor (KNN) index engine.
bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe useKnn to set. |
| Returns | |
|---|---|
| Type | Description |
SearchHint.Builder |
This builder for chaining. |