Class BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder (1.82.0)

public static final class BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder extends GeneratedMessage.Builder<BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder> implements BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder

Dataset template used for dynamic dataset creation.

Protobuf type google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate build()
Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate

buildPartial()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate buildPartial()
Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate

clear()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder clear()
Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
Overrides

clearDatasetIdPrefix()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder clearDatasetIdPrefix()

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

string dataset_id_prefix = 2;

Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

This builder for chaining.

clearKmsKeyName()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder clearKmsKeyName()

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.

string kms_key_name = 3;

Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

This builder for chaining.

clearLocation()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder clearLocation()

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

string location = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

This builder for chaining.

getDatasetIdPrefix()

public String 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. <prefix>_<dataset_name>.

string dataset_id_prefix = 2;

Returns
Type Description
String

The datasetIdPrefix.

getDatasetIdPrefixBytes()

public ByteString getDatasetIdPrefixBytes()

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

string dataset_id_prefix = 2;

Returns
Type Description
ByteString

The bytes for datasetIdPrefix.

getDefaultInstanceForType()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDefaultInstanceForType()
Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKmsKeyName()

public String 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.

string kms_key_name = 3;

Returns
Type Description
String

The kmsKeyName.

getKmsKeyNameBytes()

public ByteString getKmsKeyNameBytes()

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.

string kms_key_name = 3;

Returns
Type Description
ByteString

The bytes for kmsKeyName.

getLocation()

public String getLocation()

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

string location = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

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

string location = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for location.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate other)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder mergeFrom(BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate other)
Parameter
Name Description
other BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate
Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
Overrides

setDatasetIdPrefix(String value)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder setDatasetIdPrefix(String value)

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

string dataset_id_prefix = 2;

Parameter
Name Description
value String

The datasetIdPrefix to set.

Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

This builder for chaining.

setDatasetIdPrefixBytes(ByteString value)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder setDatasetIdPrefixBytes(ByteString value)

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

string dataset_id_prefix = 2;

Parameter
Name Description
value ByteString

The bytes for datasetIdPrefix to set.

Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

This builder for chaining.

setKmsKeyName(String value)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder setKmsKeyName(String value)

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.

string kms_key_name = 3;

Parameter
Name Description
value String

The kmsKeyName to set.

Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

This builder for chaining.

setKmsKeyNameBytes(ByteString value)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder setKmsKeyNameBytes(ByteString value)

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.

string kms_key_name = 3;

Parameter
Name Description
value ByteString

The bytes for kmsKeyName to set.

Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

This builder for chaining.

setLocation(String value)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder setLocation(String value)

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

string location = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder setLocationBytes(ByteString value)

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

string location = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

This builder for chaining.