- 2.60.0 (latest)
- 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 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Database.BuilderImplements
DatabaseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllGrantees(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The grantees to add. |
Type | Description |
Database.Builder | This builder for chaining. |
addGrantees(String value)
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;
Name | Description |
value | String The grantees to add. |
Type | Description |
Database.Builder | This builder for chaining. |
addGranteesBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes of the grantees to add. |
Type | Description |
Database.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Database.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Database.Builder |
build()
public Database build()
Type | Description |
Database |
buildPartial()
public Database buildPartial()
Type | Description |
Database |
clear()
public Database.Builder clear()
Type | Description |
Database.Builder |
clearDisplayName()
public Database.Builder clearDisplayName()
The human readable name of the database the user connected to.
string display_name = 2;
Type | Description |
Database.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Database.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Database.Builder |
clearGrantees()
public Database.Builder clearGrantees()
The target usernames/roles/groups of a SQL privilege grant (not an IAM policy change).
repeated string grantees = 5;
Type | Description |
Database.Builder | This builder for chaining. |
clearName()
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;
Type | Description |
Database.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Database.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Database.Builder |
clearQuery()
public Database.Builder clearQuery()
The SQL statement associated with the relevant access.
string query = 4;
Type | Description |
Database.Builder | This builder for chaining. |
clearUserName()
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;
Type | Description |
Database.Builder | This builder for chaining. |
clone()
public Database.Builder clone()
Type | Description |
Database.Builder |
getDefaultInstanceForType()
public Database getDefaultInstanceForType()
Type | Description |
Database |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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. |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Database other)
public Database.Builder mergeFrom(Database other)
Name | Description |
other | Database |
Type | Description |
Database.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Database.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Database.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Database.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Database.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Database.Builder |
setDisplayName(String value)
public Database.Builder setDisplayName(String value)
The human readable name of the database the user connected to.
string display_name = 2;
Name | Description |
value | String The displayName to set. |
Type | Description |
Database.Builder | This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Database.Builder setDisplayNameBytes(ByteString value)
The human readable name of the database the user connected to.
string display_name = 2;
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
Database.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Database.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Database.Builder |
setGrantees(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The grantees to set. |
Type | Description |
Database.Builder | This builder for chaining. |
setName(String value)
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;
Name | Description |
value | String The name to set. |
Type | Description |
Database.Builder | This builder for chaining. |
setNameBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Database.Builder | This builder for chaining. |
setQuery(String value)
public Database.Builder setQuery(String value)
The SQL statement associated with the relevant access.
string query = 4;
Name | Description |
value | String The query to set. |
Type | Description |
Database.Builder | This builder for chaining. |
setQueryBytes(ByteString value)
public Database.Builder setQueryBytes(ByteString value)
The SQL statement associated with the relevant access.
string query = 4;
Name | Description |
value | ByteString The bytes for query to set. |
Type | Description |
Database.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Database.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Database.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Database.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Database.Builder |
setUserName(String value)
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;
Name | Description |
value | String The userName to set. |
Type | Description |
Database.Builder | This builder for chaining. |
setUserNameBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for userName to set. |
Type | Description |
Database.Builder | This builder for chaining. |