Class CloudSqlProperties

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.CloudSqlProperties
All Implemented Interfaces:
CloudSqlPropertiesOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CloudSqlProperties extends com.google.protobuf.GeneratedMessage implements CloudSqlPropertiesOrBuilder
 Cloud SQL connection properties.
 
Protobuf type google.privacy.dlp.v2.CloudSqlProperties
See Also:
  • Field Details

    • CONNECTION_NAME_FIELD_NUMBER

      public static final int CONNECTION_NAME_FIELD_NUMBER
      See Also:
    • USERNAME_PASSWORD_FIELD_NUMBER

      public static final int USERNAME_PASSWORD_FIELD_NUMBER
      See Also:
    • CLOUD_SQL_IAM_FIELD_NUMBER

      public static final int CLOUD_SQL_IAM_FIELD_NUMBER
      See Also:
    • MAX_CONNECTIONS_FIELD_NUMBER

      public static final int MAX_CONNECTIONS_FIELD_NUMBER
      See Also:
    • DATABASE_ENGINE_FIELD_NUMBER

      public static final int DATABASE_ENGINE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getCredentialCase

      public CloudSqlProperties.CredentialCase getCredentialCase()
      Specified by:
      getCredentialCase in interface CloudSqlPropertiesOrBuilder
    • getConnectionName

      public 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];
      Specified by:
      getConnectionName in interface CloudSqlPropertiesOrBuilder
      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:
      getConnectionNameBytes in interface CloudSqlPropertiesOrBuilder
      Returns:
      The bytes for connectionName.
    • hasUsernamePassword

      public boolean hasUsernamePassword()
       A username and password stored in Secret Manager.
       
      .google.privacy.dlp.v2.SecretManagerCredential username_password = 2;
      Specified by:
      hasUsernamePassword in interface CloudSqlPropertiesOrBuilder
      Returns:
      Whether the usernamePassword field is set.
    • getUsernamePassword

      public SecretManagerCredential getUsernamePassword()
       A username and password stored in Secret Manager.
       
      .google.privacy.dlp.v2.SecretManagerCredential username_password = 2;
      Specified by:
      getUsernamePassword in interface CloudSqlPropertiesOrBuilder
      Returns:
      The usernamePassword.
    • getUsernamePasswordOrBuilder

      public SecretManagerCredentialOrBuilder getUsernamePasswordOrBuilder()
       A username and password stored in Secret Manager.
       
      .google.privacy.dlp.v2.SecretManagerCredential username_password = 2;
      Specified by:
      getUsernamePasswordOrBuilder in interface CloudSqlPropertiesOrBuilder
    • 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:
      hasCloudSqlIam in interface CloudSqlPropertiesOrBuilder
      Returns:
      Whether the cloudSqlIam field is set.
    • getCloudSqlIam

      public CloudSqlIamCredential getCloudSqlIam()
       Built-in IAM authentication (must be configured in Cloud SQL).
       
      .google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3;
      Specified by:
      getCloudSqlIam in interface CloudSqlPropertiesOrBuilder
      Returns:
      The cloudSqlIam.
    • getCloudSqlIamOrBuilder

      public CloudSqlIamCredentialOrBuilder getCloudSqlIamOrBuilder()
       Built-in IAM authentication (must be configured in Cloud SQL).
       
      .google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3;
      Specified by:
      getCloudSqlIamOrBuilder in interface CloudSqlPropertiesOrBuilder
    • 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:
      getMaxConnections in interface CloudSqlPropertiesOrBuilder
      Returns:
      The maxConnections.
    • 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:
      getDatabaseEngineValue in interface CloudSqlPropertiesOrBuilder
      Returns:
      The enum numeric value on the wire for databaseEngine.
    • getDatabaseEngine

      public 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];
      Specified by:
      getDatabaseEngine in interface CloudSqlPropertiesOrBuilder
      Returns:
      The databaseEngine.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CloudSqlProperties parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudSqlProperties parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudSqlProperties parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudSqlProperties parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudSqlProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudSqlProperties parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudSqlProperties parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CloudSqlProperties parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CloudSqlProperties parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CloudSqlProperties parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CloudSqlProperties parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CloudSqlProperties parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CloudSqlProperties.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CloudSqlProperties.Builder newBuilder()
    • newBuilder

      public static CloudSqlProperties.Builder newBuilder(CloudSqlProperties prototype)
    • toBuilder

      public CloudSqlProperties.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CloudSqlProperties.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CloudSqlProperties getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CloudSqlProperties> parser()
    • getParserForType

      public com.google.protobuf.Parser<CloudSqlProperties> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CloudSqlProperties getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder