Class BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder (1.20.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
Overrides

build()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate build()
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate

buildPartial()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate buildPartial()
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
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
TypeDescription
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
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
Overrides

clone()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder clone()
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
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
TypeDescription
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
TypeDescription
ByteString

The bytes for datasetIdPrefix.

getDefaultInstanceForType()

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDefaultInstanceForType()
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for location.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate other)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder mergeFrom(BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate other)
Parameter
NameDescription
otherBigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The datasetIdPrefix to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for datasetIdPrefix to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
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
NameDescription
valueString

The kmsKeyName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kmsKeyName to set.

Returns
TypeDescription
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
NameDescription
valueString

The location to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder
Overrides