Class WarehouseGrpc.WarehouseStub (0.3.0)

public static final class WarehouseGrpc.WarehouseStub extends AbstractAsyncStub<WarehouseGrpc.WarehouseStub>

A stub to allow clients to do asynchronous rpc calls to service Warehouse.

Service that manages media content + metadata for streaming.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > WarehouseGrpc.WarehouseStub

Methods

addCollectionItem(AddCollectionItemRequest request, StreamObserver<AddCollectionItemResponse> responseObserver)

public void addCollectionItem(AddCollectionItemRequest request, StreamObserver<AddCollectionItemResponse> responseObserver)

Adds an item into a Collection.

Parameters
Name Description
request AddCollectionItemRequest
responseObserver io.grpc.stub.StreamObserver<AddCollectionItemResponse>

analyzeAsset(AnalyzeAssetRequest request, StreamObserver<Operation> responseObserver)

public void analyzeAsset(AnalyzeAssetRequest request, StreamObserver<Operation> responseObserver)

Analyze asset to power search capability.

Parameters
Name Description
request AnalyzeAssetRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

analyzeCorpus(AnalyzeCorpusRequest request, StreamObserver<Operation> responseObserver)

public void analyzeCorpus(AnalyzeCorpusRequest request, StreamObserver<Operation> responseObserver)

Analyzes a corpus.

Parameters
Name Description
request AnalyzeCorpusRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

build(Channel channel, CallOptions callOptions)

protected WarehouseGrpc.WarehouseStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
WarehouseGrpc.WarehouseStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

clipAsset(ClipAssetRequest request, StreamObserver<ClipAssetResponse> responseObserver)

public void clipAsset(ClipAssetRequest request, StreamObserver<ClipAssetResponse> responseObserver)

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 ClipAssetRequest
responseObserver io.grpc.stub.StreamObserver<ClipAssetResponse>

createAnnotation(CreateAnnotationRequest request, StreamObserver<Annotation> responseObserver)

public void createAnnotation(CreateAnnotationRequest request, StreamObserver<Annotation> responseObserver)

Creates annotation inside asset.

Parameters
Name Description
request CreateAnnotationRequest
responseObserver io.grpc.stub.StreamObserver<Annotation>

createAsset(CreateAssetRequest request, StreamObserver<Asset> responseObserver)

public void createAsset(CreateAssetRequest request, StreamObserver<Asset> responseObserver)

Creates an asset inside corpus.

Parameters
Name Description
request CreateAssetRequest
responseObserver io.grpc.stub.StreamObserver<Asset>

createCollection(CreateCollectionRequest request, StreamObserver<Operation> responseObserver)

public void createCollection(CreateCollectionRequest request, StreamObserver<Operation> responseObserver)

Creates a collection.

Parameters
Name Description
request CreateCollectionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createCorpus(CreateCorpusRequest request, StreamObserver<Operation> responseObserver)

public void createCorpus(CreateCorpusRequest request, StreamObserver<Operation> responseObserver)

Creates a corpus inside a project.

Parameters
Name Description
request CreateCorpusRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createDataSchema(CreateDataSchemaRequest request, StreamObserver<DataSchema> responseObserver)

public void createDataSchema(CreateDataSchemaRequest request, StreamObserver<DataSchema> responseObserver)

Creates data schema inside corpus.

Parameters
Name Description
request CreateDataSchemaRequest
responseObserver io.grpc.stub.StreamObserver<DataSchema>

createIndex(CreateIndexRequest request, StreamObserver<Operation> responseObserver)

public void createIndex(CreateIndexRequest request, StreamObserver<Operation> responseObserver)

Creates an Index under the corpus.

Parameters
Name Description
request CreateIndexRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createIndexEndpoint(CreateIndexEndpointRequest request, StreamObserver<Operation> responseObserver)

public void createIndexEndpoint(CreateIndexEndpointRequest request, StreamObserver<Operation> responseObserver)

Creates an IndexEndpoint.

Parameters
Name Description
request CreateIndexEndpointRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createSearchConfig(CreateSearchConfigRequest request, StreamObserver<SearchConfig> responseObserver)

public void createSearchConfig(CreateSearchConfigRequest request, StreamObserver<SearchConfig> responseObserver)

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.
Parameters
Name Description
request CreateSearchConfigRequest
responseObserver io.grpc.stub.StreamObserver<SearchConfig>

createSearchHypernym(CreateSearchHypernymRequest request, StreamObserver<SearchHypernym> responseObserver)

