- 2.62.0 (latest)
- 2.61.0
- 2.60.0
- 2.59.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.1
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.1
- 2.6.0
- 2.5.6
- 2.3.2
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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > DatabaseImplements
DatabaseOrBuilderStatic Fields
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Type | Description |
int |
GRANTEES_FIELD_NUMBER
public static final int GRANTEES_FIELD_NUMBER
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
Type | Description |
int |
USER_NAME_FIELD_NUMBER
public static final int USER_NAME_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Database getDefaultInstance()
Type | Description |
Database |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Database.Builder newBuilder()
Type | Description |
Database.Builder |
newBuilder(Database prototype)
public static Database.Builder newBuilder(Database prototype)
Name | Description |
prototype | Database |
Type | Description |
Database.Builder |
parseDelimitedFrom(InputStream input)
public static Database parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Database |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Database parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Database parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Database parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Database parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Database |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Database parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Database |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Database parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Database> parser()
Type | Description |
Parser<Database> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Database getDefaultInstanceForType()
Type | Description |
Database |
getDisplayName()
public String getDisplayName()
The human readable name of the database the user connected to.
string display_name = 2;
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
The human readable name of the database the user connected to.
string display_name = 2;
Type | Description |
ByteString | The bytes for displayName. |
getGrantees(int index)
public String getGrantees(int index)
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The grantees at the given index. |
getGranteesBytes(int index)
public ByteString getGranteesBytes(int index)
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the grantees at the given index. |
getGranteesCount()
public int getGranteesCount()
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
Type | Description |
int | The count of grantees. |
getGranteesList()
public ProtocolStringList getGranteesList()
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
Type | Description |
ProtocolStringList | A list containing the grantees. |
getName()
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;
Type | Description |
String | The name. |
getNameBytes()
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;
Type | Description |
ByteString | The bytes for name. |
getParserForType()
public Parser<Database> getParserForType()
Type | Description |
Parser<Database> |
getQuery()
public String getQuery()
The SQL statement associated with the relevant access.
string query = 4;
Type | Description |
String | The query. |
getQueryBytes()
public ByteString getQueryBytes()
The SQL statement associated with the relevant access.
string query = 4;
Type | Description |
ByteString | The bytes for query. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
getUserName()
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;
Type | Description |
String | The userName. |
getUserNameBytes()
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;
Type | Description |
ByteString | The bytes for userName. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Database.Builder newBuilderForType()
Type | Description |
Database.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Database.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Database.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Database.Builder toBuilder()
Type | Description |
Database.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |