dataplex_spec.proto 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/cloud/datacatalog/v1/common.proto";
  17. import "google/cloud/datacatalog/v1/physical_schema.proto";
  18. option cc_enable_arenas = true;
  19. option csharp_namespace = "Google.Cloud.DataCatalog.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "DataplexSpecProto";
  23. option java_package = "com.google.cloud.datacatalog.v1";
  24. option php_namespace = "Google\\Cloud\\DataCatalog\\V1";
  25. option ruby_package = "Google::Cloud::DataCatalog::V1";
  26. // Common Dataplex fields.
  27. message DataplexSpec {
  28. // Fully qualified resource name of an asset in Dataplex, to which the
  29. // underlying data source (Cloud Storage bucket or BigQuery dataset) of the
  30. // entity is attached.
  31. string asset = 1;
  32. // Format of the data.
  33. PhysicalSchema data_format = 2;
  34. // Compression format of the data, e.g., zip, gzip etc.
  35. string compression_format = 3;
  36. // Project ID of the underlying Cloud Storage or BigQuery data. Note that
  37. // this may not be the same project as the correspondingly Dataplex lake /
  38. // zone / asset.
  39. string project_id = 4;
  40. }
  41. // Entry specyfication for a Dataplex fileset.
  42. message DataplexFilesetSpec {
  43. // Common Dataplex fields.
  44. DataplexSpec dataplex_spec = 1;
  45. }
  46. // Entry specification for a Dataplex table.
  47. message DataplexTableSpec {
  48. // List of external tables registered by Dataplex in other systems based on
  49. // the same underlying data.
  50. //
  51. // External tables allow to query this data in those systems.
  52. repeated DataplexExternalTable external_tables = 1;
  53. // Common Dataplex fields.
  54. DataplexSpec dataplex_spec = 2;
  55. // Indicates if the table schema is managed by the user or not.
  56. bool user_managed = 3;
  57. }
  58. // External table registered by Dataplex.
  59. // Dataplex publishes data discovered from an asset into multiple other systems
  60. // (BigQuery, DPMS) in form of tables. We call them "external tables". External
  61. // tables are also synced into the Data Catalog.
  62. // This message contains pointers to
  63. // those external tables (fully qualified name, resource name et cetera) within
  64. // the Data Catalog.
  65. message DataplexExternalTable {
  66. // Service in which the external table is registered.
  67. IntegratedSystem system = 1;
  68. // Fully qualified name (FQN) of the external table.
  69. string fully_qualified_name = 28;
  70. // Google Cloud resource name of the external table.
  71. string google_cloud_resource = 3;
  72. // Name of the Data Catalog entry representing the external table.
  73. string data_catalog_entry = 4;
  74. }