Class Database.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
- com.google.cloud.securitycenter.v1.Database.Builder
-
- All Implemented Interfaces:
DatabaseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Database
public static final class Database.Builder extends com.google.protobuf.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](https://google.aip.dev/122#full-resource-names) 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](https://google.aip.dev/122#full-resource-names) 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 typegoogle.cloud.securitycenter.v1.Database
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Database.BuilderaddAllGrantees(Iterable<String> values)The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.Database.BuilderaddGrantees(String value)The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.Database.BuilderaddGranteesBytes(com.google.protobuf.ByteString value)The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.Database.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Databasebuild()DatabasebuildPartial()Database.Builderclear()Database.BuilderclearDisplayName()The human-readable name of the database that the user connected to.Database.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Database.BuilderclearGrantees()The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.Database.BuilderclearName()The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.Database.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Database.BuilderclearQuery()The SQL statement that is associated with the database access.Database.BuilderclearUserName()The username used to connect to the database.Database.Builderclone()DatabasegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()The human-readable name of the database that the user connected to.com.google.protobuf.ByteStringgetDisplayNameBytes()The human-readable name of the database that the user connected to.StringgetGrantees(int index)The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.com.google.protobuf.ByteStringgetGranteesBytes(int index)The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.intgetGranteesCount()The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.com.google.protobuf.ProtocolStringListgetGranteesList()The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.StringgetName()The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.com.google.protobuf.ByteStringgetNameBytes()The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.StringgetQuery()The SQL statement that is associated with the database access.com.google.protobuf.ByteStringgetQueryBytes()The SQL statement that is associated with the database access.StringgetUserName()The username used to connect to the database.com.google.protobuf.ByteStringgetUserNameBytes()The username used to connect to the database.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Database.BuildermergeFrom(Database other)Database.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Database.BuildermergeFrom(com.google.protobuf.Message other)Database.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Database.BuildersetDisplayName(String value)The human-readable name of the database that the user connected to.Database.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)The human-readable name of the database that the user connected to.Database.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Database.BuildersetGrantees(int index, String value)The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.Database.BuildersetName(String value)The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.Database.BuildersetNameBytes(com.google.protobuf.ByteString value)The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.Database.BuildersetQuery(String value)The SQL statement that is associated with the database access.Database.BuildersetQueryBytes(com.google.protobuf.ByteString value)The SQL statement that is associated with the database access.Database.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Database.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Database.BuildersetUserName(String value)The username used to connect to the database.Database.BuildersetUserNameBytes(com.google.protobuf.ByteString value)The username used to connect to the database.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
clear
public Database.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
getDefaultInstanceForType
public Database getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Database build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Database buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Database.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
setField
public Database.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
clearField
public Database.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
clearOneof
public Database.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
setRepeatedField
public Database.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
addRepeatedField
public Database.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
mergeFrom
public Database.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Database.Builder>
-
mergeFrom
public Database.Builder mergeFrom(Database other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
mergeFrom
public Database.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Database.Builder>- Throws:
IOException
-
getName
public String getName()
The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;- Specified by:
getNamein interfaceDatabaseOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;- Specified by:
getNameBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for name.
-
setName
public Database.Builder setName(String value)
The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Database.Builder clearName()
The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Database.Builder setNameBytes(com.google.protobuf.ByteString value)
The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
The human-readable name of the database that the user connected to.
string display_name = 2;- Specified by:
getDisplayNamein interfaceDatabaseOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The human-readable name of the database that the user connected to.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public Database.Builder setDisplayName(String value)
The human-readable name of the database that the user connected to.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public Database.Builder clearDisplayName()
The human-readable name of the database that the user connected to.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Database.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
The human-readable name of the database that the user connected to.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getUserNamein interfaceDatabaseOrBuilder- Returns:
- The userName.
-
getUserNameBytes
public com.google.protobuf.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;- Specified by:
getUserNameBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for userName.
-
setUserName
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;- Parameters:
value- The userName to set.- Returns:
- 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:
- This builder for chaining.
-
setUserNameBytes
public Database.Builder setUserNameBytes(com.google.protobuf.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;- Parameters:
value- The bytes for userName to set.- Returns:
- This builder for chaining.
-
getQuery
public String getQuery()
The SQL statement that is associated with the database access.
string query = 4;- Specified by:
getQueryin interfaceDatabaseOrBuilder- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()
The SQL statement that is associated with the database access.
string query = 4;- Specified by:
getQueryBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for query.
-
setQuery
public Database.Builder setQuery(String value)
The SQL statement that is associated with the database access.
string query = 4;- Parameters:
value- The query to set.- Returns:
- This builder for chaining.
-
clearQuery
public Database.Builder clearQuery()
The SQL statement that is associated with the database access.
string query = 4;- Returns:
- This builder for chaining.
-
setQueryBytes
public Database.Builder setQueryBytes(com.google.protobuf.ByteString value)
The SQL statement that is associated with the database access.
string query = 4;- Parameters:
value- The bytes for query to set.- Returns:
- This builder for chaining.
-
getGranteesList
public com.google.protobuf.ProtocolStringList getGranteesList()
The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
repeated string grantees = 5;- Specified by:
getGranteesListin interfaceDatabaseOrBuilder- Returns:
- A list containing the grantees.
-
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;- Specified by:
getGranteesCountin interfaceDatabaseOrBuilder- Returns:
- The count of grantees.
-
getGrantees
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;- Specified by:
getGranteesin interfaceDatabaseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The grantees at the given index.
-
getGranteesBytes
public com.google.protobuf.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;- Specified by:
getGranteesBytesin interfaceDatabaseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the grantees at the given index.
-
setGrantees
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:
index- The index to set the value at.value- The grantees to set.- Returns:
- This builder for chaining.
-
addGrantees
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;- Parameters:
value- The grantees to add.- Returns:
- This builder for chaining.
-
addAllGrantees
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;- Parameters:
values- The grantees to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addGranteesBytes
public Database.Builder addGranteesBytes(com.google.protobuf.ByteString value)
The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
repeated string grantees = 5;- Parameters:
value- The bytes of the grantees to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Database.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
mergeUnknownFields
public final Database.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
-
-