Class DatabaseResourceReference.Builder (3.53.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()

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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