public sealed class VectorSearchServiceClientImpl : VectorSearchServiceClientReference documentation and code samples for the Vector Search v1 API class VectorSearchServiceClientImpl.
VectorSearchService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.VectorSearch.V1Assembly
Google.Cloud.VectorSearch.V1.dll
Remarks
VectorSearchService provides methods for managing Collection resources, and Collection Index resources. The primary resources offered by this service are Collections which are a container for a set of related JSON data objects, and Collection Indexes which enable efficient ANN search across data objects within a Collection.
Constructors
VectorSearchServiceClientImpl(VectorSearchServiceClient, VectorSearchServiceSettings, ILogger)
public VectorSearchServiceClientImpl(VectorSearchService.VectorSearchServiceClient grpcClient, VectorSearchServiceSettings settings, ILogger logger)Constructs a client wrapper for the VectorSearchService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
VectorSearchServiceVectorSearchServiceClientThe underlying gRPC client. |
settings |
VectorSearchServiceSettingsThe base VectorSearchServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
CreateCollectionOperationsClient
public override OperationsClient CreateCollectionOperationsClient { get; }The long-running operations client for CreateCollection.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateIndexOperationsClient
public override OperationsClient CreateIndexOperationsClient { get; }The long-running operations client for CreateIndex.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteCollectionOperationsClient
public override OperationsClient DeleteCollectionOperationsClient { get; }The long-running operations client for DeleteCollection.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteIndexOperationsClient
public override OperationsClient DeleteIndexOperationsClient { get; }The long-running operations client for DeleteIndex.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override VectorSearchService.VectorSearchServiceClient GrpcClient { get; }The underlying gRPC VectorSearchService client
| Property Value | |
|---|---|
| Type | Description |
VectorSearchServiceVectorSearchServiceClient |
|
ImportDataObjectsOperationsClient
public override OperationsClient ImportDataObjectsOperationsClient { get; }The long-running operations client for ImportDataObjects.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
UpdateCollectionOperationsClient
public override OperationsClient UpdateCollectionOperationsClient { get; }The long-running operations client for UpdateCollection.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
CreateCollection(CreateCollectionRequest, CallSettings)
public override Operation<Collection, OperationMetadata> CreateCollection(CreateCollectionRequest request, CallSettings callSettings = null)Creates a new Collection in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateCollectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationCollectionOperationMetadata |
The RPC response. |
CreateCollectionAsync(CreateCollectionRequest, CallSettings)
public override Task<Operation<Collection, OperationMetadata>> CreateCollectionAsync(CreateCollectionRequest request, CallSettings callSettings = null)Creates a new Collection in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateCollectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationCollectionOperationMetadata |
A Task containing the RPC response. |
CreateIndex(CreateIndexRequest, CallSettings)
public override Operation<Index, OperationMetadata> CreateIndex(CreateIndexRequest request, CallSettings callSettings = null)Creates a new Index in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateIndexRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationIndexOperationMetadata |
The RPC response. |
CreateIndexAsync(CreateIndexRequest, CallSettings)
public override Task<Operation<Index, OperationMetadata>> CreateIndexAsync(CreateIndexRequest request, CallSettings callSettings = null)Creates a new Index in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateIndexRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationIndexOperationMetadata |
A Task containing the RPC response. |
DeleteCollection(DeleteCollectionRequest, CallSettings)
public override Operation<Empty, OperationMetadata> DeleteCollection(DeleteCollectionRequest request, CallSettings callSettings = null)Deletes a single Collection.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteCollectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
DeleteCollectionAsync(DeleteCollectionRequest, CallSettings)
public override Task<Operation<Empty, OperationMetadata>> DeleteCollectionAsync(DeleteCollectionRequest request, CallSettings callSettings = null)Deletes a single Collection.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteCollectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
DeleteIndex(DeleteIndexRequest, CallSettings)
public override Operation<Empty, OperationMetadata> DeleteIndex(DeleteIndexRequest request, CallSettings callSettings = null)Deletes a single Index.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteIndexRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
DeleteIndexAsync(DeleteIndexRequest, CallSettings)
public override Task<Operation<Empty, OperationMetadata>> DeleteIndexAsync(DeleteIndexRequest request, CallSettings callSettings = null)Deletes a single Index.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteIndexRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
GetCollection(GetCollectionRequest, CallSettings)
public override Collection GetCollection(GetCollectionRequest request, CallSettings callSettings = null)Gets details of a single Collection.
| Parameters | |
|---|---|
| Name | Description |
request |
GetCollectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Collection |
The RPC response. |
GetCollectionAsync(GetCollectionRequest, CallSettings)
public override Task<Collection> GetCollectionAsync(GetCollectionRequest request, CallSettings callSettings = null)Gets details of a single Collection.
| Parameters | |
|---|---|
| Name | Description |
request |
GetCollectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCollection |
A Task containing the RPC response. |
GetIndex(GetIndexRequest, CallSettings)
public override Index GetIndex(GetIndexRequest request, CallSettings callSettings = null)Gets details of a single Index.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIndexRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Index |
The RPC response. |
GetIndexAsync(GetIndexRequest, CallSettings)
public override Task<Index> GetIndexAsync(GetIndexRequest request, CallSettings callSettings = null)Gets details of a single Index.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIndexRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskIndex |
A Task containing the RPC response. |
ImportDataObjects(ImportDataObjectsRequest, CallSettings)
public override Operation<ImportDataObjectsResponse, ImportDataObjectsMetadata> ImportDataObjects(ImportDataObjectsRequest request, CallSettings callSettings = null)Initiates a Long-Running Operation to import DataObjects into a Collection.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportDataObjectsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationImportDataObjectsResponseImportDataObjectsMetadata |
The RPC response. |
ImportDataObjectsAsync(ImportDataObjectsRequest, CallSettings)
public override Task<Operation<ImportDataObjectsResponse, ImportDataObjectsMetadata>> ImportDataObjectsAsync(ImportDataObjectsRequest request, CallSettings callSettings = null)Initiates a Long-Running Operation to import DataObjects into a Collection.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportDataObjectsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationImportDataObjectsResponseImportDataObjectsMetadata |
A Task containing the RPC response. |
ListCollections(ListCollectionsRequest, CallSettings)
public override PagedEnumerable<ListCollectionsResponse, Collection> ListCollections(ListCollectionsRequest request, CallSettings callSettings = null)Lists Collections in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListCollectionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListCollectionsResponseCollection |
A pageable sequence of Collection resources. |
ListCollectionsAsync(ListCollectionsRequest, CallSettings)
public override PagedAsyncEnumerable<ListCollectionsResponse, Collection> ListCollectionsAsync(ListCollectionsRequest request, CallSettings callSettings = null)Lists Collections in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListCollectionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListCollectionsResponseCollection |
A pageable asynchronous sequence of Collection resources. |
ListIndexes(ListIndexesRequest, CallSettings)
public override PagedEnumerable<ListIndexesResponse, Index> ListIndexes(ListIndexesRequest request, CallSettings callSettings = null)Lists Indexes in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListIndexesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListIndexesResponseIndex |
A pageable sequence of Index resources. |
ListIndexesAsync(ListIndexesRequest, CallSettings)
public override PagedAsyncEnumerable<ListIndexesResponse, Index> ListIndexesAsync(ListIndexesRequest request, CallSettings callSettings = null)Lists Indexes in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListIndexesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListIndexesResponseIndex |
A pageable asynchronous sequence of Index resources. |
UpdateCollection(UpdateCollectionRequest, CallSettings)
public override Operation<Collection, OperationMetadata> UpdateCollection(UpdateCollectionRequest request, CallSettings callSettings = null)Updates the parameters of a single Collection.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateCollectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationCollectionOperationMetadata |
The RPC response. |
UpdateCollectionAsync(UpdateCollectionRequest, CallSettings)
public override Task<Operation<Collection, OperationMetadata>> UpdateCollectionAsync(UpdateCollectionRequest request, CallSettings callSettings = null)Updates the parameters of a single Collection.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateCollectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationCollectionOperationMetadata |
A Task containing the RPC response. |