Service that manages media content + metadata for streaming.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection> objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
WarehouseClient(WarehouseClient const &)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
WarehouseClient const &
|
WarehouseClient(WarehouseClient &&)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
WarehouseClient &&
|
WarehouseClient(std::shared_ptr< WarehouseConnection >, Options)
| Parameters | |
|---|---|
| Name | Description |
connection |
std::shared_ptr< WarehouseConnection >
|
opts |
Options
|
Operators
operator=(WarehouseClient const &)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
WarehouseClient const &
|
| Returns | |
|---|---|
| Type | Description |
WarehouseClient & |
|
operator=(WarehouseClient &&)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
WarehouseClient &&
|
| Returns | |
|---|---|
| Type | Description |
WarehouseClient & |
|
Functions
CreateAsset(std::string const &, google::cloud::visionai::v1::Asset const &, std::string const &, Options)
Creates an asset inside corpus.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent resource where this asset will be created. Format: |
asset |
google::cloud::visionai::v1::Asset const &
Required. The asset to create. |
asset_id |
std::string const &
Optional. The ID to use for the asset, which will become the final component of the asset's resource name if user choose to specify. Otherwise, asset id will be generated by system. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Asset > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Asset) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateAsset(google::cloud::visionai::v1::CreateAssetRequest const &, Options)
Creates an asset inside corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::CreateAssetRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Asset > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Asset) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateAsset(google::cloud::visionai::v1::Asset const &, google::protobuf::FieldMask const &, Options)
Updates an asset inside corpus.
| Parameters | |
|---|---|
| Name | Description |
asset |
google::cloud::visionai::v1::Asset const &
Required. The asset to update. |
update_mask |
google::protobuf::FieldMask const &
The list of fields to be updated. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Asset > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Asset) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateAsset(google::cloud::visionai::v1::UpdateAssetRequest const &, Options)
Updates an asset inside corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::UpdateAssetRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Asset > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Asset) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetAsset(std::string const &, Options)
Reads an asset inside corpus.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the asset to retrieve. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset} |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Asset > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Asset) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetAsset(google::cloud::visionai::v1::GetAssetRequest const &, Options)
Reads an asset inside corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::GetAssetRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Asset > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Asset) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListAssets(std::string const &, Options)
Lists an list of assets inside corpus.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent, which owns this collection of assets. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::Asset > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListAssets(google::cloud::visionai::v1::ListAssetsRequest, Options)
Lists an list of assets inside corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ListAssetsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::Asset > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
DeleteAsset(std::string const &, Options)
Deletes asset inside corpus.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the asset to delete. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteAssetMetadata > > |
A |
DeleteAsset(NoAwaitTag, std::string const &, Options)
Deletes asset inside corpus.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteAsset(google::cloud::visionai::v1::DeleteAssetRequest const &, Options)
Deletes asset inside corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::DeleteAssetRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteAssetMetadata > > |
A |
DeleteAsset(NoAwaitTag, google::cloud::visionai::v1::DeleteAssetRequest const &, Options)
Deletes asset inside corpus.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::DeleteAssetRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteAsset(google::longrunning::Operation const &, Options)
Deletes asset inside corpus.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteAssetMetadata > > |
|
UploadAsset(google::cloud::visionai::v1::UploadAssetRequest const &, Options)
Upload asset by specifing the asset Cloud Storage uri.
For video warehouse, it requires users who call this API have read access to the cloud storage file. Once it is uploaded, it can be retrieved by GenerateRetrievalUrl API which by default, only can retrieve cloud storage files from the same project of the warehouse. To allow retrieval cloud storage files that are in a separate project, it requires to find the vision ai service account (Go to IAM, check checkbox to show "Include Google-provided role grants", search for "Cloud Vision AI Service Agent") and grant the read access of the cloud storage files to that service account.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::UploadAssetRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::UploadAssetResponse > > |
A |
UploadAsset(NoAwaitTag, google::cloud::visionai::v1::UploadAssetRequest const &, Options)
Upload asset by specifing the asset Cloud Storage uri.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::UploadAssetRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UploadAsset(google::longrunning::Operation const &, Options)
Upload asset by specifing the asset Cloud Storage uri.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::UploadAssetResponse > > |
|
GenerateRetrievalUrl(google::cloud::visionai::v1::GenerateRetrievalUrlRequest const &, Options)
Generates a signed url for downloading the asset.
For video warehouse, please see comment of UploadAsset about how to allow retrieval of cloud storage files in a different project.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::GenerateRetrievalUrlRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::GenerateRetrievalUrlResponse > |
the result of the RPC. The response message type (google.cloud.visionai.v1.GenerateRetrievalUrlResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
AnalyzeAsset(google::cloud::visionai::v1::AnalyzeAssetRequest const &, Options)
Analyze asset to power search capability.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::AnalyzeAssetRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::AnalyzeAssetResponse > > |
A |
AnalyzeAsset(NoAwaitTag, google::cloud::visionai::v1::AnalyzeAssetRequest const &, Options)
Analyze asset to power search capability.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::AnalyzeAssetRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
AnalyzeAsset(google::longrunning::Operation const &, Options)
Analyze asset to power search capability.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::AnalyzeAssetResponse > > |
|
IndexAsset(google::cloud::visionai::v1::IndexAssetRequest const &, Options)
Index one asset for search.
Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::IndexAssetRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::IndexAssetResponse > > |
A |
IndexAsset(NoAwaitTag, google::cloud::visionai::v1::IndexAssetRequest const &, Options)
Index one asset for search.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::IndexAssetRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
IndexAsset(google::longrunning::Operation const &, Options)
Index one asset for search.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::IndexAssetResponse > > |
|
RemoveIndexAsset(google::cloud::visionai::v1::RemoveIndexAssetRequest const &, Options)
Remove one asset's index data for search.
Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::RemoveIndexAssetRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::RemoveIndexAssetResponse > > |
A |
RemoveIndexAsset(NoAwaitTag, google::cloud::visionai::v1::RemoveIndexAssetRequest const &, Options)
Remove one asset's index data for search.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::RemoveIndexAssetRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
RemoveIndexAsset(google::longrunning::Operation const &, Options)
Remove one asset's index data for search.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::RemoveIndexAssetResponse > > |
|
ViewIndexedAssets(std::string const &, Options)
Lists assets inside an index.
| Parameters | |
|---|---|
| Name | Description |
index |
std::string const &
Required. The index that owns this collection of assets. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::IndexedAsset > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ViewIndexedAssets(google::cloud::visionai::v1::ViewIndexedAssetsRequest, Options)
Lists assets inside an index.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ViewIndexedAssetsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::IndexedAsset > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
CreateIndex(std::string const &, google::cloud::visionai::v1::Index const &, std::string const &, Options)
Creates an Index under the corpus.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. Value for the parent. The resource name of the Corpus under which this index is created. Format: |
index |
google::cloud::visionai::v1::Index const &
Required. The index being created. |
index_id |
std::string const &
Optional. The ID for the index. This will become the final resource name for the index. If the user does not specify this value, it will be generated by system. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Index > > |
A |
CreateIndex(NoAwaitTag, std::string const &, google::cloud::visionai::v1::Index const &, std::string const &, Options)
Creates an Index under the corpus.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
index |
google::cloud::visionai::v1::Index const &
|
index_id |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateIndex(google::cloud::visionai::v1::CreateIndexRequest const &, Options)
Creates an Index under the corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::CreateIndexRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Index > > |
A |
CreateIndex(NoAwaitTag, google::cloud::visionai::v1::CreateIndexRequest const &, Options)
Creates an Index under the corpus.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::CreateIndexRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateIndex(google::longrunning::Operation const &, Options)
Creates an Index under the corpus.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Index > > |
|
UpdateIndex(google::cloud::visionai::v1::Index const &, google::protobuf::FieldMask const &, Options)
Updates an Index under the corpus.
Users can perform a metadata-only update or trigger a full index rebuild with different update_mask values.
| Parameters | |
|---|---|
| Name | Description |
index |
google::cloud::visionai::v1::Index const &
Required. The resource being updated. |
update_mask |
google::protobuf::FieldMask const &
Required. Field mask is used to specify the fields to be overwritten in the Index resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field of the resource will be overwritten if it is in the mask. Empty field mask is not allowed. If the mask is "*", it triggers a full update of the index, and also a whole rebuild of index data. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Index > > |
A |
UpdateIndex(NoAwaitTag, google::cloud::visionai::v1::Index const &, google::protobuf::FieldMask const &, Options)
Updates an Index under the corpus.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
index |
google::cloud::visionai::v1::Index const &
|
update_mask |
google::protobuf::FieldMask const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateIndex(google::cloud::visionai::v1::UpdateIndexRequest const &, Options)
Updates an Index under the corpus.
Users can perform a metadata-only update or trigger a full index rebuild with different update_mask values.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::UpdateIndexRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Index > > |
A |
UpdateIndex(NoAwaitTag, google::cloud::visionai::v1::UpdateIndexRequest const &, Options)
Updates an Index under the corpus.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::UpdateIndexRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateIndex(google::longrunning::Operation const &, Options)
Updates an Index under the corpus.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Index > > |
|
GetIndex(std::string const &, Options)
Gets the details of a single Index under a Corpus.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the Index resource. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Index > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Index) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetIndex(google::cloud::visionai::v1::GetIndexRequest const &, Options)
Gets the details of a single Index under a Corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::GetIndexRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Index > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Index) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListIndexes(std::string const &, Options)
List all Indexes in a given Corpus.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent corpus that owns this collection of indexes. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::Index > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListIndexes(google::cloud::visionai::v1::ListIndexesRequest, Options)
List all Indexes in a given Corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ListIndexesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::Index > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
DeleteIndex(std::string const &, Options)
Delete a single Index.
In order to delete an index, the caller must make sure that it is not deployed to any index endpoint.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the index to delete. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteIndexMetadata > > |
A |
DeleteIndex(NoAwaitTag, std::string const &, Options)
Delete a single Index.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteIndex(google::cloud::visionai::v1::DeleteIndexRequest const &, Options)
Delete a single Index.
In order to delete an index, the caller must make sure that it is not deployed to any index endpoint.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::DeleteIndexRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteIndexMetadata > > |
A |
DeleteIndex(NoAwaitTag, google::cloud::visionai::v1::DeleteIndexRequest const &, Options)
Delete a single Index.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::DeleteIndexRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteIndex(google::longrunning::Operation const &, Options)
Delete a single Index.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteIndexMetadata > > |
|
CreateCorpus(std::string const &, google::cloud::visionai::v1::Corpus const &, Options)
Creates a corpus inside a project.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. Form: |
corpus |
google::cloud::visionai::v1::Corpus const &
Required. The corpus to be created. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Corpus > > |
A |
CreateCorpus(NoAwaitTag, std::string const &, google::cloud::visionai::v1::Corpus const &, Options)
Creates a corpus inside a project.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
corpus |
google::cloud::visionai::v1::Corpus const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateCorpus(google::cloud::visionai::v1::CreateCorpusRequest const &, Options)
Creates a corpus inside a project.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::CreateCorpusRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Corpus > > |
A |
CreateCorpus(NoAwaitTag, google::cloud::visionai::v1::CreateCorpusRequest const &, Options)
Creates a corpus inside a project.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::CreateCorpusRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateCorpus(google::longrunning::Operation const &, Options)
Creates a corpus inside a project.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Corpus > > |
|
GetCorpus(std::string const &, Options)
Gets corpus details inside a project.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The resource name of the corpus to retrieve. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Corpus > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Corpus) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetCorpus(google::cloud::visionai::v1::GetCorpusRequest const &, Options)
Gets corpus details inside a project.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::GetCorpusRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Corpus > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Corpus) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateCorpus(google::cloud::visionai::v1::Corpus const &, google::protobuf::FieldMask const &, Options)
Updates a corpus in a project.
| Parameters | |
|---|---|
| Name | Description |
corpus |
google::cloud::visionai::v1::Corpus const &
Required. The corpus which replaces the resource on the server. |
update_mask |
google::protobuf::FieldMask const &
The list of fields to be updated. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Corpus > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Corpus) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateCorpus(google::cloud::visionai::v1::UpdateCorpusRequest const &, Options)
Updates a corpus in a project.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::UpdateCorpusRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Corpus > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Corpus) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListCorpora(std::string const &, Options)
Lists all corpora in a project.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The resource name of the project from which to list corpora. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::Corpus > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListCorpora(google::cloud::visionai::v1::ListCorporaRequest, Options)
Lists all corpora in a project.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ListCorporaRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::Corpus > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
DeleteCorpus(std::string const &, Options)
Deletes a corpus only if its empty.
Returns empty response.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The resource name of the corpus to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
DeleteCorpus(google::cloud::visionai::v1::DeleteCorpusRequest const &, Options)
Deletes a corpus only if its empty.
Returns empty response.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::DeleteCorpusRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
AnalyzeCorpus(google::cloud::visionai::v1::AnalyzeCorpusRequest const &, Options)
Analyzes a corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::AnalyzeCorpusRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::AnalyzeCorpusResponse > > |
A |
AnalyzeCorpus(NoAwaitTag, google::cloud::visionai::v1::AnalyzeCorpusRequest const &, Options)
Analyzes a corpus.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::AnalyzeCorpusRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
AnalyzeCorpus(google::longrunning::Operation const &, Options)
Analyzes a corpus.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::AnalyzeCorpusResponse > > |
|
CreateDataSchema(std::string const &, google::cloud::visionai::v1::DataSchema const &, Options)
Creates data schema inside corpus.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent resource where this data schema will be created. Format: |
data_schema |
google::cloud::visionai::v1::DataSchema const &
Required. The data schema to create. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::DataSchema > |
the result of the RPC. The response message type (google.cloud.visionai.v1.DataSchema) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateDataSchema(google::cloud::visionai::v1::CreateDataSchemaRequest const &, Options)
Creates data schema inside corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::CreateDataSchemaRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::DataSchema > |
the result of the RPC. The response message type (google.cloud.visionai.v1.DataSchema) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateDataSchema(google::cloud::visionai::v1::DataSchema const &, google::protobuf::FieldMask const &, Options)
Updates data schema inside corpus.
| Parameters | |
|---|---|
| Name | Description |
data_schema |
google::cloud::visionai::v1::DataSchema const &
Required. The data schema's |
update_mask |
google::protobuf::FieldMask const &
The list of fields to be updated. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::DataSchema > |
the result of the RPC. The response message type (google.cloud.visionai.v1.DataSchema) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateDataSchema(google::cloud::visionai::v1::UpdateDataSchemaRequest const &, Options)
Updates data schema inside corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::UpdateDataSchemaRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::DataSchema > |
the result of the RPC. The response message type (google.cloud.visionai.v1.DataSchema) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetDataSchema(std::string const &, Options)
Gets data schema inside corpus.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the data schema to retrieve. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::DataSchema > |
the result of the RPC. The response message type (google.cloud.visionai.v1.DataSchema) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetDataSchema(google::cloud::visionai::v1::GetDataSchemaRequest const &, Options)
Gets data schema inside corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::GetDataSchemaRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::DataSchema > |
the result of the RPC. The response message type (google.cloud.visionai.v1.DataSchema) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteDataSchema(std::string const &, Options)
Deletes data schema inside corpus.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the data schema to delete. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
DeleteDataSchema(google::cloud::visionai::v1::DeleteDataSchemaRequest const &, Options)
Deletes data schema inside corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::DeleteDataSchemaRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
ListDataSchemas(std::string const &, Options)
Lists a list of data schemas inside corpus.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent, which owns this collection of data schemas. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::DataSchema > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListDataSchemas(google::cloud::visionai::v1::ListDataSchemasRequest, Options)
Lists a list of data schemas inside corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ListDataSchemasRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::DataSchema > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
CreateAnnotation(std::string const &, google::cloud::visionai::v1::Annotation const &, std::string const &, Options)
Creates annotation inside asset.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent resource where this annotation will be created. Format: |
annotation |
google::cloud::visionai::v1::Annotation const &
Required. The annotation to create. |
annotation_id |
std::string const &
Optional. The ID to use for the annotation, which will become the final component of the annotation's resource name if user choose to specify. Otherwise, annotation id will be generated by system. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Annotation > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Annotation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateAnnotation(google::cloud::visionai::v1::CreateAnnotationRequest const &, Options)
Creates annotation inside asset.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::CreateAnnotationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Annotation > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Annotation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetAnnotation(std::string const &, Options)
Reads annotation inside asset.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the annotation to retrieve. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Annotation > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Annotation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetAnnotation(google::cloud::visionai::v1::GetAnnotationRequest const &, Options)
Reads annotation inside asset.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::GetAnnotationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Annotation > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Annotation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListAnnotations(std::string const &, Options)
Lists a list of annotations inside asset.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
The parent, which owns this collection of annotations. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::Annotation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListAnnotations(google::cloud::visionai::v1::ListAnnotationsRequest, Options)
Lists a list of annotations inside asset.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ListAnnotationsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::Annotation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
UpdateAnnotation(google::cloud::visionai::v1::Annotation const &, google::protobuf::FieldMask const &, Options)
Updates annotation inside asset.
| Parameters | |
|---|---|
| Name | Description |
annotation |
google::cloud::visionai::v1::Annotation const &
Required. The annotation to update. The annotation's |
update_mask |
google::protobuf::FieldMask const &
The list of fields to be updated. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Annotation > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Annotation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateAnnotation(google::cloud::visionai::v1::UpdateAnnotationRequest const &, Options)
Updates annotation inside asset.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::UpdateAnnotationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Annotation > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Annotation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteAnnotation(std::string const &, Options)
Deletes annotation inside asset.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the annotation to delete. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
DeleteAnnotation(google::cloud::visionai::v1::DeleteAnnotationRequest const &, Options)
Deletes annotation inside asset.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::DeleteAnnotationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
AsyncIngestAsset(Options)
Ingests data for the asset.
It is not allowed to ingest a data chunk which is already expired according to TTL. This method is only available via the gRPC API (not HTTP since bi-directional streaming is not supported via HTTP).
| Parameter | |
|---|---|
| Name | Description |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::visionai::v1::IngestAssetRequest, google::cloud::visionai::v1::IngestAssetResponse > > |
An object representing the bidirectional streaming RPC. Applications can send multiple request messages and receive multiple response messages through this API. Bidirectional streaming RPCs can impose restrictions on the sequence of request and response messages. Please consult the service documentation for details. The request message type (google.cloud.visionai.v1.IngestAssetRequest) and response messages (google.cloud.visionai.v1.IngestAssetResponse) are mapped to C++ classes using the Protobuf mapping rules. |
ClipAsset(google::cloud::visionai::v1::ClipAssetRequest const &, Options)
Supported by STREAM_VIDEO corpus type.
Generates clips for downloading. The api takes in a time range, and generates a clip of the first content available after start_time and before end_time, which may overflow beyond these bounds. Returned clips are truncated if the total size of the clips are larger than 100MB.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ClipAssetRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::ClipAssetResponse > |
the result of the RPC. The response message type (google.cloud.visionai.v1.ClipAssetResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GenerateHlsUri(google::cloud::visionai::v1::GenerateHlsUriRequest const &, Options)
Generates a uri for an HLS manifest.
The api takes in a collection of time ranges, and generates a URI for an HLS manifest that covers all the requested time ranges.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::GenerateHlsUriRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::GenerateHlsUriResponse > |
the result of the RPC. The response message type (google.cloud.visionai.v1.GenerateHlsUriResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ImportAssets(google::cloud::visionai::v1::ImportAssetsRequest const &, Options)
Imports assets (images plus annotations) from a meta file on cloud storage.
Each row in the meta file is corresponding to an image (specified by a cloud storage uri) and its annotations.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ImportAssetsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::ImportAssetsResponse > > |
A |
ImportAssets(NoAwaitTag, google::cloud::visionai::v1::ImportAssetsRequest const &, Options)
Imports assets (images plus annotations) from a meta file on cloud storage.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::ImportAssetsRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
ImportAssets(google::longrunning::Operation const &, Options)
Imports assets (images plus annotations) from a meta file on cloud storage.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::ImportAssetsResponse > > |
|
CreateSearchConfig(std::string const &, google::cloud::visionai::v1::SearchConfig const &, std::string const &, Options)
Creates a search configuration inside a corpus.
Please follow the rules below to create a valid CreateSearchConfigRequest. General Rules:
- Request.search_config_id must not be associated with an existing SearchConfig.
- Request must contain at least one non-empty search_criteria_property or facet_property.
- mapped_fields must not be empty, and must map to existing UGA keys.
- All mapped_fields must be of the same type.
- All mapped_fields must share the same granularity.
- All mapped_fields must share the same semantic SearchConfig match options. For property-specific rules, please reference the comments for FacetProperty and SearchCriteriaProperty.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent resource where this search configuration will be created. Format: |
search_config |
google::cloud::visionai::v1::SearchConfig const &
Required. The search config to create. |
search_config_id |
std::string const &
Required. ID to use for the new search config. Will become the final component of the SearchConfig's resource name. This value should be up to 63 characters, and valid characters are /[a-z][0-9]-_/. The first character must be a letter, the last could be a letter or a number. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchConfig > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateSearchConfig(google::cloud::visionai::v1::CreateSearchConfigRequest const &, Options)
Creates a search configuration inside a corpus.
Please follow the rules below to create a valid CreateSearchConfigRequest. General Rules:
- Request.search_config_id must not be associated with an existing SearchConfig.
- Request must contain at least one non-empty search_criteria_property or facet_property.
- mapped_fields must not be empty, and must map to existing UGA keys.
- All mapped_fields must be of the same type.
- All mapped_fields must share the same granularity.
- All mapped_fields must share the same semantic SearchConfig match options. For property-specific rules, please reference the comments for FacetProperty and SearchCriteriaProperty.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::CreateSearchConfigRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchConfig > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateSearchConfig(google::cloud::visionai::v1::SearchConfig const &, google::protobuf::FieldMask const &, Options)
Updates a search configuration inside a corpus.
Please follow the rules below to create a valid UpdateSearchConfigRequest. General Rules:
- Request.search_configuration.name must already exist.
- Request must contain at least one non-empty search_criteria_property or facet_property.
- mapped_fields must not be empty, and must map to existing UGA keys.
- All mapped_fields must be of the same type.
- All mapped_fields must share the same granularity.
- All mapped_fields must share the same semantic SearchConfig match options. For property-specific rules, please reference the comments for FacetProperty and SearchCriteriaProperty.
| Parameters | |
|---|---|
| Name | Description |
search_config |
google::cloud::visionai::v1::SearchConfig const &
Required. The search configuration to update. |
update_mask |
google::protobuf::FieldMask const &
The list of fields to be updated. If left unset, all field paths will be updated/overwritten. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchConfig > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateSearchConfig(google::cloud::visionai::v1::UpdateSearchConfigRequest const &, Options)
Updates a search configuration inside a corpus.
Please follow the rules below to create a valid UpdateSearchConfigRequest. General Rules:
- Request.search_configuration.name must already exist.
- Request must contain at least one non-empty search_criteria_property or facet_property.
- mapped_fields must not be empty, and must map to existing UGA keys.
- All mapped_fields must be of the same type.
- All mapped_fields must share the same granularity.
- All mapped_fields must share the same semantic SearchConfig match options. For property-specific rules, please reference the comments for FacetProperty and SearchCriteriaProperty.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::UpdateSearchConfigRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchConfig > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetSearchConfig(std::string const &, Options)
Gets a search configuration inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the search configuration to retrieve. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchConfig > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetSearchConfig(google::cloud::visionai::v1::GetSearchConfigRequest const &, Options)
Gets a search configuration inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::GetSearchConfigRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchConfig > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteSearchConfig(std::string const &, Options)
Deletes a search configuration inside a corpus.
For a DeleteSearchConfigRequest to be valid, Request.search_configuration.name must already exist.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the search configuration to delete. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
DeleteSearchConfig(google::cloud::visionai::v1::DeleteSearchConfigRequest const &, Options)
Deletes a search configuration inside a corpus.
For a DeleteSearchConfigRequest to be valid, Request.search_configuration.name must already exist.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::DeleteSearchConfigRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
ListSearchConfigs(std::string const &, Options)
Lists all search configurations inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent, which owns this collection of search configurations. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::SearchConfig > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListSearchConfigs(google::cloud::visionai::v1::ListSearchConfigsRequest, Options)
Lists all search configurations inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ListSearchConfigsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::SearchConfig > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
CreateSearchHypernym(std::string const &, google::cloud::visionai::v1::SearchHypernym const &, std::string const &, Options)
Creates a SearchHypernym inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent resource where this SearchHypernym will be created. Format: |
search_hypernym |
google::cloud::visionai::v1::SearchHypernym const &
Required. The SearchHypernym to create. |
search_hypernym_id |
std::string const &
Optional. The search hypernym id. If omitted, a random UUID will be generated. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchHypernym > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchHypernym) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateSearchHypernym(google::cloud::visionai::v1::CreateSearchHypernymRequest const &, Options)
Creates a SearchHypernym inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::CreateSearchHypernymRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchHypernym > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchHypernym) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateSearchHypernym(google::cloud::visionai::v1::SearchHypernym const &, google::protobuf::FieldMask const &, Options)
Updates a SearchHypernym inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
search_hypernym |
google::cloud::visionai::v1::SearchHypernym const &
Required. The SearchHypernym to update. The search hypernym's |
update_mask |
google::protobuf::FieldMask const &
The list of fields to be updated. If left unset, all field paths will be updated/overwritten. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchHypernym > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchHypernym) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateSearchHypernym(google::cloud::visionai::v1::UpdateSearchHypernymRequest const &, Options)
Updates a SearchHypernym inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::UpdateSearchHypernymRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchHypernym > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchHypernym) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetSearchHypernym(std::string const &, Options)
Gets a SearchHypernym inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the SearchHypernym to retrieve. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchHypernym > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchHypernym) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetSearchHypernym(google::cloud::visionai::v1::GetSearchHypernymRequest const &, Options)
Gets a SearchHypernym inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::GetSearchHypernymRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::SearchHypernym > |
the result of the RPC. The response message type (google.cloud.visionai.v1.SearchHypernym) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteSearchHypernym(std::string const &, Options)
Deletes a SearchHypernym inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the SearchHypernym to delete. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
DeleteSearchHypernym(google::cloud::visionai::v1::DeleteSearchHypernymRequest const &, Options)
Deletes a SearchHypernym inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::DeleteSearchHypernymRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
ListSearchHypernyms(std::string const &, Options)
Lists SearchHypernyms inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent, which owns this collection of SearchHypernyms. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::SearchHypernym > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListSearchHypernyms(google::cloud::visionai::v1::ListSearchHypernymsRequest, Options)
Lists SearchHypernyms inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ListSearchHypernymsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::SearchHypernym > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
SearchAssets(google::cloud::visionai::v1::SearchAssetsRequest, Options)
Search media asset.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::SearchAssetsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::SearchResultItem > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
SearchIndexEndpoint(google::cloud::visionai::v1::SearchIndexEndpointRequest, Options)
Search a deployed index endpoint (IMAGE corpus type only).
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::SearchIndexEndpointRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::SearchResultItem > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
CreateIndexEndpoint(std::string const &, google::cloud::visionai::v1::IndexEndpoint const &, std::string const &, Options)
Creates an IndexEndpoint.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. Format: |
index_endpoint |
google::cloud::visionai::v1::IndexEndpoint const &
Required. The resource being created. |
index_endpoint_id |
std::string const &
Optional. The ID to use for the IndexEndpoint, which will become the final component of the IndexEndpoint's resource name if the user specifies it. Otherwise, IndexEndpoint id will be autogenerated. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::IndexEndpoint > > |
A |
CreateIndexEndpoint(NoAwaitTag, std::string const &, google::cloud::visionai::v1::IndexEndpoint const &, std::string const &, Options)
Creates an IndexEndpoint.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
index_endpoint |
google::cloud::visionai::v1::IndexEndpoint const &
|
index_endpoint_id |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateIndexEndpoint(google::cloud::visionai::v1::CreateIndexEndpointRequest const &, Options)
Creates an IndexEndpoint.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::CreateIndexEndpointRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::IndexEndpoint > > |
A |
CreateIndexEndpoint(NoAwaitTag, google::cloud::visionai::v1::CreateIndexEndpointRequest const &, Options)
Creates an IndexEndpoint.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::CreateIndexEndpointRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateIndexEndpoint(google::longrunning::Operation const &, Options)
Creates an IndexEndpoint.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::IndexEndpoint > > |
|
GetIndexEndpoint(std::string const &, Options)
Gets an IndexEndpoint.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the IndexEndpoint resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::IndexEndpoint > |
the result of the RPC. The response message type (google.cloud.visionai.v1.IndexEndpoint) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetIndexEndpoint(google::cloud::visionai::v1::GetIndexEndpointRequest const &, Options)
Gets an IndexEndpoint.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::GetIndexEndpointRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::IndexEndpoint > |
the result of the RPC. The response message type (google.cloud.visionai.v1.IndexEndpoint) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListIndexEndpoints(std::string const &, Options)
Lists all IndexEndpoints in a project.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::IndexEndpoint > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListIndexEndpoints(google::cloud::visionai::v1::ListIndexEndpointsRequest, Options)
Lists all IndexEndpoints in a project.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ListIndexEndpointsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::IndexEndpoint > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
UpdateIndexEndpoint(google::cloud::visionai::v1::IndexEndpoint const &, google::protobuf::FieldMask const &, Options)
Updates an IndexEndpoint.
| Parameters | |
|---|---|
| Name | Description |
index_endpoint |
google::cloud::visionai::v1::IndexEndpoint const &
Required. The resource being updated. |
update_mask |
google::protobuf::FieldMask const &
Required. Field mask is used to specify the fields to be overwritten in the IndexEndpoint resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field of the resource will be overwritten if it is in the mask. Empty field mask is not allowed. If the mask is "*", then this is a full replacement of the resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::IndexEndpoint > > |
A |
UpdateIndexEndpoint(NoAwaitTag, google::cloud::visionai::v1::IndexEndpoint const &, google::protobuf::FieldMask const &, Options)
Updates an IndexEndpoint.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
index_endpoint |
google::cloud::visionai::v1::IndexEndpoint const &
|
update_mask |
google::protobuf::FieldMask const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateIndexEndpoint(google::cloud::visionai::v1::UpdateIndexEndpointRequest const &, Options)
Updates an IndexEndpoint.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::UpdateIndexEndpointRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::IndexEndpoint > > |
A |
UpdateIndexEndpoint(NoAwaitTag, google::cloud::visionai::v1::UpdateIndexEndpointRequest const &, Options)
Updates an IndexEndpoint.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::UpdateIndexEndpointRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateIndexEndpoint(google::longrunning::Operation const &, Options)
Updates an IndexEndpoint.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::IndexEndpoint > > |
|
DeleteIndexEndpoint(std::string const &, Options)
Deletes an IndexEndpoint.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteIndexEndpointMetadata > > |
A |
DeleteIndexEndpoint(NoAwaitTag, std::string const &, Options)
Deletes an IndexEndpoint.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteIndexEndpoint(google::cloud::visionai::v1::DeleteIndexEndpointRequest const &, Options)
Deletes an IndexEndpoint.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::DeleteIndexEndpointRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteIndexEndpointMetadata > > |
A |
DeleteIndexEndpoint(NoAwaitTag, google::cloud::visionai::v1::DeleteIndexEndpointRequest const &, Options)
Deletes an IndexEndpoint.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::DeleteIndexEndpointRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteIndexEndpoint(google::longrunning::Operation const &, Options)
Deletes an IndexEndpoint.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteIndexEndpointMetadata > > |
|
DeployIndex(google::cloud::visionai::v1::DeployIndexRequest const &, Options)
Deploys an Index to IndexEndpoint.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::DeployIndexRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeployIndexResponse > > |
A |
DeployIndex(NoAwaitTag, google::cloud::visionai::v1::DeployIndexRequest const &, Options)
Deploys an Index to IndexEndpoint.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::DeployIndexRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeployIndex(google::longrunning::Operation const &, Options)
Deploys an Index to IndexEndpoint.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeployIndexResponse > > |
|
UndeployIndex(google::cloud::visionai::v1::UndeployIndexRequest const &, Options)
Undeploys an Index from IndexEndpoint.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::UndeployIndexRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::UndeployIndexResponse > > |
A |
UndeployIndex(NoAwaitTag, google::cloud::visionai::v1::UndeployIndexRequest const &, Options)
Undeploys an Index from IndexEndpoint.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::UndeployIndexRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UndeployIndex(google::longrunning::Operation const &, Options)
Undeploys an Index from IndexEndpoint.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::UndeployIndexResponse > > |
|
CreateCollection(std::string const &, google::cloud::visionai::v1::Collection const &, std::string const &, Options)
Creates a collection.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent resource where this collection will be created. Format: |
collection |
google::cloud::visionai::v1::Collection const &
Required. The collection resource to be created. |
collection_id |
std::string const &
Optional. The ID to use for the collection, which will become the final component of the resource name if user choose to specify. Otherwise, collection id will be generated by system. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Collection > > |
A |
CreateCollection(NoAwaitTag, std::string const &, google::cloud::visionai::v1::Collection const &, std::string const &, Options)
Creates a collection.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
collection |
google::cloud::visionai::v1::Collection const &
|
collection_id |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateCollection(google::cloud::visionai::v1::CreateCollectionRequest const &, Options)
Creates a collection.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::CreateCollectionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Collection > > |
A |
CreateCollection(NoAwaitTag, google::cloud::visionai::v1::CreateCollectionRequest const &, Options)
Creates a collection.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::CreateCollectionRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CreateCollection(google::longrunning::Operation const &, Options)
Creates a collection.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::Collection > > |
|
DeleteCollection(std::string const &, Options)
Deletes a collection.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the collection to delete. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteCollectionMetadata > > |
A |
DeleteCollection(NoAwaitTag, std::string const &, Options)
Deletes a collection.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteCollection(google::cloud::visionai::v1::DeleteCollectionRequest const &, Options)
Deletes a collection.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::DeleteCollectionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteCollectionMetadata > > |
A |
DeleteCollection(NoAwaitTag, google::cloud::visionai::v1::DeleteCollectionRequest const &, Options)
Deletes a collection.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::visionai::v1::DeleteCollectionRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteCollection(google::longrunning::Operation const &, Options)
Deletes a collection.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::visionai::v1::DeleteCollectionMetadata > > |
|
GetCollection(std::string const &, Options)
Gets a collection.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the collection to retrieve. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Collection > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Collection) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetCollection(google::cloud::visionai::v1::GetCollectionRequest const &, Options)
Gets a collection.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::GetCollectionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Collection > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Collection) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateCollection(google::cloud::visionai::v1::Collection const &, google::protobuf::FieldMask const &, Options)
Updates a collection.
| Parameters | |
|---|---|
| Name | Description |
collection |
google::cloud::visionai::v1::Collection const &
Required. The collection to update. |
update_mask |
google::protobuf::FieldMask const &
The list of fields to be updated.
|
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Collection > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Collection) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateCollection(google::cloud::visionai::v1::UpdateCollectionRequest const &, Options)
Updates a collection.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::UpdateCollectionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::Collection > |
the result of the RPC. The response message type (google.cloud.visionai.v1.Collection) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListCollections(std::string const &, Options)
Lists collections inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent corpus. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::Collection > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListCollections(google::cloud::visionai::v1::ListCollectionsRequest, Options)
Lists collections inside a corpus.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ListCollectionsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::Collection > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
AddCollectionItem(google::cloud::visionai::v1::CollectionItem const &, Options)
Adds an item into a Collection.
| Parameters | |
|---|---|
| Name | Description |
item |
google::cloud::visionai::v1::CollectionItem const &
Required. The item to be added. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::AddCollectionItemResponse > |
the result of the RPC. The response message type (google.cloud.visionai.v1.AddCollectionItemResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
AddCollectionItem(google::cloud::visionai::v1::AddCollectionItemRequest const &, Options)
Adds an item into a Collection.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::AddCollectionItemRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::AddCollectionItemResponse > |
the result of the RPC. The response message type (google.cloud.visionai.v1.AddCollectionItemResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
RemoveCollectionItem(google::cloud::visionai::v1::CollectionItem const &, Options)
Removes an item from a collection.
| Parameters | |
|---|---|
| Name | Description |
item |
google::cloud::visionai::v1::CollectionItem const &
Required. The item to be removed. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::RemoveCollectionItemResponse > |
the result of the RPC. The response message type (google.cloud.visionai.v1.RemoveCollectionItemResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
RemoveCollectionItem(google::cloud::visionai::v1::RemoveCollectionItemRequest const &, Options)
Removes an item from a collection.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::RemoveCollectionItemRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::visionai::v1::RemoveCollectionItemResponse > |
the result of the RPC. The response message type (google.cloud.visionai.v1.RemoveCollectionItemResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ViewCollectionItems(std::string const &, Options)
View items inside a collection.
| Parameters | |
|---|---|
| Name | Description |
collection |
std::string const &
Required. The collection to view. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::CollectionItem > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ViewCollectionItems(google::cloud::visionai::v1::ViewCollectionItemsRequest, Options)
View items inside a collection.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::visionai::v1::ViewCollectionItemsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::visionai::v1::CollectionItem > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListLocations(google::cloud::location::ListLocationsRequest, Options)
Lists information about the supported locations for this service.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::location::ListLocationsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::location::Location > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetLocation(google::cloud::location::GetLocationRequest const &, Options)
Gets information about a location.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::location::GetLocationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::location::Location > |
the result of the RPC. The response message type (google.cloud.location.Location) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListOperations(std::string const &, std::string const &, Options)
Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation's parent resource. |
filter |
std::string const &
The standard list filter. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::longrunning::Operation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListOperations(google::longrunning::ListOperationsRequest, Options)
Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::ListOperationsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::longrunning::Operation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetOperation(std::string const &, Options)
Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetOperation(google::longrunning::GetOperationRequest const &, Options)
Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::GetOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteOperation(std::string const &, Options)
Deletes a long-running operation.
This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource to be deleted. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
DeleteOperation(google::longrunning::DeleteOperationRequest const &, Options)
Deletes a long-running operation.
This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::DeleteOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
CancelOperation(std::string const &, Options)
Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource to be cancelled. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
CancelOperation(google::longrunning::CancelOperationRequest const &, Options)
Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::CancelOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |