Package com.google.cloud.visionai.v1
Class WarehouseGrpc.WarehouseBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<WarehouseGrpc.WarehouseBlockingStub>
com.google.cloud.visionai.v1.WarehouseGrpc.WarehouseBlockingStub
- Enclosing class:
- WarehouseGrpc
public static final class WarehouseGrpc.WarehouseBlockingStub
extends io.grpc.stub.AbstractBlockingStub<WarehouseGrpc.WarehouseBlockingStub>
A stub to allow clients to do limited synchronous rpc calls to service Warehouse.
Service that manages media content + metadata for streaming.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionAdds an item into a Collection.analyzeAsset(AnalyzeAssetRequest request) Analyze asset to power search capability.analyzeCorpus(AnalyzeCorpusRequest request) Analyzes a corpus.protected WarehouseGrpc.WarehouseBlockingStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) clipAsset(ClipAssetRequest request) Supported by STREAM_VIDEO corpus type.createAnnotation(CreateAnnotationRequest request) Creates annotation inside asset.createAsset(CreateAssetRequest request) Creates an asset inside corpus.createCollection(CreateCollectionRequest request) Creates a collection.createCorpus(CreateCorpusRequest request) Creates a corpus inside a project.createDataSchema(CreateDataSchemaRequest request) Creates data schema inside corpus.createIndex(CreateIndexRequest request) Creates an Index under the corpus.Creates an IndexEndpoint.Creates a search configuration inside a corpus.Creates a SearchHypernym inside a corpus.com.google.protobuf.EmptydeleteAnnotation(DeleteAnnotationRequest request) Deletes annotation inside asset.deleteAsset(DeleteAssetRequest request) Deletes asset inside corpus.deleteCollection(DeleteCollectionRequest request) Deletes a collection.com.google.protobuf.EmptydeleteCorpus(DeleteCorpusRequest request) Deletes a corpus only if its empty.com.google.protobuf.EmptydeleteDataSchema(DeleteDataSchemaRequest request) Deletes data schema inside corpus.deleteIndex(DeleteIndexRequest request) Delete a single Index.Deletes an IndexEndpoint.com.google.protobuf.EmptyDeletes a search configuration inside a corpus.com.google.protobuf.EmptyDeletes a SearchHypernym inside a corpus.deployIndex(DeployIndexRequest request) Deploys an Index to IndexEndpoint.generateHlsUri(GenerateHlsUriRequest request) Generates a uri for an HLS manifest.Generates a signed url for downloading the asset.getAnnotation(GetAnnotationRequest request) Reads annotation inside asset.getAsset(GetAssetRequest request) Reads an asset inside corpus.getCollection(GetCollectionRequest request) Gets a collection.getCorpus(GetCorpusRequest request) Gets corpus details inside a project.getDataSchema(GetDataSchemaRequest request) Gets data schema inside corpus.getIndex(GetIndexRequest request) Gets the details of a single Index under a Corpus.getIndexEndpoint(GetIndexEndpointRequest request) Gets an IndexEndpoint.getSearchConfig(GetSearchConfigRequest request) Gets a search configuration inside a corpus.Gets a SearchHypernym inside a corpus.importAssets(ImportAssetsRequest request) Imports assets (images plus annotations) from a meta file on cloud storage.indexAsset(IndexAssetRequest request) Index one asset for search.listAnnotations(ListAnnotationsRequest request) Lists a list of annotations inside asset.listAssets(ListAssetsRequest request) Lists an list of assets inside corpus.listCollections(ListCollectionsRequest request) Lists collections inside a corpus.listCorpora(ListCorporaRequest request) Lists all corpora in a project.listDataSchemas(ListDataSchemasRequest request) Lists a list of data schemas inside corpus.Lists all IndexEndpoints in a project.listIndexes(ListIndexesRequest request) List all Indexes in a given Corpus.Lists all search configurations inside a corpus.Lists SearchHypernyms inside a corpus.Removes an item from a collection.removeIndexAsset(RemoveIndexAssetRequest request) Remove one asset's index data for search.searchAssets(SearchAssetsRequest request) Search media asset.Search a deployed index endpoint (IMAGE corpus type only).undeployIndex(UndeployIndexRequest request) Undeploys an Index from IndexEndpoint.updateAnnotation(UpdateAnnotationRequest request) Updates annotation inside asset.updateAsset(UpdateAssetRequest request) Updates an asset inside corpus.updateCollection(UpdateCollectionRequest request) Updates a collection.updateCorpus(UpdateCorpusRequest request) Updates a corpus in a project.updateDataSchema(UpdateDataSchemaRequest request) Updates data schema inside corpus.updateIndex(UpdateIndexRequest request) Updates an Index under the corpus.Updates an IndexEndpoint.Updates a search configuration inside a corpus.Updates a SearchHypernym inside a corpus.uploadAsset(UploadAssetRequest request) Upload asset by specifing the asset Cloud Storage uri.View items inside a collection.Lists assets inside an index.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected WarehouseGrpc.WarehouseBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<WarehouseGrpc.WarehouseBlockingStub>
-
createAsset
Creates an asset inside corpus.
-
updateAsset
Updates an asset inside corpus.
-
getAsset
Reads an asset inside corpus.
-
listAssets
Lists an list of assets inside corpus.
-
deleteAsset
Deletes asset inside corpus.
-
uploadAsset
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.
-
generateRetrievalUrl
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.
-
analyzeAsset
Analyze asset to power search capability.
-
indexAsset
Index one asset for search. Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND
-
removeIndexAsset
Remove one asset's index data for search. Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND
-
viewIndexedAssets
Lists assets inside an index.
-
createIndex
Creates an Index under the corpus.
-
updateIndex
Updates an Index under the corpus. Users can perform a metadata-only update or trigger a full index rebuild with different update_mask values.
-
getIndex
Gets the details of a single Index under a Corpus.
-
listIndexes
List all Indexes in a given Corpus.
-
deleteIndex
Delete a single Index. In order to delete an index, the caller must make sure that it is not deployed to any index endpoint.
-
createCorpus
Creates a corpus inside a project.
-
getCorpus
Gets corpus details inside a project.
-
updateCorpus
Updates a corpus in a project.
-
listCorpora
Lists all corpora in a project.
-
deleteCorpus
Deletes a corpus only if its empty. Returns empty response.
-
analyzeCorpus
Analyzes a corpus.
-
createDataSchema
Creates data schema inside corpus.
-
updateDataSchema
Updates data schema inside corpus.
-
getDataSchema
Gets data schema inside corpus.
-
deleteDataSchema
Deletes data schema inside corpus.
-
listDataSchemas
Lists a list of data schemas inside corpus.
-
createAnnotation
Creates annotation inside asset.
-
getAnnotation
Reads annotation inside asset.
-
listAnnotations
Lists a list of annotations inside asset.
-
updateAnnotation
Updates annotation inside asset.
-
deleteAnnotation
Deletes annotation inside asset.
-
clipAsset
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.
-
generateHlsUri
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.
-
importAssets
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.
-
createSearchConfig
Creates a search configuration inside a corpus. Please follow the rules below to create a valid CreateSearchConfigRequest. --- General Rules --- 1. Request.search_config_id must not be associated with an existing SearchConfig. 2. Request must contain at least one non-empty search_criteria_property or facet_property. 3. mapped_fields must not be empty, and must map to existing UGA keys. 4. All mapped_fields must be of the same type. 5. All mapped_fields must share the same granularity. 6. All mapped_fields must share the same semantic SearchConfig match options. For property-specific rules, please reference the comments for FacetProperty and SearchCriteriaProperty. -
updateSearchConfig
Updates a search configuration inside a corpus. Please follow the rules below to create a valid UpdateSearchConfigRequest. --- General Rules --- 1. Request.search_configuration.name must already exist. 2. Request must contain at least one non-empty search_criteria_property or facet_property. 3. mapped_fields must not be empty, and must map to existing UGA keys. 4. All mapped_fields must be of the same type. 5. All mapped_fields must share the same granularity. 6. All mapped_fields must share the same semantic SearchConfig match options. For property-specific rules, please reference the comments for FacetProperty and SearchCriteriaProperty. -
getSearchConfig
Gets a search configuration inside a corpus.
-
deleteSearchConfig
Deletes a search configuration inside a corpus. For a DeleteSearchConfigRequest to be valid, Request.search_configuration.name must already exist.
-
listSearchConfigs
Lists all search configurations inside a corpus.
-
createSearchHypernym
Creates a SearchHypernym inside a corpus.
-
updateSearchHypernym
Updates a SearchHypernym inside a corpus.
-
getSearchHypernym
Gets a SearchHypernym inside a corpus.
-
deleteSearchHypernym
Deletes a SearchHypernym inside a corpus.
-
listSearchHypernyms
Lists SearchHypernyms inside a corpus.
-
searchAssets
Search media asset.
-
searchIndexEndpoint
Search a deployed index endpoint (IMAGE corpus type only).
-
createIndexEndpoint
Creates an IndexEndpoint.
-
getIndexEndpoint
Gets an IndexEndpoint.
-
listIndexEndpoints
Lists all IndexEndpoints in a project.
-
updateIndexEndpoint
Updates an IndexEndpoint.
-
deleteIndexEndpoint
Deletes an IndexEndpoint.
-
deployIndex
Deploys an Index to IndexEndpoint.
-
undeployIndex
Undeploys an Index from IndexEndpoint.
-
createCollection
Creates a collection.
-
deleteCollection
Deletes a collection.
-
getCollection
Gets a collection.
-
updateCollection
Updates a collection.
-
listCollections
Lists collections inside a corpus.
-
addCollectionItem
Adds an item into a Collection.
-
removeCollectionItem
Removes an item from a collection.
-
viewCollectionItems
View items inside a collection.
-