public static final class BatchSearchDataObjectsRequest.Builder extends GeneratedMessage.Builder<BatchSearchDataObjectsRequest.Builder> implements BatchSearchDataObjectsRequestOrBuilderA request to perform a batch of search operations.
Protobuf type google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BatchSearchDataObjectsRequest.BuilderImplements
BatchSearchDataObjectsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSearches(Iterable<? extends Search> values)
public BatchSearchDataObjectsRequest.Builder addAllSearches(Iterable<? extends Search> values)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.vectorsearch.v1beta.Search> |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
addSearches(Search value)
public BatchSearchDataObjectsRequest.Builder addSearches(Search value)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Search |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
addSearches(Search.Builder builderForValue)
public BatchSearchDataObjectsRequest.Builder addSearches(Search.Builder builderForValue)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Search.Builder |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
addSearches(int index, Search value)
public BatchSearchDataObjectsRequest.Builder addSearches(int index, Search value)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Search |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
addSearches(int index, Search.Builder builderForValue)
public BatchSearchDataObjectsRequest.Builder addSearches(int index, Search.Builder builderForValue)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Search.Builder |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
addSearchesBuilder()
public Search.Builder addSearchesBuilder()Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Search.Builder |
|
addSearchesBuilder(int index)
public Search.Builder addSearchesBuilder(int index)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Search.Builder |
|
build()
public BatchSearchDataObjectsRequest build()| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest |
|
buildPartial()
public BatchSearchDataObjectsRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest |
|
clear()
public BatchSearchDataObjectsRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
clearCombine()
public BatchSearchDataObjectsRequest.Builder clearCombine()Optional. Options for combining the results of the batch search operations.
.google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsRequest.CombineResultsOptions combine = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
clearParent()
public BatchSearchDataObjectsRequest.Builder clearParent() Required. The resource name of the Collection for which to search.
Format: projects/{project}/locations/{location}/collections/{collection}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
This builder for chaining. |
clearSearches()
public BatchSearchDataObjectsRequest.Builder clearSearches()Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
getCombine()
public BatchSearchDataObjectsRequest.CombineResultsOptions getCombine()Optional. Options for combining the results of the batch search operations.
.google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsRequest.CombineResultsOptions combine = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions |
The combine. |
getCombineBuilder()
public BatchSearchDataObjectsRequest.CombineResultsOptions.Builder getCombineBuilder()Optional. Options for combining the results of the batch search operations.
.google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsRequest.CombineResultsOptions combine = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
|
getCombineOrBuilder()
public BatchSearchDataObjectsRequest.CombineResultsOptionsOrBuilder getCombineOrBuilder()Optional. Options for combining the results of the batch search operations.
.google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsRequest.CombineResultsOptions combine = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.CombineResultsOptionsOrBuilder |
|
getDefaultInstanceForType()
public BatchSearchDataObjectsRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent() Required. The resource name of the Collection for which to search.
Format: projects/{project}/locations/{location}/collections/{collection}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes() Required. The resource name of the Collection for which to search.
Format: projects/{project}/locations/{location}/collections/{collection}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getSearches(int index)
public Search getSearches(int index)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Search |
|
getSearchesBuilder(int index)
public Search.Builder getSearchesBuilder(int index)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Search.Builder |
|
getSearchesBuilderList()
public List<Search.Builder> getSearchesBuilderList()Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSearchesCount()
public int getSearchesCount()Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
|
getSearchesList()
public List<Search> getSearchesList()Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Search> |
|
getSearchesOrBuilder(int index)
public SearchOrBuilder getSearchesOrBuilder(int index)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SearchOrBuilder |
|
getSearchesOrBuilderList()
public List<? extends SearchOrBuilder> getSearchesOrBuilderList()Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.vectorsearch.v1beta.SearchOrBuilder> |
|
hasCombine()
public boolean hasCombine()Optional. Options for combining the results of the batch search operations.
.google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsRequest.CombineResultsOptions combine = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the combine field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCombine(BatchSearchDataObjectsRequest.CombineResultsOptions value)
public BatchSearchDataObjectsRequest.Builder mergeCombine(BatchSearchDataObjectsRequest.CombineResultsOptions value)Optional. Options for combining the results of the batch search operations.
.google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsRequest.CombineResultsOptions combine = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BatchSearchDataObjectsRequest.CombineResultsOptions |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
mergeFrom(BatchSearchDataObjectsRequest other)
public BatchSearchDataObjectsRequest.Builder mergeFrom(BatchSearchDataObjectsRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
BatchSearchDataObjectsRequest |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BatchSearchDataObjectsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BatchSearchDataObjectsRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
removeSearches(int index)
public BatchSearchDataObjectsRequest.Builder removeSearches(int index)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
setCombine(BatchSearchDataObjectsRequest.CombineResultsOptions value)
public BatchSearchDataObjectsRequest.Builder setCombine(BatchSearchDataObjectsRequest.CombineResultsOptions value)Optional. Options for combining the results of the batch search operations.
.google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsRequest.CombineResultsOptions combine = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BatchSearchDataObjectsRequest.CombineResultsOptions |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
setCombine(BatchSearchDataObjectsRequest.CombineResultsOptions.Builder builderForValue)
public BatchSearchDataObjectsRequest.Builder setCombine(BatchSearchDataObjectsRequest.CombineResultsOptions.Builder builderForValue)Optional. Options for combining the results of the batch search operations.
.google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsRequest.CombineResultsOptions combine = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BatchSearchDataObjectsRequest.CombineResultsOptions.Builder |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
setParent(String value)
public BatchSearchDataObjectsRequest.Builder setParent(String value) Required. The resource name of the Collection for which to search.
Format: projects/{project}/locations/{location}/collections/{collection}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public BatchSearchDataObjectsRequest.Builder setParentBytes(ByteString value) Required. The resource name of the Collection for which to search.
Format: projects/{project}/locations/{location}/collections/{collection}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
This builder for chaining. |
setSearches(int index, Search value)
public BatchSearchDataObjectsRequest.Builder setSearches(int index, Search value)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Search |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|
setSearches(int index, Search.Builder builderForValue)
public BatchSearchDataObjectsRequest.Builder setSearches(int index, Search.Builder builderForValue)Required. A list of search requests to execute in parallel.
repeated .google.cloud.vectorsearch.v1beta.Search searches = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Search.Builder |
| Returns | |
|---|---|
| Type | Description |
BatchSearchDataObjectsRequest.Builder |
|