Class BigQueryConnectionSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BigQueryConnectionSpec.Builder>
com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.Builder
All Implemented Interfaces:
BigQueryConnectionSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BigQueryConnectionSpec

public static final class BigQueryConnectionSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<BigQueryConnectionSpec.Builder> implements BigQueryConnectionSpecOrBuilder
 Specification for the BigQuery connection.
 
Protobuf type google.cloud.datacatalog.v1.BigQueryConnectionSpec
  • 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.Builder<BigQueryConnectionSpec.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.GeneratedMessage.Builder<BigQueryConnectionSpec.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.GeneratedMessage.Builder<BigQueryConnectionSpec.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public BigQueryConnectionSpec.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<BigQueryConnectionSpec.Builder>
      Throws:
      IOException
    • getConnectionSpecCase

      public BigQueryConnectionSpec.ConnectionSpecCase getConnectionSpecCase()
      Specified by:
      getConnectionSpecCase in interface BigQueryConnectionSpecOrBuilder
    • clearConnectionSpec

      public BigQueryConnectionSpec.Builder clearConnectionSpec()
    • getConnectionTypeValue

      public int getConnectionTypeValue()
       The type of the BigQuery connection.
       
      .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1;
      Specified by:
      getConnectionTypeValue in interface BigQueryConnectionSpecOrBuilder
      Returns:
      The enum numeric value on the wire for connectionType.
    • setConnectionTypeValue

      public BigQueryConnectionSpec.Builder setConnectionTypeValue(int value)
       The type of the BigQuery connection.
       
      .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1;
      Parameters:
      value - The enum numeric value on the wire for connectionType to set.
      Returns:
      This builder for chaining.
    • getConnectionType

      public BigQueryConnectionSpec.ConnectionType getConnectionType()
       The type of the BigQuery connection.
       
      .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1;
      Specified by:
      getConnectionType in interface BigQueryConnectionSpecOrBuilder
      Returns:
      The connectionType.
    • setConnectionType

       The type of the BigQuery connection.
       
      .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1;
      Parameters:
      value - The connectionType to set.
      Returns:
      This builder for chaining.
    • clearConnectionType

      public BigQueryConnectionSpec.Builder clearConnectionType()
       The type of the BigQuery connection.
       
      .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1;
      Returns:
      This builder for chaining.
    • hasCloudSql

      public boolean hasCloudSql()
       Specification for the BigQuery connection to a Cloud SQL instance.
       
      .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2;
      Specified by:
      hasCloudSql in interface BigQueryConnectionSpecOrBuilder
      Returns:
      Whether the cloudSql field is set.
    • getCloudSql

      public CloudSqlBigQueryConnectionSpec getCloudSql()
       Specification for the BigQuery connection to a Cloud SQL instance.
       
      .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2;
      Specified by:
      getCloudSql in interface BigQueryConnectionSpecOrBuilder
      Returns:
      The cloudSql.
    • setCloudSql

       Specification for the BigQuery connection to a Cloud SQL instance.
       
      .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2;
    • setCloudSql

       Specification for the BigQuery connection to a Cloud SQL instance.
       
      .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2;
    • mergeCloudSql

       Specification for the BigQuery connection to a Cloud SQL instance.
       
      .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2;
    • clearCloudSql

      public BigQueryConnectionSpec.Builder clearCloudSql()
       Specification for the BigQuery connection to a Cloud SQL instance.
       
      .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2;
    • getCloudSqlBuilder

      public CloudSqlBigQueryConnectionSpec.Builder getCloudSqlBuilder()
       Specification for the BigQuery connection to a Cloud SQL instance.
       
      .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2;
    • getCloudSqlOrBuilder

      public CloudSqlBigQueryConnectionSpecOrBuilder getCloudSqlOrBuilder()
       Specification for the BigQuery connection to a Cloud SQL instance.
       
      .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2;
      Specified by:
      getCloudSqlOrBuilder in interface BigQueryConnectionSpecOrBuilder
    • getHasCredential

      public boolean getHasCredential()
       True if there are credentials attached to the BigQuery connection; false
       otherwise.
       
      bool has_credential = 3;
      Specified by:
      getHasCredential in interface BigQueryConnectionSpecOrBuilder
      Returns:
      The hasCredential.
    • setHasCredential

      public BigQueryConnectionSpec.Builder setHasCredential(boolean value)
       True if there are credentials attached to the BigQuery connection; false
       otherwise.
       
      bool has_credential = 3;
      Parameters:
      value - The hasCredential to set.
      Returns:
      This builder for chaining.
    • clearHasCredential

      public BigQueryConnectionSpec.Builder clearHasCredential()
       True if there are credentials attached to the BigQuery connection; false
       otherwise.
       
      bool has_credential = 3;
      Returns:
      This builder for chaining.