public void createSearchHypernym(CreateSearchHypernymRequest request, StreamObserver<SearchHypernym> responseObserver)

Creates a SearchHypernym inside a corpus.

Parameters
Name Description
request CreateSearchHypernymRequest
responseObserver io.grpc.stub.StreamObserver<SearchHypernym>

deleteAnnotation(DeleteAnnotationRequest request, StreamObserver<Empty> responseObserver)

public void deleteAnnotation(DeleteAnnotationRequest request, StreamObserver<Empty> responseObserver)

Deletes annotation inside asset.

Parameters
Name Description
request DeleteAnnotationRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteAsset(DeleteAssetRequest request, StreamObserver<Operation> responseObserver)

public void deleteAsset(DeleteAssetRequest request, StreamObserver<Operation> responseObserver)

Deletes asset inside corpus.

Parameters
Name Description
request DeleteAssetRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteCollection(DeleteCollectionRequest request, StreamObserver<Operation> responseObserver)

public void deleteCollection(DeleteCollectionRequest request, StreamObserver<Operation> responseObserver)

Deletes a collection.

Parameters
Name Description
request DeleteCollectionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteCorpus(DeleteCorpusRequest request, StreamObserver<Empty> responseObserver)

public void deleteCorpus(DeleteCorpusRequest request, StreamObserver<Empty> responseObserver)

Deletes a corpus only if its empty. Returns empty response.

Parameters
Name Description
request DeleteCorpusRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteDataSchema(DeleteDataSchemaRequest request, StreamObserver<Empty> responseObserver)

public void deleteDataSchema(DeleteDataSchemaRequest request, StreamObserver<Empty> responseObserver)

Deletes data schema inside corpus.

Parameters
Name Description
request DeleteDataSchemaRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteIndex(DeleteIndexRequest request, StreamObserver<Operation> responseObserver)

public void deleteIndex(DeleteIndexRequest request, StreamObserver<Operation> responseObserver)

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 DeleteIndexRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteIndexEndpoint(DeleteIndexEndpointRequest request, StreamObserver<Operation> responseObserver)

public void deleteIndexEndpoint(DeleteIndexEndpointRequest request, StreamObserver<Operation> responseObserver)

Deletes an IndexEndpoint.

Parameters
Name Description
request DeleteIndexEndpointRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteSearchConfig(DeleteSearchConfigRequest request, StreamObserver<Empty> responseObserver)

public void deleteSearchConfig(DeleteSearchConfigRequest request, StreamObserver<Empty> responseObserver)

Deletes a search configuration inside a corpus. For a DeleteSearchConfigRequest to be valid, Request.search_configuration.name must already exist.

Parameters
Name Description
request DeleteSearchConfigRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteSearchHypernym(DeleteSearchHypernymRequest request, StreamObserver<Empty> responseObserver)

public void deleteSearchHypernym(DeleteSearchHypernymRequest request, StreamObserver<Empty> responseObserver)

Deletes a SearchHypernym inside a corpus.

Parameters
Name Description
request DeleteSearchHypernymRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deployIndex(DeployIndexRequest request, StreamObserver<Operation> responseObserver)

public void deployIndex(DeployIndexRequest request, StreamObserver<Operation> responseObserver)

Deploys an Index to IndexEndpoint.

Parameters
Name Description
request DeployIndexRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

generateHlsUri(GenerateHlsUriRequest request, StreamObserver<GenerateHlsUriResponse> responseObserver)

public void generateHlsUri(GenerateHlsUriRequest request, StreamObserver<GenerateHlsUriResponse> responseObserver)

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 GenerateHlsUriRequest
responseObserver io.grpc.stub.StreamObserver<GenerateHlsUriResponse>

generateRetrievalUrl(GenerateRetrievalUrlRequest request, StreamObserver<GenerateRetrievalUrlResponse> responseObserver)

public void generateRetrievalUrl(GenerateRetrievalUrlRequest request, StreamObserver<GenerateRetrievalUrlResponse> responseObserver)

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 GenerateRetrievalUrlRequest
responseObserver io.grpc.stub.StreamObserver<GenerateRetrievalUrlResponse>

getAnnotation(GetAnnotationRequest request, StreamObserver<Annotation> responseObserver)

public void getAnnotation(GetAnnotationRequest request, StreamObserver<Annotation> responseObserver)

Reads annotation inside asset.

Parameters
Name Description
request GetAnnotationRequest
responseObserver io.grpc.stub.StreamObserver<Annotation>

getAsset(GetAssetRequest request, StreamObserver<Asset> responseObserver)

