Class DatabaseResourceReference.Builder (3.49.0)

public static final class DatabaseResourceReference.Builder extends GeneratedMessageV3.Builder<DatabaseResourceReference.Builder> implements DatabaseResourceReferenceOrBuilder

Identifies a single database resource, like a table within a database.

Protobuf type google.privacy.dlp.v2.DatabaseResourceReference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DatabaseResourceReference build()
Returns
Type Description
DatabaseResourceReference

buildPartial()

public DatabaseResourceReference buildPartial()
Returns
Type Description
DatabaseResourceReference

clear()

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

clearDatabase()

public DatabaseResourceReference.Builder clearDatabase()

Required. Name of a database within the instance.

string database = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.

clearDatabaseResource()

public DatabaseResourceReference.Builder clearDatabaseResource()

Required. Name of a database resource, for example, a table within the database.

string database_resource = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public DatabaseResourceReference.Builder clearInstance()

Required. The instance where this resource is located. For example: Cloud SQL instance ID.

string instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public DatabaseResourceReference.Builder clearProjectId()

Required. If within a project-level config, then this must match the config's project ID.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.

clone()

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

getDatabase()

public String getDatabase()

Required. Name of a database within the instance.

string database = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

Required. Name of a database within the instance.

string database = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for database.

getDatabaseResource()

public String getDatabaseResource()