Class Connection.Builder

  • All Implemented Interfaces:
    ConnectionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Connection

    public static final class Connection.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Connection.Builder>
    implements ConnectionOrBuilder
     Configuration parameters to establish connection with an external data
     source, except the credential attributes.
     
    Protobuf type google.cloud.bigquery.connection.v1.Connection
    • 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<Connection.Builder>
      • clear

        public Connection.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<Connection.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<Connection.Builder>
      • getDefaultInstanceForType

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

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

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

        public Connection.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<Connection.Builder>
      • setField

        public Connection.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<Connection.Builder>
      • clearField

        public Connection.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<Connection.Builder>
      • clearOneof

        public Connection.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<Connection.Builder>
      • setRepeatedField

        public Connection.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<Connection.Builder>
      • addRepeatedField

        public Connection.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<Connection.Builder>
      • mergeFrom

        public Connection.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<Connection.Builder>
      • isInitialized

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

        public Connection.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<Connection.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The resource name of the connection in the form of:
         `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
         
        string name = 1;
        Specified by:
        getName in interface ConnectionOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource name of the connection in the form of:
         `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
         
        string name = 1;
        Specified by:
        getNameBytes in interface ConnectionOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Connection.Builder setName​(String value)
         The resource name of the connection in the form of:
         `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Connection.Builder clearName()
         The resource name of the connection in the form of:
         `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Connection.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The resource name of the connection in the form of:
         `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getFriendlyName

        public String getFriendlyName()
         User provided display name for the connection.
         
        string friendly_name = 2;
        Specified by:
        getFriendlyName in interface ConnectionOrBuilder
        Returns:
        The friendlyName.
      • getFriendlyNameBytes

        public com.google.protobuf.ByteString getFriendlyNameBytes()
         User provided display name for the connection.
         
        string friendly_name = 2;
        Specified by:
        getFriendlyNameBytes in interface ConnectionOrBuilder
        Returns:
        The bytes for friendlyName.
      • setFriendlyName

        public Connection.Builder setFriendlyName​(String value)
         User provided display name for the connection.
         
        string friendly_name = 2;
        Parameters:
        value - The friendlyName to set.
        Returns:
        This builder for chaining.
      • clearFriendlyName

        public Connection.Builder clearFriendlyName()
         User provided display name for the connection.
         
        string friendly_name = 2;
        Returns:
        This builder for chaining.
      • setFriendlyNameBytes

        public Connection.Builder setFriendlyNameBytes​(com.google.protobuf.ByteString value)
         User provided display name for the connection.
         
        string friendly_name = 2;
        Parameters:
        value - The bytes for friendlyName to set.
        Returns:
        This builder for chaining.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         User provided description.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface ConnectionOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Connection.Builder setDescription​(String value)
         User provided description.
         
        string description = 3;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Connection.Builder clearDescription()
         User provided description.
         
        string description = 3;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Connection.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         User provided description.
         
        string description = 3;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasCloudSql

        public boolean hasCloudSql()
         Cloud SQL properties.
         
        .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4;
        Specified by:
        hasCloudSql in interface ConnectionOrBuilder
        Returns:
        Whether the cloudSql field is set.
      • mergeCloudSql

        public Connection.Builder mergeCloudSql​(CloudSqlProperties value)
         Cloud SQL properties.
         
        .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4;
      • clearCloudSql

        public Connection.Builder clearCloudSql()
         Cloud SQL properties.
         
        .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4;
      • getCloudSqlBuilder

        public CloudSqlProperties.Builder getCloudSqlBuilder()
         Cloud SQL properties.
         
        .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4;
      • hasAws

        public boolean hasAws()
         Amazon Web Services (AWS) properties.
         
        .google.cloud.bigquery.connection.v1.AwsProperties aws = 8;
        Specified by:
        hasAws in interface ConnectionOrBuilder
        Returns:
        Whether the aws field is set.
      • getAws

        public AwsProperties getAws()
         Amazon Web Services (AWS) properties.
         
        .google.cloud.bigquery.connection.v1.AwsProperties aws = 8;
        Specified by:
        getAws in interface ConnectionOrBuilder
        Returns:
        The aws.
      • setAws

        public Connection.Builder setAws​(AwsProperties value)
         Amazon Web Services (AWS) properties.
         
        .google.cloud.bigquery.connection.v1.AwsProperties aws = 8;
      • mergeAws

        public Connection.Builder mergeAws​(AwsProperties value)
         Amazon Web Services (AWS) properties.
         
        .google.cloud.bigquery.connection.v1.AwsProperties aws = 8;
      • clearAws

        public Connection.Builder clearAws()
         Amazon Web Services (AWS) properties.
         
        .google.cloud.bigquery.connection.v1.AwsProperties aws = 8;
      • getAwsBuilder

        public AwsProperties.Builder getAwsBuilder()
         Amazon Web Services (AWS) properties.
         
        .google.cloud.bigquery.connection.v1.AwsProperties aws = 8;
      • hasAzure

        public boolean hasAzure()
         Azure properties.
         
        .google.cloud.bigquery.connection.v1.AzureProperties azure = 11;
        Specified by:
        hasAzure in interface ConnectionOrBuilder
        Returns:
        Whether the azure field is set.
      • clearAzure

        public Connection.Builder clearAzure()
         Azure properties.
         
        .google.cloud.bigquery.connection.v1.AzureProperties azure = 11;
      • getAzureBuilder

        public AzureProperties.Builder getAzureBuilder()
         Azure properties.
         
        .google.cloud.bigquery.connection.v1.AzureProperties azure = 11;
      • hasCloudSpanner

        public boolean hasCloudSpanner()
         Cloud Spanner properties.
         
        .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21;
        Specified by:
        hasCloudSpanner in interface ConnectionOrBuilder
        Returns:
        Whether the cloudSpanner field is set.
      • setCloudSpanner

        public Connection.Builder setCloudSpanner​(CloudSpannerProperties value)
         Cloud Spanner properties.
         
        .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21;
      • mergeCloudSpanner

        public Connection.Builder mergeCloudSpanner​(CloudSpannerProperties value)
         Cloud Spanner properties.
         
        .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21;
      • clearCloudSpanner

        public Connection.Builder clearCloudSpanner()
         Cloud Spanner properties.
         
        .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21;
      • getCloudSpannerBuilder

        public CloudSpannerProperties.Builder getCloudSpannerBuilder()
         Cloud Spanner properties.
         
        .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21;
      • hasCloudResource

        public boolean hasCloudResource()
         Cloud Resource properties.
         
        .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22;
        Specified by:
        hasCloudResource in interface ConnectionOrBuilder
        Returns:
        Whether the cloudResource field is set.
      • setCloudResource

        public Connection.Builder setCloudResource​(CloudResourceProperties value)
         Cloud Resource properties.
         
        .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22;
      • mergeCloudResource

        public Connection.Builder mergeCloudResource​(CloudResourceProperties value)
         Cloud Resource properties.
         
        .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22;
      • clearCloudResource

        public Connection.Builder clearCloudResource()
         Cloud Resource properties.
         
        .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22;
      • getCloudResourceBuilder

        public CloudResourceProperties.Builder getCloudResourceBuilder()
         Cloud Resource properties.
         
        .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22;
      • hasSpark

        public boolean hasSpark()
         Spark properties.
         
        .google.cloud.bigquery.connection.v1.SparkProperties spark = 23;
        Specified by:
        hasSpark in interface ConnectionOrBuilder
        Returns:
        Whether the spark field is set.
      • clearSpark

        public Connection.Builder clearSpark()
         Spark properties.
         
        .google.cloud.bigquery.connection.v1.SparkProperties spark = 23;
      • getSparkBuilder

        public SparkProperties.Builder getSparkBuilder()
         Spark properties.
         
        .google.cloud.bigquery.connection.v1.SparkProperties spark = 23;
      • hasSalesforceDataCloud

        public boolean hasSalesforceDataCloud()
         Optional. Salesforce DataCloud properties. This field is intended for
         use only by Salesforce partner projects. This field contains properties
         for your Salesforce DataCloud connection.
         
        .google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties salesforce_data_cloud = 24 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSalesforceDataCloud in interface ConnectionOrBuilder
        Returns:
        Whether the salesforceDataCloud field is set.
      • getSalesforceDataCloud

        public SalesforceDataCloudProperties getSalesforceDataCloud()
         Optional. Salesforce DataCloud properties. This field is intended for
         use only by Salesforce partner projects. This field contains properties
         for your Salesforce DataCloud connection.
         
        .google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties salesforce_data_cloud = 24 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSalesforceDataCloud in interface ConnectionOrBuilder
        Returns:
        The salesforceDataCloud.
      • setSalesforceDataCloud

        public Connection.Builder setSalesforceDataCloud​(SalesforceDataCloudProperties value)
         Optional. Salesforce DataCloud properties. This field is intended for
         use only by Salesforce partner projects. This field contains properties
         for your Salesforce DataCloud connection.
         
        .google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties salesforce_data_cloud = 24 [(.google.api.field_behavior) = OPTIONAL];
      • setSalesforceDataCloud

        public Connection.Builder setSalesforceDataCloud​(SalesforceDataCloudProperties.Builder builderForValue)
         Optional. Salesforce DataCloud properties. This field is intended for
         use only by Salesforce partner projects. This field contains properties
         for your Salesforce DataCloud connection.
         
        .google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties salesforce_data_cloud = 24 [(.google.api.field_behavior) = OPTIONAL];
      • mergeSalesforceDataCloud

        public Connection.Builder mergeSalesforceDataCloud​(SalesforceDataCloudProperties value)
         Optional. Salesforce DataCloud properties. This field is intended for
         use only by Salesforce partner projects. This field contains properties
         for your Salesforce DataCloud connection.
         
        .google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties salesforce_data_cloud = 24 [(.google.api.field_behavior) = OPTIONAL];
      • clearSalesforceDataCloud

        public Connection.Builder clearSalesforceDataCloud()
         Optional. Salesforce DataCloud properties. This field is intended for
         use only by Salesforce partner projects. This field contains properties
         for your Salesforce DataCloud connection.
         
        .google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties salesforce_data_cloud = 24 [(.google.api.field_behavior) = OPTIONAL];
      • getSalesforceDataCloudBuilder

        public SalesforceDataCloudProperties.Builder getSalesforceDataCloudBuilder()
         Optional. Salesforce DataCloud properties. This field is intended for
         use only by Salesforce partner projects. This field contains properties
         for your Salesforce DataCloud connection.
         
        .google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties salesforce_data_cloud = 24 [(.google.api.field_behavior) = OPTIONAL];
      • getSalesforceDataCloudOrBuilder

        public SalesforceDataCloudPropertiesOrBuilder getSalesforceDataCloudOrBuilder()
         Optional. Salesforce DataCloud properties. This field is intended for
         use only by Salesforce partner projects. This field contains properties
         for your Salesforce DataCloud connection.
         
        .google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties salesforce_data_cloud = 24 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSalesforceDataCloudOrBuilder in interface ConnectionOrBuilder
      • getCreationTime

        public long getCreationTime()
         Output only. The creation timestamp of the connection.
         
        int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreationTime in interface ConnectionOrBuilder
        Returns:
        The creationTime.
      • setCreationTime

        public Connection.Builder setCreationTime​(long value)
         Output only. The creation timestamp of the connection.
         
        int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The creationTime to set.
        Returns:
        This builder for chaining.
      • clearCreationTime

        public Connection.Builder clearCreationTime()
         Output only. The creation timestamp of the connection.
         
        int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getLastModifiedTime

        public long getLastModifiedTime()
         Output only. The last update timestamp of the connection.
         
        int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLastModifiedTime in interface ConnectionOrBuilder
        Returns:
        The lastModifiedTime.
      • setLastModifiedTime

        public Connection.Builder setLastModifiedTime​(long value)
         Output only. The last update timestamp of the connection.
         
        int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The lastModifiedTime to set.
        Returns:
        This builder for chaining.
      • clearLastModifiedTime

        public Connection.Builder clearLastModifiedTime()
         Output only. The last update timestamp of the connection.
         
        int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getHasCredential

        public boolean getHasCredential()
         Output only. True, if credential is configured for this connection.
         
        bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHasCredential in interface ConnectionOrBuilder
        Returns:
        The hasCredential.
      • setHasCredential

        public Connection.Builder setHasCredential​(boolean value)
         Output only. True, if credential is configured for this connection.
         
        bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The hasCredential to set.
        Returns:
        This builder for chaining.
      • clearHasCredential

        public Connection.Builder clearHasCredential()
         Output only. True, if credential is configured for this connection.
         
        bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Connection.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<Connection.Builder>
      • mergeUnknownFields

        public final Connection.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<Connection.Builder>