public void getAsset(GetAssetRequest request, StreamObserver<Asset> responseObserver)

Reads an asset inside corpus.

Parameters
Name Description
request GetAssetRequest
responseObserver io.grpc.stub.StreamObserver<Asset>

getCollection(GetCollectionRequest request, StreamObserver<Collection> responseObserver)

public void getCollection(GetCollectionRequest request, StreamObserver<Collection> responseObserver)

Gets a collection.

Parameters
Name Description
request GetCollectionRequest
responseObserver io.grpc.stub.StreamObserver<Collection>

getCorpus(GetCorpusRequest request, StreamObserver<Corpus> responseObserver)

public void getCorpus(GetCorpusRequest request, StreamObserver<Corpus> responseObserver)

Gets corpus details inside a project.

Parameters
Name Description
request GetCorpusRequest
responseObserver io.grpc.stub.StreamObserver<Corpus>

getDataSchema(GetDataSchemaRequest request, StreamObserver<DataSchema> responseObserver)

public void getDataSchema(GetDataSchemaRequest request, StreamObserver<DataSchema> responseObserver)

Gets data schema inside corpus.

Parameters
Name Description
request GetDataSchemaRequest
responseObserver io.grpc.stub.StreamObserver<DataSchema>

getIndex(GetIndexRequest request, StreamObserver<Index> responseObserver)

public void getIndex(GetIndexRequest request, StreamObserver<Index> responseObserver)

Gets the details of a single Index under a Corpus.

Parameters
Name Description
request GetIndexRequest
responseObserver io.grpc.stub.StreamObserver<Index>

getIndexEndpoint(GetIndexEndpointRequest request, StreamObserver<IndexEndpoint> responseObserver)

public void getIndexEndpoint(GetIndexEndpointRequest request, StreamObserver<IndexEndpoint> responseObserver)

Gets an IndexEndpoint.

Parameters
Name Description
request GetIndexEndpointRequest
responseObserver io.grpc.stub.StreamObserver<IndexEndpoint>

getSearchConfig(GetSearchConfigRequest request, StreamObserver<SearchConfig> responseObserver)

public void getSearchConfig(GetSearchConfigRequest request, StreamObserver<SearchConfig> responseObserver)

Gets a search configuration inside a corpus.

Parameters
Name Description
request GetSearchConfigRequest
responseObserver io.grpc.stub.StreamObserver<SearchConfig>

getSearchHypernym(GetSearchHypernymRequest request, StreamObserver<SearchHypernym> responseObserver)

public void getSearchHypernym(GetSearchHypernymRequest request, StreamObserver<SearchHypernym> responseObserver)

Gets a SearchHypernym inside a corpus.

Parameters
Name Description
request GetSearchHypernymRequest
responseObserver io.grpc.stub.StreamObserver<SearchHypernym>

importAssets(ImportAssetsRequest request, StreamObserver<Operation> responseObserver)

public void importAssets(ImportAssetsRequest request, StreamObserver<Operation> responseObserver)

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 ImportAssetsRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

indexAsset(IndexAssetRequest request, StreamObserver<Operation> responseObserver)

public void indexAsset(IndexAssetRequest request, StreamObserver<Operation> responseObserver)

Index one asset for search. Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND

Parameters
Name Description
request IndexAssetRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

ingestAsset(StreamObserver<IngestAssetResponse> responseObserver)

public StreamObserver<IngestAssetRequest> ingestAsset(StreamObserver<IngestAssetResponse> responseObserver)

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
responseObserver io.grpc.stub.StreamObserver<IngestAssetResponse>
Returns
Type Description
io.grpc.stub.StreamObserver<IngestAssetRequest>

listAnnotations(ListAnnotationsRequest request, StreamObserver<ListAnnotationsResponse> responseObserver)

public void listAnnotations(ListAnnotationsRequest request, StreamObserver<ListAnnotationsResponse> responseObserver)

Lists a list of annotations inside asset.

Parameters
Name Description
request ListAnnotationsRequest
responseObserver io.grpc.stub.StreamObserver<ListAnnotationsResponse>

listAssets(ListAssetsRequest request, StreamObserver<ListAssetsResponse> responseObserver)

public void listAssets(ListAssetsRequest request, StreamObserver<ListAssetsResponse> responseObserver)

Lists an list of assets inside corpus.

Parameters
Name Description
request ListAssetsRequest
responseObserver io.grpc.stub.StreamObserver<ListAssetsResponse>

listCollections(ListCollectionsRequest request, StreamObserver<ListCollectionsResponse> responseObserver)

