Class DatabaseRole.Builder (6.52.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DatabaseRole.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DatabaseRole.Builder
Overrides

build()

public DatabaseRole build()
Returns
TypeDescription
DatabaseRole

buildPartial()

public DatabaseRole buildPartial()
Returns
TypeDescription
DatabaseRole

clear()

public DatabaseRole.Builder clear()
Returns
TypeDescription
DatabaseRole.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DatabaseRole.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DatabaseRole.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DatabaseRole.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DatabaseRole.Builder
Overrides

clone()

public DatabaseRole.Builder clone()
Returns
TypeDescription
DatabaseRole.Builder
Overrides

getDefaultInstanceForType()

public DatabaseRole getDefaultInstanceForType()
Returns
TypeDescription
DatabaseRole

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DatabaseRole.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatabaseRole.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DatabaseRole.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DatabaseRole.Builder
Overrides

mergeFrom(DatabaseRole other)

public DatabaseRole.Builder mergeFrom(DatabaseRole other)
Parameter
NameDescription
otherDatabaseRole
Returns
TypeDescription
DatabaseRole.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DatabaseRole.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DatabaseRole.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DatabaseRole.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DatabaseRole.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DatabaseRole.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DatabaseRole.Builder
Overrides