Class BigQueryRegex.Builder (3.59.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BigQueryRegex.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BigQueryRegex.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public BigQueryRegex.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BigQueryRegex.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BigQueryRegex.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BigQueryRegex.Builder
Overrides

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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public BigQueryRegex.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BigQueryRegex.Builder
Overrides

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.

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

public BigQueryRegex.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BigQueryRegex.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryRegex.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BigQueryRegex.Builder
Overrides