-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
dataplex_spec.proto
90 lines (74 loc) · 3.13 KB
/
dataplex_spec.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.datacatalog.v1;
import "google/cloud/datacatalog/v1/common.proto";
import "google/cloud/datacatalog/v1/physical_schema.proto";
option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.DataCatalog.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog";
option java_multiple_files = true;
option java_outer_classname = "DataplexSpecProto";
option java_package = "com.google.cloud.datacatalog.v1";
option php_namespace = "Google\\Cloud\\DataCatalog\\V1";
option ruby_package = "Google::Cloud::DataCatalog::V1";
// Common Dataplex fields.
message DataplexSpec {
// Fully qualified resource name of an asset in Dataplex, to which the
// underlying data source (Cloud Storage bucket or BigQuery dataset) of the
// entity is attached.
string asset = 1;
// Format of the data.
PhysicalSchema data_format = 2;
// Compression format of the data, e.g., zip, gzip etc.
string compression_format = 3;
// Project ID of the underlying Cloud Storage or BigQuery data. Note that
// this may not be the same project as the correspondingly Dataplex lake /
// zone / asset.
string project_id = 4;
}
// Entry specyfication for a Dataplex fileset.
message DataplexFilesetSpec {
// Common Dataplex fields.
DataplexSpec dataplex_spec = 1;
}
// Entry specification for a Dataplex table.
message DataplexTableSpec {
// List of external tables registered by Dataplex in other systems based on
// the same underlying data.
//
// External tables allow to query this data in those systems.
repeated DataplexExternalTable external_tables = 1;
// Common Dataplex fields.
DataplexSpec dataplex_spec = 2;
// Indicates if the table schema is managed by the user or not.
bool user_managed = 3;
}
// External table registered by Dataplex.
// Dataplex publishes data discovered from an asset into multiple other systems
// (BigQuery, DPMS) in form of tables. We call them "external tables". External
// tables are also synced into the Data Catalog.
// This message contains pointers to
// those external tables (fully qualified name, resource name et cetera) within
// the Data Catalog.
message DataplexExternalTable {
// Service in which the external table is registered.
IntegratedSystem system = 1;
// Fully qualified name (FQN) of the external table.
string fully_qualified_name = 28;
// Google Cloud resource name of the external table.
string google_cloud_resource = 3;
// Name of the Data Catalog entry representing the external table.
string data_catalog_entry = 4;
}