- 2.61.0 (latest)
- 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 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 Cloud SQL instances or Cloud Spanner instances), or the database instance itself. Some database resources might not have the full resource name 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 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Database.BuilderImplements
DatabaseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllGrantees(Iterable<String> values)
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;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The grantees to add. |
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
addGrantees(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The grantees to add. |
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
addGranteesBytes(ByteString value)
public Database.Builder addGranteesBytes(ByteString value)
The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
repeated string grantees = 5;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the grantees to add. |
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Database.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Database.Builder |
build()
public Database build()
Returns | |
---|---|
Type | Description |
Database |
buildPartial()
public Database buildPartial()
Returns | |
---|---|
Type | Description |
Database |
clear()
public Database.Builder clear()
Returns | |
---|---|
Type | Description |
Database.Builder |
clearDisplayName()
public Database.Builder clearDisplayName()
The human-readable name of the database that the user connected to.
string display_name = 2;
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Database.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Database.Builder |
clearGrantees()
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;
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
clearName()
public Database.Builder clearName()
The full resource name of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Database.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Database.Builder |
clearQuery()
public Database.Builder clearQuery()
The SQL statement that is associated with the database access.
string query = 4;
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
clearUserName()
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;
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
clone()
public Database.Builder clone()
Returns | |
---|---|
Type | Description |
Database.Builder |
getDefaultInstanceForType()
public Database getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Database |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
The human-readable name of the database that 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 that 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, or groups of an SQL privilege grant, which is 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, or groups of an SQL privilege grant, which is 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, or groups of an SQL privilege grant, which is 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, or groups of an SQL privilege grant, which is not an IAM policy change.
repeated string grantees = 5;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the grantees. |
getName()
public String getName()
The full resource name of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The full resource name of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getQuery()
public String getQuery()
The SQL statement that is associated with the database access.
string query = 4;
Returns | |
---|---|
Type | Description |
String | The query. |
getQueryBytes()
public ByteString getQueryBytes()
The SQL statement that is associated with the database access.
string query = 4;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for query. |
getUserName()
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;
Returns | |
---|---|
Type | Description |
String | The userName. |
getUserNameBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for userName. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Database other)
public Database.Builder mergeFrom(Database other)
Parameter | |
---|---|
Name | Description |
other | Database |
Returns | |
---|---|
Type | Description |
Database.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Database.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Database.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Database.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Database.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Database.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Database.Builder |
setDisplayName(String value)
public Database.Builder setDisplayName(String value)
The human-readable name of the database that the user connected to.
string display_name = 2;
Parameter | |
---|---|
Name | Description |
value | String The displayName to set. |
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Database.Builder setDisplayNameBytes(ByteString value)
The human-readable name of the database that the user connected to.
string display_name = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for displayName to set. |
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Database.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Database.Builder |
setGrantees(int index, String value)
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;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The grantees to set. |
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
setName(String value)
public Database.Builder setName(String value)
The full resource name of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Database.Builder setNameBytes(ByteString value)
The full resource name of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
setQuery(String value)
public Database.Builder setQuery(String value)
The SQL statement that is associated with the database access.
string query = 4;
Parameter | |
---|---|
Name | Description |
value | String The query to set. |
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
setQueryBytes(ByteString value)
public Database.Builder setQueryBytes(ByteString value)
The SQL statement that is associated with the database access.
string query = 4;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for query to set. |
Returns | |
---|---|
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)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Database.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Database.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Database.Builder |
setUserName(String value)
public 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;
Parameter | |
---|---|
Name | Description |
value | String The userName to set. |
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |
setUserNameBytes(ByteString value)
public Database.Builder setUserNameBytes(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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for userName to set. |
Returns | |
---|---|
Type | Description |
Database.Builder | This builder for chaining. |