Google Cloud Discovery Engine V1 Client - Class DataStore (1.2.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class DataStore.

DataStore captures global settings and configs at the DataStore level.

Generated from protobuf message google.cloud.discoveryengine.v1.DataStore

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Immutable. The full resource name of the data store. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.

↳ display_name string

Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

↳ industry_vertical int

Immutable. The industry vertical that the data store registers.

↳ solution_types array

The solutions that the data store enrolls. Available solutions for each industry_vertical: * MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH. * SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

↳ default_schema_id string

Output only. The id of the default Schema asscociated to this data store.

↳ content_config int

Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.

↳ create_time Google\Protobuf\Timestamp

Output only. Timestamp the DataStore was created at.

↳ billing_estimation Google\Cloud\DiscoveryEngine\V1\DataStore\BillingEstimation

Output only. Data size estimation for billing.

↳ workspace_config Google\Cloud\DiscoveryEngine\V1\WorkspaceConfig

Config to store data store type configuration for workspace data. This must be set when DataStore.content_config is set as DataStore.ContentConfig.GOOGLE_WORKSPACE.

↳ document_processing_config Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig

Configuration for Document understanding and enrichment.

↳ starting_schema Google\Cloud\DiscoveryEngine\V1\Schema

The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used. This field is only used by CreateDataStore API, and will be ignored if used in other APIs. This field will be omitted from all API responses including CreateDataStore API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from this doc.

getName

Immutable. The full resource name of the data store.

Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.

Returns
Type Description
string

setName

Immutable. The full resource name of the data store.

Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

Required. The data store display name.

This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

Returns
Type Description
string

setDisplayName

Required. The data store display name.

This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

Parameter
Name Description
var string
Returns
Type Description
$this

getIndustryVertical

Immutable. The industry vertical that the data store registers.

Returns
Type Description
int

setIndustryVertical

Immutable. The industry vertical that the data store registers.

Parameter
Name Description
var int
Returns
Type Description
$this

getSolutionTypes

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.

  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSolutionTypes

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.

  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getDefaultSchemaId

Output only. The id of the default Schema asscociated to this data store.

Returns
Type Description
string

setDefaultSchemaId

Output only. The id of the default Schema asscociated to this data store.

Parameter
Name Description
var string
Returns
Type Description
$this

getContentConfig

Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.

Returns
Type Description
int

setContentConfig

Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.

Parameter
Name Description
var int
Returns
Type Description
$this

getCreateTime

Output only. Timestamp the DataStore was created at.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Timestamp the DataStore was created at.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getBillingEstimation

Output only. Data size estimation for billing.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\DataStore\BillingEstimation|null

hasBillingEstimation

clearBillingEstimation

setBillingEstimation

Output only. Data size estimation for billing.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\DataStore\BillingEstimation
Returns
Type Description
$this

getWorkspaceConfig

Config to store data store type configuration for workspace data. This must be set when DataStore.content_config is set as DataStore.ContentConfig.GOOGLE_WORKSPACE.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\WorkspaceConfig|null

hasWorkspaceConfig

clearWorkspaceConfig

setWorkspaceConfig

Config to store data store type configuration for workspace data. This must be set when DataStore.content_config is set as DataStore.ContentConfig.GOOGLE_WORKSPACE.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\WorkspaceConfig
Returns
Type Description
$this

getDocumentProcessingConfig

Configuration for Document understanding and enrichment.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig|null

hasDocumentProcessingConfig

clearDocumentProcessingConfig

setDocumentProcessingConfig

Configuration for Document understanding and enrichment.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig
Returns
Type Description
$this

getStartingSchema

The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used.

This field is only used by CreateDataStore API, and will be ignored if used in other APIs. This field will be omitted from all API responses including CreateDataStore API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from this doc.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\Schema|null

hasStartingSchema

clearStartingSchema

setStartingSchema

The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used.

This field is only used by CreateDataStore API, and will be ignored if used in other APIs. This field will be omitted from all API responses including CreateDataStore API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from this doc.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\Schema
Returns
Type Description
$this