Service Client: Google::Cloud::Visionai::V1::Warehouse::WarehouseClient
Client stub representing the remote Warehouse gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to visionai.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Visionai::V1::Warehouse - Compiled Protocol Buffers messages for google/cloud/visionai/v1/warehouse.proto
SYNOPSIS
use Google::Cloud::Visionai::V1::Warehouse;
my $msg = Google::Cloud::Visionai::V1::Warehouse::CreateAssetRequest->new({
parent => $parent,
asset => $asset,
asset_id => $asset_id,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Visionai::V1::Warehouse::CreateAssetRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/visionai/v1/warehouse.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Visionai::V1::Warehouse::CreateAssetRequest
Request message for CreateAssetRequest.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this asset will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
$msg->asset()/$msg->asset($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Asset)Required. The asset to create.
$msg->asset_id()/$msg->asset_id($value)Type:
StringOptional. 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.
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.
Google::Cloud::Visionai::V1::Warehouse::GetAssetRequest
Request message for GetAsset.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the asset to retrieve. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}
Google::Cloud::Visionai::V1::Warehouse::ListAssetsRequest
Request message for ListAssets.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent, which owns this collection of assets. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of assets to return. The service may return fewer than this value. If unspecified, at most 50 assets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListAssets` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListAssets` must match the call that provided the page token.
$msg->filter()/$msg->filter($value)Type:
StringThe filter applied to the returned list. Only the following filterings are supported: "assets_with_contents = true", which returns assets with contents uploaded; "assets_with_contents = false", which returns assets without contents.
Google::Cloud::Visionai::V1::Warehouse::ListAssetsResponse
Response message for ListAssets.
Inherits from Protobuf::Message.
Accessors
$msg->assets()/$msg->assets($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Asset)The assets from the specified corpus.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Visionai::V1::Warehouse::UpdateAssetRequest
Request message for UpdateAsset.
Inherits from Protobuf::Message.
Accessors
$msg->asset()/$msg->asset($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Asset)Required. The asset to update.
The asset's `name` field is used to identify the asset to be updated. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}`
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to be updated.
Google::Cloud::Visionai::V1::Warehouse::DeleteAssetRequest
Request message for DeleteAsset.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the asset to delete. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}`
Google::Cloud::Visionai::V1::Warehouse::AssetSource
The source of the asset.
Inherits from Protobuf::Message.
Accessors
$msg->asset_gcs_source()/$msg->asset_gcs_source($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::AssetSource::AssetGcsSource)The source of the asset is from Cloud Storage.
$msg->asset_content_data()/$msg->asset_content_data($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::AssetSource::AssetContentData)The source of the asset is from content bytes.
Google::Cloud::Visionai::V1::Warehouse::UploadAssetRequest
Request message for UploadAsset.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the asset to upload. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
$msg->asset_source()/$msg->asset_source($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::AssetSource)The source of the asset.
Google::Cloud::Visionai::V1::Warehouse::UploadAssetResponse
Response message for UploadAsset.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::Warehouse::UploadAssetMetadata
Metadata for UploadAsset.
Inherits from Protobuf::Message.
Accessors
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The start time of the operation.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The update time of the operation.
Google::Cloud::Visionai::V1::Warehouse::GenerateRetrievalUrlRequest
Request message for GenerateRetrievalUrl API.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the asset to request signed url for. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
Google::Cloud::Visionai::V1::Warehouse::GenerateRetrievalUrlResponse
Response message for GenerateRetrievalUrl API.
Inherits from Protobuf::Message.
Accessors
$msg->signed_uri()/$msg->signed_uri($value)Type:
StringA signed url to download the content of the asset.
Google::Cloud::Visionai::V1::Warehouse::Asset
An asset is a resource in corpus. It represents a media object inside corpus, contains metadata and another resource annotation. Different feature could be applied to the asset to generate annotations. User could specified annotation related to the target asset.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringResource name of the asset. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
$msg->ttl()/$msg->ttl($value)Type:
Message(Google::Protobuf::Duration::Duration)The duration for which all media assets, associated metadata, and search documents can exist. If not set, then it will using the default ttl in the parent corpus resource.
$msg->asset_gcs_source()/$msg->asset_gcs_source($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::AssetSource::AssetGcsSource)Output only. The original cloud storage source uri that is associated with this asset.
Google::Cloud::Visionai::V1::Warehouse::AnalyzeAssetRequest
Request message for AnalyzeAsset.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the asset to analyze. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
Google::Cloud::Visionai::V1::Warehouse::AnalyzeAssetMetadata
Metadata for AnalyzeAsset.
Inherits from Protobuf::Message.
Accessors
$msg->analysis_status()/$msg->analysis_status($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::AnalyzeAssetMetadata::AnalysisStatus)The status of analysis on all search capabilities.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The start time of the operation.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The update time of the operation.
Google::Cloud::Visionai::V1::Warehouse::AnalyzeAssetResponse
Response message for AnalyzeAsset.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::Warehouse::IndexingStatus
The status of indexing for the asset.
Inherits from Protobuf::Message.
Accessors
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Visionai::V1::IndexingStatus::State)Output only. State of this asset's indexing.
$msg->status_message()/$msg->status_message($value)Type:
StringDetailed message describing the state.
Enum: IndexingStatus::State
STATE_UNSPECIFIED=>0IN_PROGRESS=>1SUCCEEDED=>2FAILED=>3
Google::Cloud::Visionai::V1::Warehouse::IndexAssetRequest
Request message for IndexAsset.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the asset to index. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
$msg->index()/$msg->index($value)Type:
StringOptional. The name of the index. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}`
Google::Cloud::Visionai::V1::Warehouse::IndexAssetMetadata
Metadata for IndexAsset.
Inherits from Protobuf::Message.
Accessors
$msg->status()/$msg->status($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::IndexingStatus)The status of indexing this asset.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The start time of the operation.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The update time of the operation.
Google::Cloud::Visionai::V1::Warehouse::IndexAssetResponse
Response message for IndexAsset.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::Warehouse::RemoveIndexAssetRequest
Request message for RemoveIndexAsset.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the asset to index. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
$msg->index()/$msg->index($value)Type:
StringOptional. The name of the index. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}`
Google::Cloud::Visionai::V1::Warehouse::RemoveIndexAssetMetadata
Metadata for RemoveIndexAsset.
Inherits from Protobuf::Message.
Accessors
$msg->indexing_status()/$msg->indexing_status($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::IndexingStatus)The status of indexing this asset.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The start time of the operation.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The update time of the operation.
Google::Cloud::Visionai::V1::Warehouse::RemoveIndexAssetResponse
Response message for RemoveIndexAsset.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::Warehouse::IndexedAsset
An IndexedAsset is an asset that the index is built upon.
Inherits from Protobuf::Message.
Accessors
$msg->index()/$msg->index($value)Type:
StringRequired. The index that this indexed asset belongs to. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}`
$msg->asset()/$msg->asset($value)Type:
StringRequired. The resource name of the asset. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The create timestamp.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The update timestamp.
Google::Cloud::Visionai::V1::Warehouse::ViewIndexedAssetsRequest
Request message for ViewIndexedAssets.
Inherits from Protobuf::Message.
Accessors
$msg->index()/$msg->index($value)Type:
StringRequired. The index that owns this collection of assets. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of assets to return. The service may return fewer than this value. If unspecified, at most 50 assets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ViewIndexedAssets` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ViewIndexedAssets` must match the call that provided the page token.
$msg->filter()/$msg->filter($value)Type:
StringThe filter applied to the returned list. Only the following filterings are supported: "asset_id = xxxx", which returns asset with specified id. "asset_id = xxxx, yyyy, zzzz", which returns assets with specified ids.
Google::Cloud::Visionai::V1::Warehouse::ViewIndexedAssetsResponse
Response message for ViewIndexedAssets.
Inherits from Protobuf::Message.
Accessors
$msg->indexed_assets()/$msg->indexed_assets($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::IndexedAsset)The assets from the specified index.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Visionai::V1::Warehouse::CreateCorpusRequest
Request message of CreateCorpus API.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Form: `projects/{project_number}/locations/{location_id}`
$msg->corpus()/$msg->corpus($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Corpus)Required. The corpus to be created.
Google::Cloud::Visionai::V1::Warehouse::CreateCorpusMetadata
Metadata for CreateCorpus API.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The create time of the create corpus operation.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The update time of the create corpus operation.
Google::Cloud::Visionai::V1::Warehouse::SearchCapability
The capability and metadata of search capability.
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Visionai::V1::SearchCapability::Type)The search capability to enable.
Enum: SearchCapability::Type
TYPE_UNSPECIFIED=>0EMBEDDING_SEARCH=>1
Google::Cloud::Visionai::V1::Warehouse::SearchCapabilitySetting
Setting for search capability to enable.
Inherits from Protobuf::Message.
Accessors
$msg->search_capabilities()/$msg->search_capabilities($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SearchCapability)The metadata of search capability to enable.
Google::Cloud::Visionai::V1::Warehouse::CreateCollectionMetadata
Metadata message for CreateCollectionRequest
Inherits from Protobuf::Message.
Accessors
$msg->operation_metadata()/$msg->operation_metadata($value)Type:
Message(Google::Cloud::Visionai::V1::Common::OperationMetadata)Common metadata of the long-running operation.
Google::Cloud::Visionai::V1::Warehouse::CreateCollectionRequest
Request message for CreateCollection.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this collection will be created. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`
$msg->collection()/$msg->collection($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Collection)Required. The collection resource to be created.
$msg->collection_id()/$msg->collection_id($value)Type:
StringOptional. 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.
This value should be up to 55 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.
Google::Cloud::Visionai::V1::Warehouse::DeleteCollectionMetadata
Metadata message for DeleteCollectionRequest
Inherits from Protobuf::Message.
Accessors
$msg->operation_metadata()/$msg->operation_metadata($value)Type:
Message(Google::Cloud::Visionai::V1::Common::OperationMetadata)Common metadata of the long-running operation.
Google::Cloud::Visionai::V1::Warehouse::DeleteCollectionRequest
Request message for DeleteCollectionRequest.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the collection to delete. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
Google::Cloud::Visionai::V1::Warehouse::GetCollectionRequest
Request message for GetCollectionRequest.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the collection to retrieve. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
Google::Cloud::Visionai::V1::Warehouse::UpdateCollectionRequest
Request message for UpdateCollectionRequest.
Inherits from Protobuf::Message.
Accessors
$msg->collection()/$msg->collection($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Collection)Required. The collection to update.
The collection's `name` field is used to identify the collection to be updated. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to be updated. - Unset `update_mask` or set `update_mask` to be a single "*" only will update all updatable fields with the value provided in `collection`. - To update `display_name` value to empty string, set it in the `collection` to empty string, and set `update_mask` with "display_name". Same applies to other updatable string fields in the `collection`.
Google::Cloud::Visionai::V1::Warehouse::ListCollectionsRequest
Request message for ListCollections.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent corpus. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of collections to return. The service may return fewer than this value. If unspecified, at most 50 collections will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListCollectionsRequest` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListCollectionsRequest` must match the call that provided the page token.
Google::Cloud::Visionai::V1::Warehouse::ListCollectionsResponse
Response message for ListCollections.
Inherits from Protobuf::Message.
Accessors
$msg->collections()/$msg->collections($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Collection)The collections from the specified corpus.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Visionai::V1::Warehouse::AddCollectionItemRequest
Request message for AddCollectionItem.
Inherits from Protobuf::Message.
Accessors
$msg->item()/$msg->item($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::CollectionItem)Required. The item to be added.
Google::Cloud::Visionai::V1::Warehouse::AddCollectionItemResponse
Response message for AddCollectionItem.
Inherits from Protobuf::Message.
Accessors
$msg->item()/$msg->item($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::CollectionItem)The item that has already been added.
Google::Cloud::Visionai::V1::Warehouse::RemoveCollectionItemRequest
Request message for RemoveCollectionItem.
Inherits from Protobuf::Message.
Accessors
$msg->item()/$msg->item($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::CollectionItem)Required. The item to be removed.
Google::Cloud::Visionai::V1::Warehouse::RemoveCollectionItemResponse
Request message for RemoveCollectionItem.
Inherits from Protobuf::Message.
Accessors
$msg->item()/$msg->item($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::CollectionItem)The item that has already been removed.
Google::Cloud::Visionai::V1::Warehouse::ViewCollectionItemsRequest
Request message for ViewCollectionItems.
Inherits from Protobuf::Message.
Accessors
$msg->collection()/$msg->collection($value)Type:
StringRequired. The collection to view. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of collections to return. The service may return fewer than this value. If unspecified, at most 50 collections will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ViewCollectionItemsRequest` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ViewCollectionItemsRequest` must match the call that provided the page token.
Google::Cloud::Visionai::V1::Warehouse::ViewCollectionItemsResponse
Response message for ViewCollectionItems.
Inherits from Protobuf::Message.
Accessors
$msg->items()/$msg->items($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::CollectionItem)The items from the specified collection.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Visionai::V1::Warehouse::Collection
A collection is a resource in a corpus. It serves as a container of references to original resources.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Resource name of the collection. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. The collection name for displaying. The name can be up to 256 characters long.
$msg->description()/$msg->description($value)Type:
StringOptional. Description of the collection. Can be up to 25000 characters long.
Google::Cloud::Visionai::V1::Warehouse::CollectionItem
A CollectionItem is an item in a collection. Each item is a reference to the original resource in a collection.
Inherits from Protobuf::Message.
Accessors
$msg->collection()/$msg->collection($value)Type:
StringRequired. The collection name that this item belongs to. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Visionai::V1::CollectionItem::Type)Required. The type of item.
$msg->item_resource()/$msg->item_resource($value)Type:
StringRequired. The name of the CollectionItem. Its format depends on the `type` above. For ASSET: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}`
Enum: CollectionItem::Type
TYPE_UNSPECIFIED=>0ASSET=>1
Google::Cloud::Visionai::V1::Warehouse::CreateIndexRequest
Message for creating an Index.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Value for the parent. The resource name of the Corpus under which this index is created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
$msg->index_id()/$msg->index_id($value)Type:
StringOptional. 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.
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.
$msg->index()/$msg->index($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Index)Required. The index being created.
Google::Cloud::Visionai::V1::Warehouse::CreateIndexMetadata
Metadata message for CreateIndexRequest
Inherits from Protobuf::Message.
Accessors
$msg->operation_metadata()/$msg->operation_metadata($value)Type:
Message(Google::Cloud::Visionai::V1::Common::OperationMetadata)Common metadata of the long-running operation.
Google::Cloud::Visionai::V1::Warehouse::UpdateIndexRequest
Request message for UpdateIndex.
Inherits from Protobuf::Message.
Accessors
$msg->index()/$msg->index($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Index)Required. The resource being updated.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)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.
Google::Cloud::Visionai::V1::Warehouse::UpdateIndexMetadata
Metadata message for UpdateIndexRequest
Inherits from Protobuf::Message.
Accessors
$msg->operation_metadata()/$msg->operation_metadata($value)Type:
Message(Google::Cloud::Visionai::V1::Common::OperationMetadata)Common metadata of the long-running operation.
Google::Cloud::Visionai::V1::Warehouse::GetIndexRequest
Request message for getting an Index.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the Index resource. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}`
Google::Cloud::Visionai::V1::Warehouse::ListIndexesRequest
Request message for listing Indexes.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent corpus that owns this collection of indexes. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of indexes to return. The service may return fewer than this value. If unspecified, at most 50 indexes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListIndexes` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListIndexes` must match the call that provided the page token.
Google::Cloud::Visionai::V1::Warehouse::ListIndexesResponse
Response message for ListIndexes.
Inherits from Protobuf::Message.
Accessors
$msg->indexes()/$msg->indexes($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Index)The indexes under the specified corpus.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Visionai::V1::Warehouse::DeleteIndexRequest
Request message for DeleteIndex.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the index to delete. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}`
Google::Cloud::Visionai::V1::Warehouse::DeleteIndexMetadata
Metadata message for DeleteIndexRequest
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::Warehouse::Index
An Index is a resource in Corpus. It contains an indexed version of the assets and annotations. When deployed to an endpoint, it will allow users to search the Index.
Inherits from Protobuf::Message.
Accessors
$msg->entire_corpus()/$msg->entire_corpus($value)Type:
BoolInclude all assets under the corpus.
$msg->name()/$msg->name($value)Type:
StringOutput only. Resource name of the Index resource. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/indexes/{index_id}`
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. Optional user-specified display name of the index.
$msg->description()/$msg->description($value)Type:
StringOptional. Optional description of the index.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Visionai::V1::Index::State)Output only. State of the index.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The create timestamp.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The update timestamp.
$msg->deployed_indexes()/$msg->deployed_indexes($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DeployedIndexReference)Output only. References to the deployed index instance. Index of VIDEO_ON_DEMAND corpus can have at most one deployed index. Index of IMAGE corpus can have multiple deployed indexes.
$msg->satisfies_pzs()/$msg->satisfies_pzs($value)Type:
BoolOutput only. This boolean field is only set for projects that have Physical Zone Separation enabled via an Org Policy constraint. It is set to true when the index is a valid zone separated index and false if it isn't.
$msg->satisfies_pzi()/$msg->satisfies_pzi($value)Type:
BoolOutput only. This boolean field is only set for projects that have Physical Zone Isolation enabled via an Org Policy constraint. It is set to true when the index is a valid zone isolated index and false if it isn't.
Enum: Index::State
STATE_UNSPECIFIED=>0CREATING=>1CREATED=>2UPDATING=>3
Google::Cloud::Visionai::V1::Warehouse::DeployedIndexReference
Points to a DeployedIndex.
Inherits from Protobuf::Message.
Accessors
$msg->index_endpoint()/$msg->index_endpoint($value)Type:
StringImmutable. A resource name of the IndexEndpoint.
Google::Cloud::Visionai::V1::Warehouse::Corpus
Corpus is a set of media contents for management. Within a corpus, media shares the same data schema. Search is also restricted within a single corpus.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringResource name of the corpus. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The corpus name to shown in the UI. The name can be up to 32 characters long.
$msg->description()/$msg->description($value)Type:
StringOptional. Description of the corpus. Can be up to 25000 characters long.
$msg->default_ttl()/$msg->default_ttl($value)Type:
Message(Google::Protobuf::Duration::Duration)Optional. The default TTL value for all assets under the corpus without a asset level user-defined TTL. For STREAM_VIDEO type corpora, this is required and the maximum allowed default_ttl is 10 years.
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Visionai::V1::Corpus::Type)Optional. Type of the asset inside corpus.
$msg->search_capability_setting()/$msg->search_capability_setting($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SearchCapabilitySetting)Default search capability setting on corpus level.
$msg->satisfies_pzs()/$msg->satisfies_pzs($value)Type:
BoolOutput only. This boolean field is only set for projects that have Physical Zone Separation enabled via an Org Policy constraint. It is set to true when the corpus is a valid zone separated corpus and false if it isn't.
$msg->satisfies_pzi()/$msg->satisfies_pzi($value)Type:
BoolOutput only. This boolean field is only set for projects that have Physical Zone Isolation enabled via an Org Policy constraint. It is set to true when the corpus is a valid zone isolated corpus and false if it isn't.
Enum: Corpus::Type
TYPE_UNSPECIFIED=>0STREAM_VIDEO=>1IMAGE=>2VIDEO_ON_DEMAND=>3
Google::Cloud::Visionai::V1::Warehouse::GetCorpusRequest
Request message for GetCorpus.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the corpus to retrieve.
Google::Cloud::Visionai::V1::Warehouse::UpdateCorpusRequest
Request message for UpdateCorpus.
Inherits from Protobuf::Message.
Accessors
$msg->corpus()/$msg->corpus($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Corpus)Required. The corpus which replaces the resource on the server.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to be updated.
Google::Cloud::Visionai::V1::Warehouse::ListCorporaRequest
Request message for ListCorpora.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the project from which to list corpora.
$msg->page_size()/$msg->page_size($value)Type:
Int32Requested page size. API may return fewer results than requested. If negative, INVALID_ARGUMENT error will be returned. If unspecified or 0, API will pick a default size, which is 10. If the requested page size is larger than the maximum size, API will pick use the maximum size, which is 20.
$msg->page_token()/$msg->page_token($value)Type:
StringA token identifying a page of results for the server to return. Typically obtained via [ListCorporaResponse.next_page_token][google.cloud.visionai.v1.ListCorporaResponse.next_page_token] of the previous [Warehouse.ListCorpora][google.cloud.visionai.v1.Warehouse.ListCorpora] call.
$msg->filter()/$msg->filter($value)Type:
StringThe filter applied to the returned corpora list. Only the following restrictions are supported: `type=<Corpus.Type>`, `type!=<Corpus.Type>`.
Google::Cloud::Visionai::V1::Warehouse::ListCorporaResponse
Response message for ListCorpora.
Inherits from Protobuf::Message.
Accessors
$msg->corpora()/$msg->corpora($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Corpus)The corpora in the project.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token to retrieve next page of results. Pass to [ListCorporaRequest.page_token][google.cloud.visionai.v1.ListCorporaRequest.page_token] to obtain that page.
Google::Cloud::Visionai::V1::Warehouse::DeleteCorpusRequest
Request message for DeleteCorpus.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the corpus to delete.
Google::Cloud::Visionai::V1::Warehouse::AnalyzeCorpusRequest
Request message for AnalyzeCorpus.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The parent corpus resource where the assets will be analyzed. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
Google::Cloud::Visionai::V1::Warehouse::AnalyzeCorpusMetadata
The metadata message for AnalyzeCorpus LRO.
Inherits from Protobuf::Message.
Accessors
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Visionai::V1::Common::OperationMetadata)The metadata of the operation.
Google::Cloud::Visionai::V1::Warehouse::AnalyzeCorpusResponse
The response message for AnalyzeCorpus LRO.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::Warehouse::CreateDataSchemaRequest
Request message for CreateDataSchema.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this data schema will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
$msg->data_schema()/$msg->data_schema($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DataSchema)Required. The data schema to create.
Google::Cloud::Visionai::V1::Warehouse::DataSchema
Data schema indicates how the user specified annotation is interpreted in the system.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringResource name of the data schema in the form of: `projects/{project_number}/locations/{location}/corpora/{corpus}/dataSchemas/{data_schema}` where {data_schema} part should be the same as the `key` field below.
$msg->key()/$msg->key($value)Type:
StringRequired. The key of this data schema. This key should be matching the key of user specified annotation and unique inside corpus. This value can 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.
$msg->schema_details()/$msg->schema_details($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DataSchemaDetails)The schema details mapping to the key.
Google::Cloud::Visionai::V1::Warehouse::DataSchemaDetails
Data schema details indicates the data type and the data struct corresponding to the key of user specified annotation.
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Visionai::V1::DataSchemaDetails::DataType)Type of the annotation.
$msg->proto_any_config()/$msg->proto_any_config($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DataSchemaDetails::ProtoAnyConfig)Config for protobuf any type.
$msg->list_config()/$msg->list_config($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DataSchemaDetails::ListConfig)Config for List data type.
$msg->customized_struct_config()/$msg->customized_struct_config($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DataSchemaDetails::CustomizedStructConfig)Config for CustomizedStruct data type.
$msg->granularity()/$msg->granularity($value)Type:
Enum(Google::Cloud::Visionai::V1::DataSchemaDetails::Granularity)The granularity associated with this DataSchema.
$msg->search_strategy()/$msg->search_strategy($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DataSchemaDetails::SearchStrategy)The search strategy to be applied on the `key` above.
Enum: DataSchemaDetails::DataType
DATA_TYPE_UNSPECIFIED=>0INTEGER=>1FLOAT=>2STRING=>3DATETIME=>5GEO_COORDINATE=>7PROTO_ANY=>8BOOLEAN=>9LIST=>10CUSTOMIZED_STRUCT=>6
Enum: DataSchemaDetails::Granularity
GRANULARITY_UNSPECIFIED=>0GRANULARITY_ASSET_LEVEL=>1GRANULARITY_PARTITION_LEVEL=>2
Google::Cloud::Visionai::V1::Warehouse::UpdateDataSchemaRequest
Request message for UpdateDataSchema.
Inherits from Protobuf::Message.
Accessors
$msg->data_schema()/$msg->data_schema($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DataSchema)Required. The data schema's `name` field is used to identify the data schema to be updated. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/dataSchemas/{data_schema}`
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to be updated.
Google::Cloud::Visionai::V1::Warehouse::GetDataSchemaRequest
Request message for GetDataSchema.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the data schema to retrieve. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/dataSchemas/{data_schema_id}`
Google::Cloud::Visionai::V1::Warehouse::DeleteDataSchemaRequest
Request message for DeleteDataSchema.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the data schema to delete. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/dataSchemas/{data_schema_id}`
Google::Cloud::Visionai::V1::Warehouse::ListDataSchemasRequest
Request message for ListDataSchemas.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent, which owns this collection of data schemas. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of data schemas to return. The service may return fewer than this value. If unspecified, at most 50 data schemas will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListDataSchemas` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListDataSchemas` must match the call that provided the page token.
Google::Cloud::Visionai::V1::Warehouse::ListDataSchemasResponse
Response message for ListDataSchemas.
Inherits from Protobuf::Message.
Accessors
$msg->data_schemas()/$msg->data_schemas($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DataSchema)The data schemas from the specified corpus.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Visionai::V1::Warehouse::CreateAnnotationRequest
Request message for CreateAnnotation.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this annotation will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
$msg->annotation()/$msg->annotation($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Annotation)Required. The annotation to create.
$msg->annotation_id()/$msg->annotation_id($value)Type:
StringOptional. 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.
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.
Google::Cloud::Visionai::V1::Warehouse::Annotation
An annotation is a resource in asset. It represents a key-value mapping of content in asset.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringResource name of the annotation. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
$msg->user_specified_annotation()/$msg->user_specified_annotation($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::UserSpecifiedAnnotation)User provided annotation.
Google::Cloud::Visionai::V1::Warehouse::UserSpecifiedAnnotation
Annotation provided by users.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
StringRequired. Key of the annotation. The key must be set with type by CreateDataSchema.
$msg->value()/$msg->value($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::AnnotationValue)Value of the annotation. The value must be able to convert to the type according to the data schema.
$msg->partition()/$msg->partition($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Partition)Partition information in time and space for the sub-asset level annotation.
Google::Cloud::Visionai::V1::Warehouse::GeoCoordinate
Location Coordinate Representation
Inherits from Protobuf::Message.
Accessors
$msg->latitude()/$msg->latitude($value)Type:
DoubleLatitude Coordinate. Degrees [-90 .. 90]
$msg->longitude()/$msg->longitude($value)Type:
DoubleLongitude Coordinate. Degrees [-180 .. 180]
Google::Cloud::Visionai::V1::Warehouse::AnnotationValue
Value of annotation, including all types available in data schema.
Inherits from Protobuf::Message.
Accessors
$msg->int_value()/$msg->int_value($value)Type:
Int64Value of int type annotation.
$msg->float_value()/$msg->float_value($value)Type:
FloatValue of float type annotation.
$msg->str_value()/$msg->str_value($value)Type:
StringValue of string type annotation.
$msg->datetime_value()/$msg->datetime_value($value)Type:
StringValue of date time type annotation.
$msg->geo_coordinate()/$msg->geo_coordinate($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::GeoCoordinate)Value of geo coordinate type annotation.
$msg->proto_any_value()/$msg->proto_any_value($value)Type:
Message(Google::Protobuf::Any::Any)Value of any proto value.
$msg->bool_value()/$msg->bool_value($value)Type:
BoolValue of boolean type annotation.
$msg->customized_struct_data_value()/$msg->customized_struct_data_value($value)Type:
Message(Google::Protobuf::Struct::Struct)Value of customized struct annotation. This field does not have effects. Use customized_struct_value instead for customized struct annotation.
$msg->list_value()/$msg->list_value($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::AnnotationList)Value of list type annotation.
$msg->customized_struct_value()/$msg->customized_struct_value($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::AnnotationCustomizedStruct)Value of custom struct type annotation.
Google::Cloud::Visionai::V1::Warehouse::AnnotationList
List representation in annotation.
Inherits from Protobuf::Message.
Accessors
$msg->values()/$msg->values($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::AnnotationValue)The values of `LIST` data type annotation.
Google::Cloud::Visionai::V1::Warehouse::AnnotationCustomizedStruct
Customized struct represnation in annotation.
Inherits from Protobuf::Message.
Accessors
$msg->elements()/$msg->elements($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::AnnotationCustomizedStruct::ElementsEntry)A map from elements' keys to element's annotation value.
Google::Cloud::Visionai::V1::Warehouse::ListAnnotationsRequest
Request message for GetAnnotation API.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringThe parent, which owns this collection of annotations. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of annotations to return. The service may return fewer than this value. If unspecified, at most 50 annotations will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListAnnotations` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListAnnotations` must match the call that provided the page token.
$msg->filter()/$msg->filter($value)Type:
StringThe filter applied to the returned list. We only support filtering for the following fields: For corpus of STREAM_VIDEO type: `partition.temporal_partition.start_time`, `partition.temporal_partition.end_time`, and `key`. For corpus of VIDEO_ON_DEMAND type, `partition.relative_temporal_partition.start_offset`, `partition.relative_temporal_partition.end_offset`, and `key`. For corpus of IMAGE type, only `key` is supported. Timestamps are specified in the RFC-3339 format, and only one restriction may be applied per field, joined by conjunctions. Format: "partition.temporal_partition.start_time > "2012-04-21T11:30:00-04:00" AND partition.temporal_partition.end_time < "2012-04-22T11:30:00-04:00" AND key = "example_key""
Google::Cloud::Visionai::V1::Warehouse::ListAnnotationsResponse
Request message for ListAnnotations API.
Inherits from Protobuf::Message.
Accessors
$msg->annotations()/$msg->annotations($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Annotation)The annotations from the specified asset.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Visionai::V1::Warehouse::GetAnnotationRequest
Request message for GetAnnotation API.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the annotation to retrieve. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
Google::Cloud::Visionai::V1::Warehouse::UpdateAnnotationRequest
Request message for UpdateAnnotation API.
Inherits from Protobuf::Message.
Accessors
$msg->annotation()/$msg->annotation($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Annotation)Required. The annotation to update. The annotation's `name` field is used to identify the annotation to be updated. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to be updated.
Google::Cloud::Visionai::V1::Warehouse::DeleteAnnotationRequest
Request message for DeleteAnnotation API.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the annotation to delete. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
Google::Cloud::Visionai::V1::Warehouse::ImportAssetsRequest
The request message for ImportAssets.
Inherits from Protobuf::Message.
Accessors
$msg->assets_gcs_uri()/$msg->assets_gcs_uri($value)Type:
StringThe file contains all assets information to be imported. * The file is in JSONL format. * Each line corresponding to one asset. * Each line will be converted into InputImageAsset proto.
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent corpus resource where the assets will be imported. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
Google::Cloud::Visionai::V1::Warehouse::ImportAssetsMetadata
The metadata message for ImportAssets LRO.
Inherits from Protobuf::Message.
Accessors
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Visionai::V1::Common::OperationMetadata)The metadata of the operation.
$msg->status()/$msg->status($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::BatchOperationStatus)The importing status including partial failures, if the implementation can provide such information during the progress of the ImportAssets.
Google::Cloud::Visionai::V1::Warehouse::BatchOperationStatus
The batch operation status.
Inherits from Protobuf::Message.
Accessors
$msg->success_count()/$msg->success_count($value)Type:
Int32The count of assets (together with their annotations if any) successfully ingested.
$msg->failure_count()/$msg->failure_count($value)Type:
Int32The count of assets failed to ingested; it might be due to the annotation ingestion error.
Google::Cloud::Visionai::V1::Warehouse::ImportAssetsResponse
The response message for ImportAssets LRO.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::Warehouse::CreateSearchConfigRequest
Request message for CreateSearchConfig.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this search configuration will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
$msg->search_config()/$msg->search_config($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SearchConfig)Required. The search config to create.
$msg->search_config_id()/$msg->search_config_id($value)Type:
StringRequired. 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.
Google::Cloud::Visionai::V1::Warehouse::UpdateSearchConfigRequest
Request message for UpdateSearchConfig.
Inherits from Protobuf::Message.
Accessors
$msg->search_config()/$msg->search_config($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SearchConfig)Required. The search configuration to update.
The search configuration's `name` field is used to identify the resource to be updated. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}`
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to be updated. If left unset, all field paths will be updated/overwritten.
Google::Cloud::Visionai::V1::Warehouse::GetSearchConfigRequest
Request message for GetSearchConfig.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the search configuration to retrieve. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}`
Google::Cloud::Visionai::V1::Warehouse::DeleteSearchConfigRequest
Request message for DeleteSearchConfig.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the search configuration to delete. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}`
Google::Cloud::Visionai::V1::Warehouse::ListSearchConfigsRequest
Request message for ListSearchConfigs.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent, which owns this collection of search configurations. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of search configurations to return. The service may return fewer than this value. If unspecified, a page size of 50 will be used. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListSearchConfigs` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListSearchConfigs` must match the call that provided the page token.
Google::Cloud::Visionai::V1::Warehouse::ListSearchConfigsResponse
Response message for ListSearchConfigs.
Inherits from Protobuf::Message.
Accessors
$msg->search_configs()/$msg->search_configs($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SearchConfig)The search configurations from the specified corpus.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Visionai::V1::Warehouse::SearchConfig
SearchConfig stores different properties that will affect search behaviors and search results.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringResource name of the search configuration. For CustomSearchCriteria, search_config would be the search operator name. For Facets, search_config would be the facet dimension name. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}`
$msg->facet_property()/$msg->facet_property($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::FacetProperty)Establishes a FacetDimension and associated specifications.
$msg->search_criteria_property()/$msg->search_criteria_property($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SearchCriteriaProperty)Creates a mapping between a custom SearchCriteria and one or more UGA keys.
Google::Cloud::Visionai::V1::Warehouse::IndexEndpoint
Message representing IndexEndpoint resource. Indexes are deployed into it.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Resource name of the IndexEndpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint_id}`
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. Display name of the IndexEndpoint. Can be up to 32 characters long.
$msg->description()/$msg->description($value)Type:
StringOptional. Description of the IndexEndpoint. Can be up to 25000 characters long.
$msg->deployed_index()/$msg->deployed_index($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DeployedIndex)Output only. The Index deployed in this IndexEndpoint.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Visionai::V1::IndexEndpoint::State)Output only. IndexEndpoint state.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::IndexEndpoint::LabelsEntry)Optional. The labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character.
See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Create timestamp.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Update timestamp.
$msg->satisfies_pzs()/$msg->satisfies_pzs($value)Type:
BoolOutput only. This boolean field is only set for projects that have Physical Zone Separation enabled via an Org Policy constraint. It is set to true when the index endpoint is a valid zone separated index endpoint and false if it isn't.
$msg->satisfies_pzi()/$msg->satisfies_pzi($value)Type:
BoolOutput only. This boolean field is only set for projects that have Physical Zone Isolation enabled via an Org Policy constraint. It is set to true when the index endpoint is a valid zone isolated index endpoint and false if it isn't.
Enum: IndexEndpoint::State
STATE_UNSPECIFIED=>0CREATING=>1CREATED=>2UPDATING=>3FAILED=>4
Google::Cloud::Visionai::V1::Warehouse::CreateIndexEndpointRequest
Request message for CreateIndexEndpoint.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Format: `projects/{project}/locations/{location}`
$msg->index_endpoint_id()/$msg->index_endpoint_id($value)Type:
StringOptional. 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.
This value should be up to 63 characters, and valid characters are a-z, 0-9 and dash (-). The first character must be a letter, the last must be a letter or a number.
$msg->index_endpoint()/$msg->index_endpoint($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::IndexEndpoint)Required. The resource being created.
Google::Cloud::Visionai::V1::Warehouse::CreateIndexEndpointMetadata
Metadata message for CreateIndexEndpoint.
Inherits from Protobuf::Message.
Accessors
$msg->operation_metadata()/$msg->operation_metadata($value)Type:
Message(Google::Cloud::Visionai::V1::Common::OperationMetadata)Common metadata of the long-running operation.
Google::Cloud::Visionai::V1::Warehouse::GetIndexEndpointRequest
Request message for GetIndexEndpoint.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the IndexEndpoint resource.
Google::Cloud::Visionai::V1::Warehouse::ListIndexEndpointsRequest
Request message for ListIndexEndpoints.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Format: `projects/{project}/locations/{location}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Requested page size. Server may return fewer items than requested. The service may return fewer than this value. If unspecified, a page size of 50 will be used. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A token identifying a page of results the server should return.
$msg->filter()/$msg->filter($value)Type:
StringOptional. The filter applied to the returned list. We only support filtering for the `deployed_image_index.image_index` field. However, to filter by a corpus instead of an image index, simply use `deployed_image_index.corpus`, which will return all endpoints with `deployed_image_index.image_index` inside of the given corpus. A basic filter on image index would look like: deployed_image_index.image_index = "projects/123/locations/us-central1/corpora/my_corpus/imageIndexes/my_image_index" A basic filter on corpus would look like: deployed_image_index.corpus = "projects/123/locations/us-central1/corpora/my_corpus"
Google::Cloud::Visionai::V1::Warehouse::ListIndexEndpointsResponse
Response message for ListIndexEndpoints.
Inherits from Protobuf::Message.
Accessors
$msg->index_endpoints()/$msg->index_endpoints($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::IndexEndpoint)The list of IndexEndpoints.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results the server should return.
Google::Cloud::Visionai::V1::Warehouse::UpdateIndexEndpointRequest
Request message for UpdateIndexEndpoint.
Inherits from Protobuf::Message.
Accessors
$msg->index_endpoint()/$msg->index_endpoint($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::IndexEndpoint)Required. The resource being updated.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)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.
Google::Cloud::Visionai::V1::Warehouse::UpdateIndexEndpointMetadata
Metadata message for UpdateIndexEndpoint.
Inherits from Protobuf::Message.
Accessors
$msg->operation_metadata()/$msg->operation_metadata($value)Type:
Message(Google::Cloud::Visionai::V1::Common::OperationMetadata)Common metadata of the long-running operation.
Google::Cloud::Visionai::V1::Warehouse::DeleteIndexEndpointRequest
Request message for DeleteIndexEndpoint.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource.
Google::Cloud::Visionai::V1::Warehouse::DeleteIndexEndpointMetadata
Metadata message for DeleteIndexEndpoint.
Inherits from Protobuf::Message.
Accessors
$msg->operation_metadata()/$msg->operation_metadata($value)Type:
Message(Google::Cloud::Visionai::V1::Common::OperationMetadata)Common metadata of the long-running operation.
Google::Cloud::Visionai::V1::Warehouse::DeployIndexRequest
Request message for DeployIndex.
Inherits from Protobuf::Message.
Accessors
$msg->index_endpoint()/$msg->index_endpoint($value)Type:
StringRequired. IndexEndpoint the index is deployed to. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
$msg->deployed_index()/$msg->deployed_index($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DeployedIndex)Required. Index to deploy.
Google::Cloud::Visionai::V1::Warehouse::DeployIndexResponse
DeployIndex response once the operation is done.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::Warehouse::DeployIndexMetadata
Metadata message for DeployIndex.
Inherits from Protobuf::Message.
Accessors
$msg->operation_metadata()/$msg->operation_metadata($value)Type:
Message(Google::Cloud::Visionai::V1::Common::OperationMetadata)Common metadata of the long-running operation.
$msg->deployed_index()/$msg->deployed_index($value)Type:
StringOutput only. The index being deployed.
Google::Cloud::Visionai::V1::Warehouse::UndeployIndexMetadata
Metadata message for UndeployIndex.
Inherits from Protobuf::Message.
Accessors
$msg->operation_metadata()/$msg->operation_metadata($value)Type:
Message(Google::Cloud::Visionai::V1::Common::OperationMetadata)Common metadata of the long-running operation.
$msg->deployed_index()/$msg->deployed_index($value)Type:
StringOutput only. The index being undeployed.
Google::Cloud::Visionai::V1::Warehouse::UndeployIndexRequest
Request message for UndeployIndexEndpoint.
Inherits from Protobuf::Message.
Accessors
$msg->index_endpoint()/$msg->index_endpoint($value)Type:
StringRequired. Resource name of the IndexEndpoint resource on which the undeployment will act. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
Google::Cloud::Visionai::V1::Warehouse::UndeployIndexResponse
UndeployIndex response once the operation is done.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::Warehouse::DeployedIndex
A deployment of an Index.
Inherits from Protobuf::Message.
Accessors
$msg->index()/$msg->index($value)Type:
StringRequired. Name of the deployed Index. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/indexes/{index_id}`
Google::Cloud::Visionai::V1::Warehouse::FacetProperty
Central configuration for a facet.
Inherits from Protobuf::Message.
Accessors
$msg->fixed_range_bucket_spec()/$msg->fixed_range_bucket_spec($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::FacetProperty::FixedRangeBucketSpec)Fixed range facet bucket config.
$msg->custom_range_bucket_spec()/$msg->custom_range_bucket_spec($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::FacetProperty::CustomRangeBucketSpec)Custom range facet bucket config.
$msg->datetime_bucket_spec()/$msg->datetime_bucket_spec($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::FacetProperty::DateTimeBucketSpec)Datetime range facet bucket config.
$msg->mapped_fields()/$msg->mapped_fields($value)Type:
StringName of the facets, which are the dimensions users want to use to refine search results. `mapped_fields` will match UserSpecifiedDataSchema keys.
For example, user can add a bunch of UGAs with the same key, such as player:adam, player:bob, player:charles. When multiple mapped_fields are specified, will merge their value together as final facet value. E.g. home_team: a, home_team:b, away_team:a, away_team:c, when facet_field = [home_team, away_team], facet_value will be [a, b, c].
UNLESS this is a 1:1 facet dimension (mapped_fields.size() == 1) AND the mapped_field equals the parent SearchConfig.name, the parent must also contain a SearchCriteriaProperty that maps to the same fields. mapped_fields must not be empty.
$msg->display_name()/$msg->display_name($value)Type:
StringDisplay name of the facet. To be used by UI for facet rendering.
$msg->result_size()/$msg->result_size($value)Type:
Int64Maximum number of unique bucket to return for one facet. Bucket number can be large for high-cardinality facet such as "player". We only return top-n most related ones to user. If it's <= 0, the server will decide the appropriate result_size.
$msg->bucket_type()/$msg->bucket_type($value)Type:
Enum(Google::Cloud::Visionai::V1::FacetBucketType)Facet bucket type e.g. value, range.
Google::Cloud::Visionai::V1::Warehouse::SearchHypernym
Search resource: SearchHypernym. For example, { hypernym: "vehicle" hyponyms: ["sedan", "truck"] } This means in SMART_SEARCH mode, searching for "vehicle" will also return results with "sedan" or "truck" as annotations.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringResource name of the SearchHypernym. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}`
$msg->hypernym()/$msg->hypernym($value)Type:
StringOptional. The hypernym.
$msg->hyponyms()/$msg->hyponyms($value)Type:
StringOptional. Hyponyms that the hypernym is mapped to.
Google::Cloud::Visionai::V1::Warehouse::CreateSearchHypernymRequest
Request message for creating SearchHypernym.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this SearchHypernym will be created. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`
$msg->search_hypernym()/$msg->search_hypernym($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SearchHypernym)Required. The SearchHypernym to create.
$msg->search_hypernym_id()/$msg->search_hypernym_id($value)Type:
StringOptional. The search hypernym id. If omitted, a random UUID will be generated.
Google::Cloud::Visionai::V1::Warehouse::UpdateSearchHypernymRequest
Request message for updating SearchHypernym.
Inherits from Protobuf::Message.
Accessors
$msg->search_hypernym()/$msg->search_hypernym($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SearchHypernym)Required. The SearchHypernym to update. The search hypernym's `name` field is used to identify the search hypernym to be updated. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}`
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to be updated. If left unset, all field paths will be updated/overwritten.
Google::Cloud::Visionai::V1::Warehouse::GetSearchHypernymRequest
Request message for getting SearchHypernym.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the SearchHypernym to retrieve. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}`
Google::Cloud::Visionai::V1::Warehouse::DeleteSearchHypernymRequest
Request message for deleting SearchHypernym.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the SearchHypernym to delete. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}`
Google::Cloud::Visionai::V1::Warehouse::ListSearchHypernymsRequest
Request message for listing SearchHypernyms.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent, which owns this collection of SearchHypernyms. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of SearchHypernyms returned. The service may return fewer than this value. If unspecified, a page size of 50 will be used. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `SearchHypernym` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `SearchHypernym` must match the call that provided the page token.
Google::Cloud::Visionai::V1::Warehouse::ListSearchHypernymsResponse
Response message for listing SearchHypernyms.
Inherits from Protobuf::Message.
Accessors
$msg->search_hypernyms()/$msg->search_hypernyms($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SearchHypernym)The SearchHypernyms from the specified corpus.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Visionai::V1::Warehouse::SearchCriteriaProperty
Central configuration for custom search criteria.
Inherits from Protobuf::Message.
Accessors
$msg->mapped_fields()/$msg->mapped_fields($value)Type:
StringEach mapped_field corresponds to a UGA key. To understand how this property works, take the following example. In the SearchConfig table, the user adds this entry: search_config { name: "person" search_criteria_property { mapped_fields: "player" mapped_fields: "coach" } }
Now, when a user issues a query like: criteria { field: "person" text_array { txt_values: "Tom Brady" txt_values: "Bill Belichick" } }
MWH search will return search documents where (player=Tom Brady || coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
Google::Cloud::Visionai::V1::Warehouse::FacetValue
Definition of a single value with generic type.
Inherits from Protobuf::Message.
Accessors
$msg->string_value()/$msg->string_value($value)Type:
StringString type value.
$msg->integer_value()/$msg->integer_value($value)Type:
Int64Integer type value.
$msg->datetime_value()/$msg->datetime_value($value)Type:
Message(Google::Type::Datetime::DateTime)Datetime type value.
Google::Cloud::Visionai::V1::Warehouse::FacetBucket
Holds the facet value, selections state, and metadata.
Inherits from Protobuf::Message.
Accessors
$msg->value()/$msg->value($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::FacetValue)Singular value.
$msg->range()/$msg->range($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::FacetBucket::Range)Range value.
$msg->selected()/$msg->selected($value)Type:
BoolWhether one facet bucket is selected. This field represents user's facet selection. It is set by frontend in SearchVideosRequest.
Google::Cloud::Visionai::V1::Warehouse::FacetGroup
A group of facet buckets to be passed back and forth between backend & frontend.
Inherits from Protobuf::Message.
Accessors
$msg->facet_id()/$msg->facet_id($value)Type:
StringUnique id of the facet group.
$msg->display_name()/$msg->display_name($value)Type:
StringDisplay name of the facet. To be used by UI for facet rendering.
$msg->buckets()/$msg->buckets($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::FacetBucket)Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
$msg->bucket_type()/$msg->bucket_type($value)Type:
Enum(Google::Cloud::Visionai::V1::FacetBucketType)Facet bucket type.
$msg->fetch_matched_annotations()/$msg->fetch_matched_annotations($value)Type:
BoolIf true, return query matched annotations for this facet group's selection. This option is only applicable for facets based on partition level annotations. It supports the following facet values: - INTEGER - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only)
Google::Cloud::Visionai::V1::Warehouse::IngestAssetRequest
Request message for IngestAsset API.
Inherits from Protobuf::Message.
Accessors
$msg->config()/$msg->config($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::IngestAssetRequest::Config)Provides information for the data and the asset resource name that the data belongs to. The first `IngestAssetRequest` message must only contain a `Config` message.
$msg->time_indexed_data()/$msg->time_indexed_data($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::IngestAssetRequest::TimeIndexedData)Data to be ingested.
Google::Cloud::Visionai::V1::Warehouse::IngestAssetResponse
Response message for IngestAsset API.
Inherits from Protobuf::Message.
Accessors
$msg->successfully_ingested_partition()/$msg->successfully_ingested_partition($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Partition::TemporalPartition)Time range of the data that has been successfully ingested.
Google::Cloud::Visionai::V1::Warehouse::ClipAssetRequest
Request message for ClipAsset API.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the asset to request clips for. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
$msg->temporal_partition()/$msg->temporal_partition($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Partition::TemporalPartition)Required. The time range to request clips for.
Google::Cloud::Visionai::V1::Warehouse::ClipAssetResponse
Response message for ClipAsset API.
Inherits from Protobuf::Message.
Accessors
$msg->time_indexed_uris()/$msg->time_indexed_uris($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::ClipAssetResponse::TimeIndexedUri)A list of signed uris to download the video clips that cover the requested time range ordered by time.
Google::Cloud::Visionai::V1::Warehouse::GenerateHlsUriRequest
Request message for GenerateHlsUri API.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the asset to request clips for. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
$msg->temporal_partitions()/$msg->temporal_partitions($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Partition::TemporalPartition)The time range to request clips for. Will be ignored if `get_live_view` is set to True. The total time range requested should be smaller than 24h.
$msg->live_view_enabled()/$msg->live_view_enabled($value)Type:
BoolOption to exclusively show a livestream of the asset with up to 3 minutes of backlog data.
Google::Cloud::Visionai::V1::Warehouse::GenerateHlsUriResponse
Response message for GenerateHlsUri API.
Inherits from Protobuf::Message.
Accessors
$msg->uri()/$msg->uri($value)Type:
StringA signed uri to download the HLS manifest corresponding to the requested times.
$msg->temporal_partitions()/$msg->temporal_partitions($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Partition::TemporalPartition)A list of temporal partitions of the content returned in the order they appear in the stream.
Google::Cloud::Visionai::V1::Warehouse::SearchAssetsRequest
Request message for SearchAssets.
Inherits from Protobuf::Message.
Accessors
$msg->schema_key_sorting_strategy()/$msg->schema_key_sorting_strategy($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SchemaKeySortingStrategy)Sort by the value under the data schema key.
$msg->corpus()/$msg->corpus($value)Type:
StringRequired. The parent corpus to search. Format: `projects/{project_id}/locations/{location_id}/corpora/{corpus_id}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The number of results to be returned in this page. If it's 0, the server will decide the appropriate page_size.
$msg->page_token()/$msg->page_token($value)Type:
StringThe continuation token to fetch the next page. If empty, it means it is fetching the first page.
$msg->content_time_ranges()/$msg->content_time_ranges($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DateTimeRangeArray)Time ranges that matching video content must fall within. If no ranges are provided, there will be no time restriction. This field is treated just like the criteria below, but defined separately for convenience as it is used frequently. Note that if the end_time is in the future, it will be clamped to the time the request was received.
$msg->criteria()/$msg->criteria($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Criteria)Criteria applied to search results.
$msg->facet_selections()/$msg->facet_selections($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::FacetGroup)Stores most recent facet selection state. Only facet groups with user's selection will be presented here. Selection state is either selected or unselected. Only selected facet buckets will be used as search criteria.
$msg->result_annotation_keys()/$msg->result_annotation_keys($value)Type:
StringA list of annotation keys to specify the annotations to be retrieved and returned with each search result. Annotation granularity must be GRANULARITY_ASSET_LEVEL and its search strategy must not be NO_SEARCH.
$msg->search_query()/$msg->search_query($value)Type:
StringGlobal search query. Allows user to search assets without needing to specify which field the value belongs to.
Google::Cloud::Visionai::V1::Warehouse::SearchIndexEndpointRequest
Request message for SearchIndexEndpoint.
Inherits from Protobuf::Message.
Accessors
$msg->image_query()/$msg->image_query($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::ImageQuery)An image-only query.
$msg->text_query()/$msg->text_query($value)Type:
StringA text-only query.
$msg->index_endpoint()/$msg->index_endpoint($value)Type:
StringRequired. The index endpoint to search. Format: `projects/{project_id}/locations/{location_id}/indexEndpoints/{index_endpoint_id}`
$msg->criteria()/$msg->criteria($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Criteria)Criteria applied to search results.
$msg->exclusion_criteria()/$msg->exclusion_criteria($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Criteria)Criteria to exclude from search results. Note that `fetch_matched_annotations` will be ignored.
$msg->page_size()/$msg->page_size($value)Type:
Int32Requested page size. API may return fewer results than requested. If negative, INVALID_ARGUMENT error will be returned. If unspecified or 0, API will pick a default size, which is 10. If the requested page size is larger than the maximum size, API will pick the maximum size, which is 200.
$msg->page_token()/$msg->page_token($value)Type:
StringThe continuation token to fetch the next page. If empty, it means it is fetching the first page.
Google::Cloud::Visionai::V1::Warehouse::ImageQuery
Image query for search endpoint request.
Inherits from Protobuf::Message.
Accessors
$msg->input_image()/$msg->input_image($value)Type:
BytesInput image in raw bytes.
$msg->asset()/$msg->asset($value)Type:
StringResource name of the asset. Only supported in IMAGE corpus type. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
Google::Cloud::Visionai::V1::Warehouse::SchemaKeySortingStrategy
A strategy to specify how to sort by data schema key.
Inherits from Protobuf::Message.
Accessors
$msg->options()/$msg->options($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SchemaKeySortingStrategy::Option)Options in the front have high priority than those in the back.
Google::Cloud::Visionai::V1::Warehouse::DeleteAssetMetadata
The metadata for DeleteAsset API that embeds in [metadata][google.longrunning.Operation.metadata] field.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::Warehouse::AnnotationMatchingResult
Stores the criteria-annotation matching results for each search result item.
Inherits from Protobuf::Message.
Accessors
$msg->criteria()/$msg->criteria($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Criteria)The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection.
$msg->matched_annotations()/$msg->matched_annotations($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Annotation)Matched annotations for the criteria.
$msg->status()/$msg->status($value)Type:
Message(Google::Rpc::Status::Status)Status of the match result. Possible values: FAILED_PRECONDITION - the criteria is not eligible for match. OK - matching is performed.
Google::Cloud::Visionai::V1::Warehouse::SearchResultItem
Search result contains asset name and corresponding time ranges.
Inherits from Protobuf::Message.
Accessors
$msg->asset()/$msg->asset($value)Type:
StringThe resource name of the asset. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
$msg->segments()/$msg->segments($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Partition::TemporalPartition)The matched asset segments. Deprecated: please use singular `segment` field.
$msg->segment()/$msg->segment($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Partition::TemporalPartition)The matched asset segment.
$msg->relevance()/$msg->relevance($value)Type:
DoubleAvailable to IMAGE corpus types. Relevance of this `SearchResultItem` to user search query (text query or image query). By default this represents cosine similarity between the query and the retrieved media content. The value is in the range of [-1, 1]. Note that search ranking is not only decided by this relevance score, but also other factors such as the match of annotations.
$msg->requested_annotations()/$msg->requested_annotations($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Annotation)Search result annotations specified by result_annotation_keys in search request.
$msg->annotation_matching_results()/$msg->annotation_matching_results($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::AnnotationMatchingResult)Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.
Google::Cloud::Visionai::V1::Warehouse::SearchAssetsResponse
Response message for SearchAssets.
Inherits from Protobuf::Message.
Accessors
$msg->search_result_items()/$msg->search_result_items($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SearchResultItem)Returned search results.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next-page continuation token.
$msg->facet_results()/$msg->facet_results($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::FacetGroup)Facet search results of a given query, which contains user's already-selected facet values and updated facet search results.
Google::Cloud::Visionai::V1::Warehouse::SearchIndexEndpointResponse
Response message for SearchIndexEndpoint.
Inherits from Protobuf::Message.
Accessors
$msg->search_result_items()/$msg->search_result_items($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::SearchResultItem)Returned search results.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next-page continuation token. If this field is omitted, there are no subsequent pages.
Google::Cloud::Visionai::V1::Warehouse::IntRange
Integer range type.
Inherits from Protobuf::Message.
Accessors
$msg->start()/$msg->start($value)Type:
Int64Start of the int range.
$msg->end()/$msg->end($value)Type:
Int64End of the int range.
Google::Cloud::Visionai::V1::Warehouse::FloatRange
Float range type.
Inherits from Protobuf::Message.
Accessors
$msg->start()/$msg->start($value)Type:
FloatStart of the float range.
$msg->end()/$msg->end($value)Type:
FloatEnd of the float range.
Google::Cloud::Visionai::V1::Warehouse::StringArray
A list of string-type values.
Inherits from Protobuf::Message.
Accessors
$msg->txt_values()/$msg->txt_values($value)Type:
StringString type values.
Google::Cloud::Visionai::V1::Warehouse::IntRangeArray
A list of integer range values.
Inherits from Protobuf::Message.
Accessors
$msg->int_ranges()/$msg->int_ranges($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::IntRange)Int range values.
Google::Cloud::Visionai::V1::Warehouse::FloatRangeArray
A list of float range values.
Inherits from Protobuf::Message.
Accessors
$msg->float_ranges()/$msg->float_ranges($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::FloatRange)Float range values.
Google::Cloud::Visionai::V1::Warehouse::DateTimeRange
Datetime range type.
Inherits from Protobuf::Message.
Accessors
$msg->start()/$msg->start($value)Type:
Message(Google::Type::Datetime::DateTime)Start date time.
$msg->end()/$msg->end($value)Type:
Message(Google::Type::Datetime::DateTime)End data time.
Google::Cloud::Visionai::V1::Warehouse::DateTimeRangeArray
A list of datetime range values.
Inherits from Protobuf::Message.
Accessors
$msg->date_time_ranges()/$msg->date_time_ranges($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DateTimeRange)Date time ranges.
Google::Cloud::Visionai::V1::Warehouse::CircleArea
Representation of a circle area.
Inherits from Protobuf::Message.
Accessors
$msg->latitude()/$msg->latitude($value)Type:
DoubleLatitude of circle area's center. Degrees [-90 .. 90]
$msg->longitude()/$msg->longitude($value)Type:
DoubleLongitude of circle area's center. Degrees [-180 .. 180]
$msg->radius_meter()/$msg->radius_meter($value)Type:
DoubleRadius of the circle area in meters.
Google::Cloud::Visionai::V1::Warehouse::GeoLocationArray
A list of locations.
Inherits from Protobuf::Message.
Accessors
$msg->circle_areas()/$msg->circle_areas($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::CircleArea)A list of circle areas.
Google::Cloud::Visionai::V1::Warehouse::BoolValue
Inherits from Protobuf::Message.
Accessors
$msg->value()/$msg->value($value)Type:
Bool
Google::Cloud::Visionai::V1::Warehouse::Criteria
Filter criteria applied to current search results.
Inherits from Protobuf::Message.
Accessors
$msg->text_array()/$msg->text_array($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::StringArray)The text values associated with the field.
$msg->int_range_array()/$msg->int_range_array($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::IntRangeArray)The integer ranges associated with the field.
$msg->float_range_array()/$msg->float_range_array($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::FloatRangeArray)The float ranges associated with the field.
$msg->date_time_range_array()/$msg->date_time_range_array($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::DateTimeRangeArray)The datetime ranges associated with the field.
$msg->geo_location_array()/$msg->geo_location_array($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::GeoLocationArray)Geo Location array.
$msg->bool_value()/$msg->bool_value($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::BoolValue)A Boolean value.
$msg->field()/$msg->field($value)Type:
StringThe UGA field or ML field to apply filtering criteria.
$msg->fetch_matched_annotations()/$msg->fetch_matched_annotations($value)Type:
BoolIf true, return query matched annotations for this criteria. This option is only applicable for inclusion criteria, i.e., not exclusion criteria, with partition level annotations. It supports the following data types: - INTEGER - FLOAT - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only) - BOOLEAN
Google::Cloud::Visionai::V1::Warehouse::Partition
Partition to specify the partition in time and space for sub-asset level annotation.
Inherits from Protobuf::Message.
Accessors
$msg->temporal_partition()/$msg->temporal_partition($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Partition::TemporalPartition)Partition of asset in time.
$msg->spatial_partition()/$msg->spatial_partition($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Partition::SpatialPartition)Partition of asset in space.
$msg->relative_temporal_partition()/$msg->relative_temporal_partition($value)Type:
Message(Google::Cloud::Visionai::V1::Warehouse::Partition::RelativeTemporalPartition)Partition of asset in time.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Visionai::V1::Warehouse::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.