Class 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.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
    implements CloudSqlPropertiesOrBuilder
     Connection properties specific to the Cloud SQL.
     
    Protobuf type google.cloud.bigquery.connection.v1.CloudSqlProperties
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
      • clear

        public CloudSqlProperties.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
      • getDefaultInstanceForType

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

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

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

        public CloudSqlProperties.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
      • setField

        public CloudSqlProperties.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
      • clearField

        public CloudSqlProperties.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
      • clearOneof

        public CloudSqlProperties.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
      • setRepeatedField

        public CloudSqlProperties.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
      • addRepeatedField

        public CloudSqlProperties.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
      • mergeFrom

        public CloudSqlProperties.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudSqlProperties.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
      • mergeFrom

        public CloudSqlProperties.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudSqlProperties.Builder>
        Throws:
        IOException
      • getInstanceId

        public String getInstanceId()
         Cloud SQL instance ID in the form `project:location:instance`.
         
        string instance_id = 1;
        Specified by:
        getInstanceId in interface CloudSqlPropertiesOrBuilder
        Returns:
        The instanceId.
      • getInstanceIdBytes

        public com.google.protobuf.ByteString getInstanceIdBytes()
         Cloud SQL instance ID in the form `project:location:instance`.
         
        string instance_id = 1;
        Specified by:
        getInstanceIdBytes in interface CloudSqlPropertiesOrBuilder
        Returns:
        The bytes for instanceId.
      • setInstanceId

        public CloudSqlProperties.Builder setInstanceId​(String value)
         Cloud SQL instance ID in the form `project:location:instance`.
         
        string instance_id = 1;
        Parameters:
        value - The instanceId to set.
        Returns:
        This builder for chaining.
      • clearInstanceId

        public CloudSqlProperties.Builder clearInstanceId()
         Cloud SQL instance ID in the form `project:location:instance`.
         
        string instance_id = 1;
        Returns:
        This builder for chaining.
      • setInstanceIdBytes

        public CloudSqlProperties.Builder setInstanceIdBytes​(com.google.protobuf.ByteString value)
         Cloud SQL instance ID in the form `project:location:instance`.
         
        string instance_id = 1;
        Parameters:
        value - The bytes for instanceId to set.
        Returns:
        This builder for chaining.
      • getDatabaseBytes

        public com.google.protobuf.ByteString getDatabaseBytes()
         Database name.
         
        string database = 2;
        Specified by:
        getDatabaseBytes in interface CloudSqlPropertiesOrBuilder
        Returns:
        The bytes for database.
      • setDatabase

        public CloudSqlProperties.Builder setDatabase​(String value)
         Database name.
         
        string database = 2;
        Parameters:
        value - The database to set.
        Returns:
        This builder for chaining.
      • clearDatabase

        public CloudSqlProperties.Builder clearDatabase()
         Database name.
         
        string database = 2;
        Returns:
        This builder for chaining.
      • setDatabaseBytes

        public CloudSqlProperties.Builder setDatabaseBytes​(com.google.protobuf.ByteString value)
         Database name.
         
        string database = 2;
        Parameters:
        value - The bytes for database to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Type of the Cloud SQL database.
         
        .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3;
        Specified by:
        getTypeValue in interface CloudSqlPropertiesOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public CloudSqlProperties.Builder setTypeValue​(int value)
         Type of the Cloud SQL database.
         
        .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • clearType

        public CloudSqlProperties.Builder clearType()
         Type of the Cloud SQL database.
         
        .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3;
        Returns:
        This builder for chaining.
      • hasCredential

        public boolean hasCredential()
         Input only. Cloud SQL credential.
         
        .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        hasCredential in interface CloudSqlPropertiesOrBuilder
        Returns:
        Whether the credential field is set.
      • getCredential

        public CloudSqlCredential getCredential()
         Input only. Cloud SQL credential.
         
        .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getCredential in interface CloudSqlPropertiesOrBuilder
        Returns:
        The credential.
      • setCredential

        public CloudSqlProperties.Builder setCredential​(CloudSqlCredential value)
         Input only. Cloud SQL credential.
         
        .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
      • setCredential

        public CloudSqlProperties.Builder setCredential​(CloudSqlCredential.Builder builderForValue)
         Input only. Cloud SQL credential.
         
        .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
      • mergeCredential

        public CloudSqlProperties.Builder mergeCredential​(CloudSqlCredential value)
         Input only. Cloud SQL credential.
         
        .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
      • clearCredential

        public CloudSqlProperties.Builder clearCredential()
         Input only. Cloud SQL credential.
         
        .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
      • getCredentialBuilder

        public CloudSqlCredential.Builder getCredentialBuilder()
         Input only. Cloud SQL credential.
         
        .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
      • getServiceAccountId

        public String getServiceAccountId()
         Output only. The account ID of the service used for the purpose of this
         connection.
        
         When the connection is used in the context of an operation in
         BigQuery, this service account will serve as the identity being used for
         connecting to the CloudSQL instance specified in this connection.
         
        string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServiceAccountId in interface CloudSqlPropertiesOrBuilder
        Returns:
        The serviceAccountId.
      • getServiceAccountIdBytes

        public com.google.protobuf.ByteString getServiceAccountIdBytes()
         Output only. The account ID of the service used for the purpose of this
         connection.
        
         When the connection is used in the context of an operation in
         BigQuery, this service account will serve as the identity being used for
         connecting to the CloudSQL instance specified in this connection.
         
        string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServiceAccountIdBytes in interface CloudSqlPropertiesOrBuilder
        Returns:
        The bytes for serviceAccountId.
      • setServiceAccountId

        public CloudSqlProperties.Builder setServiceAccountId​(String value)
         Output only. The account ID of the service used for the purpose of this
         connection.
        
         When the connection is used in the context of an operation in
         BigQuery, this service account will serve as the identity being used for
         connecting to the CloudSQL instance specified in this connection.
         
        string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The serviceAccountId to set.
        Returns:
        This builder for chaining.
      • clearServiceAccountId

        public CloudSqlProperties.Builder clearServiceAccountId()
         Output only. The account ID of the service used for the purpose of this
         connection.
        
         When the connection is used in the context of an operation in
         BigQuery, this service account will serve as the identity being used for
         connecting to the CloudSQL instance specified in this connection.
         
        string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setServiceAccountIdBytes

        public CloudSqlProperties.Builder setServiceAccountIdBytes​(com.google.protobuf.ByteString value)
         Output only. The account ID of the service used for the purpose of this
         connection.
        
         When the connection is used in the context of an operation in
         BigQuery, this service account will serve as the identity being used for
         connecting to the CloudSQL instance specified in this connection.
         
        string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for serviceAccountId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CloudSqlProperties.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
      • mergeUnknownFields

        public final CloudSqlProperties.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>