public void listCollections(ListCollectionsRequest request, StreamObserver<ListCollectionsResponse> responseObserver)

Lists collections inside a corpus.

Parameters
Name Description
request ListCollectionsRequest
responseObserver io.grpc.stub.StreamObserver<ListCollectionsResponse>

listCorpora(ListCorporaRequest request, StreamObserver<ListCorporaResponse> responseObserver)

public void listCorpora(ListCorporaRequest request, StreamObserver<ListCorporaResponse> responseObserver)

Lists all corpora in a project.

Parameters
Name Description
request ListCorporaRequest
responseObserver io.grpc.stub.StreamObserver<ListCorporaResponse>

listDataSchemas(ListDataSchemasRequest request, StreamObserver<ListDataSchemasResponse> responseObserver)

public void listDataSchemas(ListDataSchemasRequest request, StreamObserver<ListDataSchemasResponse> responseObserver)

Lists a list of data schemas inside corpus.

Parameters
Name Description
request ListDataSchemasRequest
responseObserver io.grpc.stub.StreamObserver<ListDataSchemasResponse>

listIndexEndpoints(ListIndexEndpointsRequest request, StreamObserver<ListIndexEndpointsResponse> responseObserver)

public void listIndexEndpoints(ListIndexEndpointsRequest request, StreamObserver<ListIndexEndpointsResponse> responseObserver)

Lists all IndexEndpoints in a project.

Parameters
Name Description
request ListIndexEndpointsRequest
responseObserver io.grpc.stub.StreamObserver<ListIndexEndpointsResponse>

listIndexes(ListIndexesRequest request, StreamObserver<ListIndexesResponse> responseObserver)

public void listIndexes(ListIndexesRequest request, StreamObserver<ListIndexesResponse> responseObserver)

List all Indexes in a given Corpus.

Parameters
Name Description
request ListIndexesRequest
responseObserver io.grpc.stub.StreamObserver<ListIndexesResponse>

listSearchConfigs(ListSearchConfigsRequest request, StreamObserver<ListSearchConfigsResponse> responseObserver)

public void listSearchConfigs(ListSearchConfigsRequest request, StreamObserver<ListSearchConfigsResponse> responseObserver)

Lists all search configurations inside a corpus.

Parameters
Name Description
request ListSearchConfigsRequest
responseObserver io.grpc.stub.StreamObserver<ListSearchConfigsResponse>

listSearchHypernyms(ListSearchHypernymsRequest request, StreamObserver<ListSearchHypernymsResponse> responseObserver)

public void listSearchHypernyms(ListSearchHypernymsRequest request, StreamObserver<ListSearchHypernymsResponse> responseObserver)

Lists SearchHypernyms inside a corpus.

Parameters
Name Description
request ListSearchHypernymsRequest
responseObserver io.grpc.stub.StreamObserver<ListSearchHypernymsResponse>

removeCollectionItem(RemoveCollectionItemRequest request, StreamObserver<RemoveCollectionItemResponse> responseObserver)

public void removeCollectionItem(RemoveCollectionItemRequest request, StreamObserver<RemoveCollectionItemResponse> responseObserver)

Removes an item from a collection.

Parameters
Name Description
request RemoveCollectionItemRequest
responseObserver io.grpc.stub.StreamObserver<RemoveCollectionItemResponse>

removeIndexAsset(RemoveIndexAssetRequest request, StreamObserver<Operation> responseObserver)

public void removeIndexAsset(RemoveIndexAssetRequest request, StreamObserver<Operation> responseObserver)

Remove one asset's index data for search. Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND

Parameters
Name Description
request RemoveIndexAssetRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

searchAssets(SearchAssetsRequest request, StreamObserver<SearchAssetsResponse> responseObserver)

public void searchAssets(SearchAssetsRequest request, StreamObserver<SearchAssetsResponse> responseObserver)

Search media asset.

Parameters
Name Description
request SearchAssetsRequest
responseObserver io.grpc.stub.StreamObserver<SearchAssetsResponse>

searchIndexEndpoint(SearchIndexEndpointRequest request, StreamObserver<SearchIndexEndpointResponse> responseObserver)

public void searchIndexEndpoint(SearchIndexEndpointRequest request, StreamObserver<SearchIndexEndpointResponse> responseObserver)

Search a deployed index endpoint (IMAGE corpus type only).

Parameters
Name Description
request SearchIndexEndpointRequest
responseObserver io.grpc.stub.StreamObserver<SearchIndexEndpointResponse>

