From ff1fd550e8978fac540db7d7e7c9bbcc3007d50d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 11 Apr 2022 16:05:54 -0400 Subject: [PATCH] docs: update taxonomy display_name comment (#353) docs: update taxonomy display_name comment feat: added Dataplex specific fields PiperOrigin-RevId: 440386238 Source-Link: https://github.com/googleapis/googleapis/commit/99fd8be66d7b04e7f73c801be1b4d49867e3b7e1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e132e73e514ed7a3009e69de8248a364b8878cb8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTEzMmU3M2U1MTRlZDdhMzAwOWU2OWRlODI0OGEzNjRiODg3OGNiOCJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../google/cloud/datacatalog/v1/common.proto | 3 + .../cloud/datacatalog/v1/data_source.proto | 36 + .../cloud/datacatalog/v1/datacatalog.proto | 30 +- .../cloud/datacatalog/v1/dataplex_spec.proto | 90 + .../datacatalog/v1/physical_schema.proto | 83 + .../datacatalog/v1/policytagmanager.proto | 2 + .../v1/policytagmanagerserialization.proto | 1 - .../google/cloud/datacatalog/v1/tags.proto | 2 +- .../protos/protos.d.ts | 1276 ++++++- .../google-cloud-datacatalog/protos/protos.js | 3231 ++++++++++++++++- .../protos/protos.json | 195 +- .../src/v1/data_catalog_proto_list.json | 2 + .../src/v1/policy_tag_manager_proto_list.json | 2 + ..._tag_manager_serialization_proto_list.json | 2 + 14 files changed, 4824 insertions(+), 131 deletions(-) create mode 100644 packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/dataplex_spec.proto create mode 100644 packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/physical_schema.proto diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/common.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/common.proto index a7fe9c97c2b..7a6bef5f222 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/common.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/common.proto @@ -48,4 +48,7 @@ enum IntegratedSystem { // Dataproc Metastore. DATAPROC_METASTORE = 3; + + // Dataplex. + DATAPLEX = 4; } diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/data_source.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/data_source.proto index 13a2c4f3a16..a73ff09c756 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/data_source.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/data_source.proto @@ -48,4 +48,40 @@ message DataSource { // // `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}` string resource = 2; + + // Output only. Data Catalog entry name, if applicable. + string source_entry = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + oneof properties { + // Detailed properties of the underlying storage. + StorageProperties storage_properties = 4; + } +} + +// Details the properties of the underlying storage. +message StorageProperties { + // Patterns to identify a set of files for this fileset. + // + // Examples of a valid `file_pattern`: + // + // * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir` + // directory + // * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir` + // and all subdirectories recursively + // * `gs://bucket_name/file*`: matches files prefixed by `file` in + // `bucket_name` + // * `gs://bucket_name/??.txt`: matches files with two characters followed by + // `.txt` in `bucket_name` + // * `gs://bucket_name/[aeiou].txt`: matches files that contain a single + // vowel character followed by `.txt` in + // `bucket_name` + // * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... + // or `m` followed by `.txt` in `bucket_name` + // * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match + // the `a/*/b` pattern, such as `a/c/b`, `a/d/b` + // * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + repeated string file_pattern = 1; + + // File type in MIME format, for example, `text/plain`. + string file_type = 2; } diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/datacatalog.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/datacatalog.proto index 820682bca80..b31eed89371 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/datacatalog.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/datacatalog.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/datacatalog/v1/bigquery.proto"; import "google/cloud/datacatalog/v1/common.proto"; import "google/cloud/datacatalog/v1/data_source.proto"; +import "google/cloud/datacatalog/v1/dataplex_spec.proto"; import "google/cloud/datacatalog/v1/gcs_fileset_spec.proto"; import "google/cloud/datacatalog/v1/schema.proto"; import "google/cloud/datacatalog/v1/search.proto"; @@ -34,7 +35,6 @@ import "google/iam/v1/iam_policy.proto"; import "google/iam/v1/policy.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; @@ -1065,6 +1065,10 @@ message Entry { // Specification that applies to a user-defined function or procedure. Valid // only for entries with the `ROUTINE` type. RoutineSpec routine_spec = 28; + + // Specification that applies to a fileset resource. Valid only + // for entries with the `FILESET` type. + FilesetSpec fileset_spec = 33; } // Display name of an entry. @@ -1085,7 +1089,7 @@ message Entry { // Default value is an empty string. string description = 4; - // Business Context of the entry. Not supported for BigQuery datasets. + // Business Context of the entry. Not supported for BigQuery datasets BusinessContext business_context = 37; // Schema of the entry. An entry might not have any schema attached to it. @@ -1133,6 +1137,18 @@ message DatabaseTableSpec { // Type of this table. TableType type = 1; + + // Fields specific to a Dataplex table and present only in the Dataplex table + // entries. + DataplexTableSpec dataplex_table = 2; +} + +// Specification that applies to a fileset. Valid only for entries with the +// 'FILESET' type. +message FilesetSpec { + // Fields specific to a Dataplex fileset and present only in the Dataplex + // fileset entries. + DataplexFilesetSpec dataplex_fileset = 1; } // Specification that applies to a data source connection. Valid only for @@ -1241,8 +1257,8 @@ message Contacts { // Designation of the person, for example, Data Steward. string designation = 1; - // Email of the person in the format of `john.doe@example.com`, - // ``, or `John Doe`. + // Email of the person in the format of `john.doe@xyz`, + // ``, or `John Doe`. string email = 2; } @@ -1681,6 +1697,12 @@ enum EntryType { // Output only. Routine, for example, a BigQuery routine. ROUTINE = 9; + // A Dataplex lake. + LAKE = 10; + + // A Dataplex zone. + ZONE = 11; + // A service, for example, a Dataproc Metastore service. SERVICE = 14; } diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/dataplex_spec.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/dataplex_spec.proto new file mode 100644 index 00000000000..0cdba3e1f8c --- /dev/null +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/dataplex_spec.proto @@ -0,0 +1,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; +} diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/physical_schema.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/physical_schema.proto new file mode 100644 index 00000000000..414e95ca7f2 --- /dev/null +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/physical_schema.proto @@ -0,0 +1,83 @@ +// 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; + +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 = "PhysicalSchemaProto"; +option java_package = "com.google.cloud.datacatalog.v1"; +option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; +option ruby_package = "Google::Cloud::DataCatalog::V1"; + +// Native schema used by a resource represented as an entry. Used by query +// engines for deserializing and parsing source data. +message PhysicalSchema { + // Schema in Avro JSON format. + message AvroSchema { + // JSON source of the Avro schema. + string text = 1; + } + + // Schema in Thrift format. + message ThriftSchema { + // Thrift IDL source of the schema. + string text = 1; + } + + // Schema in protocol buffer format. + message ProtobufSchema { + // Protocol buffer source of the schema. + string text = 1; + } + + // Marks a Parquet-encoded data source. + message ParquetSchema { + + } + + // Marks an ORC-encoded data source. + message OrcSchema { + + } + + // Marks a CSV-encoded data source. + message CsvSchema { + + } + + oneof schema { + // Schema in Avro JSON format. + AvroSchema avro = 1; + + // Schema in Thrift format. + ThriftSchema thrift = 2; + + // Schema in protocol buffer format. + ProtobufSchema protobuf = 3; + + // Marks a Parquet-encoded data source. + ParquetSchema parquet = 4; + + // Marks an ORC-encoded data source. + OrcSchema orc = 5; + + // Marks a CSV-encoded data source. + CsvSchema csv = 6; + } +} diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanager.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanager.proto index fa1ae6f8ee2..be415988404 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanager.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanager.proto @@ -229,6 +229,8 @@ message Taxonomy { // The name can't start or end with spaces, must contain only Unicode letters, // numbers, underscores, dashes, and spaces, and be at most 200 bytes long // when encoded in UTF-8. + // + // The taxonomy display name must be unique within an organization. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. Description of this taxonomy. If not set, defaults to empty. diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanagerserialization.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanagerserialization.proto index b741539b713..a4fe4d8b9c9 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanagerserialization.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanagerserialization.proto @@ -21,7 +21,6 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/datacatalog/v1/policytagmanager.proto"; -import "google/iam/v1/policy.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/tags.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/tags.proto index efe8e8092ff..dedfd2f61f1 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/tags.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/tags.proto @@ -164,7 +164,7 @@ message TagTemplate { // [ListTags][google.cloud.datacatalog.v1.ListTags] API response. // // Additionally, you can search for a public tag by value with a - // simple search query instead of using a ``tag:`` predicate. + // simple search query in addition to using a ``tag:`` predicate. bool is_publicly_readable = 5; // Required. Map of tag template field IDs to the settings for the field. diff --git a/packages/google-cloud-datacatalog/protos/protos.d.ts b/packages/google-cloud-datacatalog/protos/protos.d.ts index 9002ea8d919..1828805fd86 100644 --- a/packages/google-cloud-datacatalog/protos/protos.d.ts +++ b/packages/google-cloud-datacatalog/protos/protos.d.ts @@ -443,7 +443,8 @@ export namespace google { INTEGRATED_SYSTEM_UNSPECIFIED = 0, BIGQUERY = 1, CLOUD_PUBSUB = 2, - DATAPROC_METASTORE = 3 + DATAPROC_METASTORE = 3, + DATAPLEX = 4 } /** Properties of a DataSource. */ @@ -454,6 +455,12 @@ export namespace google { /** DataSource resource */ resource?: (string|null); + + /** DataSource sourceEntry */ + sourceEntry?: (string|null); + + /** DataSource storageProperties */ + storageProperties?: (google.cloud.datacatalog.v1.IStorageProperties|null); } /** Represents a DataSource. */ @@ -471,6 +478,15 @@ export namespace google { /** DataSource resource. */ public resource: string; + /** DataSource sourceEntry. */ + public sourceEntry: string; + + /** DataSource storageProperties. */ + public storageProperties?: (google.cloud.datacatalog.v1.IStorageProperties|null); + + /** DataSource properties. */ + public properties?: "storageProperties"; + /** * Creates a new DataSource instance using the specified properties. * @param [properties] Properties to set @@ -552,6 +568,102 @@ export namespace google { } } + /** Properties of a StorageProperties. */ + interface IStorageProperties { + + /** StorageProperties filePattern */ + filePattern?: (string[]|null); + + /** StorageProperties fileType */ + fileType?: (string|null); + } + + /** Represents a StorageProperties. */ + class StorageProperties implements IStorageProperties { + + /** + * Constructs a new StorageProperties. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.IStorageProperties); + + /** StorageProperties filePattern. */ + public filePattern: string[]; + + /** StorageProperties fileType. */ + public fileType: string; + + /** + * Creates a new StorageProperties instance using the specified properties. + * @param [properties] Properties to set + * @returns StorageProperties instance + */ + public static create(properties?: google.cloud.datacatalog.v1.IStorageProperties): google.cloud.datacatalog.v1.StorageProperties; + + /** + * Encodes the specified StorageProperties message. Does not implicitly {@link google.cloud.datacatalog.v1.StorageProperties.verify|verify} messages. + * @param message StorageProperties message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.IStorageProperties, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StorageProperties message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.StorageProperties.verify|verify} messages. + * @param message StorageProperties message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.IStorageProperties, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StorageProperties message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StorageProperties + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.StorageProperties; + + /** + * Decodes a StorageProperties message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StorageProperties + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.StorageProperties; + + /** + * Verifies a StorageProperties message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StorageProperties message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StorageProperties + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.StorageProperties; + + /** + * Creates a plain object from a StorageProperties message. Also converts values to other types if specified. + * @param message StorageProperties + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.StorageProperties, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StorageProperties to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Represents a DataCatalog */ class DataCatalog extends $protobuf.rpc.Service { @@ -2700,6 +2812,9 @@ export namespace google { /** Entry routineSpec */ routineSpec?: (google.cloud.datacatalog.v1.IRoutineSpec|null); + /** Entry filesetSpec */ + filesetSpec?: (google.cloud.datacatalog.v1.IFilesetSpec|null); + /** Entry displayName */ displayName?: (string|null); @@ -2776,6 +2891,9 @@ export namespace google { /** Entry routineSpec. */ public routineSpec?: (google.cloud.datacatalog.v1.IRoutineSpec|null); + /** Entry filesetSpec. */ + public filesetSpec?: (google.cloud.datacatalog.v1.IFilesetSpec|null); + /** Entry displayName. */ public displayName: string; @@ -2813,7 +2931,7 @@ export namespace google { public typeSpec?: ("gcsFilesetSpec"|"bigqueryTableSpec"|"bigqueryDateShardedSpec"); /** Entry spec. */ - public spec?: ("databaseTableSpec"|"dataSourceConnectionSpec"|"routineSpec"); + public spec?: ("databaseTableSpec"|"dataSourceConnectionSpec"|"routineSpec"|"filesetSpec"); /** * Creates a new Entry instance using the specified properties. @@ -2891,6 +3009,9 @@ export namespace google { /** DatabaseTableSpec type */ type?: (google.cloud.datacatalog.v1.DatabaseTableSpec.TableType|keyof typeof google.cloud.datacatalog.v1.DatabaseTableSpec.TableType|null); + + /** DatabaseTableSpec dataplexTable */ + dataplexTable?: (google.cloud.datacatalog.v1.IDataplexTableSpec|null); } /** Represents a DatabaseTableSpec. */ @@ -2905,6 +3026,9 @@ export namespace google { /** DatabaseTableSpec type. */ public type: (google.cloud.datacatalog.v1.DatabaseTableSpec.TableType|keyof typeof google.cloud.datacatalog.v1.DatabaseTableSpec.TableType); + /** DatabaseTableSpec dataplexTable. */ + public dataplexTable?: (google.cloud.datacatalog.v1.IDataplexTableSpec|null); + /** * Creates a new DatabaseTableSpec instance using the specified properties. * @param [properties] Properties to set @@ -2986,6 +3110,96 @@ export namespace google { } } + /** Properties of a FilesetSpec. */ + interface IFilesetSpec { + + /** FilesetSpec dataplexFileset */ + dataplexFileset?: (google.cloud.datacatalog.v1.IDataplexFilesetSpec|null); + } + + /** Represents a FilesetSpec. */ + class FilesetSpec implements IFilesetSpec { + + /** + * Constructs a new FilesetSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.IFilesetSpec); + + /** FilesetSpec dataplexFileset. */ + public dataplexFileset?: (google.cloud.datacatalog.v1.IDataplexFilesetSpec|null); + + /** + * Creates a new FilesetSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns FilesetSpec instance + */ + public static create(properties?: google.cloud.datacatalog.v1.IFilesetSpec): google.cloud.datacatalog.v1.FilesetSpec; + + /** + * Encodes the specified FilesetSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.FilesetSpec.verify|verify} messages. + * @param message FilesetSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.IFilesetSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FilesetSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.FilesetSpec.verify|verify} messages. + * @param message FilesetSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.IFilesetSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FilesetSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FilesetSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.FilesetSpec; + + /** + * Decodes a FilesetSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FilesetSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.FilesetSpec; + + /** + * Verifies a FilesetSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FilesetSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FilesetSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.FilesetSpec; + + /** + * Creates a plain object from a FilesetSpec message. Also converts values to other types if specified. + * @param message FilesetSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.FilesetSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FilesetSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a DataSourceConnectionSpec. */ interface IDataSourceConnectionSpec { @@ -5916,9 +6130,1067 @@ export namespace google { DATABASE = 7, DATA_SOURCE_CONNECTION = 8, ROUTINE = 9, + LAKE = 10, + ZONE = 11, SERVICE = 14 } + /** Properties of a DataplexSpec. */ + interface IDataplexSpec { + + /** DataplexSpec asset */ + asset?: (string|null); + + /** DataplexSpec dataFormat */ + dataFormat?: (google.cloud.datacatalog.v1.IPhysicalSchema|null); + + /** DataplexSpec compressionFormat */ + compressionFormat?: (string|null); + + /** DataplexSpec projectId */ + projectId?: (string|null); + } + + /** Represents a DataplexSpec. */ + class DataplexSpec implements IDataplexSpec { + + /** + * Constructs a new DataplexSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.IDataplexSpec); + + /** DataplexSpec asset. */ + public asset: string; + + /** DataplexSpec dataFormat. */ + public dataFormat?: (google.cloud.datacatalog.v1.IPhysicalSchema|null); + + /** DataplexSpec compressionFormat. */ + public compressionFormat: string; + + /** DataplexSpec projectId. */ + public projectId: string; + + /** + * Creates a new DataplexSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DataplexSpec instance + */ + public static create(properties?: google.cloud.datacatalog.v1.IDataplexSpec): google.cloud.datacatalog.v1.DataplexSpec; + + /** + * Encodes the specified DataplexSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexSpec.verify|verify} messages. + * @param message DataplexSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.IDataplexSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataplexSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexSpec.verify|verify} messages. + * @param message DataplexSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.IDataplexSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataplexSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataplexSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.DataplexSpec; + + /** + * Decodes a DataplexSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataplexSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.DataplexSpec; + + /** + * Verifies a DataplexSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataplexSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataplexSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.DataplexSpec; + + /** + * Creates a plain object from a DataplexSpec message. Also converts values to other types if specified. + * @param message DataplexSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.DataplexSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataplexSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DataplexFilesetSpec. */ + interface IDataplexFilesetSpec { + + /** DataplexFilesetSpec dataplexSpec */ + dataplexSpec?: (google.cloud.datacatalog.v1.IDataplexSpec|null); + } + + /** Represents a DataplexFilesetSpec. */ + class DataplexFilesetSpec implements IDataplexFilesetSpec { + + /** + * Constructs a new DataplexFilesetSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.IDataplexFilesetSpec); + + /** DataplexFilesetSpec dataplexSpec. */ + public dataplexSpec?: (google.cloud.datacatalog.v1.IDataplexSpec|null); + + /** + * Creates a new DataplexFilesetSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DataplexFilesetSpec instance + */ + public static create(properties?: google.cloud.datacatalog.v1.IDataplexFilesetSpec): google.cloud.datacatalog.v1.DataplexFilesetSpec; + + /** + * Encodes the specified DataplexFilesetSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexFilesetSpec.verify|verify} messages. + * @param message DataplexFilesetSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.IDataplexFilesetSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataplexFilesetSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexFilesetSpec.verify|verify} messages. + * @param message DataplexFilesetSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.IDataplexFilesetSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataplexFilesetSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataplexFilesetSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.DataplexFilesetSpec; + + /** + * Decodes a DataplexFilesetSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataplexFilesetSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.DataplexFilesetSpec; + + /** + * Verifies a DataplexFilesetSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataplexFilesetSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataplexFilesetSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.DataplexFilesetSpec; + + /** + * Creates a plain object from a DataplexFilesetSpec message. Also converts values to other types if specified. + * @param message DataplexFilesetSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.DataplexFilesetSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataplexFilesetSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DataplexTableSpec. */ + interface IDataplexTableSpec { + + /** DataplexTableSpec externalTables */ + externalTables?: (google.cloud.datacatalog.v1.IDataplexExternalTable[]|null); + + /** DataplexTableSpec dataplexSpec */ + dataplexSpec?: (google.cloud.datacatalog.v1.IDataplexSpec|null); + + /** DataplexTableSpec userManaged */ + userManaged?: (boolean|null); + } + + /** Represents a DataplexTableSpec. */ + class DataplexTableSpec implements IDataplexTableSpec { + + /** + * Constructs a new DataplexTableSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.IDataplexTableSpec); + + /** DataplexTableSpec externalTables. */ + public externalTables: google.cloud.datacatalog.v1.IDataplexExternalTable[]; + + /** DataplexTableSpec dataplexSpec. */ + public dataplexSpec?: (google.cloud.datacatalog.v1.IDataplexSpec|null); + + /** DataplexTableSpec userManaged. */ + public userManaged: boolean; + + /** + * Creates a new DataplexTableSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DataplexTableSpec instance + */ + public static create(properties?: google.cloud.datacatalog.v1.IDataplexTableSpec): google.cloud.datacatalog.v1.DataplexTableSpec; + + /** + * Encodes the specified DataplexTableSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexTableSpec.verify|verify} messages. + * @param message DataplexTableSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.IDataplexTableSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataplexTableSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexTableSpec.verify|verify} messages. + * @param message DataplexTableSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.IDataplexTableSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataplexTableSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataplexTableSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.DataplexTableSpec; + + /** + * Decodes a DataplexTableSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataplexTableSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.DataplexTableSpec; + + /** + * Verifies a DataplexTableSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataplexTableSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataplexTableSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.DataplexTableSpec; + + /** + * Creates a plain object from a DataplexTableSpec message. Also converts values to other types if specified. + * @param message DataplexTableSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.DataplexTableSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataplexTableSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DataplexExternalTable. */ + interface IDataplexExternalTable { + + /** DataplexExternalTable system */ + system?: (google.cloud.datacatalog.v1.IntegratedSystem|keyof typeof google.cloud.datacatalog.v1.IntegratedSystem|null); + + /** DataplexExternalTable fullyQualifiedName */ + fullyQualifiedName?: (string|null); + + /** DataplexExternalTable googleCloudResource */ + googleCloudResource?: (string|null); + + /** DataplexExternalTable dataCatalogEntry */ + dataCatalogEntry?: (string|null); + } + + /** Represents a DataplexExternalTable. */ + class DataplexExternalTable implements IDataplexExternalTable { + + /** + * Constructs a new DataplexExternalTable. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.IDataplexExternalTable); + + /** DataplexExternalTable system. */ + public system: (google.cloud.datacatalog.v1.IntegratedSystem|keyof typeof google.cloud.datacatalog.v1.IntegratedSystem); + + /** DataplexExternalTable fullyQualifiedName. */ + public fullyQualifiedName: string; + + /** DataplexExternalTable googleCloudResource. */ + public googleCloudResource: string; + + /** DataplexExternalTable dataCatalogEntry. */ + public dataCatalogEntry: string; + + /** + * Creates a new DataplexExternalTable instance using the specified properties. + * @param [properties] Properties to set + * @returns DataplexExternalTable instance + */ + public static create(properties?: google.cloud.datacatalog.v1.IDataplexExternalTable): google.cloud.datacatalog.v1.DataplexExternalTable; + + /** + * Encodes the specified DataplexExternalTable message. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexExternalTable.verify|verify} messages. + * @param message DataplexExternalTable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.IDataplexExternalTable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataplexExternalTable message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexExternalTable.verify|verify} messages. + * @param message DataplexExternalTable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.IDataplexExternalTable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataplexExternalTable message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataplexExternalTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.DataplexExternalTable; + + /** + * Decodes a DataplexExternalTable message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataplexExternalTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.DataplexExternalTable; + + /** + * Verifies a DataplexExternalTable message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataplexExternalTable message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataplexExternalTable + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.DataplexExternalTable; + + /** + * Creates a plain object from a DataplexExternalTable message. Also converts values to other types if specified. + * @param message DataplexExternalTable + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.DataplexExternalTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataplexExternalTable to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PhysicalSchema. */ + interface IPhysicalSchema { + + /** PhysicalSchema avro */ + avro?: (google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema|null); + + /** PhysicalSchema thrift */ + thrift?: (google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema|null); + + /** PhysicalSchema protobuf */ + protobuf?: (google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema|null); + + /** PhysicalSchema parquet */ + parquet?: (google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema|null); + + /** PhysicalSchema orc */ + orc?: (google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema|null); + + /** PhysicalSchema csv */ + csv?: (google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema|null); + } + + /** Represents a PhysicalSchema. */ + class PhysicalSchema implements IPhysicalSchema { + + /** + * Constructs a new PhysicalSchema. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.IPhysicalSchema); + + /** PhysicalSchema avro. */ + public avro?: (google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema|null); + + /** PhysicalSchema thrift. */ + public thrift?: (google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema|null); + + /** PhysicalSchema protobuf. */ + public protobuf?: (google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema|null); + + /** PhysicalSchema parquet. */ + public parquet?: (google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema|null); + + /** PhysicalSchema orc. */ + public orc?: (google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema|null); + + /** PhysicalSchema csv. */ + public csv?: (google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema|null); + + /** PhysicalSchema schema. */ + public schema?: ("avro"|"thrift"|"protobuf"|"parquet"|"orc"|"csv"); + + /** + * Creates a new PhysicalSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns PhysicalSchema instance + */ + public static create(properties?: google.cloud.datacatalog.v1.IPhysicalSchema): google.cloud.datacatalog.v1.PhysicalSchema; + + /** + * Encodes the specified PhysicalSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.verify|verify} messages. + * @param message PhysicalSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.IPhysicalSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PhysicalSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.verify|verify} messages. + * @param message PhysicalSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.IPhysicalSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PhysicalSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PhysicalSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.PhysicalSchema; + + /** + * Decodes a PhysicalSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PhysicalSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.PhysicalSchema; + + /** + * Verifies a PhysicalSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PhysicalSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PhysicalSchema + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.PhysicalSchema; + + /** + * Creates a plain object from a PhysicalSchema message. Also converts values to other types if specified. + * @param message PhysicalSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.PhysicalSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PhysicalSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace PhysicalSchema { + + /** Properties of an AvroSchema. */ + interface IAvroSchema { + + /** AvroSchema text */ + text?: (string|null); + } + + /** Represents an AvroSchema. */ + class AvroSchema implements IAvroSchema { + + /** + * Constructs a new AvroSchema. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema); + + /** AvroSchema text. */ + public text: string; + + /** + * Creates a new AvroSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns AvroSchema instance + */ + public static create(properties?: google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema): google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema; + + /** + * Encodes the specified AvroSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.verify|verify} messages. + * @param message AvroSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AvroSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.verify|verify} messages. + * @param message AvroSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AvroSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AvroSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema; + + /** + * Decodes an AvroSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AvroSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema; + + /** + * Verifies an AvroSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AvroSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AvroSchema + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema; + + /** + * Creates a plain object from an AvroSchema message. Also converts values to other types if specified. + * @param message AvroSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AvroSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ThriftSchema. */ + interface IThriftSchema { + + /** ThriftSchema text */ + text?: (string|null); + } + + /** Represents a ThriftSchema. */ + class ThriftSchema implements IThriftSchema { + + /** + * Constructs a new ThriftSchema. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema); + + /** ThriftSchema text. */ + public text: string; + + /** + * Creates a new ThriftSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns ThriftSchema instance + */ + public static create(properties?: google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema): google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema; + + /** + * Encodes the specified ThriftSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.verify|verify} messages. + * @param message ThriftSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ThriftSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.verify|verify} messages. + * @param message ThriftSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ThriftSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ThriftSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema; + + /** + * Decodes a ThriftSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ThriftSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema; + + /** + * Verifies a ThriftSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ThriftSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ThriftSchema + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema; + + /** + * Creates a plain object from a ThriftSchema message. Also converts values to other types if specified. + * @param message ThriftSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ThriftSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ProtobufSchema. */ + interface IProtobufSchema { + + /** ProtobufSchema text */ + text?: (string|null); + } + + /** Represents a ProtobufSchema. */ + class ProtobufSchema implements IProtobufSchema { + + /** + * Constructs a new ProtobufSchema. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema); + + /** ProtobufSchema text. */ + public text: string; + + /** + * Creates a new ProtobufSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns ProtobufSchema instance + */ + public static create(properties?: google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema): google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema; + + /** + * Encodes the specified ProtobufSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.verify|verify} messages. + * @param message ProtobufSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ProtobufSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.verify|verify} messages. + * @param message ProtobufSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProtobufSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProtobufSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema; + + /** + * Decodes a ProtobufSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProtobufSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema; + + /** + * Verifies a ProtobufSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ProtobufSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProtobufSchema + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema; + + /** + * Creates a plain object from a ProtobufSchema message. Also converts values to other types if specified. + * @param message ProtobufSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ProtobufSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ParquetSchema. */ + interface IParquetSchema { + } + + /** Represents a ParquetSchema. */ + class ParquetSchema implements IParquetSchema { + + /** + * Constructs a new ParquetSchema. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema); + + /** + * Creates a new ParquetSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns ParquetSchema instance + */ + public static create(properties?: google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema): google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema; + + /** + * Encodes the specified ParquetSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.verify|verify} messages. + * @param message ParquetSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ParquetSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.verify|verify} messages. + * @param message ParquetSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParquetSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParquetSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema; + + /** + * Decodes a ParquetSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParquetSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema; + + /** + * Verifies a ParquetSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ParquetSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParquetSchema + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema; + + /** + * Creates a plain object from a ParquetSchema message. Also converts values to other types if specified. + * @param message ParquetSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ParquetSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an OrcSchema. */ + interface IOrcSchema { + } + + /** Represents an OrcSchema. */ + class OrcSchema implements IOrcSchema { + + /** + * Constructs a new OrcSchema. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema); + + /** + * Creates a new OrcSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns OrcSchema instance + */ + public static create(properties?: google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema): google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema; + + /** + * Encodes the specified OrcSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.verify|verify} messages. + * @param message OrcSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OrcSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.verify|verify} messages. + * @param message OrcSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OrcSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OrcSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema; + + /** + * Decodes an OrcSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OrcSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema; + + /** + * Verifies an OrcSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OrcSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OrcSchema + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema; + + /** + * Creates a plain object from an OrcSchema message. Also converts values to other types if specified. + * @param message OrcSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OrcSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CsvSchema. */ + interface ICsvSchema { + } + + /** Represents a CsvSchema. */ + class CsvSchema implements ICsvSchema { + + /** + * Constructs a new CsvSchema. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema); + + /** + * Creates a new CsvSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns CsvSchema instance + */ + public static create(properties?: google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema): google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema; + + /** + * Encodes the specified CsvSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.verify|verify} messages. + * @param message CsvSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CsvSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.verify|verify} messages. + * @param message CsvSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CsvSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CsvSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema; + + /** + * Decodes a CsvSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CsvSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema; + + /** + * Verifies a CsvSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CsvSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CsvSchema + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema; + + /** + * Creates a plain object from a CsvSchema message. Also converts values to other types if specified. + * @param message CsvSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CsvSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + /** Properties of a GcsFilesetSpec. */ interface IGcsFilesetSpec { diff --git a/packages/google-cloud-datacatalog/protos/protos.js b/packages/google-cloud-datacatalog/protos/protos.js index 9b65ac42bcb..38e39ccf525 100644 --- a/packages/google-cloud-datacatalog/protos/protos.js +++ b/packages/google-cloud-datacatalog/protos/protos.js @@ -1042,6 +1042,7 @@ * @property {number} BIGQUERY=1 BIGQUERY value * @property {number} CLOUD_PUBSUB=2 CLOUD_PUBSUB value * @property {number} DATAPROC_METASTORE=3 DATAPROC_METASTORE value + * @property {number} DATAPLEX=4 DATAPLEX value */ v1.IntegratedSystem = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -1049,6 +1050,7 @@ values[valuesById[1] = "BIGQUERY"] = 1; values[valuesById[2] = "CLOUD_PUBSUB"] = 2; values[valuesById[3] = "DATAPROC_METASTORE"] = 3; + values[valuesById[4] = "DATAPLEX"] = 4; return values; })(); @@ -1060,6 +1062,8 @@ * @interface IDataSource * @property {google.cloud.datacatalog.v1.DataSource.Service|null} [service] DataSource service * @property {string|null} [resource] DataSource resource + * @property {string|null} [sourceEntry] DataSource sourceEntry + * @property {google.cloud.datacatalog.v1.IStorageProperties|null} [storageProperties] DataSource storageProperties */ /** @@ -1093,6 +1097,36 @@ */ DataSource.prototype.resource = ""; + /** + * DataSource sourceEntry. + * @member {string} sourceEntry + * @memberof google.cloud.datacatalog.v1.DataSource + * @instance + */ + DataSource.prototype.sourceEntry = ""; + + /** + * DataSource storageProperties. + * @member {google.cloud.datacatalog.v1.IStorageProperties|null|undefined} storageProperties + * @memberof google.cloud.datacatalog.v1.DataSource + * @instance + */ + DataSource.prototype.storageProperties = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DataSource properties. + * @member {"storageProperties"|undefined} properties + * @memberof google.cloud.datacatalog.v1.DataSource + * @instance + */ + Object.defineProperty(DataSource.prototype, "properties", { + get: $util.oneOfGetter($oneOfFields = ["storageProperties"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new DataSource instance using the specified properties. * @function create @@ -1121,6 +1155,10 @@ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.service); if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.resource); + if (message.sourceEntry != null && Object.hasOwnProperty.call(message, "sourceEntry")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceEntry); + if (message.storageProperties != null && Object.hasOwnProperty.call(message, "storageProperties")) + $root.google.cloud.datacatalog.v1.StorageProperties.encode(message.storageProperties, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -1161,6 +1199,12 @@ case 2: message.resource = reader.string(); break; + case 3: + message.sourceEntry = reader.string(); + break; + case 4: + message.storageProperties = $root.google.cloud.datacatalog.v1.StorageProperties.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -1196,6 +1240,7 @@ DataSource.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.service != null && message.hasOwnProperty("service")) switch (message.service) { default: @@ -1208,6 +1253,17 @@ if (message.resource != null && message.hasOwnProperty("resource")) if (!$util.isString(message.resource)) return "resource: string expected"; + if (message.sourceEntry != null && message.hasOwnProperty("sourceEntry")) + if (!$util.isString(message.sourceEntry)) + return "sourceEntry: string expected"; + if (message.storageProperties != null && message.hasOwnProperty("storageProperties")) { + properties.properties = 1; + { + var error = $root.google.cloud.datacatalog.v1.StorageProperties.verify(message.storageProperties); + if (error) + return "storageProperties." + error; + } + } return null; }; @@ -1239,6 +1295,13 @@ } if (object.resource != null) message.resource = String(object.resource); + if (object.sourceEntry != null) + message.sourceEntry = String(object.sourceEntry); + if (object.storageProperties != null) { + if (typeof object.storageProperties !== "object") + throw TypeError(".google.cloud.datacatalog.v1.DataSource.storageProperties: object expected"); + message.storageProperties = $root.google.cloud.datacatalog.v1.StorageProperties.fromObject(object.storageProperties); + } return message; }; @@ -1258,11 +1321,19 @@ if (options.defaults) { object.service = options.enums === String ? "SERVICE_UNSPECIFIED" : 0; object.resource = ""; + object.sourceEntry = ""; } if (message.service != null && message.hasOwnProperty("service")) object.service = options.enums === String ? $root.google.cloud.datacatalog.v1.DataSource.Service[message.service] : message.service; if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; + if (message.sourceEntry != null && message.hasOwnProperty("sourceEntry")) + object.sourceEntry = message.sourceEntry; + if (message.storageProperties != null && message.hasOwnProperty("storageProperties")) { + object.storageProperties = $root.google.cloud.datacatalog.v1.StorageProperties.toObject(message.storageProperties, options); + if (options.oneofs) + object.properties = "storageProperties"; + } return object; }; @@ -1296,6 +1367,232 @@ return DataSource; })(); + v1.StorageProperties = (function() { + + /** + * Properties of a StorageProperties. + * @memberof google.cloud.datacatalog.v1 + * @interface IStorageProperties + * @property {Array.|null} [filePattern] StorageProperties filePattern + * @property {string|null} [fileType] StorageProperties fileType + */ + + /** + * Constructs a new StorageProperties. + * @memberof google.cloud.datacatalog.v1 + * @classdesc Represents a StorageProperties. + * @implements IStorageProperties + * @constructor + * @param {google.cloud.datacatalog.v1.IStorageProperties=} [properties] Properties to set + */ + function StorageProperties(properties) { + this.filePattern = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StorageProperties filePattern. + * @member {Array.} filePattern + * @memberof google.cloud.datacatalog.v1.StorageProperties + * @instance + */ + StorageProperties.prototype.filePattern = $util.emptyArray; + + /** + * StorageProperties fileType. + * @member {string} fileType + * @memberof google.cloud.datacatalog.v1.StorageProperties + * @instance + */ + StorageProperties.prototype.fileType = ""; + + /** + * Creates a new StorageProperties instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.StorageProperties + * @static + * @param {google.cloud.datacatalog.v1.IStorageProperties=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.StorageProperties} StorageProperties instance + */ + StorageProperties.create = function create(properties) { + return new StorageProperties(properties); + }; + + /** + * Encodes the specified StorageProperties message. Does not implicitly {@link google.cloud.datacatalog.v1.StorageProperties.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.StorageProperties + * @static + * @param {google.cloud.datacatalog.v1.IStorageProperties} message StorageProperties message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StorageProperties.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.filePattern != null && message.filePattern.length) + for (var i = 0; i < message.filePattern.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.filePattern[i]); + if (message.fileType != null && Object.hasOwnProperty.call(message, "fileType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileType); + return writer; + }; + + /** + * Encodes the specified StorageProperties message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.StorageProperties.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.StorageProperties + * @static + * @param {google.cloud.datacatalog.v1.IStorageProperties} message StorageProperties message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StorageProperties.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StorageProperties message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.StorageProperties + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.StorageProperties} StorageProperties + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StorageProperties.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.StorageProperties(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.filePattern && message.filePattern.length)) + message.filePattern = []; + message.filePattern.push(reader.string()); + break; + case 2: + message.fileType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StorageProperties message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.StorageProperties + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.StorageProperties} StorageProperties + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StorageProperties.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StorageProperties message. + * @function verify + * @memberof google.cloud.datacatalog.v1.StorageProperties + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StorageProperties.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.filePattern != null && message.hasOwnProperty("filePattern")) { + if (!Array.isArray(message.filePattern)) + return "filePattern: array expected"; + for (var i = 0; i < message.filePattern.length; ++i) + if (!$util.isString(message.filePattern[i])) + return "filePattern: string[] expected"; + } + if (message.fileType != null && message.hasOwnProperty("fileType")) + if (!$util.isString(message.fileType)) + return "fileType: string expected"; + return null; + }; + + /** + * Creates a StorageProperties message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.StorageProperties + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.StorageProperties} StorageProperties + */ + StorageProperties.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.StorageProperties) + return object; + var message = new $root.google.cloud.datacatalog.v1.StorageProperties(); + if (object.filePattern) { + if (!Array.isArray(object.filePattern)) + throw TypeError(".google.cloud.datacatalog.v1.StorageProperties.filePattern: array expected"); + message.filePattern = []; + for (var i = 0; i < object.filePattern.length; ++i) + message.filePattern[i] = String(object.filePattern[i]); + } + if (object.fileType != null) + message.fileType = String(object.fileType); + return message; + }; + + /** + * Creates a plain object from a StorageProperties message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.StorageProperties + * @static + * @param {google.cloud.datacatalog.v1.StorageProperties} message StorageProperties + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StorageProperties.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.filePattern = []; + if (options.defaults) + object.fileType = ""; + if (message.filePattern && message.filePattern.length) { + object.filePattern = []; + for (var j = 0; j < message.filePattern.length; ++j) + object.filePattern[j] = message.filePattern[j]; + } + if (message.fileType != null && message.hasOwnProperty("fileType")) + object.fileType = message.fileType; + return object; + }; + + /** + * Converts this StorageProperties to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.StorageProperties + * @instance + * @returns {Object.} JSON object + */ + StorageProperties.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return StorageProperties; + })(); + v1.DataCatalog = (function() { /** @@ -5742,6 +6039,7 @@ * @property {google.cloud.datacatalog.v1.IDatabaseTableSpec|null} [databaseTableSpec] Entry databaseTableSpec * @property {google.cloud.datacatalog.v1.IDataSourceConnectionSpec|null} [dataSourceConnectionSpec] Entry dataSourceConnectionSpec * @property {google.cloud.datacatalog.v1.IRoutineSpec|null} [routineSpec] Entry routineSpec + * @property {google.cloud.datacatalog.v1.IFilesetSpec|null} [filesetSpec] Entry filesetSpec * @property {string|null} [displayName] Entry displayName * @property {string|null} [description] Entry description * @property {google.cloud.datacatalog.v1.IBusinessContext|null} [businessContext] Entry businessContext @@ -5873,6 +6171,14 @@ */ Entry.prototype.routineSpec = null; + /** + * Entry filesetSpec. + * @member {google.cloud.datacatalog.v1.IFilesetSpec|null|undefined} filesetSpec + * @memberof google.cloud.datacatalog.v1.Entry + * @instance + */ + Entry.prototype.filesetSpec = null; + /** * Entry displayName. * @member {string} displayName @@ -5983,12 +6289,12 @@ /** * Entry spec. - * @member {"databaseTableSpec"|"dataSourceConnectionSpec"|"routineSpec"|undefined} spec + * @member {"databaseTableSpec"|"dataSourceConnectionSpec"|"routineSpec"|"filesetSpec"|undefined} spec * @memberof google.cloud.datacatalog.v1.Entry * @instance */ Object.defineProperty(Entry.prototype, "spec", { - get: $util.oneOfGetter($oneOfFields = ["databaseTableSpec", "dataSourceConnectionSpec", "routineSpec"]), + get: $util.oneOfGetter($oneOfFields = ["databaseTableSpec", "dataSourceConnectionSpec", "routineSpec", "filesetSpec"]), set: $util.oneOfSetter($oneOfFields) }); @@ -6059,6 +6365,8 @@ $root.google.cloud.datacatalog.v1.RoutineSpec.encode(message.routineSpec, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); if (message.fullyQualifiedName != null && Object.hasOwnProperty.call(message, "fullyQualifiedName")) writer.uint32(/* id 29, wireType 2 =*/234).string(message.fullyQualifiedName); + if (message.filesetSpec != null && Object.hasOwnProperty.call(message, "filesetSpec")) + $root.google.cloud.datacatalog.v1.FilesetSpec.encode(message.filesetSpec, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); if (message.businessContext != null && Object.hasOwnProperty.call(message, "businessContext")) $root.google.cloud.datacatalog.v1.BusinessContext.encode(message.businessContext, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); return writer; @@ -6134,6 +6442,9 @@ case 28: message.routineSpec = $root.google.cloud.datacatalog.v1.RoutineSpec.decode(reader, reader.uint32()); break; + case 33: + message.filesetSpec = $root.google.cloud.datacatalog.v1.FilesetSpec.decode(reader, reader.uint32()); + break; case 3: message.displayName = reader.string(); break; @@ -6239,6 +6550,8 @@ case 7: case 8: case 9: + case 10: + case 11: case 14: break; } @@ -6259,6 +6572,7 @@ case 1: case 2: case 3: + case 4: break; } } @@ -6325,6 +6639,16 @@ return "routineSpec." + error; } } + if (message.filesetSpec != null && message.hasOwnProperty("filesetSpec")) { + if (properties.spec === 1) + return "spec: multiple values"; + properties.spec = 1; + { + var error = $root.google.cloud.datacatalog.v1.FilesetSpec.verify(message.filesetSpec); + if (error) + return "filesetSpec." + error; + } + } if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; @@ -6427,6 +6751,14 @@ case 9: message.type = 9; break; + case "LAKE": + case 10: + message.type = 10; + break; + case "ZONE": + case 11: + message.type = 11; + break; case "SERVICE": case 14: message.type = 14; @@ -6451,6 +6783,10 @@ case 3: message.integratedSystem = 3; break; + case "DATAPLEX": + case 4: + message.integratedSystem = 4; + break; } if (object.userSpecifiedSystem != null) message.userSpecifiedSystem = String(object.userSpecifiedSystem); @@ -6484,6 +6820,11 @@ throw TypeError(".google.cloud.datacatalog.v1.Entry.routineSpec: object expected"); message.routineSpec = $root.google.cloud.datacatalog.v1.RoutineSpec.fromObject(object.routineSpec); } + if (object.filesetSpec != null) { + if (typeof object.filesetSpec !== "object") + throw TypeError(".google.cloud.datacatalog.v1.Entry.filesetSpec: object expected"); + message.filesetSpec = $root.google.cloud.datacatalog.v1.FilesetSpec.fromObject(object.filesetSpec); + } if (object.displayName != null) message.displayName = String(object.displayName); if (object.description != null) @@ -6632,6 +6973,11 @@ } if (message.fullyQualifiedName != null && message.hasOwnProperty("fullyQualifiedName")) object.fullyQualifiedName = message.fullyQualifiedName; + if (message.filesetSpec != null && message.hasOwnProperty("filesetSpec")) { + object.filesetSpec = $root.google.cloud.datacatalog.v1.FilesetSpec.toObject(message.filesetSpec, options); + if (options.oneofs) + object.spec = "filesetSpec"; + } if (message.businessContext != null && message.hasOwnProperty("businessContext")) object.businessContext = $root.google.cloud.datacatalog.v1.BusinessContext.toObject(message.businessContext, options); return object; @@ -6658,6 +7004,7 @@ * @memberof google.cloud.datacatalog.v1 * @interface IDatabaseTableSpec * @property {google.cloud.datacatalog.v1.DatabaseTableSpec.TableType|null} [type] DatabaseTableSpec type + * @property {google.cloud.datacatalog.v1.IDataplexTableSpec|null} [dataplexTable] DatabaseTableSpec dataplexTable */ /** @@ -6683,6 +7030,14 @@ */ DatabaseTableSpec.prototype.type = 0; + /** + * DatabaseTableSpec dataplexTable. + * @member {google.cloud.datacatalog.v1.IDataplexTableSpec|null|undefined} dataplexTable + * @memberof google.cloud.datacatalog.v1.DatabaseTableSpec + * @instance + */ + DatabaseTableSpec.prototype.dataplexTable = null; + /** * Creates a new DatabaseTableSpec instance using the specified properties. * @function create @@ -6709,6 +7064,8 @@ writer = $Writer.create(); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.dataplexTable != null && Object.hasOwnProperty.call(message, "dataplexTable")) + $root.google.cloud.datacatalog.v1.DataplexTableSpec.encode(message.dataplexTable, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -6746,6 +7103,9 @@ case 1: message.type = reader.int32(); break; + case 2: + message.dataplexTable = $root.google.cloud.datacatalog.v1.DataplexTableSpec.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -6790,6 +7150,11 @@ case 2: break; } + if (message.dataplexTable != null && message.hasOwnProperty("dataplexTable")) { + var error = $root.google.cloud.datacatalog.v1.DataplexTableSpec.verify(message.dataplexTable); + if (error) + return "dataplexTable." + error; + } return null; }; @@ -6819,6 +7184,11 @@ message.type = 2; break; } + if (object.dataplexTable != null) { + if (typeof object.dataplexTable !== "object") + throw TypeError(".google.cloud.datacatalog.v1.DatabaseTableSpec.dataplexTable: object expected"); + message.dataplexTable = $root.google.cloud.datacatalog.v1.DataplexTableSpec.fromObject(object.dataplexTable); + } return message; }; @@ -6835,10 +7205,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.type = options.enums === String ? "TABLE_TYPE_UNSPECIFIED" : 0; + object.dataplexTable = null; + } if (message.type != null && message.hasOwnProperty("type")) object.type = options.enums === String ? $root.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType[message.type] : message.type; + if (message.dataplexTable != null && message.hasOwnProperty("dataplexTable")) + object.dataplexTable = $root.google.cloud.datacatalog.v1.DataplexTableSpec.toObject(message.dataplexTable, options); return object; }; @@ -6872,24 +7246,24 @@ return DatabaseTableSpec; })(); - v1.DataSourceConnectionSpec = (function() { + v1.FilesetSpec = (function() { /** - * Properties of a DataSourceConnectionSpec. + * Properties of a FilesetSpec. * @memberof google.cloud.datacatalog.v1 - * @interface IDataSourceConnectionSpec - * @property {google.cloud.datacatalog.v1.IBigQueryConnectionSpec|null} [bigqueryConnectionSpec] DataSourceConnectionSpec bigqueryConnectionSpec + * @interface IFilesetSpec + * @property {google.cloud.datacatalog.v1.IDataplexFilesetSpec|null} [dataplexFileset] FilesetSpec dataplexFileset */ /** - * Constructs a new DataSourceConnectionSpec. + * Constructs a new FilesetSpec. * @memberof google.cloud.datacatalog.v1 - * @classdesc Represents a DataSourceConnectionSpec. - * @implements IDataSourceConnectionSpec + * @classdesc Represents a FilesetSpec. + * @implements IFilesetSpec * @constructor - * @param {google.cloud.datacatalog.v1.IDataSourceConnectionSpec=} [properties] Properties to set + * @param {google.cloud.datacatalog.v1.IFilesetSpec=} [properties] Properties to set */ - function DataSourceConnectionSpec(properties) { + function FilesetSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6897,75 +7271,75 @@ } /** - * DataSourceConnectionSpec bigqueryConnectionSpec. - * @member {google.cloud.datacatalog.v1.IBigQueryConnectionSpec|null|undefined} bigqueryConnectionSpec - * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * FilesetSpec dataplexFileset. + * @member {google.cloud.datacatalog.v1.IDataplexFilesetSpec|null|undefined} dataplexFileset + * @memberof google.cloud.datacatalog.v1.FilesetSpec * @instance */ - DataSourceConnectionSpec.prototype.bigqueryConnectionSpec = null; + FilesetSpec.prototype.dataplexFileset = null; /** - * Creates a new DataSourceConnectionSpec instance using the specified properties. + * Creates a new FilesetSpec instance using the specified properties. * @function create - * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @memberof google.cloud.datacatalog.v1.FilesetSpec * @static - * @param {google.cloud.datacatalog.v1.IDataSourceConnectionSpec=} [properties] Properties to set - * @returns {google.cloud.datacatalog.v1.DataSourceConnectionSpec} DataSourceConnectionSpec instance + * @param {google.cloud.datacatalog.v1.IFilesetSpec=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.FilesetSpec} FilesetSpec instance */ - DataSourceConnectionSpec.create = function create(properties) { - return new DataSourceConnectionSpec(properties); + FilesetSpec.create = function create(properties) { + return new FilesetSpec(properties); }; /** - * Encodes the specified DataSourceConnectionSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.DataSourceConnectionSpec.verify|verify} messages. + * Encodes the specified FilesetSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.FilesetSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @memberof google.cloud.datacatalog.v1.FilesetSpec * @static - * @param {google.cloud.datacatalog.v1.IDataSourceConnectionSpec} message DataSourceConnectionSpec message or plain object to encode + * @param {google.cloud.datacatalog.v1.IFilesetSpec} message FilesetSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSourceConnectionSpec.encode = function encode(message, writer) { + FilesetSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bigqueryConnectionSpec != null && Object.hasOwnProperty.call(message, "bigqueryConnectionSpec")) - $root.google.cloud.datacatalog.v1.BigQueryConnectionSpec.encode(message.bigqueryConnectionSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.dataplexFileset != null && Object.hasOwnProperty.call(message, "dataplexFileset")) + $root.google.cloud.datacatalog.v1.DataplexFilesetSpec.encode(message.dataplexFileset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DataSourceConnectionSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.DataSourceConnectionSpec.verify|verify} messages. + * Encodes the specified FilesetSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.FilesetSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @memberof google.cloud.datacatalog.v1.FilesetSpec * @static - * @param {google.cloud.datacatalog.v1.IDataSourceConnectionSpec} message DataSourceConnectionSpec message or plain object to encode + * @param {google.cloud.datacatalog.v1.IFilesetSpec} message FilesetSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSourceConnectionSpec.encodeDelimited = function encodeDelimited(message, writer) { + FilesetSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataSourceConnectionSpec message from the specified reader or buffer. + * Decodes a FilesetSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @memberof google.cloud.datacatalog.v1.FilesetSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.datacatalog.v1.DataSourceConnectionSpec} DataSourceConnectionSpec + * @returns {google.cloud.datacatalog.v1.FilesetSpec} FilesetSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSourceConnectionSpec.decode = function decode(reader, length) { + FilesetSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.DataSourceConnectionSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.FilesetSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.bigqueryConnectionSpec = $root.google.cloud.datacatalog.v1.BigQueryConnectionSpec.decode(reader, reader.uint32()); + message.dataplexFileset = $root.google.cloud.datacatalog.v1.DataplexFilesetSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6976,66 +7350,258 @@ }; /** - * Decodes a DataSourceConnectionSpec message from the specified reader or buffer, length delimited. + * Decodes a FilesetSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @memberof google.cloud.datacatalog.v1.FilesetSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.datacatalog.v1.DataSourceConnectionSpec} DataSourceConnectionSpec + * @returns {google.cloud.datacatalog.v1.FilesetSpec} FilesetSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSourceConnectionSpec.decodeDelimited = function decodeDelimited(reader) { + FilesetSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataSourceConnectionSpec message. + * Verifies a FilesetSpec message. * @function verify - * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @memberof google.cloud.datacatalog.v1.FilesetSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DataSourceConnectionSpec.verify = function verify(message) { + FilesetSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.bigqueryConnectionSpec != null && message.hasOwnProperty("bigqueryConnectionSpec")) { - var error = $root.google.cloud.datacatalog.v1.BigQueryConnectionSpec.verify(message.bigqueryConnectionSpec); + if (message.dataplexFileset != null && message.hasOwnProperty("dataplexFileset")) { + var error = $root.google.cloud.datacatalog.v1.DataplexFilesetSpec.verify(message.dataplexFileset); if (error) - return "bigqueryConnectionSpec." + error; + return "dataplexFileset." + error; } return null; }; /** - * Creates a DataSourceConnectionSpec message from a plain object. Also converts values to their respective internal types. + * Creates a FilesetSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @memberof google.cloud.datacatalog.v1.FilesetSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.datacatalog.v1.DataSourceConnectionSpec} DataSourceConnectionSpec + * @returns {google.cloud.datacatalog.v1.FilesetSpec} FilesetSpec */ - DataSourceConnectionSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.datacatalog.v1.DataSourceConnectionSpec) + FilesetSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.FilesetSpec) return object; - var message = new $root.google.cloud.datacatalog.v1.DataSourceConnectionSpec(); - if (object.bigqueryConnectionSpec != null) { - if (typeof object.bigqueryConnectionSpec !== "object") - throw TypeError(".google.cloud.datacatalog.v1.DataSourceConnectionSpec.bigqueryConnectionSpec: object expected"); - message.bigqueryConnectionSpec = $root.google.cloud.datacatalog.v1.BigQueryConnectionSpec.fromObject(object.bigqueryConnectionSpec); + var message = new $root.google.cloud.datacatalog.v1.FilesetSpec(); + if (object.dataplexFileset != null) { + if (typeof object.dataplexFileset !== "object") + throw TypeError(".google.cloud.datacatalog.v1.FilesetSpec.dataplexFileset: object expected"); + message.dataplexFileset = $root.google.cloud.datacatalog.v1.DataplexFilesetSpec.fromObject(object.dataplexFileset); } return message; }; /** - * Creates a plain object from a DataSourceConnectionSpec message. Also converts values to other types if specified. + * Creates a plain object from a FilesetSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @memberof google.cloud.datacatalog.v1.FilesetSpec * @static - * @param {google.cloud.datacatalog.v1.DataSourceConnectionSpec} message DataSourceConnectionSpec + * @param {google.cloud.datacatalog.v1.FilesetSpec} message FilesetSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FilesetSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.dataplexFileset = null; + if (message.dataplexFileset != null && message.hasOwnProperty("dataplexFileset")) + object.dataplexFileset = $root.google.cloud.datacatalog.v1.DataplexFilesetSpec.toObject(message.dataplexFileset, options); + return object; + }; + + /** + * Converts this FilesetSpec to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.FilesetSpec + * @instance + * @returns {Object.} JSON object + */ + FilesetSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FilesetSpec; + })(); + + v1.DataSourceConnectionSpec = (function() { + + /** + * Properties of a DataSourceConnectionSpec. + * @memberof google.cloud.datacatalog.v1 + * @interface IDataSourceConnectionSpec + * @property {google.cloud.datacatalog.v1.IBigQueryConnectionSpec|null} [bigqueryConnectionSpec] DataSourceConnectionSpec bigqueryConnectionSpec + */ + + /** + * Constructs a new DataSourceConnectionSpec. + * @memberof google.cloud.datacatalog.v1 + * @classdesc Represents a DataSourceConnectionSpec. + * @implements IDataSourceConnectionSpec + * @constructor + * @param {google.cloud.datacatalog.v1.IDataSourceConnectionSpec=} [properties] Properties to set + */ + function DataSourceConnectionSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataSourceConnectionSpec bigqueryConnectionSpec. + * @member {google.cloud.datacatalog.v1.IBigQueryConnectionSpec|null|undefined} bigqueryConnectionSpec + * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @instance + */ + DataSourceConnectionSpec.prototype.bigqueryConnectionSpec = null; + + /** + * Creates a new DataSourceConnectionSpec instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @static + * @param {google.cloud.datacatalog.v1.IDataSourceConnectionSpec=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.DataSourceConnectionSpec} DataSourceConnectionSpec instance + */ + DataSourceConnectionSpec.create = function create(properties) { + return new DataSourceConnectionSpec(properties); + }; + + /** + * Encodes the specified DataSourceConnectionSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.DataSourceConnectionSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @static + * @param {google.cloud.datacatalog.v1.IDataSourceConnectionSpec} message DataSourceConnectionSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSourceConnectionSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bigqueryConnectionSpec != null && Object.hasOwnProperty.call(message, "bigqueryConnectionSpec")) + $root.google.cloud.datacatalog.v1.BigQueryConnectionSpec.encode(message.bigqueryConnectionSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DataSourceConnectionSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.DataSourceConnectionSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @static + * @param {google.cloud.datacatalog.v1.IDataSourceConnectionSpec} message DataSourceConnectionSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSourceConnectionSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataSourceConnectionSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.DataSourceConnectionSpec} DataSourceConnectionSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSourceConnectionSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.DataSourceConnectionSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bigqueryConnectionSpec = $root.google.cloud.datacatalog.v1.BigQueryConnectionSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataSourceConnectionSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.DataSourceConnectionSpec} DataSourceConnectionSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSourceConnectionSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataSourceConnectionSpec message. + * @function verify + * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataSourceConnectionSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bigqueryConnectionSpec != null && message.hasOwnProperty("bigqueryConnectionSpec")) { + var error = $root.google.cloud.datacatalog.v1.BigQueryConnectionSpec.verify(message.bigqueryConnectionSpec); + if (error) + return "bigqueryConnectionSpec." + error; + } + return null; + }; + + /** + * Creates a DataSourceConnectionSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.DataSourceConnectionSpec} DataSourceConnectionSpec + */ + DataSourceConnectionSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.DataSourceConnectionSpec) + return object; + var message = new $root.google.cloud.datacatalog.v1.DataSourceConnectionSpec(); + if (object.bigqueryConnectionSpec != null) { + if (typeof object.bigqueryConnectionSpec !== "object") + throw TypeError(".google.cloud.datacatalog.v1.DataSourceConnectionSpec.bigqueryConnectionSpec: object expected"); + message.bigqueryConnectionSpec = $root.google.cloud.datacatalog.v1.BigQueryConnectionSpec.fromObject(object.bigqueryConnectionSpec); + } + return message; + }; + + /** + * Creates a plain object from a DataSourceConnectionSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.DataSourceConnectionSpec + * @static + * @param {google.cloud.datacatalog.v1.DataSourceConnectionSpec} message DataSourceConnectionSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -13475,6 +14041,8 @@ * @property {number} DATABASE=7 DATABASE value * @property {number} DATA_SOURCE_CONNECTION=8 DATA_SOURCE_CONNECTION value * @property {number} ROUTINE=9 ROUTINE value + * @property {number} LAKE=10 LAKE value + * @property {number} ZONE=11 ZONE value * @property {number} SERVICE=14 SERVICE value */ v1.EntryType = (function() { @@ -13488,31 +14056,33 @@ values[valuesById[7] = "DATABASE"] = 7; values[valuesById[8] = "DATA_SOURCE_CONNECTION"] = 8; values[valuesById[9] = "ROUTINE"] = 9; + values[valuesById[10] = "LAKE"] = 10; + values[valuesById[11] = "ZONE"] = 11; values[valuesById[14] = "SERVICE"] = 14; return values; })(); - v1.GcsFilesetSpec = (function() { + v1.DataplexSpec = (function() { /** - * Properties of a GcsFilesetSpec. + * Properties of a DataplexSpec. * @memberof google.cloud.datacatalog.v1 - * @interface IGcsFilesetSpec - * @property {Array.|null} [filePatterns] GcsFilesetSpec filePatterns - * @property {Array.|null} [sampleGcsFileSpecs] GcsFilesetSpec sampleGcsFileSpecs + * @interface IDataplexSpec + * @property {string|null} [asset] DataplexSpec asset + * @property {google.cloud.datacatalog.v1.IPhysicalSchema|null} [dataFormat] DataplexSpec dataFormat + * @property {string|null} [compressionFormat] DataplexSpec compressionFormat + * @property {string|null} [projectId] DataplexSpec projectId */ /** - * Constructs a new GcsFilesetSpec. + * Constructs a new DataplexSpec. * @memberof google.cloud.datacatalog.v1 - * @classdesc Represents a GcsFilesetSpec. - * @implements IGcsFilesetSpec + * @classdesc Represents a DataplexSpec. + * @implements IDataplexSpec * @constructor - * @param {google.cloud.datacatalog.v1.IGcsFilesetSpec=} [properties] Properties to set + * @param {google.cloud.datacatalog.v1.IDataplexSpec=} [properties] Properties to set */ - function GcsFilesetSpec(properties) { - this.filePatterns = []; - this.sampleGcsFileSpecs = []; + function DataplexSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13520,94 +14090,114 @@ } /** - * GcsFilesetSpec filePatterns. - * @member {Array.} filePatterns - * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * DataplexSpec asset. + * @member {string} asset + * @memberof google.cloud.datacatalog.v1.DataplexSpec * @instance */ - GcsFilesetSpec.prototype.filePatterns = $util.emptyArray; + DataplexSpec.prototype.asset = ""; /** - * GcsFilesetSpec sampleGcsFileSpecs. - * @member {Array.} sampleGcsFileSpecs - * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * DataplexSpec dataFormat. + * @member {google.cloud.datacatalog.v1.IPhysicalSchema|null|undefined} dataFormat + * @memberof google.cloud.datacatalog.v1.DataplexSpec * @instance */ - GcsFilesetSpec.prototype.sampleGcsFileSpecs = $util.emptyArray; + DataplexSpec.prototype.dataFormat = null; /** - * Creates a new GcsFilesetSpec instance using the specified properties. + * DataplexSpec compressionFormat. + * @member {string} compressionFormat + * @memberof google.cloud.datacatalog.v1.DataplexSpec + * @instance + */ + DataplexSpec.prototype.compressionFormat = ""; + + /** + * DataplexSpec projectId. + * @member {string} projectId + * @memberof google.cloud.datacatalog.v1.DataplexSpec + * @instance + */ + DataplexSpec.prototype.projectId = ""; + + /** + * Creates a new DataplexSpec instance using the specified properties. * @function create - * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @memberof google.cloud.datacatalog.v1.DataplexSpec * @static - * @param {google.cloud.datacatalog.v1.IGcsFilesetSpec=} [properties] Properties to set - * @returns {google.cloud.datacatalog.v1.GcsFilesetSpec} GcsFilesetSpec instance + * @param {google.cloud.datacatalog.v1.IDataplexSpec=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.DataplexSpec} DataplexSpec instance */ - GcsFilesetSpec.create = function create(properties) { - return new GcsFilesetSpec(properties); + DataplexSpec.create = function create(properties) { + return new DataplexSpec(properties); }; /** - * Encodes the specified GcsFilesetSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.GcsFilesetSpec.verify|verify} messages. + * Encodes the specified DataplexSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @memberof google.cloud.datacatalog.v1.DataplexSpec * @static - * @param {google.cloud.datacatalog.v1.IGcsFilesetSpec} message GcsFilesetSpec message or plain object to encode + * @param {google.cloud.datacatalog.v1.IDataplexSpec} message DataplexSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GcsFilesetSpec.encode = function encode(message, writer) { + DataplexSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.filePatterns != null && message.filePatterns.length) - for (var i = 0; i < message.filePatterns.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.filePatterns[i]); - if (message.sampleGcsFileSpecs != null && message.sampleGcsFileSpecs.length) - for (var i = 0; i < message.sampleGcsFileSpecs.length; ++i) - $root.google.cloud.datacatalog.v1.GcsFileSpec.encode(message.sampleGcsFileSpecs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.asset != null && Object.hasOwnProperty.call(message, "asset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.asset); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + $root.google.cloud.datacatalog.v1.PhysicalSchema.encode(message.dataFormat, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.compressionFormat != null && Object.hasOwnProperty.call(message, "compressionFormat")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.compressionFormat); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.projectId); return writer; }; /** - * Encodes the specified GcsFilesetSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.GcsFilesetSpec.verify|verify} messages. + * Encodes the specified DataplexSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @memberof google.cloud.datacatalog.v1.DataplexSpec * @static - * @param {google.cloud.datacatalog.v1.IGcsFilesetSpec} message GcsFilesetSpec message or plain object to encode + * @param {google.cloud.datacatalog.v1.IDataplexSpec} message DataplexSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GcsFilesetSpec.encodeDelimited = function encodeDelimited(message, writer) { + DataplexSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GcsFilesetSpec message from the specified reader or buffer. + * Decodes a DataplexSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @memberof google.cloud.datacatalog.v1.DataplexSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.datacatalog.v1.GcsFilesetSpec} GcsFilesetSpec + * @returns {google.cloud.datacatalog.v1.DataplexSpec} DataplexSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GcsFilesetSpec.decode = function decode(reader, length) { + DataplexSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.GcsFilesetSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.DataplexSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.filePatterns && message.filePatterns.length)) - message.filePatterns = []; - message.filePatterns.push(reader.string()); + message.asset = reader.string(); break; case 2: - if (!(message.sampleGcsFileSpecs && message.sampleGcsFileSpecs.length)) - message.sampleGcsFileSpecs = []; - message.sampleGcsFileSpecs.push($root.google.cloud.datacatalog.v1.GcsFileSpec.decode(reader, reader.uint32())); + message.dataFormat = $root.google.cloud.datacatalog.v1.PhysicalSchema.decode(reader, reader.uint32()); + break; + case 3: + message.compressionFormat = reader.string(); + break; + case 4: + message.projectId = reader.string(); break; default: reader.skipType(tag & 7); @@ -13618,34 +14208,2428 @@ }; /** - * Decodes a GcsFilesetSpec message from the specified reader or buffer, length delimited. + * Decodes a DataplexSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @memberof google.cloud.datacatalog.v1.DataplexSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.datacatalog.v1.GcsFilesetSpec} GcsFilesetSpec + * @returns {google.cloud.datacatalog.v1.DataplexSpec} DataplexSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GcsFilesetSpec.decodeDelimited = function decodeDelimited(reader) { + DataplexSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GcsFilesetSpec message. + * Verifies a DataplexSpec message. * @function verify - * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @memberof google.cloud.datacatalog.v1.DataplexSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GcsFilesetSpec.verify = function verify(message) { + DataplexSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.filePatterns != null && message.hasOwnProperty("filePatterns")) { - if (!Array.isArray(message.filePatterns)) + if (message.asset != null && message.hasOwnProperty("asset")) + if (!$util.isString(message.asset)) + return "asset: string expected"; + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) { + var error = $root.google.cloud.datacatalog.v1.PhysicalSchema.verify(message.dataFormat); + if (error) + return "dataFormat." + error; + } + if (message.compressionFormat != null && message.hasOwnProperty("compressionFormat")) + if (!$util.isString(message.compressionFormat)) + return "compressionFormat: string expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + return null; + }; + + /** + * Creates a DataplexSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.DataplexSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.DataplexSpec} DataplexSpec + */ + DataplexSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.DataplexSpec) + return object; + var message = new $root.google.cloud.datacatalog.v1.DataplexSpec(); + if (object.asset != null) + message.asset = String(object.asset); + if (object.dataFormat != null) { + if (typeof object.dataFormat !== "object") + throw TypeError(".google.cloud.datacatalog.v1.DataplexSpec.dataFormat: object expected"); + message.dataFormat = $root.google.cloud.datacatalog.v1.PhysicalSchema.fromObject(object.dataFormat); + } + if (object.compressionFormat != null) + message.compressionFormat = String(object.compressionFormat); + if (object.projectId != null) + message.projectId = String(object.projectId); + return message; + }; + + /** + * Creates a plain object from a DataplexSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.DataplexSpec + * @static + * @param {google.cloud.datacatalog.v1.DataplexSpec} message DataplexSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataplexSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.asset = ""; + object.dataFormat = null; + object.compressionFormat = ""; + object.projectId = ""; + } + if (message.asset != null && message.hasOwnProperty("asset")) + object.asset = message.asset; + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = $root.google.cloud.datacatalog.v1.PhysicalSchema.toObject(message.dataFormat, options); + if (message.compressionFormat != null && message.hasOwnProperty("compressionFormat")) + object.compressionFormat = message.compressionFormat; + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + return object; + }; + + /** + * Converts this DataplexSpec to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.DataplexSpec + * @instance + * @returns {Object.} JSON object + */ + DataplexSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DataplexSpec; + })(); + + v1.DataplexFilesetSpec = (function() { + + /** + * Properties of a DataplexFilesetSpec. + * @memberof google.cloud.datacatalog.v1 + * @interface IDataplexFilesetSpec + * @property {google.cloud.datacatalog.v1.IDataplexSpec|null} [dataplexSpec] DataplexFilesetSpec dataplexSpec + */ + + /** + * Constructs a new DataplexFilesetSpec. + * @memberof google.cloud.datacatalog.v1 + * @classdesc Represents a DataplexFilesetSpec. + * @implements IDataplexFilesetSpec + * @constructor + * @param {google.cloud.datacatalog.v1.IDataplexFilesetSpec=} [properties] Properties to set + */ + function DataplexFilesetSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataplexFilesetSpec dataplexSpec. + * @member {google.cloud.datacatalog.v1.IDataplexSpec|null|undefined} dataplexSpec + * @memberof google.cloud.datacatalog.v1.DataplexFilesetSpec + * @instance + */ + DataplexFilesetSpec.prototype.dataplexSpec = null; + + /** + * Creates a new DataplexFilesetSpec instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.DataplexFilesetSpec + * @static + * @param {google.cloud.datacatalog.v1.IDataplexFilesetSpec=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.DataplexFilesetSpec} DataplexFilesetSpec instance + */ + DataplexFilesetSpec.create = function create(properties) { + return new DataplexFilesetSpec(properties); + }; + + /** + * Encodes the specified DataplexFilesetSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexFilesetSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.DataplexFilesetSpec + * @static + * @param {google.cloud.datacatalog.v1.IDataplexFilesetSpec} message DataplexFilesetSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexFilesetSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataplexSpec != null && Object.hasOwnProperty.call(message, "dataplexSpec")) + $root.google.cloud.datacatalog.v1.DataplexSpec.encode(message.dataplexSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DataplexFilesetSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexFilesetSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.DataplexFilesetSpec + * @static + * @param {google.cloud.datacatalog.v1.IDataplexFilesetSpec} message DataplexFilesetSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexFilesetSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataplexFilesetSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.DataplexFilesetSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.DataplexFilesetSpec} DataplexFilesetSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexFilesetSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.DataplexFilesetSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataplexSpec = $root.google.cloud.datacatalog.v1.DataplexSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataplexFilesetSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.DataplexFilesetSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.DataplexFilesetSpec} DataplexFilesetSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexFilesetSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataplexFilesetSpec message. + * @function verify + * @memberof google.cloud.datacatalog.v1.DataplexFilesetSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataplexFilesetSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataplexSpec != null && message.hasOwnProperty("dataplexSpec")) { + var error = $root.google.cloud.datacatalog.v1.DataplexSpec.verify(message.dataplexSpec); + if (error) + return "dataplexSpec." + error; + } + return null; + }; + + /** + * Creates a DataplexFilesetSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.DataplexFilesetSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.DataplexFilesetSpec} DataplexFilesetSpec + */ + DataplexFilesetSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.DataplexFilesetSpec) + return object; + var message = new $root.google.cloud.datacatalog.v1.DataplexFilesetSpec(); + if (object.dataplexSpec != null) { + if (typeof object.dataplexSpec !== "object") + throw TypeError(".google.cloud.datacatalog.v1.DataplexFilesetSpec.dataplexSpec: object expected"); + message.dataplexSpec = $root.google.cloud.datacatalog.v1.DataplexSpec.fromObject(object.dataplexSpec); + } + return message; + }; + + /** + * Creates a plain object from a DataplexFilesetSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.DataplexFilesetSpec + * @static + * @param {google.cloud.datacatalog.v1.DataplexFilesetSpec} message DataplexFilesetSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataplexFilesetSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.dataplexSpec = null; + if (message.dataplexSpec != null && message.hasOwnProperty("dataplexSpec")) + object.dataplexSpec = $root.google.cloud.datacatalog.v1.DataplexSpec.toObject(message.dataplexSpec, options); + return object; + }; + + /** + * Converts this DataplexFilesetSpec to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.DataplexFilesetSpec + * @instance + * @returns {Object.} JSON object + */ + DataplexFilesetSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DataplexFilesetSpec; + })(); + + v1.DataplexTableSpec = (function() { + + /** + * Properties of a DataplexTableSpec. + * @memberof google.cloud.datacatalog.v1 + * @interface IDataplexTableSpec + * @property {Array.|null} [externalTables] DataplexTableSpec externalTables + * @property {google.cloud.datacatalog.v1.IDataplexSpec|null} [dataplexSpec] DataplexTableSpec dataplexSpec + * @property {boolean|null} [userManaged] DataplexTableSpec userManaged + */ + + /** + * Constructs a new DataplexTableSpec. + * @memberof google.cloud.datacatalog.v1 + * @classdesc Represents a DataplexTableSpec. + * @implements IDataplexTableSpec + * @constructor + * @param {google.cloud.datacatalog.v1.IDataplexTableSpec=} [properties] Properties to set + */ + function DataplexTableSpec(properties) { + this.externalTables = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataplexTableSpec externalTables. + * @member {Array.} externalTables + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @instance + */ + DataplexTableSpec.prototype.externalTables = $util.emptyArray; + + /** + * DataplexTableSpec dataplexSpec. + * @member {google.cloud.datacatalog.v1.IDataplexSpec|null|undefined} dataplexSpec + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @instance + */ + DataplexTableSpec.prototype.dataplexSpec = null; + + /** + * DataplexTableSpec userManaged. + * @member {boolean} userManaged + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @instance + */ + DataplexTableSpec.prototype.userManaged = false; + + /** + * Creates a new DataplexTableSpec instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @static + * @param {google.cloud.datacatalog.v1.IDataplexTableSpec=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.DataplexTableSpec} DataplexTableSpec instance + */ + DataplexTableSpec.create = function create(properties) { + return new DataplexTableSpec(properties); + }; + + /** + * Encodes the specified DataplexTableSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexTableSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @static + * @param {google.cloud.datacatalog.v1.IDataplexTableSpec} message DataplexTableSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexTableSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.externalTables != null && message.externalTables.length) + for (var i = 0; i < message.externalTables.length; ++i) + $root.google.cloud.datacatalog.v1.DataplexExternalTable.encode(message.externalTables[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.dataplexSpec != null && Object.hasOwnProperty.call(message, "dataplexSpec")) + $root.google.cloud.datacatalog.v1.DataplexSpec.encode(message.dataplexSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.userManaged != null && Object.hasOwnProperty.call(message, "userManaged")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.userManaged); + return writer; + }; + + /** + * Encodes the specified DataplexTableSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexTableSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @static + * @param {google.cloud.datacatalog.v1.IDataplexTableSpec} message DataplexTableSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexTableSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataplexTableSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.DataplexTableSpec} DataplexTableSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexTableSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.DataplexTableSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.externalTables && message.externalTables.length)) + message.externalTables = []; + message.externalTables.push($root.google.cloud.datacatalog.v1.DataplexExternalTable.decode(reader, reader.uint32())); + break; + case 2: + message.dataplexSpec = $root.google.cloud.datacatalog.v1.DataplexSpec.decode(reader, reader.uint32()); + break; + case 3: + message.userManaged = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataplexTableSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.DataplexTableSpec} DataplexTableSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexTableSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataplexTableSpec message. + * @function verify + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataplexTableSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.externalTables != null && message.hasOwnProperty("externalTables")) { + if (!Array.isArray(message.externalTables)) + return "externalTables: array expected"; + for (var i = 0; i < message.externalTables.length; ++i) { + var error = $root.google.cloud.datacatalog.v1.DataplexExternalTable.verify(message.externalTables[i]); + if (error) + return "externalTables." + error; + } + } + if (message.dataplexSpec != null && message.hasOwnProperty("dataplexSpec")) { + var error = $root.google.cloud.datacatalog.v1.DataplexSpec.verify(message.dataplexSpec); + if (error) + return "dataplexSpec." + error; + } + if (message.userManaged != null && message.hasOwnProperty("userManaged")) + if (typeof message.userManaged !== "boolean") + return "userManaged: boolean expected"; + return null; + }; + + /** + * Creates a DataplexTableSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.DataplexTableSpec} DataplexTableSpec + */ + DataplexTableSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.DataplexTableSpec) + return object; + var message = new $root.google.cloud.datacatalog.v1.DataplexTableSpec(); + if (object.externalTables) { + if (!Array.isArray(object.externalTables)) + throw TypeError(".google.cloud.datacatalog.v1.DataplexTableSpec.externalTables: array expected"); + message.externalTables = []; + for (var i = 0; i < object.externalTables.length; ++i) { + if (typeof object.externalTables[i] !== "object") + throw TypeError(".google.cloud.datacatalog.v1.DataplexTableSpec.externalTables: object expected"); + message.externalTables[i] = $root.google.cloud.datacatalog.v1.DataplexExternalTable.fromObject(object.externalTables[i]); + } + } + if (object.dataplexSpec != null) { + if (typeof object.dataplexSpec !== "object") + throw TypeError(".google.cloud.datacatalog.v1.DataplexTableSpec.dataplexSpec: object expected"); + message.dataplexSpec = $root.google.cloud.datacatalog.v1.DataplexSpec.fromObject(object.dataplexSpec); + } + if (object.userManaged != null) + message.userManaged = Boolean(object.userManaged); + return message; + }; + + /** + * Creates a plain object from a DataplexTableSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @static + * @param {google.cloud.datacatalog.v1.DataplexTableSpec} message DataplexTableSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataplexTableSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.externalTables = []; + if (options.defaults) { + object.dataplexSpec = null; + object.userManaged = false; + } + if (message.externalTables && message.externalTables.length) { + object.externalTables = []; + for (var j = 0; j < message.externalTables.length; ++j) + object.externalTables[j] = $root.google.cloud.datacatalog.v1.DataplexExternalTable.toObject(message.externalTables[j], options); + } + if (message.dataplexSpec != null && message.hasOwnProperty("dataplexSpec")) + object.dataplexSpec = $root.google.cloud.datacatalog.v1.DataplexSpec.toObject(message.dataplexSpec, options); + if (message.userManaged != null && message.hasOwnProperty("userManaged")) + object.userManaged = message.userManaged; + return object; + }; + + /** + * Converts this DataplexTableSpec to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.DataplexTableSpec + * @instance + * @returns {Object.} JSON object + */ + DataplexTableSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DataplexTableSpec; + })(); + + v1.DataplexExternalTable = (function() { + + /** + * Properties of a DataplexExternalTable. + * @memberof google.cloud.datacatalog.v1 + * @interface IDataplexExternalTable + * @property {google.cloud.datacatalog.v1.IntegratedSystem|null} [system] DataplexExternalTable system + * @property {string|null} [fullyQualifiedName] DataplexExternalTable fullyQualifiedName + * @property {string|null} [googleCloudResource] DataplexExternalTable googleCloudResource + * @property {string|null} [dataCatalogEntry] DataplexExternalTable dataCatalogEntry + */ + + /** + * Constructs a new DataplexExternalTable. + * @memberof google.cloud.datacatalog.v1 + * @classdesc Represents a DataplexExternalTable. + * @implements IDataplexExternalTable + * @constructor + * @param {google.cloud.datacatalog.v1.IDataplexExternalTable=} [properties] Properties to set + */ + function DataplexExternalTable(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataplexExternalTable system. + * @member {google.cloud.datacatalog.v1.IntegratedSystem} system + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @instance + */ + DataplexExternalTable.prototype.system = 0; + + /** + * DataplexExternalTable fullyQualifiedName. + * @member {string} fullyQualifiedName + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @instance + */ + DataplexExternalTable.prototype.fullyQualifiedName = ""; + + /** + * DataplexExternalTable googleCloudResource. + * @member {string} googleCloudResource + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @instance + */ + DataplexExternalTable.prototype.googleCloudResource = ""; + + /** + * DataplexExternalTable dataCatalogEntry. + * @member {string} dataCatalogEntry + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @instance + */ + DataplexExternalTable.prototype.dataCatalogEntry = ""; + + /** + * Creates a new DataplexExternalTable instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @static + * @param {google.cloud.datacatalog.v1.IDataplexExternalTable=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.DataplexExternalTable} DataplexExternalTable instance + */ + DataplexExternalTable.create = function create(properties) { + return new DataplexExternalTable(properties); + }; + + /** + * Encodes the specified DataplexExternalTable message. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexExternalTable.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @static + * @param {google.cloud.datacatalog.v1.IDataplexExternalTable} message DataplexExternalTable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexExternalTable.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.system != null && Object.hasOwnProperty.call(message, "system")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.system); + if (message.googleCloudResource != null && Object.hasOwnProperty.call(message, "googleCloudResource")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.googleCloudResource); + if (message.dataCatalogEntry != null && Object.hasOwnProperty.call(message, "dataCatalogEntry")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dataCatalogEntry); + if (message.fullyQualifiedName != null && Object.hasOwnProperty.call(message, "fullyQualifiedName")) + writer.uint32(/* id 28, wireType 2 =*/226).string(message.fullyQualifiedName); + return writer; + }; + + /** + * Encodes the specified DataplexExternalTable message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.DataplexExternalTable.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @static + * @param {google.cloud.datacatalog.v1.IDataplexExternalTable} message DataplexExternalTable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexExternalTable.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataplexExternalTable message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.DataplexExternalTable} DataplexExternalTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexExternalTable.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.DataplexExternalTable(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.system = reader.int32(); + break; + case 28: + message.fullyQualifiedName = reader.string(); + break; + case 3: + message.googleCloudResource = reader.string(); + break; + case 4: + message.dataCatalogEntry = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataplexExternalTable message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.DataplexExternalTable} DataplexExternalTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexExternalTable.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataplexExternalTable message. + * @function verify + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataplexExternalTable.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.system != null && message.hasOwnProperty("system")) + switch (message.system) { + default: + return "system: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.fullyQualifiedName != null && message.hasOwnProperty("fullyQualifiedName")) + if (!$util.isString(message.fullyQualifiedName)) + return "fullyQualifiedName: string expected"; + if (message.googleCloudResource != null && message.hasOwnProperty("googleCloudResource")) + if (!$util.isString(message.googleCloudResource)) + return "googleCloudResource: string expected"; + if (message.dataCatalogEntry != null && message.hasOwnProperty("dataCatalogEntry")) + if (!$util.isString(message.dataCatalogEntry)) + return "dataCatalogEntry: string expected"; + return null; + }; + + /** + * Creates a DataplexExternalTable message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.DataplexExternalTable} DataplexExternalTable + */ + DataplexExternalTable.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.DataplexExternalTable) + return object; + var message = new $root.google.cloud.datacatalog.v1.DataplexExternalTable(); + switch (object.system) { + case "INTEGRATED_SYSTEM_UNSPECIFIED": + case 0: + message.system = 0; + break; + case "BIGQUERY": + case 1: + message.system = 1; + break; + case "CLOUD_PUBSUB": + case 2: + message.system = 2; + break; + case "DATAPROC_METASTORE": + case 3: + message.system = 3; + break; + case "DATAPLEX": + case 4: + message.system = 4; + break; + } + if (object.fullyQualifiedName != null) + message.fullyQualifiedName = String(object.fullyQualifiedName); + if (object.googleCloudResource != null) + message.googleCloudResource = String(object.googleCloudResource); + if (object.dataCatalogEntry != null) + message.dataCatalogEntry = String(object.dataCatalogEntry); + return message; + }; + + /** + * Creates a plain object from a DataplexExternalTable message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @static + * @param {google.cloud.datacatalog.v1.DataplexExternalTable} message DataplexExternalTable + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataplexExternalTable.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.system = options.enums === String ? "INTEGRATED_SYSTEM_UNSPECIFIED" : 0; + object.googleCloudResource = ""; + object.dataCatalogEntry = ""; + object.fullyQualifiedName = ""; + } + if (message.system != null && message.hasOwnProperty("system")) + object.system = options.enums === String ? $root.google.cloud.datacatalog.v1.IntegratedSystem[message.system] : message.system; + if (message.googleCloudResource != null && message.hasOwnProperty("googleCloudResource")) + object.googleCloudResource = message.googleCloudResource; + if (message.dataCatalogEntry != null && message.hasOwnProperty("dataCatalogEntry")) + object.dataCatalogEntry = message.dataCatalogEntry; + if (message.fullyQualifiedName != null && message.hasOwnProperty("fullyQualifiedName")) + object.fullyQualifiedName = message.fullyQualifiedName; + return object; + }; + + /** + * Converts this DataplexExternalTable to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.DataplexExternalTable + * @instance + * @returns {Object.} JSON object + */ + DataplexExternalTable.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DataplexExternalTable; + })(); + + v1.PhysicalSchema = (function() { + + /** + * Properties of a PhysicalSchema. + * @memberof google.cloud.datacatalog.v1 + * @interface IPhysicalSchema + * @property {google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema|null} [avro] PhysicalSchema avro + * @property {google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema|null} [thrift] PhysicalSchema thrift + * @property {google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema|null} [protobuf] PhysicalSchema protobuf + * @property {google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema|null} [parquet] PhysicalSchema parquet + * @property {google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema|null} [orc] PhysicalSchema orc + * @property {google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema|null} [csv] PhysicalSchema csv + */ + + /** + * Constructs a new PhysicalSchema. + * @memberof google.cloud.datacatalog.v1 + * @classdesc Represents a PhysicalSchema. + * @implements IPhysicalSchema + * @constructor + * @param {google.cloud.datacatalog.v1.IPhysicalSchema=} [properties] Properties to set + */ + function PhysicalSchema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PhysicalSchema avro. + * @member {google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema|null|undefined} avro + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @instance + */ + PhysicalSchema.prototype.avro = null; + + /** + * PhysicalSchema thrift. + * @member {google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema|null|undefined} thrift + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @instance + */ + PhysicalSchema.prototype.thrift = null; + + /** + * PhysicalSchema protobuf. + * @member {google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema|null|undefined} protobuf + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @instance + */ + PhysicalSchema.prototype.protobuf = null; + + /** + * PhysicalSchema parquet. + * @member {google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema|null|undefined} parquet + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @instance + */ + PhysicalSchema.prototype.parquet = null; + + /** + * PhysicalSchema orc. + * @member {google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema|null|undefined} orc + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @instance + */ + PhysicalSchema.prototype.orc = null; + + /** + * PhysicalSchema csv. + * @member {google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema|null|undefined} csv + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @instance + */ + PhysicalSchema.prototype.csv = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PhysicalSchema schema. + * @member {"avro"|"thrift"|"protobuf"|"parquet"|"orc"|"csv"|undefined} schema + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @instance + */ + Object.defineProperty(PhysicalSchema.prototype, "schema", { + get: $util.oneOfGetter($oneOfFields = ["avro", "thrift", "protobuf", "parquet", "orc", "csv"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PhysicalSchema instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @static + * @param {google.cloud.datacatalog.v1.IPhysicalSchema=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.PhysicalSchema} PhysicalSchema instance + */ + PhysicalSchema.create = function create(properties) { + return new PhysicalSchema(properties); + }; + + /** + * Encodes the specified PhysicalSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @static + * @param {google.cloud.datacatalog.v1.IPhysicalSchema} message PhysicalSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PhysicalSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.avro != null && Object.hasOwnProperty.call(message, "avro")) + $root.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.encode(message.avro, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.thrift != null && Object.hasOwnProperty.call(message, "thrift")) + $root.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.encode(message.thrift, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.protobuf != null && Object.hasOwnProperty.call(message, "protobuf")) + $root.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.encode(message.protobuf, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parquet != null && Object.hasOwnProperty.call(message, "parquet")) + $root.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.encode(message.parquet, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.orc != null && Object.hasOwnProperty.call(message, "orc")) + $root.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.encode(message.orc, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.csv != null && Object.hasOwnProperty.call(message, "csv")) + $root.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.encode(message.csv, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PhysicalSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @static + * @param {google.cloud.datacatalog.v1.IPhysicalSchema} message PhysicalSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PhysicalSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PhysicalSchema message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.PhysicalSchema} PhysicalSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PhysicalSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.PhysicalSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.avro = $root.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.decode(reader, reader.uint32()); + break; + case 2: + message.thrift = $root.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.decode(reader, reader.uint32()); + break; + case 3: + message.protobuf = $root.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.decode(reader, reader.uint32()); + break; + case 4: + message.parquet = $root.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.decode(reader, reader.uint32()); + break; + case 5: + message.orc = $root.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.decode(reader, reader.uint32()); + break; + case 6: + message.csv = $root.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PhysicalSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.PhysicalSchema} PhysicalSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PhysicalSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PhysicalSchema message. + * @function verify + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PhysicalSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.avro != null && message.hasOwnProperty("avro")) { + properties.schema = 1; + { + var error = $root.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.verify(message.avro); + if (error) + return "avro." + error; + } + } + if (message.thrift != null && message.hasOwnProperty("thrift")) { + if (properties.schema === 1) + return "schema: multiple values"; + properties.schema = 1; + { + var error = $root.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.verify(message.thrift); + if (error) + return "thrift." + error; + } + } + if (message.protobuf != null && message.hasOwnProperty("protobuf")) { + if (properties.schema === 1) + return "schema: multiple values"; + properties.schema = 1; + { + var error = $root.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.verify(message.protobuf); + if (error) + return "protobuf." + error; + } + } + if (message.parquet != null && message.hasOwnProperty("parquet")) { + if (properties.schema === 1) + return "schema: multiple values"; + properties.schema = 1; + { + var error = $root.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.verify(message.parquet); + if (error) + return "parquet." + error; + } + } + if (message.orc != null && message.hasOwnProperty("orc")) { + if (properties.schema === 1) + return "schema: multiple values"; + properties.schema = 1; + { + var error = $root.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.verify(message.orc); + if (error) + return "orc." + error; + } + } + if (message.csv != null && message.hasOwnProperty("csv")) { + if (properties.schema === 1) + return "schema: multiple values"; + properties.schema = 1; + { + var error = $root.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.verify(message.csv); + if (error) + return "csv." + error; + } + } + return null; + }; + + /** + * Creates a PhysicalSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.PhysicalSchema} PhysicalSchema + */ + PhysicalSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.PhysicalSchema) + return object; + var message = new $root.google.cloud.datacatalog.v1.PhysicalSchema(); + if (object.avro != null) { + if (typeof object.avro !== "object") + throw TypeError(".google.cloud.datacatalog.v1.PhysicalSchema.avro: object expected"); + message.avro = $root.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.fromObject(object.avro); + } + if (object.thrift != null) { + if (typeof object.thrift !== "object") + throw TypeError(".google.cloud.datacatalog.v1.PhysicalSchema.thrift: object expected"); + message.thrift = $root.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.fromObject(object.thrift); + } + if (object.protobuf != null) { + if (typeof object.protobuf !== "object") + throw TypeError(".google.cloud.datacatalog.v1.PhysicalSchema.protobuf: object expected"); + message.protobuf = $root.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.fromObject(object.protobuf); + } + if (object.parquet != null) { + if (typeof object.parquet !== "object") + throw TypeError(".google.cloud.datacatalog.v1.PhysicalSchema.parquet: object expected"); + message.parquet = $root.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.fromObject(object.parquet); + } + if (object.orc != null) { + if (typeof object.orc !== "object") + throw TypeError(".google.cloud.datacatalog.v1.PhysicalSchema.orc: object expected"); + message.orc = $root.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.fromObject(object.orc); + } + if (object.csv != null) { + if (typeof object.csv !== "object") + throw TypeError(".google.cloud.datacatalog.v1.PhysicalSchema.csv: object expected"); + message.csv = $root.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.fromObject(object.csv); + } + return message; + }; + + /** + * Creates a plain object from a PhysicalSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema} message PhysicalSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PhysicalSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.avro != null && message.hasOwnProperty("avro")) { + object.avro = $root.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.toObject(message.avro, options); + if (options.oneofs) + object.schema = "avro"; + } + if (message.thrift != null && message.hasOwnProperty("thrift")) { + object.thrift = $root.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.toObject(message.thrift, options); + if (options.oneofs) + object.schema = "thrift"; + } + if (message.protobuf != null && message.hasOwnProperty("protobuf")) { + object.protobuf = $root.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.toObject(message.protobuf, options); + if (options.oneofs) + object.schema = "protobuf"; + } + if (message.parquet != null && message.hasOwnProperty("parquet")) { + object.parquet = $root.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.toObject(message.parquet, options); + if (options.oneofs) + object.schema = "parquet"; + } + if (message.orc != null && message.hasOwnProperty("orc")) { + object.orc = $root.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.toObject(message.orc, options); + if (options.oneofs) + object.schema = "orc"; + } + if (message.csv != null && message.hasOwnProperty("csv")) { + object.csv = $root.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.toObject(message.csv, options); + if (options.oneofs) + object.schema = "csv"; + } + return object; + }; + + /** + * Converts this PhysicalSchema to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @instance + * @returns {Object.} JSON object + */ + PhysicalSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + PhysicalSchema.AvroSchema = (function() { + + /** + * Properties of an AvroSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @interface IAvroSchema + * @property {string|null} [text] AvroSchema text + */ + + /** + * Constructs a new AvroSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @classdesc Represents an AvroSchema. + * @implements IAvroSchema + * @constructor + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema=} [properties] Properties to set + */ + function AvroSchema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AvroSchema text. + * @member {string} text + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema + * @instance + */ + AvroSchema.prototype.text = ""; + + /** + * Creates a new AvroSchema instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema} AvroSchema instance + */ + AvroSchema.create = function create(properties) { + return new AvroSchema(properties); + }; + + /** + * Encodes the specified AvroSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema} message AvroSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AvroSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + return writer; + }; + + /** + * Encodes the specified AvroSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IAvroSchema} message AvroSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AvroSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AvroSchema message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema} AvroSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AvroSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.text = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AvroSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema} AvroSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AvroSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AvroSchema message. + * @function verify + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AvroSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; + return null; + }; + + /** + * Creates an AvroSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema} AvroSchema + */ + AvroSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) + return object; + var message = new $root.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema(); + if (object.text != null) + message.text = String(object.text); + return message; + }; + + /** + * Creates a plain object from an AvroSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema} message AvroSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AvroSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.text = ""; + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + return object; + }; + + /** + * Converts this AvroSchema to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema + * @instance + * @returns {Object.} JSON object + */ + AvroSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AvroSchema; + })(); + + PhysicalSchema.ThriftSchema = (function() { + + /** + * Properties of a ThriftSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @interface IThriftSchema + * @property {string|null} [text] ThriftSchema text + */ + + /** + * Constructs a new ThriftSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @classdesc Represents a ThriftSchema. + * @implements IThriftSchema + * @constructor + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema=} [properties] Properties to set + */ + function ThriftSchema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ThriftSchema text. + * @member {string} text + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema + * @instance + */ + ThriftSchema.prototype.text = ""; + + /** + * Creates a new ThriftSchema instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema} ThriftSchema instance + */ + ThriftSchema.create = function create(properties) { + return new ThriftSchema(properties); + }; + + /** + * Encodes the specified ThriftSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema} message ThriftSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ThriftSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + return writer; + }; + + /** + * Encodes the specified ThriftSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IThriftSchema} message ThriftSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ThriftSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ThriftSchema message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema} ThriftSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ThriftSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.text = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ThriftSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema} ThriftSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ThriftSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ThriftSchema message. + * @function verify + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ThriftSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; + return null; + }; + + /** + * Creates a ThriftSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema} ThriftSchema + */ + ThriftSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) + return object; + var message = new $root.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema(); + if (object.text != null) + message.text = String(object.text); + return message; + }; + + /** + * Creates a plain object from a ThriftSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema} message ThriftSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ThriftSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.text = ""; + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + return object; + }; + + /** + * Converts this ThriftSchema to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema + * @instance + * @returns {Object.} JSON object + */ + ThriftSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ThriftSchema; + })(); + + PhysicalSchema.ProtobufSchema = (function() { + + /** + * Properties of a ProtobufSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @interface IProtobufSchema + * @property {string|null} [text] ProtobufSchema text + */ + + /** + * Constructs a new ProtobufSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @classdesc Represents a ProtobufSchema. + * @implements IProtobufSchema + * @constructor + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema=} [properties] Properties to set + */ + function ProtobufSchema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProtobufSchema text. + * @member {string} text + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema + * @instance + */ + ProtobufSchema.prototype.text = ""; + + /** + * Creates a new ProtobufSchema instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema} ProtobufSchema instance + */ + ProtobufSchema.create = function create(properties) { + return new ProtobufSchema(properties); + }; + + /** + * Encodes the specified ProtobufSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema} message ProtobufSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtobufSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + return writer; + }; + + /** + * Encodes the specified ProtobufSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IProtobufSchema} message ProtobufSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtobufSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProtobufSchema message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema} ProtobufSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtobufSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.text = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProtobufSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema} ProtobufSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtobufSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProtobufSchema message. + * @function verify + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProtobufSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; + return null; + }; + + /** + * Creates a ProtobufSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema} ProtobufSchema + */ + ProtobufSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) + return object; + var message = new $root.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema(); + if (object.text != null) + message.text = String(object.text); + return message; + }; + + /** + * Creates a plain object from a ProtobufSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema} message ProtobufSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProtobufSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.text = ""; + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + return object; + }; + + /** + * Converts this ProtobufSchema to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema + * @instance + * @returns {Object.} JSON object + */ + ProtobufSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ProtobufSchema; + })(); + + PhysicalSchema.ParquetSchema = (function() { + + /** + * Properties of a ParquetSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @interface IParquetSchema + */ + + /** + * Constructs a new ParquetSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @classdesc Represents a ParquetSchema. + * @implements IParquetSchema + * @constructor + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema=} [properties] Properties to set + */ + function ParquetSchema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ParquetSchema instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema} ParquetSchema instance + */ + ParquetSchema.create = function create(properties) { + return new ParquetSchema(properties); + }; + + /** + * Encodes the specified ParquetSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema} message ParquetSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParquetSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ParquetSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IParquetSchema} message ParquetSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParquetSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ParquetSchema message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema} ParquetSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParquetSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ParquetSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema} ParquetSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParquetSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ParquetSchema message. + * @function verify + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParquetSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a ParquetSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema} ParquetSchema + */ + ParquetSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) + return object; + return new $root.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema(); + }; + + /** + * Creates a plain object from a ParquetSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema} message ParquetSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ParquetSchema.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ParquetSchema to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema + * @instance + * @returns {Object.} JSON object + */ + ParquetSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ParquetSchema; + })(); + + PhysicalSchema.OrcSchema = (function() { + + /** + * Properties of an OrcSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @interface IOrcSchema + */ + + /** + * Constructs a new OrcSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @classdesc Represents an OrcSchema. + * @implements IOrcSchema + * @constructor + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema=} [properties] Properties to set + */ + function OrcSchema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new OrcSchema instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema} OrcSchema instance + */ + OrcSchema.create = function create(properties) { + return new OrcSchema(properties); + }; + + /** + * Encodes the specified OrcSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema} message OrcSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OrcSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified OrcSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.IOrcSchema} message OrcSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OrcSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OrcSchema message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema} OrcSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OrcSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OrcSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema} OrcSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OrcSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OrcSchema message. + * @function verify + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OrcSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an OrcSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema} OrcSchema + */ + OrcSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) + return object; + return new $root.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema(); + }; + + /** + * Creates a plain object from an OrcSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema} message OrcSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OrcSchema.toObject = function toObject() { + return {}; + }; + + /** + * Converts this OrcSchema to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema + * @instance + * @returns {Object.} JSON object + */ + OrcSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return OrcSchema; + })(); + + PhysicalSchema.CsvSchema = (function() { + + /** + * Properties of a CsvSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @interface ICsvSchema + */ + + /** + * Constructs a new CsvSchema. + * @memberof google.cloud.datacatalog.v1.PhysicalSchema + * @classdesc Represents a CsvSchema. + * @implements ICsvSchema + * @constructor + * @param {google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema=} [properties] Properties to set + */ + function CsvSchema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new CsvSchema instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema} CsvSchema instance + */ + CsvSchema.create = function create(properties) { + return new CsvSchema(properties); + }; + + /** + * Encodes the specified CsvSchema message. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema} message CsvSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CsvSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified CsvSchema message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.ICsvSchema} message CsvSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CsvSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CsvSchema message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema} CsvSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CsvSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CsvSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema} CsvSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CsvSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CsvSchema message. + * @function verify + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CsvSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a CsvSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema} CsvSchema + */ + CsvSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) + return object; + return new $root.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema(); + }; + + /** + * Creates a plain object from a CsvSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema + * @static + * @param {google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema} message CsvSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CsvSchema.toObject = function toObject() { + return {}; + }; + + /** + * Converts this CsvSchema to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema + * @instance + * @returns {Object.} JSON object + */ + CsvSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CsvSchema; + })(); + + return PhysicalSchema; + })(); + + v1.GcsFilesetSpec = (function() { + + /** + * Properties of a GcsFilesetSpec. + * @memberof google.cloud.datacatalog.v1 + * @interface IGcsFilesetSpec + * @property {Array.|null} [filePatterns] GcsFilesetSpec filePatterns + * @property {Array.|null} [sampleGcsFileSpecs] GcsFilesetSpec sampleGcsFileSpecs + */ + + /** + * Constructs a new GcsFilesetSpec. + * @memberof google.cloud.datacatalog.v1 + * @classdesc Represents a GcsFilesetSpec. + * @implements IGcsFilesetSpec + * @constructor + * @param {google.cloud.datacatalog.v1.IGcsFilesetSpec=} [properties] Properties to set + */ + function GcsFilesetSpec(properties) { + this.filePatterns = []; + this.sampleGcsFileSpecs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GcsFilesetSpec filePatterns. + * @member {Array.} filePatterns + * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @instance + */ + GcsFilesetSpec.prototype.filePatterns = $util.emptyArray; + + /** + * GcsFilesetSpec sampleGcsFileSpecs. + * @member {Array.} sampleGcsFileSpecs + * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @instance + */ + GcsFilesetSpec.prototype.sampleGcsFileSpecs = $util.emptyArray; + + /** + * Creates a new GcsFilesetSpec instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @static + * @param {google.cloud.datacatalog.v1.IGcsFilesetSpec=} [properties] Properties to set + * @returns {google.cloud.datacatalog.v1.GcsFilesetSpec} GcsFilesetSpec instance + */ + GcsFilesetSpec.create = function create(properties) { + return new GcsFilesetSpec(properties); + }; + + /** + * Encodes the specified GcsFilesetSpec message. Does not implicitly {@link google.cloud.datacatalog.v1.GcsFilesetSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @static + * @param {google.cloud.datacatalog.v1.IGcsFilesetSpec} message GcsFilesetSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsFilesetSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.filePatterns != null && message.filePatterns.length) + for (var i = 0; i < message.filePatterns.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.filePatterns[i]); + if (message.sampleGcsFileSpecs != null && message.sampleGcsFileSpecs.length) + for (var i = 0; i < message.sampleGcsFileSpecs.length; ++i) + $root.google.cloud.datacatalog.v1.GcsFileSpec.encode(message.sampleGcsFileSpecs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GcsFilesetSpec message, length delimited. Does not implicitly {@link google.cloud.datacatalog.v1.GcsFilesetSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @static + * @param {google.cloud.datacatalog.v1.IGcsFilesetSpec} message GcsFilesetSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsFilesetSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GcsFilesetSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.v1.GcsFilesetSpec} GcsFilesetSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsFilesetSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.v1.GcsFilesetSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.filePatterns && message.filePatterns.length)) + message.filePatterns = []; + message.filePatterns.push(reader.string()); + break; + case 2: + if (!(message.sampleGcsFileSpecs && message.sampleGcsFileSpecs.length)) + message.sampleGcsFileSpecs = []; + message.sampleGcsFileSpecs.push($root.google.cloud.datacatalog.v1.GcsFileSpec.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GcsFilesetSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.v1.GcsFilesetSpec} GcsFilesetSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsFilesetSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GcsFilesetSpec message. + * @function verify + * @memberof google.cloud.datacatalog.v1.GcsFilesetSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GcsFilesetSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.filePatterns != null && message.hasOwnProperty("filePatterns")) { + if (!Array.isArray(message.filePatterns)) return "filePatterns: array expected"; for (var i = 0; i < message.filePatterns.length; ++i) if (!$util.isString(message.filePatterns[i])) @@ -15047,6 +18031,7 @@ case 1: case 2: case 3: + case 4: break; } } @@ -15127,6 +18112,10 @@ case 3: message.integratedSystem = 3; break; + case "DATAPLEX": + case 4: + message.integratedSystem = 4; + break; } if (object.userSpecifiedSystem != null) message.userSpecifiedSystem = String(object.userSpecifiedSystem); diff --git a/packages/google-cloud-datacatalog/protos/protos.json b/packages/google-cloud-datacatalog/protos/protos.json index d29cb866c6f..8155ab3db23 100644 --- a/packages/google-cloud-datacatalog/protos/protos.json +++ b/packages/google-cloud-datacatalog/protos/protos.json @@ -102,10 +102,18 @@ "INTEGRATED_SYSTEM_UNSPECIFIED": 0, "BIGQUERY": 1, "CLOUD_PUBSUB": 2, - "DATAPROC_METASTORE": 3 + "DATAPROC_METASTORE": 3, + "DATAPLEX": 4 } }, "DataSource": { + "oneofs": { + "properties": { + "oneof": [ + "storageProperties" + ] + } + }, "fields": { "service": { "type": "Service", @@ -114,6 +122,17 @@ "resource": { "type": "string", "id": 2 + }, + "sourceEntry": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "storageProperties": { + "type": "StorageProperties", + "id": 4 } }, "nested": { @@ -126,6 +145,19 @@ } } }, + "StorageProperties": { + "fields": { + "filePattern": { + "rule": "repeated", + "type": "string", + "id": 1 + }, + "fileType": { + "type": "string", + "id": 2 + } + } + }, "DataCatalog": { "options": { "(google.api.default_host)": "datacatalog.googleapis.com", @@ -1127,7 +1159,8 @@ "oneof": [ "databaseTableSpec", "dataSourceConnectionSpec", - "routineSpec" + "routineSpec", + "filesetSpec" ] } }, @@ -1191,6 +1224,10 @@ "type": "RoutineSpec", "id": 28 }, + "filesetSpec": { + "type": "FilesetSpec", + "id": 33 + }, "displayName": { "type": "string", "id": 3 @@ -1244,6 +1281,10 @@ "type": { "type": "TableType", "id": 1 + }, + "dataplexTable": { + "type": "DataplexTableSpec", + "id": 2 } }, "nested": { @@ -1256,6 +1297,14 @@ } } }, + "FilesetSpec": { + "fields": { + "dataplexFileset": { + "type": "DataplexFilesetSpec", + "id": 1 + } + } + }, "DataSourceConnectionSpec": { "fields": { "bigqueryConnectionSpec": { @@ -1781,9 +1830,151 @@ "DATABASE": 7, "DATA_SOURCE_CONNECTION": 8, "ROUTINE": 9, + "LAKE": 10, + "ZONE": 11, "SERVICE": 14 } }, + "DataplexSpec": { + "fields": { + "asset": { + "type": "string", + "id": 1 + }, + "dataFormat": { + "type": "PhysicalSchema", + "id": 2 + }, + "compressionFormat": { + "type": "string", + "id": 3 + }, + "projectId": { + "type": "string", + "id": 4 + } + } + }, + "DataplexFilesetSpec": { + "fields": { + "dataplexSpec": { + "type": "DataplexSpec", + "id": 1 + } + } + }, + "DataplexTableSpec": { + "fields": { + "externalTables": { + "rule": "repeated", + "type": "DataplexExternalTable", + "id": 1 + }, + "dataplexSpec": { + "type": "DataplexSpec", + "id": 2 + }, + "userManaged": { + "type": "bool", + "id": 3 + } + } + }, + "DataplexExternalTable": { + "fields": { + "system": { + "type": "IntegratedSystem", + "id": 1 + }, + "fullyQualifiedName": { + "type": "string", + "id": 28 + }, + "googleCloudResource": { + "type": "string", + "id": 3 + }, + "dataCatalogEntry": { + "type": "string", + "id": 4 + } + } + }, + "PhysicalSchema": { + "oneofs": { + "schema": { + "oneof": [ + "avro", + "thrift", + "protobuf", + "parquet", + "orc", + "csv" + ] + } + }, + "fields": { + "avro": { + "type": "AvroSchema", + "id": 1 + }, + "thrift": { + "type": "ThriftSchema", + "id": 2 + }, + "protobuf": { + "type": "ProtobufSchema", + "id": 3 + }, + "parquet": { + "type": "ParquetSchema", + "id": 4 + }, + "orc": { + "type": "OrcSchema", + "id": 5 + }, + "csv": { + "type": "CsvSchema", + "id": 6 + } + }, + "nested": { + "AvroSchema": { + "fields": { + "text": { + "type": "string", + "id": 1 + } + } + }, + "ThriftSchema": { + "fields": { + "text": { + "type": "string", + "id": 1 + } + } + }, + "ProtobufSchema": { + "fields": { + "text": { + "type": "string", + "id": 1 + } + } + }, + "ParquetSchema": { + "fields": {} + }, + "OrcSchema": { + "fields": {} + }, + "CsvSchema": { + "fields": {} + } + } + }, "GcsFilesetSpec": { "fields": { "filePatterns": { diff --git a/packages/google-cloud-datacatalog/src/v1/data_catalog_proto_list.json b/packages/google-cloud-datacatalog/src/v1/data_catalog_proto_list.json index 0204eb8e327..c86ea1d1950 100644 --- a/packages/google-cloud-datacatalog/src/v1/data_catalog_proto_list.json +++ b/packages/google-cloud-datacatalog/src/v1/data_catalog_proto_list.json @@ -3,7 +3,9 @@ "../../protos/google/cloud/datacatalog/v1/common.proto", "../../protos/google/cloud/datacatalog/v1/data_source.proto", "../../protos/google/cloud/datacatalog/v1/datacatalog.proto", + "../../protos/google/cloud/datacatalog/v1/dataplex_spec.proto", "../../protos/google/cloud/datacatalog/v1/gcs_fileset_spec.proto", + "../../protos/google/cloud/datacatalog/v1/physical_schema.proto", "../../protos/google/cloud/datacatalog/v1/policytagmanager.proto", "../../protos/google/cloud/datacatalog/v1/policytagmanagerserialization.proto", "../../protos/google/cloud/datacatalog/v1/schema.proto", diff --git a/packages/google-cloud-datacatalog/src/v1/policy_tag_manager_proto_list.json b/packages/google-cloud-datacatalog/src/v1/policy_tag_manager_proto_list.json index 0204eb8e327..c86ea1d1950 100644 --- a/packages/google-cloud-datacatalog/src/v1/policy_tag_manager_proto_list.json +++ b/packages/google-cloud-datacatalog/src/v1/policy_tag_manager_proto_list.json @@ -3,7 +3,9 @@ "../../protos/google/cloud/datacatalog/v1/common.proto", "../../protos/google/cloud/datacatalog/v1/data_source.proto", "../../protos/google/cloud/datacatalog/v1/datacatalog.proto", + "../../protos/google/cloud/datacatalog/v1/dataplex_spec.proto", "../../protos/google/cloud/datacatalog/v1/gcs_fileset_spec.proto", + "../../protos/google/cloud/datacatalog/v1/physical_schema.proto", "../../protos/google/cloud/datacatalog/v1/policytagmanager.proto", "../../protos/google/cloud/datacatalog/v1/policytagmanagerserialization.proto", "../../protos/google/cloud/datacatalog/v1/schema.proto", diff --git a/packages/google-cloud-datacatalog/src/v1/policy_tag_manager_serialization_proto_list.json b/packages/google-cloud-datacatalog/src/v1/policy_tag_manager_serialization_proto_list.json index 0204eb8e327..c86ea1d1950 100644 --- a/packages/google-cloud-datacatalog/src/v1/policy_tag_manager_serialization_proto_list.json +++ b/packages/google-cloud-datacatalog/src/v1/policy_tag_manager_serialization_proto_list.json @@ -3,7 +3,9 @@ "../../protos/google/cloud/datacatalog/v1/common.proto", "../../protos/google/cloud/datacatalog/v1/data_source.proto", "../../protos/google/cloud/datacatalog/v1/datacatalog.proto", + "../../protos/google/cloud/datacatalog/v1/dataplex_spec.proto", "../../protos/google/cloud/datacatalog/v1/gcs_fileset_spec.proto", + "../../protos/google/cloud/datacatalog/v1/physical_schema.proto", "../../protos/google/cloud/datacatalog/v1/policytagmanager.proto", "../../protos/google/cloud/datacatalog/v1/policytagmanagerserialization.proto", "../../protos/google/cloud/datacatalog/v1/schema.proto",