Class Connection

  • All Implemented Interfaces:
    ConnectionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Connection
    extends com.google.protobuf.GeneratedMessageV3
    implements ConnectionOrBuilder
     Configuration parameters to establish connection with an external data
     source, except the credential attributes.
     
    Protobuf type google.cloud.bigquery.connection.v1.Connection
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         User provided description.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface ConnectionOrBuilder
        Returns:
        The bytes for description.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 Connection parseFrom​(ByteBuffer data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        protected Connection.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Connection getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<Connection> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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