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. <prefix>_<dataset_name>.
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. <prefix>_<dataset_name>.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder) \n\n public static interface BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getDatasetIdPrefix()\n\n public abstract String getDatasetIdPrefix()\n\nIf supplied, every created dataset will have its name prefixed by the\nprovided value. The prefix and name will be separated by an underscore.\ni.e. \\\u003cprefix\\\u003e_\\\u003cdataset_name\\\u003e.\n\n`string dataset_id_prefix = 2;`\n\n### getDatasetIdPrefixBytes()\n\n public abstract ByteString getDatasetIdPrefixBytes()\n\nIf supplied, every created dataset will have its name prefixed by the\nprovided value. The prefix and name will be separated by an underscore.\ni.e. \\\u003cprefix\\\u003e_\\\u003cdataset_name\\\u003e.\n\n`string dataset_id_prefix = 2;`\n\n### getKmsKeyName()\n\n public abstract String getKmsKeyName()\n\nDescribes the Cloud KMS encryption key that will be used to\nprotect destination BigQuery table. The BigQuery Service Account\nassociated with your project requires access to this encryption key.\ni.e.\nprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.\nSee \u003chttps://cloud.google.com/bigquery/docs/customer-managed-encryption\u003e\nfor more information.\n\n`string kms_key_name = 3;`\n\n### getKmsKeyNameBytes()\n\n public abstract ByteString getKmsKeyNameBytes()\n\nDescribes the Cloud KMS encryption key that will be used to\nprotect destination BigQuery table. The BigQuery Service Account\nassociated with your project requires access to this encryption key.\ni.e.\nprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.\nSee \u003chttps://cloud.google.com/bigquery/docs/customer-managed-encryption\u003e\nfor more information.\n\n`string kms_key_name = 3;`\n\n### getLocation()\n\n public abstract String getLocation()\n\nRequired. The geographic location where the dataset should reside. See\n\u003chttps://cloud.google.com/bigquery/docs/locations\u003e for supported\nlocations.\n\n`string location = 1;`\n\n### getLocationBytes()\n\n public abstract ByteString getLocationBytes()\n\nRequired. The geographic location where the dataset should reside. See\n\u003chttps://cloud.google.com/bigquery/docs/locations\u003e for supported\nlocations.\n\n`string location = 1;`"]]