public static final class Database.Builder extends com.google.protobuf.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 Cloud SQL instances or Cloud Spanner instances), or the database instance itself. Some database resources might not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types, such as Cloud SQL databases, are not yet supported by Cloud Asset Inventory. In these cases only the display name is provided. Some database resources may not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types are not yet supported by Cloud Asset Inventory (e.g. Cloud SQL 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, or groups of an SQL privilege grant, which is
not an IAM policy change.
|
Database.Builder |
addGrantees(String value)
The target usernames, roles, or groups of an SQL privilege grant, which is
not an IAM policy change.
|
Database.Builder |
addGranteesBytes(com.google.protobuf.ByteString value)
The target usernames, roles, or groups of an SQL privilege grant, which is
not an IAM policy change.
|
Database.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Database |
build() |
Database |
buildPartial() |
Database.Builder |
clear() |
Database.Builder |
clearDisplayName()
The human-readable name of the database that the user connected to.
|
Database.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Database.Builder |
clearGrantees()
The target usernames, roles, or groups of an SQL privilege grant, which is
not an IAM policy change.
|
Database.Builder |
clearName()
The [full resource name](https://google.aip.dev/122#full-resource-names) of
the database that the user connected to, if it is supported by Cloud Asset
Inventory.
|
Database.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Database.Builder |
clearQuery()
The SQL statement that is associated with the database access.
|
Database.Builder |
clearUserName()
The username used to connect to the database.
|
Database.Builder |
clone() |
Database |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
The human-readable name of the database that the user connected to.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
The human-readable name of the database that the user connected to.
|
String |
getGrantees(int index)
The target usernames, roles, or groups of an SQL privilege grant, which is
not an IAM policy change.
|
com.google.protobuf.ByteString |
getGranteesBytes(int index)
The target usernames, roles, or groups of an SQL privilege grant, which is
not an IAM policy change.
|
int |
getGranteesCount()
The target usernames, roles, or groups of an SQL privilege grant, which is
not an IAM policy change.
|
com.google.protobuf.ProtocolStringList |
getGranteesList()
The target usernames, roles, or groups of an SQL privilege grant, which is
not an IAM policy change.
|
String |
getName()
The [full resource name](https://google.aip.dev/122#full-resource-names) of
the database that the user connected to, if it is supported by Cloud Asset
Inventory.
|
com.google.protobuf.ByteString |
getNameBytes()
The [full resource name](https://google.aip.dev/122#full-resource-names) of
the database that the user connected to, if it is supported by Cloud Asset
Inventory.
|
String |
getQuery()
The SQL statement that is associated with the database access.
|
com.google.protobuf.ByteString |
getQueryBytes()
The SQL statement that is associated with the database access.
|
String |
getUserName()
The username used to connect to the database.
|
com.google.protobuf.ByteString |
getUserNameBytes()
The username used to connect to the database.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Database.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Database.Builder |
mergeFrom(Database other) |
Database.Builder |
mergeFrom(com.google.protobuf.Message other) |
Database.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Database.Builder |
setDisplayName(String value)
The human-readable name of the database that the user connected to.
|
Database.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
The human-readable name of the database that the user connected to.
|
Database.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Database.Builder |
setGrantees(int index,
String value)
The target usernames, roles, or groups of an SQL privilege grant, which is
not an IAM policy change.
|
Database.Builder |
setName(String value)
The [full resource name](https://google.aip.dev/122#full-resource-names) of
the database that the user connected to, if it is supported by Cloud Asset
Inventory.
|
Database.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The [full resource name](https://google.aip.dev/122#full-resource-names) of
the database that the user connected to, if it is supported by Cloud Asset
Inventory.
|
Database.Builder |
setQuery(String value)
The SQL statement that is associated with the database access.
|
Database.Builder |
setQueryBytes(com.google.protobuf.ByteString value)
The SQL statement that is associated with the database access.
|
Database.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Database.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Database.Builder |
setUserName(String value)
The username used to connect to the database.
|
Database.Builder |
setUserNameBytes(com.google.protobuf.ByteString value)
The username used to connect to the database.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>public Database.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>public Database getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Database build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Database buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Database.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>public Database.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>public Database.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>public Database.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>public Database.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>public Database.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>public Database.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Database.Builder>public Database.Builder mergeFrom(Database other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>public Database.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Database.Builder>IOExceptionpublic String getName()
The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;getName in interface DatabaseOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;getNameBytes in interface DatabaseOrBuilderpublic Database.Builder setName(String value)
The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;value - The name to set.public Database.Builder clearName()
The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;public Database.Builder setNameBytes(com.google.protobuf.ByteString value)
The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;value - The bytes for name to set.public String getDisplayName()
The human-readable name of the database that the user connected to.
string display_name = 2;getDisplayName in interface DatabaseOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
The human-readable name of the database that the user connected to.
string display_name = 2;getDisplayNameBytes in interface DatabaseOrBuilderpublic Database.Builder setDisplayName(String value)
The human-readable name of the database that the user connected to.
string display_name = 2;value - The displayName to set.public Database.Builder clearDisplayName()
The human-readable name of the database that the user connected to.
string display_name = 2;public Database.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
The human-readable name of the database that 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 database. The username might not be an IAM principal and does not have a set format.
string user_name = 3;getUserName in interface DatabaseOrBuilderpublic com.google.protobuf.ByteString getUserNameBytes()
The username used to connect to the database. The username might not be an IAM principal and does not have a set format.
string user_name = 3;getUserNameBytes in interface DatabaseOrBuilderpublic Database.Builder setUserName(String value)
The username used to connect to the database. The username might not be an IAM principal and does not have a set format.
string user_name = 3;value - The userName to set.public Database.Builder clearUserName()
The username used to connect to the database. The username might not be an IAM principal and does not have a set format.
string user_name = 3;public Database.Builder setUserNameBytes(com.google.protobuf.ByteString value)
The username used to connect to the database. The username might not be an IAM principal and does not have a set format.
string user_name = 3;value - The bytes for userName to set.public String getQuery()
The SQL statement that is associated with the database access.
string query = 4;getQuery in interface DatabaseOrBuilderpublic com.google.protobuf.ByteString getQueryBytes()
The SQL statement that is associated with the database access.
string query = 4;getQueryBytes in interface DatabaseOrBuilderpublic Database.Builder setQuery(String value)
The SQL statement that is associated with the database access.
string query = 4;value - The query to set.public Database.Builder clearQuery()
The SQL statement that is associated with the database access.
string query = 4;public Database.Builder setQueryBytes(com.google.protobuf.ByteString value)
The SQL statement that is associated with the database access.
string query = 4;value - The bytes for query to set.public com.google.protobuf.ProtocolStringList getGranteesList()
The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
repeated string grantees = 5;getGranteesList in interface DatabaseOrBuilderpublic int getGranteesCount()
The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
repeated string grantees = 5;getGranteesCount in interface DatabaseOrBuilderpublic String getGrantees(int index)
The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
repeated string grantees = 5;getGrantees in interface DatabaseOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getGranteesBytes(int index)
The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
repeated string grantees = 5;getGranteesBytes in interface DatabaseOrBuilderindex - The index of the value to return.public Database.Builder setGrantees(int index, String value)
The target usernames, roles, or groups of an SQL privilege grant, which is 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, or groups of an SQL privilege grant, which is 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, or groups of an SQL privilege grant, which is not an IAM policy change.
repeated string grantees = 5;values - The grantees to add.public Database.Builder clearGrantees()
The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
repeated string grantees = 5;public Database.Builder addGranteesBytes(com.google.protobuf.ByteString value)
The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
repeated string grantees = 5;value - The bytes of the grantees to add.public final Database.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>public final Database.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>Copyright © 2024 Google LLC. All rights reserved.