public final class Database extends GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
Database.Builder
Represents database access information, such as queries.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
GRANTEES_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
QUERY_FIELD_NUMBER |
static int |
USER_NAME_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Database |
getDefaultInstance() |
Database |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.
|
Parser<Database> |
getParserForType() |
String |
getQuery()
The SQL statement associated with the relevant access.
|
ByteString |
getQueryBytes()
The SQL statement associated with the relevant access.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
String |
getUserName()
The username used to connect to the DB.
|
ByteString |
getUserNameBytes()
The username used to connect to the DB.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Database.Builder |
newBuilder() |
static Database.Builder |
newBuilder(Database prototype) |
Database.Builder |
newBuilderForType() |
protected Database.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static Database |
parseDelimitedFrom(InputStream input) |
static Database |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Database |
parseFrom(byte[] data) |
static Database |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Database |
parseFrom(ByteBuffer data) |
static Database |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Database |
parseFrom(ByteString data) |
static Database |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Database |
parseFrom(CodedInputStream input) |
static Database |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Database |
parseFrom(InputStream input) |
static Database |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Database> |
parser() |
Database.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int USER_NAME_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
public static final int GRANTEES_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Database parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Database parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Database parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Database parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Database parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Database parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Database parseFrom(InputStream input) throws IOException
IOException
public static Database parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Database parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Database parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Database parseFrom(CodedInputStream input) throws IOException
IOException
public static Database parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Database.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Database.Builder newBuilder()
public static Database.Builder newBuilder(Database prototype)
public Database.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Database.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Database getDefaultInstance()
public Parser<Database> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Database getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.