Class BigQueryRegex.Builder (3.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BigQueryRegex build()
Returns
TypeDescription
BigQueryRegex

buildPartial()

public BigQueryRegex buildPartial()
Returns
TypeDescription
BigQueryRegex

clear()

public BigQueryRegex.Builder clear()
Returns
TypeDescription
BigQueryRegex.Builder
Overrides

clearDatasetIdRegex()

public BigQueryRegex.Builder clearDatasetIdRegex()

If unset, this property matches all datasets.

string dataset_id_regex = 2;

Returns
TypeDescription
BigQueryRegex.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BigQueryRegex.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BigQueryRegex.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BigQueryRegex.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BigQueryRegex.Builder

This builder for chaining.

clearTableIdRegex()

public BigQueryRegex.Builder clearTableIdRegex()

If unset, this property matches all tables.

string table_id_regex = 3;

Returns
TypeDescription
BigQueryRegex.Builder

This builder for chaining.

clone()

public BigQueryRegex.Builder clone()
Returns
TypeDescription
BigQueryRegex.Builder
Overrides

getDatasetIdRegex()

public String getDatasetIdRegex()

If unset, this property matches all datasets.

string dataset_id_regex = 2;

Returns
TypeDescription
String

The datasetIdRegex.

getDatasetIdRegexBytes()

public ByteString getDatasetIdRegexBytes()

If unset, this property matches all datasets.

string dataset_id_regex = 2;

Returns
TypeDescription
ByteString

The bytes for datasetIdRegex.

getDefaultInstanceForType()

public BigQueryRegex getDefaultInstanceForType()
Returns
TypeDescription
BigQueryRegex

getDescriptorForType()

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

The bytes for projectIdRegex.

getTableIdRegex()

public String getTableIdRegex()

If unset, this property matches all tables.

string table_id_regex = 3;

Returns
TypeDescription
String

The tableIdRegex.

getTableIdRegexBytes()

public ByteString getTableIdRegexBytes()

If unset, this property matches all tables.

string table_id_regex = 3;

Returns
TypeDescription
ByteString

The bytes for tableIdRegex.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BigQueryRegex other)

public BigQueryRegex.Builder mergeFrom(BigQueryRegex other)
Parameter
NameDescription
otherBigQueryRegex
Returns
TypeDescription
BigQueryRegex.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public BigQueryRegex.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BigQueryRegex.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The datasetIdRegex to set.

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

The bytes for datasetIdRegex to set.

Returns
TypeDescription
BigQueryRegex.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BigQueryRegex.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The projectIdRegex to set.

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

The bytes for projectIdRegex to set.

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

The tableIdRegex to set.

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

The bytes for tableIdRegex to set.

Returns
TypeDescription
BigQueryRegex.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryRegex.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BigQueryRegex.Builder
Overrides