Service Client: Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse - Compiled Protocol Buffers messages for google/cloud/visionai/v1alpha1/warehouse.proto
SYNOPSIS
use Google::Cloud::Visionai::V1alpha1::Warehouse;
my $msg = Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::CreateAssetRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/visionai/v1alpha1/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::V1alpha1::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/*/locations/*/corpora/*
$msg->asset()/$msg->asset($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::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.
Google::Cloud::Visionai::V1alpha1::Warehouse::ListAssetsResponse
Response message for ListAssets.
Inherits from Protobuf::Message.
Accessors
$msg->assets()/$msg->assets($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::UpdateAssetRequest
Response message for UpdateAsset.
Inherits from Protobuf::Message.
Accessors
$msg->asset()/$msg->asset($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::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. Form: `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.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::Corpus)Required. The corpus to be created.
Google::Cloud::Visionai::V1alpha1::Warehouse::CreateCorpusMetadata
Metadata for CreateCorpus API.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1alpha1::Warehouse::Corpus
Corpus is a set of video contents for management. Within a corpus, videos share 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. Form: `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)Required. The default TTL value for all assets under the corpus without a asset level user-defined TTL with a maximum of 10 years. This is required for all corpora.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::UpdateCorpusRequest
Request message for UpdateCorpus.
Inherits from Protobuf::Message.
Accessors
$msg->corpus()/$msg->corpus($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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 [ListCorpora.next_page_token][] of the previous [Warehouse.ListCorpora][google.cloud.visionai.v1alpha1.Warehouse.ListCorpora] call.
Google::Cloud::Visionai::V1alpha1::Warehouse::ListCorporaResponse
Response message for ListCorpora.
Inherits from Protobuf::Message.
Accessors
$msg->corpora()/$msg->corpora($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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.v1alpha1.ListCorporaRequest.page_token] to obtain that page.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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/*/locations/*/corpora/*
$msg->data_schema()/$msg->data_schema($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::DataSchema)Required. The data schema to create.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::DataSchemaDetails)The schema details mapping to the key.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::DataSchemaDetails::DataType)Type of the annotation.
$msg->proto_any_config()/$msg->proto_any_config($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::DataSchemaDetails::ProtoAnyConfig)Config for protobuf any type.
$msg->granularity()/$msg->granularity($value)Type:
Enum(Google::Cloud::Visionai::V1alpha1::DataSchemaDetails::Granularity)The granularity associated with this DataSchema.
$msg->search_strategy()/$msg->search_strategy($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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=>9
Enum: DataSchemaDetails::Granularity
GRANULARITY_UNSPECIFIED=>0GRANULARITY_ASSET_LEVEL=>1GRANULARITY_PARTITION_LEVEL=>2
Google::Cloud::Visionai::V1alpha1::Warehouse::UpdateDataSchemaRequest
Request message for UpdateDataSchema.
Inherits from Protobuf::Message.
Accessors
$msg->data_schema()/$msg->data_schema($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::Warehouse::ListDataSchemasResponse
Response message for ListDataSchemas.
Inherits from Protobuf::Message.
Accessors
$msg->data_schemas()/$msg->data_schemas($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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/*/locations/*/corpora/*/assets/*
$msg->annotation()/$msg->annotation($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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. Form: `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::V1alpha1::Warehouse::UserSpecifiedAnnotation)User provided annotation.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::Warehouse::Partition)Partition information in time and space for the sub-asset level annotation.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::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.
Google::Cloud::Visionai::V1alpha1::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: `partition.temporal_partition.start_time`, `partition.temporal_partition.end_time`, and `key`. 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::V1alpha1::Warehouse::ListAnnotationsResponse
Request message for ListAnnotations API.
Inherits from Protobuf::Message.
Accessors
$msg->annotations()/$msg->annotations($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::Warehouse::UpdateAnnotationRequest
Request message for UpdateAnnotation API.
Inherits from Protobuf::Message.
Accessors
$msg->annotation()/$msg->annotation($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::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/*/locations/*/corpora/*
$msg->search_config()/$msg->search_config($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::UpdateSearchConfigRequest
Request message for UpdateSearchConfig.
Inherits from Protobuf::Message.
Accessors
$msg->search_config()/$msg->search_config($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::Warehouse::ListSearchConfigsResponse
Response message for ListSearchConfigs.
Inherits from Protobuf::Message.
Accessors
$msg->search_configs()/$msg->search_configs($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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. Form: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}`
$msg->facet_property()/$msg->facet_property($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::FacetProperty)Establishes a FacetDimension and associated specifications.
$msg->search_criteria_property()/$msg->search_criteria_property($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::SearchCriteriaProperty)Creates a mapping between a custom SearchCriteria and one or more UGA keys.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::FacetProperty::FixedRangeBucketSpec)Fixed range facet bucket config.
$msg->custom_range_bucket_spec()/$msg->custom_range_bucket_spec($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::FacetProperty::CustomRangeBucketSpec)Custom range facet bucket config.
$msg->datetime_bucket_spec()/$msg->datetime_bucket_spec($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::FacetBucketType)Facet bucket type e.g. value, range.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::Warehouse::FacetValue)Singular value.
$msg->range()/$msg->range($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::Warehouse::IngestAssetRequest
Request message for IngestAsset API.
Inherits from Protobuf::Message.
Accessors
$msg->config()/$msg->config($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::IngestAssetRequest::TimeIndexedData)Data to be ingested.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::Partition::TemporalPartition)Time range of the data that has been successfully ingested.
Google::Cloud::Visionai::V1alpha1::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. Form: 'projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}'
$msg->temporal_partition()/$msg->temporal_partition($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::Partition::TemporalPartition)Required. The time range to request clips for.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::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. Form: 'projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}'
$msg->temporal_partitions()/$msg->temporal_partitions($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::Partition::TemporalPartition)Required. The time range to request clips for.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::Partition::TemporalPartition)A list of temporal partitions of the content returned in the order they appear in the stream.
Google::Cloud::Visionai::V1alpha1::Warehouse::SearchAssetsRequest
Request message for SearchAssets.
Inherits from Protobuf::Message.
Accessors
$msg->corpus()/$msg->corpus($value)Type:
StringRequired. The parent corpus to search. Form: `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::V1alpha1::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::V1alpha1::Warehouse::Criteria)Criteria applied to search results.
$msg->facet_selections()/$msg->facet_selections($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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.
Google::Cloud::Visionai::V1alpha1::Warehouse::DeleteAssetMetadata
The metadata for DeleteAsset API that embeds in [metadata][google.longrunning.Operation.metadata] field.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::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. Form: 'projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}'
$msg->segments()/$msg->segments($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::Partition::TemporalPartition)The matched asset segments. Deprecated: please use singular `segment` field.
$msg->segment()/$msg->segment($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::Partition::TemporalPartition)The matched asset segment.
$msg->requested_annotations()/$msg->requested_annotations($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::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::V1alpha1::Warehouse::IntRange)Int range values.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::FloatRange)Float range values.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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::V1alpha1::Warehouse::DateTimeRange)Date time ranges.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::GeoLocationArray
A list of locations.
Inherits from Protobuf::Message.
Accessors
$msg->circle_areas()/$msg->circle_areas($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::CircleArea)A list of circle areas.
Google::Cloud::Visionai::V1alpha1::Warehouse::BoolValue
Inherits from Protobuf::Message.
Accessors
$msg->value()/$msg->value($value)Type:
Bool
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::StringArray)The text values associated with the field.
$msg->int_range_array()/$msg->int_range_array($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::IntRangeArray)The integer ranges associated with the field.
$msg->float_range_array()/$msg->float_range_array($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::DateTimeRangeArray)The datetime ranges associated with the field.
$msg->geo_location_array()/$msg->geo_location_array($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::GeoLocationArray)Geo Location array.
$msg->bool_value()/$msg->bool_value($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::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 partition level annotations and supports the following data types: - INTEGER - FLOAT - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only) - BOOLEAN
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Warehouse::Partition::TemporalPartition)Partition of asset in time.
$msg->spatial_partition()/$msg->spatial_partition($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Warehouse::Partition::SpatialPartition)Partition of asset in space.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Visionai::V1alpha1::Warehouse::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.