Class DatabaseResourceReference.Builder (3.87.0)

public static final class DatabaseResourceReference.Builder extends GeneratedMessage.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

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.

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.

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.

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()

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
String

The databaseResource.

getDatabaseResourceBytes()

public ByteString getDatabaseResourceBytes()

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
ByteString

The bytes for databaseResource.

getDefaultInstanceForType()

public DatabaseResourceReference getDefaultInstanceForType()
Returns
Type Description
DatabaseResourceReference

getDescriptorForType()

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

getInstance()

public String getInstance()

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
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

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
ByteString

The bytes for instance.

getProjectId()

public String getProjectId()

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
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

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
ByteString

The bytes for projectId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DatabaseResourceReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDatabase(String value)

public DatabaseResourceReference.Builder setDatabase(String value)

Required. Name of a database within the instance.

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

Parameter
Name Description
value String

The database to set.

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public DatabaseResourceReference.Builder setDatabaseBytes(ByteString value)

Required. Name of a database within the instance.

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

Parameter
Name Description
value ByteString

The bytes for database to set.

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.

setDatabaseResource(String value)

public DatabaseResourceReference.Builder setDatabaseResource(String value)

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

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

Parameter
Name Description
value String

The databaseResource to set.

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.

setDatabaseResourceBytes(ByteString value)

public DatabaseResourceReference.Builder setDatabaseResourceBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for databaseResource to set.

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.

setInstance(String value)

public DatabaseResourceReference.Builder setInstance(String value)

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

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

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public DatabaseResourceReference.Builder setInstanceBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.

setProjectId(String value)

public DatabaseResourceReference.Builder setProjectId(String value)

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];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public DatabaseResourceReference.Builder setProjectIdBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
DatabaseResourceReference.Builder

This builder for chaining.