# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/datacatalog/v1/bigquery.proto

require 'google/api/field_behavior_pb'
require 'google/protobuf'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/cloud/datacatalog/v1/bigquery.proto", :syntax => :proto3) do
    add_message "google.cloud.datacatalog.v1.BigQueryConnectionSpec" do
      optional :connection_type, :enum, 1, "google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType"
      optional :has_credential, :bool, 3
      oneof :connection_spec do
        optional :cloud_sql, :message, 2, "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec"
      end
    end
    add_enum "google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType" do
      value :CONNECTION_TYPE_UNSPECIFIED, 0
      value :CLOUD_SQL, 1
    end
    add_message "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec" do
      optional :instance_id, :string, 1
      optional :database, :string, 2
      optional :type, :enum, 3, "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType"
    end
    add_enum "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType" do
      value :DATABASE_TYPE_UNSPECIFIED, 0
      value :POSTGRES, 1
      value :MYSQL, 2
    end
    add_message "google.cloud.datacatalog.v1.BigQueryRoutineSpec" do
      repeated :imported_libraries, :string, 1
    end
  end
end

module Google
  module Cloud
    module DataCatalog
      module V1
        BigQueryConnectionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BigQueryConnectionSpec").msgclass
        BigQueryConnectionSpec::ConnectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType").enummodule
        CloudSqlBigQueryConnectionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec").msgclass
        CloudSqlBigQueryConnectionSpec::DatabaseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType").enummodule
        BigQueryRoutineSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BigQueryRoutineSpec").msgclass
      end
    end
  end
end
