Class DatabaseRole.Builder (6.74.0)

public static final class DatabaseRole.Builder extends GeneratedMessageV3.Builder<DatabaseRole.Builder> implements DatabaseRoleOrBuilder

A Cloud Spanner database role.

Protobuf type google.spanner.admin.database.v1.DatabaseRole

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DatabaseRole build()
Returns
Type Description
DatabaseRole

buildPartial()

public DatabaseRole buildPartial()
Returns
Type Description
DatabaseRole

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DatabaseRole.Builder clearName()

Required. The name of the database role. Values are of the form projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role> where <role> is as specified in the CREATE ROLE DDL statement.

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

Returns
Type Description
DatabaseRole.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DatabaseRole getDefaultInstanceForType()
Returns
Type Description
DatabaseRole

getDescriptorForType()

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

getName()

public String getName()

Required. The name of the database role. Values are of the form projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role> where <role> is as specified in the CREATE ROLE DDL statement.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the database role. Values are of the form projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role> where <role> is as specified in the CREATE ROLE DDL statement.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides