Class BigQueryRegex.Builder (3.87.0)

public static final class BigQueryRegex.Builder extends GeneratedMessage.Builder<BigQueryRegex.Builder> implements BigQueryRegexOrBuilder

A pattern to match against one or more tables, datasets, or projects that contain BigQuery tables. At least one pattern must be specified. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.

Protobuf type google.privacy.dlp.v2.BigQueryRegex

Static Methods

getDescriptor()

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

Methods

build()

public BigQueryRegex build()
Returns
Type Description
BigQueryRegex

buildPartial()

public BigQueryRegex buildPartial()
Returns
Type Description
BigQueryRegex

clear()

public BigQueryRegex.Builder clear()
Returns
Type Description
BigQueryRegex.Builder
Overrides

clearDatasetIdRegex()

public BigQueryRegex.Builder clearDatasetIdRegex()

If unset, this property matches all datasets.

string dataset_id_regex = 2;

Returns
Type Description
BigQueryRegex.Builder

This builder for chaining.

clearProjectIdRegex()

public BigQueryRegex.Builder clearProjectIdRegex()

For organizations, if unset, will match all projects. Has no effect for data profile configurations created within a project.

string project_id_regex = 1;

Returns
Type Description
BigQueryRegex.Builder

This builder for chaining.

clearTableIdRegex()

public BigQueryRegex.Builder clearTableIdRegex()

If unset, this property matches all tables.

string table_id_regex = 3;

Returns
Type Description
BigQueryRegex.Builder

This builder for chaining.

getDatasetIdRegex()

public String getDatasetIdRegex()

If unset, this property matches all datasets.

string dataset_id_regex = 2;

Returns
Type Description
String

The datasetIdRegex.

getDatasetIdRegexBytes()

public ByteString getDatasetIdRegexBytes()

If unset, this property matches all datasets.

string dataset_id_regex = 2;

Returns
Type Description
ByteString

The bytes for datasetIdRegex.

getDefaultInstanceForType()

public BigQueryRegex getDefaultInstanceForType()
Returns
Type Description
BigQueryRegex

getDescriptorForType()

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

getProjectIdRegex()

public String getProjectIdRegex()

For organizations, if unset, will match all projects. Has no effect for data profile configurations created within a project.

string project_id_regex = 1;

Returns
Type Description
String

The projectIdRegex.

getProjectIdRegexBytes()

public ByteString getProjectIdRegexBytes()

For organizations, if unset, will match all projects. Has no effect for data profile configurations created within a project.

string project_id_regex = 1;

Returns
Type Description
ByteString

The bytes for projectIdRegex.

getTableIdRegex()

public String getTableIdRegex()

If unset, this property matches all tables.

string table_id_regex = 3;

Returns
Type Description
String

The tableIdRegex.

getTableIdRegexBytes()

public ByteString getTableIdRegexBytes()

If unset, this property matches all tables.

string table_id_regex = 3;

Returns
Type Description
ByteString

The bytes for tableIdRegex.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BigQueryRegex other)

public BigQueryRegex.Builder mergeFrom(BigQueryRegex other)
Parameter
Name Description
other BigQueryRegex
Returns
Type Description
BigQueryRegex.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public BigQueryRegex.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BigQueryRegex.Builder
Overrides

setDatasetIdRegex(String value)

public BigQueryRegex.Builder setDatasetIdRegex(String value)

If unset, this property matches all datasets.

string dataset_id_regex = 2;

Parameter
Name Description
value String

The datasetIdRegex to set.

Returns
Type Description
BigQueryRegex.Builder

This builder for chaining.

setDatasetIdRegexBytes(ByteString value)

public BigQueryRegex.Builder setDatasetIdRegexBytes(ByteString value)

If unset, this property matches all datasets.

string dataset_id_regex = 2;

Parameter
Name Description
value ByteString

The bytes for datasetIdRegex to set.

Returns
Type Description
BigQueryRegex.Builder

This builder for chaining.

setProjectIdRegex(String value)

public BigQueryRegex.Builder setProjectIdRegex(String value)

For organizations, if unset, will match all projects. Has no effect for data profile configurations created within a project.

string project_id_regex = 1;

Parameter
Name Description
value String

The projectIdRegex to set.

Returns
Type Description
BigQueryRegex.Builder

This builder for chaining.

setProjectIdRegexBytes(ByteString value)

public BigQueryRegex.Builder setProjectIdRegexBytes(ByteString value)

For organizations, if unset, will match all projects. Has no effect for data profile configurations created within a project.

string project_id_regex = 1;

Parameter
Name Description
value ByteString

The bytes for projectIdRegex to set.

Returns
Type Description
BigQueryRegex.Builder

This builder for chaining.

setTableIdRegex(String value)

public BigQueryRegex.Builder setTableIdRegex(String value)

If unset, this property matches all tables.

string table_id_regex = 3;

Parameter
Name Description
value String

The tableIdRegex to set.

Returns
Type Description
BigQueryRegex.Builder

This builder for chaining.

setTableIdRegexBytes(ByteString value)

public BigQueryRegex.Builder setTableIdRegexBytes(ByteString value)

If unset, this property matches all tables.

string table_id_regex = 3;

Parameter
Name Description
value ByteString

The bytes for tableIdRegex to set.

Returns
Type Description
BigQueryRegex.Builder

This builder for chaining.