public static final class BatchSearchDataObjectsRequest.CombineResultsOptions.Builder extends GeneratedMessage.Builder<BatchSearchDataObjectsRequest.CombineResultsOptions.Builder> implements BatchSearchDataObjectsRequest.CombineResultsOptionsOrBuilderOptions for combining the results of the batch search operations.
Protobuf type
google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsRequest.CombineResultsOptions
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BatchSearchDataObjectsRequest.CombineResultsOptions.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BatchSearchDataObjectsRequest.CombineResultsOptions build()| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions |
|
buildPartial()
public BatchSearchDataObjectsRequest.CombineResultsOptions buildPartial()| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions |
|
clear()
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder clear()| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
clearOutputFields()
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder clearOutputFields()Optional. Mask specifying which fields to return.
.google.cloud.vectorsearch.v1beta.OutputFields output_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
clearRanker()
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder clearRanker()Required. The ranker to use for combining the results.
.google.cloud.vectorsearch.v1beta.Ranker ranker = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
clearTopK()
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder clearTopK()Optional. The number of results to return. If not set, a default value will be used.
int32 top_k = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public BatchSearchDataObjectsRequest.CombineResultsOptions getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getOutputFields()
public OutputFields getOutputFields()Optional. Mask specifying which fields to return.
.google.cloud.vectorsearch.v1beta.OutputFields output_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OutputFields |
The outputFields. |
getOutputFieldsBuilder()
public OutputFields.Builder getOutputFieldsBuilder()Optional. Mask specifying which fields to return.
.google.cloud.vectorsearch.v1beta.OutputFields output_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OutputFields.Builder |
|
getOutputFieldsOrBuilder()
public OutputFieldsOrBuilder getOutputFieldsOrBuilder()Optional. Mask specifying which fields to return.
.google.cloud.vectorsearch.v1beta.OutputFields output_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OutputFieldsOrBuilder |
|
getRanker()
public Ranker getRanker()Required. The ranker to use for combining the results.
.google.cloud.vectorsearch.v1beta.Ranker ranker = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Ranker |
The ranker. |
getRankerBuilder()
public Ranker.Builder getRankerBuilder()Required. The ranker to use for combining the results.
.google.cloud.vectorsearch.v1beta.Ranker ranker = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Ranker.Builder |
|
getRankerOrBuilder()
public RankerOrBuilder getRankerOrBuilder()Required. The ranker to use for combining the results.
.google.cloud.vectorsearch.v1beta.Ranker ranker = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RankerOrBuilder |
|
getTopK()
public int getTopK()Optional. The number of results to return. If not set, a default value will be used.
int32 top_k = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The topK. |
hasOutputFields()
public boolean hasOutputFields()Optional. Mask specifying which fields to return.
.google.cloud.vectorsearch.v1beta.OutputFields output_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the outputFields field is set. |
hasRanker()
public boolean hasRanker()Required. The ranker to use for combining the results.
.google.cloud.vectorsearch.v1beta.Ranker ranker = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the ranker field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(BatchSearchDataObjectsRequest.CombineResultsOptions other)
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder mergeFrom(BatchSearchDataObjectsRequest.CombineResultsOptions other)| Parameter | |
|---|---|
| Name | Description |
other |
BatchSearchDataObjectsRequest.CombineResultsOptions |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
mergeOutputFields(OutputFields value)
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder mergeOutputFields(OutputFields value)Optional. Mask specifying which fields to return.
.google.cloud.vectorsearch.v1beta.OutputFields output_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
OutputFields |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
mergeRanker(Ranker value)
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder mergeRanker(Ranker value)Required. The ranker to use for combining the results.
.google.cloud.vectorsearch.v1beta.Ranker ranker = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Ranker |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
setOutputFields(OutputFields value)
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder setOutputFields(OutputFields value)Optional. Mask specifying which fields to return.
.google.cloud.vectorsearch.v1beta.OutputFields output_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
OutputFields |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
setOutputFields(OutputFields.Builder builderForValue)
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder setOutputFields(OutputFields.Builder builderForValue)Optional. Mask specifying which fields to return.
.google.cloud.vectorsearch.v1beta.OutputFields output_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
OutputFields.Builder |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
setRanker(Ranker value)
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder setRanker(Ranker value)Required. The ranker to use for combining the results.
.google.cloud.vectorsearch.v1beta.Ranker ranker = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Ranker |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
setRanker(Ranker.Builder builderForValue)
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder setRanker(Ranker.Builder builderForValue)Required. The ranker to use for combining the results.
.google.cloud.vectorsearch.v1beta.Ranker ranker = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Ranker.Builder |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
setTopK(int value)
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder setTopK(int value)Optional. The number of results to return. If not set, a default value will be used.
int32 top_k = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe topK to set. |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
This builder for chaining. |