• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.cloud.datacatalog.v1;
18
19import "google/api/field_behavior.proto";
20import "google/cloud/datacatalog/v1/datacatalog.proto";
21import "google/cloud/datacatalog/v1/tags.proto";
22
23option cc_enable_arenas = true;
24option csharp_namespace = "Google.Cloud.DataCatalog.V1";
25option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb";
26option java_multiple_files = true;
27option java_outer_classname = "DumpContentProto";
28option java_package = "com.google.cloud.datacatalog.v1";
29option php_namespace = "Google\\Cloud\\DataCatalog\\V1";
30option ruby_package = "Google::Cloud::DataCatalog::V1";
31
32// Wrapper containing Entry and information about Tags
33// that should and should not be attached to it.
34message TaggedEntry {
35  // Required. Entry to be ingested.
36  oneof entry {
37    // Non-encrypted Data Catalog v1 Entry.
38    Entry v1_entry = 1;
39  }
40
41  // Optional. Tags that should be ingested into the Data Catalog.
42  // Caller should populate template name, column and fields.
43  repeated Tag present_tags = 2 [(google.api.field_behavior) = OPTIONAL];
44
45  // Optional. Tags that should be deleted from the Data Catalog.
46  // Caller should populate template name and column only.
47  repeated Tag absent_tags = 3 [(google.api.field_behavior) = OPTIONAL];
48}
49
50// Wrapper for any item that can be contained in the dump.
51message DumpItem {
52  oneof item {
53    // Entry and its tags.
54    TaggedEntry tagged_entry = 1;
55  }
56}
57