public static final class Database.Builder extends GeneratedMessageV3.Builder<Database.Builder> implements DatabaseOrBuilder
Represents database access information, such as queries. A database may be a sub-resource of an instance (as in the case of CloudSQL instances or Cloud Spanner instances), or the database instance itself. Some database resources may not have the full resource name populated because these resource types are not yet supported by Cloud Asset Inventory (e.g. CloudSQL databases). In these cases only the display name will be provided.Protobuf type
google.cloud.securitycenter.v1.Database
Modifier and Type | Method and Description |
---|---|
Database.Builder |
addAllGrantees(Iterable<String> values)
The target usernames/roles/groups of a SQL privilege grant (not an IAM
policy change).
|
Database.Builder |
addGrantees(String value)
The target usernames/roles/groups of a SQL privilege grant (not an IAM
policy change).
|
Database.Builder |
addGranteesBytes(ByteString value)
The target usernames/roles/groups of a SQL privilege grant (not an IAM
policy change).
|
Database.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Database |
build() |
Database |
buildPartial() |
Database.Builder |
clear() |
Database.Builder |
clearDisplayName()
The human readable name of the database the user connected to.
|
Database.Builder |
clearField(Descriptors.FieldDescriptor field) |
Database.Builder |
clearGrantees()
The target usernames/roles/groups of a SQL privilege grant (not an IAM
policy change).
|
Database.Builder |
clearName()
The full resource name of the database the user connected to, if it is
supported by CAI.
|
Database.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Database.Builder |
clearQuery()
The SQL statement associated with the relevant access.
|
Database.Builder |
clearUserName()
The username used to connect to the DB.
|
Database.Builder |
clone() |
Database |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
The human readable name of the database the user connected to.
|
ByteString |
getDisplayNameBytes()
The human readable name of the database the user connected to.
|
String |
getGrantees(int index)
The target usernames/roles/groups of a SQL privilege grant (not an IAM
policy change).
|
ByteString |
getGranteesBytes(int index)
The target usernames/roles/groups of a SQL privilege grant (not an IAM
policy change).
|
int |
getGranteesCount()
The target usernames/roles/groups of a SQL privilege grant (not an IAM
policy change).
|
ProtocolStringList |
getGranteesList()
The target usernames/roles/groups of a SQL privilege grant (not an IAM
policy change).
|
String |
getName()
The full resource name of the database the user connected to, if it is
supported by CAI.
|
ByteString |
getNameBytes()
The full resource name of the database the user connected to, if it is
supported by CAI.
|
String |
getQuery()
The SQL statement associated with the relevant access.
|
ByteString |
getQueryBytes()
The SQL statement associated with the relevant access.
|
String |
getUserName()
The username used to connect to the DB.
|
ByteString |
getUserNameBytes()
The username used to connect to the DB.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Database.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Database.Builder |
mergeFrom(Database other) |
Database.Builder |
mergeFrom(Message other) |
Database.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Database.Builder |
setDisplayName(String value)
The human readable name of the database the user connected to.
|
Database.Builder |
setDisplayNameBytes(ByteString value)
The human readable name of the database the user connected to.
|
Database.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Database.Builder |
setGrantees(int index,
String value)
The target usernames/roles/groups of a SQL privilege grant (not an IAM
policy change).
|
Database.Builder |
setName(String value)
The full resource name of the database the user connected to, if it is
supported by CAI.
|
Database.Builder |
setNameBytes(ByteString value)
The full resource name of the database the user connected to, if it is
supported by CAI.
|
Database.Builder |
setQuery(String value)
The SQL statement associated with the relevant access.
|
Database.Builder |
setQueryBytes(ByteString value)
The SQL statement associated with the relevant access.
|
Database.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Database.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
Database.Builder |
setUserName(String value)
The username used to connect to the DB.
|
Database.Builder |
setUserNameBytes(ByteString value)
The username used to connect to the DB.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Database.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Database.Builder>
public Database getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Database build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Database buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Database.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Database.Builder>
public Database.Builder mergeFrom(Database other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Database.Builder>
IOException
public String getName()
The full resource name of the database the user connected to, if it is supported by CAI. (https://google.aip.dev/122#full-resource-names)
string name = 1;
getName
in interface DatabaseOrBuilder
public ByteString getNameBytes()
The full resource name of the database the user connected to, if it is supported by CAI. (https://google.aip.dev/122#full-resource-names)
string name = 1;
getNameBytes
in interface DatabaseOrBuilder
public Database.Builder setName(String value)
The full resource name of the database the user connected to, if it is supported by CAI. (https://google.aip.dev/122#full-resource-names)
string name = 1;
value
- The name to set.public Database.Builder clearName()
The full resource name of the database the user connected to, if it is supported by CAI. (https://google.aip.dev/122#full-resource-names)
string name = 1;
public Database.Builder setNameBytes(ByteString value)
The full resource name of the database the user connected to, if it is supported by CAI. (https://google.aip.dev/122#full-resource-names)
string name = 1;
value
- The bytes for name to set.public String getDisplayName()
The human readable name of the database the user connected to.
string display_name = 2;
getDisplayName
in interface DatabaseOrBuilder
public ByteString getDisplayNameBytes()
The human readable name of the database the user connected to.
string display_name = 2;
getDisplayNameBytes
in interface DatabaseOrBuilder
public Database.Builder setDisplayName(String value)
The human readable name of the database the user connected to.
string display_name = 2;
value
- The displayName to set.public Database.Builder clearDisplayName()
The human readable name of the database the user connected to.
string display_name = 2;
public Database.Builder setDisplayNameBytes(ByteString value)
The human readable name of the database the user connected to.
string display_name = 2;
value
- The bytes for displayName to set.public String getUserName()
The username used to connect to the DB. This may not necessarily be an IAM principal, and has no required format.
string user_name = 3;
getUserName
in interface DatabaseOrBuilder
public ByteString getUserNameBytes()
The username used to connect to the DB. This may not necessarily be an IAM principal, and has no required format.
string user_name = 3;
getUserNameBytes
in interface DatabaseOrBuilder
public Database.Builder setUserName(String value)
The username used to connect to the DB. This may not necessarily be an IAM principal, and has no required format.
string user_name = 3;
value
- The userName to set.public Database.Builder clearUserName()
The username used to connect to the DB. This may not necessarily be an IAM principal, and has no required format.
string user_name = 3;
public Database.Builder setUserNameBytes(ByteString value)
The username used to connect to the DB. This may not necessarily be an IAM principal, and has no required format.
string user_name = 3;
value
- The bytes for userName to set.public String getQuery()
The SQL statement associated with the relevant access.
string query = 4;
getQuery
in interface DatabaseOrBuilder
public ByteString getQueryBytes()
The SQL statement associated with the relevant access.
string query = 4;
getQueryBytes
in interface DatabaseOrBuilder
public Database.Builder setQuery(String value)
The SQL statement associated with the relevant access.
string query = 4;
value
- The query to set.public Database.Builder clearQuery()
The SQL statement associated with the relevant access.
string query = 4;
public Database.Builder setQueryBytes(ByteString value)
The SQL statement associated with the relevant access.
string query = 4;
value
- The bytes for query to set.public ProtocolStringList getGranteesList()
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
getGranteesList
in interface DatabaseOrBuilder
public int getGranteesCount()
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
getGranteesCount
in interface DatabaseOrBuilder
public String getGrantees(int index)
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
getGrantees
in interface DatabaseOrBuilder
index
- The index of the element to return.public ByteString getGranteesBytes(int index)
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
getGranteesBytes
in interface DatabaseOrBuilder
index
- The index of the value to return.public Database.Builder setGrantees(int index, String value)
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
index
- The index to set the value at.value
- The grantees to set.public Database.Builder addGrantees(String value)
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
value
- The grantees to add.public Database.Builder addAllGrantees(Iterable<String> values)
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
values
- The grantees to add.public Database.Builder clearGrantees()
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
public Database.Builder addGranteesBytes(ByteString value)
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
value
- The bytes of the grantees to add.public final Database.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Database.Builder>
public final Database.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Database.Builder>
Copyright © 2022 Google LLC. All rights reserved.