Package com.google.privacy.dlp.v2
Class CloudSqlProperties.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CloudSqlProperties.Builder>
com.google.privacy.dlp.v2.CloudSqlProperties.Builder
- All Implemented Interfaces:
CloudSqlPropertiesOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CloudSqlProperties
public static final class CloudSqlProperties.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CloudSqlProperties.Builder>
implements CloudSqlPropertiesOrBuilder
Cloud SQL connection properties.Protobuf type
google.privacy.dlp.v2.CloudSqlProperties-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Built-in IAM authentication (must be configured in Cloud SQL).Optional.Required.Required.A username and password stored in Secret Manager.Built-in IAM authentication (must be configured in Cloud SQL).Built-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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintRequired.A username and password stored in Secret Manager.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanBuilt-in IAM authentication (must be configured in Cloud SQL).mergeFrom(CloudSqlProperties other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A username and password stored in Secret Manager.Built-in IAM authentication (must be configured in Cloud SQL).setCloudSqlIam(CloudSqlIamCredential.Builder builderForValue) Built-in IAM authentication (must be configured in Cloud SQL).setConnectionName(String value) Optional.setConnectionNameBytes(com.google.protobuf.ByteString value) Optional.Required.setDatabaseEngineValue(int value) Required.setMaxConnections(int value) Required.A username and password stored in Secret Manager.setUsernamePassword(SecretManagerCredential.Builder builderForValue) A username and password stored in Secret Manager.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CloudSqlProperties.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CloudSqlProperties.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.GeneratedMessage.Builder<CloudSqlProperties.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudSqlProperties.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CloudSqlProperties.Builder>
-
mergeFrom
public CloudSqlProperties.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<CloudSqlProperties.Builder>- Throws:
IOException
-
getCredentialCase
- Specified by:
getCredentialCasein interfaceCloudSqlPropertiesOrBuilder
-
clearCredential
-
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];- Specified by:
getConnectionNamein interfaceCloudSqlPropertiesOrBuilder- Returns:
- The connectionName.
-
getConnectionNameBytes
public 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];- Specified by:
getConnectionNameBytesin interfaceCloudSqlPropertiesOrBuilder- Returns:
- The bytes for connectionName.
-
setConnectionName
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];- Parameters:
value- The connectionName to set.- Returns:
- This builder for chaining.
-
clearConnectionName
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:
- This builder for chaining.
-
setConnectionNameBytes
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];- Parameters:
value- The bytes for connectionName to set.- Returns:
- This builder for chaining.
-
hasUsernamePassword
public boolean hasUsernamePassword()A username and password stored in Secret Manager.
.google.privacy.dlp.v2.SecretManagerCredential username_password = 2;- Specified by:
hasUsernamePasswordin interfaceCloudSqlPropertiesOrBuilder- Returns:
- Whether the usernamePassword field is set.
-
getUsernamePassword
A username and password stored in Secret Manager.
.google.privacy.dlp.v2.SecretManagerCredential username_password = 2;- Specified by:
getUsernamePasswordin interfaceCloudSqlPropertiesOrBuilder- Returns:
- The usernamePassword.
-
setUsernamePassword
A username and password stored in Secret Manager.
.google.privacy.dlp.v2.SecretManagerCredential username_password = 2; -
setUsernamePassword
public CloudSqlProperties.Builder setUsernamePassword(SecretManagerCredential.Builder builderForValue) A username and password stored in Secret Manager.
.google.privacy.dlp.v2.SecretManagerCredential username_password = 2; -
mergeUsernamePassword
A username and password stored in Secret Manager.
.google.privacy.dlp.v2.SecretManagerCredential username_password = 2; -
clearUsernamePassword
A username and password stored in Secret Manager.
.google.privacy.dlp.v2.SecretManagerCredential username_password = 2; -
getUsernamePasswordBuilder
A username and password stored in Secret Manager.
.google.privacy.dlp.v2.SecretManagerCredential username_password = 2; -
getUsernamePasswordOrBuilder
A username and password stored in Secret Manager.
.google.privacy.dlp.v2.SecretManagerCredential username_password = 2;- Specified by:
getUsernamePasswordOrBuilderin interfaceCloudSqlPropertiesOrBuilder
-
hasCloudSqlIam
public boolean hasCloudSqlIam()Built-in IAM authentication (must be configured in Cloud SQL).
.google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3;- Specified by:
hasCloudSqlIamin interfaceCloudSqlPropertiesOrBuilder- Returns:
- Whether the cloudSqlIam field is set.
-
getCloudSqlIam
Built-in IAM authentication (must be configured in Cloud SQL).
.google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3;- Specified by:
getCloudSqlIamin interfaceCloudSqlPropertiesOrBuilder- Returns:
- The cloudSqlIam.
-
setCloudSqlIam
Built-in IAM authentication (must be configured in Cloud SQL).
.google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; -
setCloudSqlIam
Built-in IAM authentication (must be configured in Cloud SQL).
.google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; -
mergeCloudSqlIam
Built-in IAM authentication (must be configured in Cloud SQL).
.google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; -
clearCloudSqlIam
Built-in IAM authentication (must be configured in Cloud SQL).
.google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; -
getCloudSqlIamBuilder
Built-in IAM authentication (must be configured in Cloud SQL).
.google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; -
getCloudSqlIamOrBuilder
Built-in IAM authentication (must be configured in Cloud SQL).
.google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3;- Specified by:
getCloudSqlIamOrBuilderin interfaceCloudSqlPropertiesOrBuilder
-
getMaxConnections
public 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];- Specified by:
getMaxConnectionsin interfaceCloudSqlPropertiesOrBuilder- Returns:
- The maxConnections.
-
setMaxConnections
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];- Parameters:
value- The maxConnections to set.- Returns:
- This builder for chaining.
-
clearMaxConnections
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:
- This builder for chaining.
-
getDatabaseEngineValue
public 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];- Specified by:
getDatabaseEngineValuein interfaceCloudSqlPropertiesOrBuilder- Returns:
- The enum numeric value on the wire for databaseEngine.
-
setDatabaseEngineValue
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];- Parameters:
value- The enum numeric value on the wire for databaseEngine to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDatabaseEnginein interfaceCloudSqlPropertiesOrBuilder- Returns:
- The databaseEngine.
-
setDatabaseEngine
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];- Parameters:
value- The databaseEngine to set.- Returns:
- This builder for chaining.
-
clearDatabaseEngine
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:
- This builder for chaining.
-