Class DatabaseRole.Builder (6.66.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. This name can be passed to Get/Set IAMPolicy methods to identify the database role.

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. This name can be passed to Get/Set IAMPolicy methods to identify the database role.

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. This name can be passed to Get/Set IAMPolicy methods to identify the database role.

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(DatabaseRole other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DatabaseRole.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DatabaseRole.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DatabaseRole.Builder setName(String value)

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. This name can be passed to Get/Set IAMPolicy methods to identify the database role.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DatabaseRole.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DatabaseRole.Builder setNameBytes(ByteString value)

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. This name can be passed to Get/Set IAMPolicy methods to identify the database role.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DatabaseRole.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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