Google Cloud Datastream V1 Client - Class DatasetTemplate (2.0.0-RC1)

Reference documentation and code samples for the Google Cloud Datastream V1 Client class DatasetTemplate.

Dataset template used for dynamic dataset creation.

Generated from protobuf message google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate

Namespace

Google \ Cloud \ Datastream \ V1 \ BigQueryDestinationConfig \ SourceHierarchyDatasets

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ location string

Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.

↳ dataset_id_prefix string

If supplied, every created dataset will have its name prefixed by the provided value. The prefix and name will be separated by an underscore. i.e.

↳ kms_key_name string

Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key. i.e. projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}. See https://cloud.google.com/bigquery/docs/customer-managed-encryption for more information.

getLocation

Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.

Returns
Type Description
string

setLocation

Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.

Parameter
Name Description
var string
Returns
Type Description
$this

getDatasetIdPrefix

If supplied, every created dataset will have its name prefixed by the provided value. The prefix and name will be separated by an underscore.

i.e.

Returns
Type Description
string

setDatasetIdPrefix

If supplied, every created dataset will have its name prefixed by the provided value. The prefix and name will be separated by an underscore.

i.e.

Parameter
Name Description
var string
Returns
Type Description
$this

getKmsKeyName

Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.

i.e. projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}. See https://cloud.google.com/bigquery/docs/customer-managed-encryption for more information.

Returns
Type Description
string

setKmsKeyName

Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.

i.e. projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}. See https://cloud.google.com/bigquery/docs/customer-managed-encryption for more information.

Parameter
Name Description
var string
Returns
Type Description
$this