undeployIndex(UndeployIndexRequest request, StreamObserver<Operation> responseObserver)

public void undeployIndex(UndeployIndexRequest request, StreamObserver<Operation> responseObserver)

Undeploys an Index from IndexEndpoint.

Parameters
Name Description
request UndeployIndexRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updateAnnotation(UpdateAnnotationRequest request, StreamObserver<Annotation> responseObserver)

public void updateAnnotation(UpdateAnnotationRequest request, StreamObserver<Annotation> responseObserver)

Updates annotation inside asset.

Parameters
Name Description
request UpdateAnnotationRequest
responseObserver io.grpc.stub.StreamObserver<Annotation>

updateAsset(UpdateAssetRequest request, StreamObserver<Asset> responseObserver)

public void updateAsset(UpdateAssetRequest request, StreamObserver<Asset> responseObserver)

Updates an asset inside corpus.

Parameters
Name Description
request UpdateAssetRequest
responseObserver io.grpc.stub.StreamObserver<Asset>

updateCollection(UpdateCollectionRequest request, StreamObserver<Collection> responseObserver)

public void updateCollection(UpdateCollectionRequest request, StreamObserver<Collection> responseObserver)

Updates a collection.

Parameters
Name Description
request UpdateCollectionRequest
responseObserver io.grpc.stub.StreamObserver<Collection>

updateCorpus(UpdateCorpusRequest request, StreamObserver<Corpus> responseObserver)

public void updateCorpus(UpdateCorpusRequest request, StreamObserver<Corpus> responseObserver)

Updates a corpus in a project.

Parameters
Name Description
request UpdateCorpusRequest
responseObserver io.grpc.stub.StreamObserver<Corpus>

updateDataSchema(UpdateDataSchemaRequest request, StreamObserver<DataSchema> responseObserver)

public void updateDataSchema(UpdateDataSchemaRequest request, StreamObserver<DataSchema> responseObserver)

Updates data schema inside corpus.

Parameters
Name Description
request UpdateDataSchemaRequest
responseObserver io.grpc.stub.StreamObserver<DataSchema>

updateIndex(UpdateIndexRequest request, StreamObserver<Operation> responseObserver)

public void updateIndex(UpdateIndexRequest request, StreamObserver<Operation> responseObserver)

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 UpdateIndexRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updateIndexEndpoint(UpdateIndexEndpointRequest request, StreamObserver<Operation> responseObserver)

public void updateIndexEndpoint(UpdateIndexEndpointRequest request, StreamObserver<Operation> responseObserver)

Updates an IndexEndpoint.

Parameters
Name Description
request UpdateIndexEndpointRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updateSearchConfig(UpdateSearchConfigRequest request, StreamObserver<SearchConfig> responseObserver)

public void updateSearchConfig(UpdateSearchConfigRequest request, StreamObserver<SearchConfig> responseObserver)

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.
Parameters
Name Description
request UpdateSearchConfigRequest
responseObserver io.grpc.stub.StreamObserver<SearchConfig>

updateSearchHypernym(UpdateSearchHypernymRequest request, StreamObserver<SearchHypernym> responseObserver)

public void updateSearchHypernym(UpdateSearchHypernymRequest request, StreamObserver<SearchHypernym> responseObserver)

Updates a SearchHypernym inside a corpus.

Parameters
Name Description
request UpdateSearchHypernymRequest
responseObserver io.grpc.stub.StreamObserver<SearchHypernym>

uploadAsset(UploadAssetRequest request, StreamObserver<Operation> responseObserver)

public void uploadAsset(UploadAssetRequest request, StreamObserver<Operation> responseObserver)

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 UploadAssetRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

viewCollectionItems(ViewCollectionItemsRequest request, StreamObserver<ViewCollectionItemsResponse> responseObserver)

public void viewCollectionItems(ViewCollectionItemsRequest request, StreamObserver<ViewCollectionItemsResponse> responseObserver)

View items inside a collection.

Parameters
Name Description
request ViewCollectionItemsRequest
responseObserver io.grpc.stub.StreamObserver<ViewCollectionItemsResponse>

viewIndexedAssets(ViewIndexedAssetsRequest request, StreamObserver<ViewIndexedAssetsResponse> responseObserver)

public void viewIndexedAssets(ViewIndexedAssetsRequest request, StreamObserver<ViewIndexedAssetsResponse> responseObserver)

Lists assets inside an index.

Parameters
Name Description
request ViewIndexedAssetsRequest
responseObserver io.grpc.stub.StreamObserver<ViewIndexedAssetsResponse>