Class CloudSqlBigQueryConnectionSpec.Builder

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

public static final class CloudSqlBigQueryConnectionSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<CloudSqlBigQueryConnectionSpec.Builder> implements CloudSqlBigQueryConnectionSpecOrBuilder
 Specification for the BigQuery connection to a Cloud SQL instance.
 
Protobuf type google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec
  • 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<CloudSqlBigQueryConnectionSpec.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<CloudSqlBigQueryConnectionSpec.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<CloudSqlBigQueryConnectionSpec.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public CloudSqlBigQueryConnectionSpec.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<CloudSqlBigQueryConnectionSpec.Builder>
      Throws:
      IOException
    • getInstanceId

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

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

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

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

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

      public String getDatabase()
       Database name.
       
      string database = 2;
      Specified by:
      getDatabase in interface CloudSqlBigQueryConnectionSpecOrBuilder
      Returns:
      The database.
    • getDatabaseBytes

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

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

       Database name.
       
      string database = 2;
      Returns:
      This builder for chaining.
    • setDatabaseBytes

      public CloudSqlBigQueryConnectionSpec.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.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3;
      Specified by:
      getTypeValue in interface CloudSqlBigQueryConnectionSpecOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

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

       Type of the Cloud SQL database.
       
      .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3;
      Specified by:
      getType in interface CloudSqlBigQueryConnectionSpecOrBuilder
      Returns:
      The type.
    • setType

       Type of the Cloud SQL database.
       
      .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       Type of the Cloud SQL database.
       
      .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3;
      Returns:
      This builder for chaining.