Package com.google.cloud.visionai.v1
Class WarehouseGrpc.WarehouseBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<WarehouseGrpc.WarehouseBlockingV2Stub>
com.google.cloud.visionai.v1.WarehouseGrpc.WarehouseBlockingV2Stub
- Enclosing class:
- WarehouseGrpc
public static final class WarehouseGrpc.WarehouseBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<WarehouseGrpc.WarehouseBlockingV2Stub>
A stub to allow clients to do 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.WarehouseBlockingV2Stubbuild(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.io.grpc.stub.BlockingClientCall<IngestAssetRequest,IngestAssetResponse> Ingests data for the asset.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.WarehouseBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<WarehouseGrpc.WarehouseBlockingV2Stub>
-
createAsset
Creates an asset inside corpus.
- Throws:
io.grpc.StatusException
-
updateAsset
Updates an asset inside corpus.
- Throws:
io.grpc.StatusException
-
getAsset
Reads an asset inside corpus.
- Throws:
io.grpc.StatusException
-
listAssets
Lists an list of assets inside corpus.
- Throws:
io.grpc.StatusException
-
deleteAsset
Deletes asset inside corpus.
- Throws:
io.grpc.StatusException
-
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.
- Throws:
io.grpc.StatusException
-
generateRetrievalUrl
public GenerateRetrievalUrlResponse generateRetrievalUrl(GenerateRetrievalUrlRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
analyzeAsset
Analyze asset to power search capability.
- Throws:
io.grpc.StatusException
-
indexAsset
Index one asset for search. Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND
- Throws:
io.grpc.StatusException
-
removeIndexAsset
Remove one asset's index data for search. Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND
- Throws:
io.grpc.StatusException
-
viewIndexedAssets
public ViewIndexedAssetsResponse viewIndexedAssets(ViewIndexedAssetsRequest request) throws io.grpc.StatusException Lists assets inside an index.
- Throws:
io.grpc.StatusException
-
createIndex
Creates an Index under the corpus.
- Throws:
io.grpc.StatusException
-
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.
- Throws:
io.grpc.StatusException
-
getIndex
Gets the details of a single Index under a Corpus.
- Throws:
io.grpc.StatusException
-
listIndexes
List all Indexes in a given Corpus.
- Throws:
io.grpc.StatusException
-
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.
- Throws:
io.grpc.StatusException
-
createCorpus
Creates a corpus inside a project.
- Throws:
io.grpc.StatusException
-
getCorpus
Gets corpus details inside a project.
- Throws:
io.grpc.StatusException
-
updateCorpus
Updates a corpus in a project.
- Throws:
io.grpc.StatusException
-
listCorpora
Lists all corpora in a project.
- Throws:
io.grpc.StatusException
-
deleteCorpus
public com.google.protobuf.Empty deleteCorpus(DeleteCorpusRequest request) throws io.grpc.StatusException Deletes a corpus only if its empty. Returns empty response.
- Throws:
io.grpc.StatusException
-
analyzeCorpus
Analyzes a corpus.
- Throws:
io.grpc.StatusException
-
createDataSchema
Creates data schema inside corpus.
- Throws:
io.grpc.StatusException
-
updateDataSchema
Updates data schema inside corpus.
- Throws:
io.grpc.StatusException
-
getDataSchema
Gets data schema inside corpus.
- Throws:
io.grpc.StatusException
-
deleteDataSchema
public com.google.protobuf.Empty deleteDataSchema(DeleteDataSchemaRequest request) throws io.grpc.StatusException Deletes data schema inside corpus.
- Throws:
io.grpc.StatusException
-
listDataSchemas
public ListDataSchemasResponse listDataSchemas(ListDataSchemasRequest request) throws io.grpc.StatusException Lists a list of data schemas inside corpus.
- Throws:
io.grpc.StatusException
-
createAnnotation
Creates annotation inside asset.
- Throws:
io.grpc.StatusException
-
getAnnotation
Reads annotation inside asset.
- Throws:
io.grpc.StatusException
-
listAnnotations
public ListAnnotationsResponse listAnnotations(ListAnnotationsRequest request) throws io.grpc.StatusException Lists a list of annotations inside asset.
- Throws:
io.grpc.StatusException
-
updateAnnotation
Updates annotation inside asset.
- Throws:
io.grpc.StatusException
-
deleteAnnotation
public com.google.protobuf.Empty deleteAnnotation(DeleteAnnotationRequest request) throws io.grpc.StatusException Deletes annotation inside asset.
- Throws:
io.grpc.StatusException
-
ingestAsset
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<IngestAssetRequest,IngestAssetResponse> ingestAsset()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).
-
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.
- Throws:
io.grpc.StatusException
-
generateHlsUri
public GenerateHlsUriResponse generateHlsUri(GenerateHlsUriRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
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.
- Throws:
io.grpc.StatusException
-
createSearchConfig
public SearchConfig createSearchConfig(CreateSearchConfigRequest request) throws io.grpc.StatusException 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.- Throws:
io.grpc.StatusException
-
updateSearchConfig
public SearchConfig updateSearchConfig(UpdateSearchConfigRequest request) throws io.grpc.StatusException 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.- Throws:
io.grpc.StatusException
-
getSearchConfig
Gets a search configuration inside a corpus.
- Throws:
io.grpc.StatusException
-
deleteSearchConfig
public com.google.protobuf.Empty deleteSearchConfig(DeleteSearchConfigRequest request) throws io.grpc.StatusException Deletes a search configuration inside a corpus. For a DeleteSearchConfigRequest to be valid, Request.search_configuration.name must already exist.
- Throws:
io.grpc.StatusException
-
listSearchConfigs
public ListSearchConfigsResponse listSearchConfigs(ListSearchConfigsRequest request) throws io.grpc.StatusException Lists all search configurations inside a corpus.
- Throws:
io.grpc.StatusException
-
createSearchHypernym
public SearchHypernym createSearchHypernym(CreateSearchHypernymRequest request) throws io.grpc.StatusException Creates a SearchHypernym inside a corpus.
- Throws:
io.grpc.StatusException
-
updateSearchHypernym
public SearchHypernym updateSearchHypernym(UpdateSearchHypernymRequest request) throws io.grpc.StatusException Updates a SearchHypernym inside a corpus.
- Throws:
io.grpc.StatusException
-
getSearchHypernym
public SearchHypernym getSearchHypernym(GetSearchHypernymRequest request) throws io.grpc.StatusException Gets a SearchHypernym inside a corpus.
- Throws:
io.grpc.StatusException
-
deleteSearchHypernym
public com.google.protobuf.Empty deleteSearchHypernym(DeleteSearchHypernymRequest request) throws io.grpc.StatusException Deletes a SearchHypernym inside a corpus.
- Throws:
io.grpc.StatusException
-
listSearchHypernyms
public ListSearchHypernymsResponse listSearchHypernyms(ListSearchHypernymsRequest request) throws io.grpc.StatusException Lists SearchHypernyms inside a corpus.
- Throws:
io.grpc.StatusException
-
searchAssets
public SearchAssetsResponse searchAssets(SearchAssetsRequest request) throws io.grpc.StatusException Search media asset.
- Throws:
io.grpc.StatusException
-
searchIndexEndpoint
public SearchIndexEndpointResponse searchIndexEndpoint(SearchIndexEndpointRequest request) throws io.grpc.StatusException Search a deployed index endpoint (IMAGE corpus type only).
- Throws:
io.grpc.StatusException
-
createIndexEndpoint
public Operation createIndexEndpoint(CreateIndexEndpointRequest request) throws io.grpc.StatusException Creates an IndexEndpoint.
- Throws:
io.grpc.StatusException
-
getIndexEndpoint
public IndexEndpoint getIndexEndpoint(GetIndexEndpointRequest request) throws io.grpc.StatusException Gets an IndexEndpoint.
- Throws:
io.grpc.StatusException
-
listIndexEndpoints
public ListIndexEndpointsResponse listIndexEndpoints(ListIndexEndpointsRequest request) throws io.grpc.StatusException Lists all IndexEndpoints in a project.
- Throws:
io.grpc.StatusException
-
updateIndexEndpoint
public Operation updateIndexEndpoint(UpdateIndexEndpointRequest request) throws io.grpc.StatusException Updates an IndexEndpoint.
- Throws:
io.grpc.StatusException
-
deleteIndexEndpoint
public Operation deleteIndexEndpoint(DeleteIndexEndpointRequest request) throws io.grpc.StatusException Deletes an IndexEndpoint.
- Throws:
io.grpc.StatusException
-
deployIndex
Deploys an Index to IndexEndpoint.
- Throws:
io.grpc.StatusException
-
undeployIndex
Undeploys an Index from IndexEndpoint.
- Throws:
io.grpc.StatusException
-
createCollection
Creates a collection.
- Throws:
io.grpc.StatusException
-
deleteCollection
Deletes a collection.
- Throws:
io.grpc.StatusException
-
getCollection
Gets a collection.
- Throws:
io.grpc.StatusException
-
updateCollection
Updates a collection.
- Throws:
io.grpc.StatusException
-
listCollections
public ListCollectionsResponse listCollections(ListCollectionsRequest request) throws io.grpc.StatusException Lists collections inside a corpus.
- Throws:
io.grpc.StatusException
-
addCollectionItem
public AddCollectionItemResponse addCollectionItem(AddCollectionItemRequest request) throws io.grpc.StatusException Adds an item into a Collection.
- Throws:
io.grpc.StatusException
-
removeCollectionItem
public RemoveCollectionItemResponse removeCollectionItem(RemoveCollectionItemRequest request) throws io.grpc.StatusException Removes an item from a collection.
- Throws:
io.grpc.StatusException
-
viewCollectionItems
public ViewCollectionItemsResponse viewCollectionItems(ViewCollectionItemsRequest request) throws io.grpc.StatusException View items inside a collection.
- Throws:
io.grpc.StatusException
-