Class BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder (1.57.0)

public static final class BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder extends GeneratedMessageV3.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

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

build()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate build()

buildPartial()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate buildPartial()

clear()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder clear()
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.

clearField(Descriptors.FieldDescriptor field)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Overrides

clone()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder clone()
Overrides

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()

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides