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
Static Fields
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
GRANTEES_FIELD_NUMBER
public static final int GRANTEES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
USER_NAME_FIELD_NUMBER
public static final int USER_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Database getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Database.Builder newBuilder()
newBuilder(Database prototype)
public static Database.Builder newBuilder(Database prototype)
Parameter |
---|
Name | Description |
prototype | Database
|
public static Database parseDelimitedFrom(InputStream input)
public static Database parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Database parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Database parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(CodedInputStream input)
public static Database parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(InputStream input)
public static Database parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Database parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Database> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public Database getDefaultInstanceForType()
getDisplayName()
public String getDisplayName()
The human readable name of the database the user connected to.
string display_name = 2;
Returns |
---|
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
The human readable name of the database the user connected to.
string display_name = 2;
Returns |
---|
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;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
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;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
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;
Returns |
---|
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;
getName()
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<Database> getParserForType()
Overrides
getQuery()
The SQL statement associated with the relevant access.
string query = 4;
Returns |
---|
Type | Description |
String | The query.
|
getQueryBytes()
public ByteString getQueryBytes()
The SQL statement associated with the relevant access.
string query = 4;
Returns |
---|
Type | Description |
ByteString | The bytes for query.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
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;
Returns |
---|
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;
Returns |
---|
Type | Description |
ByteString | The bytes for userName.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Database.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Database.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Database.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides