Package com.google.privacy.dlp.v2
Interface CloudSqlPropertiesOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CloudSqlProperties,CloudSqlProperties.Builder
@Generated
public interface CloudSqlPropertiesOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionBuilt-in IAM authentication (must be configured in Cloud SQL).Built-in IAM authentication (must be configured in Cloud SQL).Optional.com.google.protobuf.ByteStringOptional.Required.intRequired.intRequired.A username and password stored in Secret Manager.A username and password stored in Secret Manager.booleanBuilt-in IAM authentication (must be configured in Cloud SQL).booleanA username and password stored in Secret Manager.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getConnectionName
String getConnectionName()Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name `project-id:us-central1:sql-instance` must be created under the parent `projects/project-id/locations/us-central1`
string connection_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Returns:
- The connectionName.
-
getConnectionNameBytes
com.google.protobuf.ByteString getConnectionNameBytes()Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name `project-id:us-central1:sql-instance` must be created under the parent `projects/project-id/locations/us-central1`
string connection_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for connectionName.
-
hasUsernamePassword
boolean hasUsernamePassword()A username and password stored in Secret Manager.
.google.privacy.dlp.v2.SecretManagerCredential username_password = 2;- Returns:
- Whether the usernamePassword field is set.
-
getUsernamePassword
SecretManagerCredential getUsernamePassword()A username and password stored in Secret Manager.
.google.privacy.dlp.v2.SecretManagerCredential username_password = 2;- Returns:
- The usernamePassword.
-
getUsernamePasswordOrBuilder
SecretManagerCredentialOrBuilder getUsernamePasswordOrBuilder()A username and password stored in Secret Manager.
.google.privacy.dlp.v2.SecretManagerCredential username_password = 2; -
hasCloudSqlIam
boolean hasCloudSqlIam()Built-in IAM authentication (must be configured in Cloud SQL).
.google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3;- Returns:
- Whether the cloudSqlIam field is set.
-
getCloudSqlIam
CloudSqlIamCredential getCloudSqlIam()Built-in IAM authentication (must be configured in Cloud SQL).
.google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3;- Returns:
- The cloudSqlIam.
-
getCloudSqlIamOrBuilder
CloudSqlIamCredentialOrBuilder getCloudSqlIamOrBuilder()Built-in IAM authentication (must be configured in Cloud SQL).
.google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; -
getMaxConnections
int getMaxConnections()Required. The DLP API will limit its connections to max_connections. Must be 2 or greater.
int32 max_connections = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The maxConnections.
-
getDatabaseEngineValue
int getDatabaseEngineValue()Required. The database engine used by the Cloud SQL instance that this connection configures.
.google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine database_engine = 7 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The enum numeric value on the wire for databaseEngine.
-
getDatabaseEngine
CloudSqlProperties.DatabaseEngine getDatabaseEngine()Required. The database engine used by the Cloud SQL instance that this connection configures.
.google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine database_engine = 7 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The databaseEngine.
-
getCredentialCase
CloudSqlProperties.CredentialCase getCredentialCase()
-