public sealed class BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate : IMessage<BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate>, IEquatable<BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate>, IDeepCloneable<BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate>, IBufferMessage, IMessage
Reference documentation and code samples for the DataStream v1 API class BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate.
Dataset template used for dynamic dataset creation.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eBigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate\u003c/code\u003e class within the DataStream v1 API, with the latest version being 2.9.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDatasetTemplate\u003c/code\u003e class is used for the dynamic creation of datasets and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eDatasetTemplate\u003c/code\u003e class include \u003ccode\u003eDatasetIdPrefix\u003c/code\u003e, which adds a prefix to created dataset names, \u003ccode\u003eKmsKeyName\u003c/code\u003e for specifying a Cloud KMS encryption key, and \u003ccode\u003eLocation\u003c/code\u003e to designate the geographic location for the dataset.\u003c/p\u003e\n"],["\u003cp\u003eThere are 11 version available in the documentation, and the inheritance hierarchy is explained in the document, starting with object and going down to the DatasetTemplate.\u003c/p\u003e\n"],["\u003cp\u003eThe document outlines two constructors for the \u003ccode\u003eDatasetTemplate\u003c/code\u003e class, one default constructor and another that takes an existing \u003ccode\u003eDatasetTemplate\u003c/code\u003e instance as a parameter.\u003c/p\u003e\n"]]],[],null,["# DataStream v1 API - Class BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate (2.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.11.0 (latest)](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.10.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.9.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.8.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.7.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.6.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.5.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.4.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.3.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.2.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.1.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.0.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Datastream.V1/1.0.0/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate) \n\n public sealed class BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate : IMessage\u003cBigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate\u003e, IEquatable\u003cBigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate\u003e, IDeepCloneable\u003cBigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the DataStream v1 API class BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate.\n\nDataset template used for dynamic dataset creation. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BigQueryDestinationConfig](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig)[Types](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types)[SourceHierarchyDatasets](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets)[Types](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types)[DatasetTemplate](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BigQueryDestinationConfig](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig)[Types](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types)[SourceHierarchyDatasets](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets)[Types](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types)[DatasetTemplate](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BigQueryDestinationConfig](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig)[Types](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types)[SourceHierarchyDatasets](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets)[Types](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types)[DatasetTemplate](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Datastream.V1](/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Datastream.V1.dll\n\nConstructors\n------------\n\n### DatasetTemplate()\n\n public DatasetTemplate()\n\n### DatasetTemplate(DatasetTemplate)\n\n public DatasetTemplate(BigQueryDestinationConfig.Types.SourceHierarchyDatasets.Types.DatasetTemplate other)\n\nProperties\n----------\n\n### DatasetIdPrefix\n\n public string DatasetIdPrefix { get; set; }\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### KmsKeyName\n\n public string KmsKeyName { get; set; }\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### Location\n\n public string Location { get; set; }\n\nRequired. The geographic location where the dataset should reside. See\n\u003chttps://cloud.google.com/bigquery/docs/locations\u003e for supported\nlocations."]]