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: String

    Required. 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: String

    Optional. 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: String

    Required. 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: String

    Required. The parent, which owns this collection of assets. Format: projects/{project_number}/locations/{location}/corpora/{corpus}

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The 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: String

    A 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: String

    A 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

Google::Cloud::Visionai::V1alpha1::Warehouse::DeleteAssetRequest

Request message for DeleteAsset.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. 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: String

    Resource 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: String

    Required. 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: String

    Resource name of the corpus. Form: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. The corpus name to shown in the UI. The name can be up to 32 characters long.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. 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: String

    Required. The resource name of the corpus to retrieve.

Google::Cloud::Visionai::V1alpha1::Warehouse::UpdateCorpusRequest

Request message for UpdateCorpus.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::Warehouse::ListCorporaRequest

Request message for ListCorpora.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name of the project from which to list corpora.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Requested 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: String

    A 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: String

    A 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: String

    Required. 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: String

    Required. 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: String

    Resource 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: String

    Required. 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

Enum: DataSchemaDetails::DataType

  • DATA_TYPE_UNSPECIFIED => 0

  • INTEGER => 1

  • FLOAT => 2

  • STRING => 3

  • DATETIME => 5

  • GEO_COORDINATE => 7

  • PROTO_ANY => 8

  • BOOLEAN => 9

Enum: DataSchemaDetails::Granularity

  • GRANULARITY_UNSPECIFIED => 0

  • GRANULARITY_ASSET_LEVEL => 1

  • GRANULARITY_PARTITION_LEVEL => 2

Google::Cloud::Visionai::V1alpha1::Warehouse::UpdateDataSchemaRequest

Request message for UpdateDataSchema.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::Warehouse::GetDataSchemaRequest

Request message for GetDataSchema.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. 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: String

    Required. 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: String

    Required. 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: Int32

    The 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: String

    A 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: String

    A 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: String

    Required. 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: String

    Optional. 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: String

    Resource 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

Google::Cloud::Visionai::V1alpha1::Warehouse::GeoCoordinate

Location Coordinate Representation

Inherits from Protobuf::Message.

Accessors

  • $msg->latitude() / $msg->latitude($value)

    Type: Double

    Latitude Coordinate. Degrees [-90 .. 90]

  • $msg->longitude() / $msg->longitude($value)

    Type: Double

    Longitude 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: Int64

    Value of int type annotation.

  • $msg->float_value() / $msg->float_value($value)

    Type: Float

    Value of float type annotation.

  • $msg->str_value() / $msg->str_value($value)

    Type: String

    Value of string type annotation.

  • $msg->datetime_value() / $msg->datetime_value($value)

    Type: String

    Value 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: Bool

    Value 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: String

    The 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: Int32

    The 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: String

    A 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: String

    The 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: String

    A 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: String

    Required. 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: String

    Required. 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: String

    Required. 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: String

    Required. 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: String

    Required. 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: String

    Required. 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: String

    Required. 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: Int32

    The 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: String

    A 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: String

    A 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: String

    Resource 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: String

    Name 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: String

    Display name of the facet. To be used by UI for facet rendering.

  • $msg->result_size() / $msg->result_size($value)

    Type: Int64

    Maximum 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: String

    Each 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: String

    String type value.

  • $msg->integer_value() / $msg->integer_value($value)

    Type: Int64

    Integer 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

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: String

    Unique id of the facet group.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Display 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: Bool

    If 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

Google::Cloud::Visionai::V1alpha1::Warehouse::IngestAssetResponse

Response message for IngestAsset API.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::Warehouse::ClipAssetRequest

Request message for ClipAsset API.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. 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

Google::Cloud::Visionai::V1alpha1::Warehouse::GenerateHlsUriRequest

Request message for GenerateHlsUri API.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. 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: String

    A 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: String

    Required. The parent corpus to search. Form: `projects/{project_id}/locations/{location_id}/corpora/{corpus_id}'

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The 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: String

    The 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: String

    A 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

Google::Cloud::Visionai::V1alpha1::Warehouse::SearchResultItem

Search result contains asset name and corresponding time ranges.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::Warehouse::SearchAssetsResponse

Response message for SearchAssets.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::Warehouse::IntRange

Integer range type.

Inherits from Protobuf::Message.

Accessors

  • $msg->start() / $msg->start($value)

    Type: Int64

    Start of the int range.

  • $msg->end() / $msg->end($value)

    Type: Int64

    End of the int range.

Google::Cloud::Visionai::V1alpha1::Warehouse::FloatRange

Float range type.

Inherits from Protobuf::Message.

Accessors

  • $msg->start() / $msg->start($value)

    Type: Float

    Start of the float range.

  • $msg->end() / $msg->end($value)

    Type: Float

    End 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: String

    String type values.

Google::Cloud::Visionai::V1alpha1::Warehouse::IntRangeArray

A list of integer range values.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::Warehouse::FloatRangeArray

A list of float range values.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::Warehouse::DateTimeRange

Datetime range type.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::Warehouse::DateTimeRangeArray

A list of datetime range values.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::Warehouse::CircleArea

Representation of a circle area.

Inherits from Protobuf::Message.

Accessors

  • $msg->latitude() / $msg->latitude($value)

    Type: Double

    Latitude of circle area's center. Degrees [-90 .. 90]

  • $msg->longitude() / $msg->longitude($value)

    Type: Double

    Longitude of circle area's center. Degrees [-180 .. 180]

  • $msg->radius_meter() / $msg->radius_meter($value)

    Type: Double

    Radius of the circle area in meters.

Google::Cloud::Visionai::V1alpha1::Warehouse::GeoLocationArray

A list of locations.

Inherits from Protobuf::Message.

Accessors

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

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

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.