bigquery.proto 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.datacatalog.v1;
  16. import "google/api/field_behavior.proto";
  17. option cc_enable_arenas = true;
  18. option csharp_namespace = "Google.Cloud.DataCatalog.V1";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "BigQueryProto";
  22. option java_package = "com.google.cloud.datacatalog.v1";
  23. option php_namespace = "Google\\Cloud\\DataCatalog\\V1";
  24. option ruby_package = "Google::Cloud::DataCatalog::V1";
  25. // Specification for the BigQuery connection.
  26. message BigQueryConnectionSpec {
  27. // The type of the BigQuery connection.
  28. enum ConnectionType {
  29. // Unspecified type.
  30. CONNECTION_TYPE_UNSPECIFIED = 0;
  31. // Cloud SQL connection.
  32. CLOUD_SQL = 1;
  33. }
  34. // The type of the BigQuery connection.
  35. ConnectionType connection_type = 1;
  36. oneof connection_spec {
  37. // Specification for the BigQuery connection to a Cloud SQL instance.
  38. CloudSqlBigQueryConnectionSpec cloud_sql = 2;
  39. }
  40. // True if there are credentials attached to the BigQuery connection; false
  41. // otherwise.
  42. bool has_credential = 3;
  43. }
  44. // Specification for the BigQuery connection to a Cloud SQL instance.
  45. message CloudSqlBigQueryConnectionSpec {
  46. // Supported Cloud SQL database types.
  47. enum DatabaseType {
  48. // Unspecified database type.
  49. DATABASE_TYPE_UNSPECIFIED = 0;
  50. // Cloud SQL for PostgreSQL.
  51. POSTGRES = 1;
  52. // Cloud SQL for MySQL.
  53. MYSQL = 2;
  54. }
  55. // Cloud SQL instance ID in the format of `project:location:instance`.
  56. string instance_id = 1;
  57. // Database name.
  58. string database = 2;
  59. // Type of the Cloud SQL database.
  60. DatabaseType type = 3;
  61. }
  62. // Fields specific for BigQuery routines.
  63. message BigQueryRoutineSpec {
  64. // Paths of the imported libraries.
  65. repeated string imported_libraries = 1;
  66. }