google-cloud-data_catalog-v1 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +288 -54
  4. data/lib/google/cloud/data_catalog/v1/data_catalog/operations.rb +768 -0
  5. data/lib/google/cloud/data_catalog/v1/data_catalog/rest/client.rb +228 -54
  6. data/lib/google/cloud/data_catalog/v1/data_catalog/rest/operations.rb +792 -0
  7. data/lib/google/cloud/data_catalog/v1/data_catalog/rest/service_stub.rb +120 -0
  8. data/lib/google/cloud/data_catalog/v1/data_catalog/rest.rb +1 -0
  9. data/lib/google/cloud/data_catalog/v1/data_catalog.rb +1 -0
  10. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +6 -3
  11. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest/client.rb +6 -3
  12. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +6 -4
  13. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/client.rb +6 -4
  14. data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
  15. data/lib/google/cloud/datacatalog/v1/bigquery_pb.rb +24 -25
  16. data/lib/google/cloud/datacatalog/v1/common_pb.rb +26 -12
  17. data/lib/google/cloud/datacatalog/v1/data_source_pb.rb +24 -18
  18. data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +55 -263
  19. data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +33 -0
  20. data/lib/google/cloud/datacatalog/v1/dataplex_spec_pb.rb +25 -21
  21. data/lib/google/cloud/datacatalog/v1/dump_content_pb.rb +49 -0
  22. data/lib/google/cloud/datacatalog/v1/gcs_fileset_spec_pb.rb +25 -10
  23. data/lib/google/cloud/datacatalog/v1/physical_schema_pb.rb +24 -26
  24. data/lib/google/cloud/datacatalog/v1/policytagmanager_pb.rb +28 -66
  25. data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +25 -43
  26. data/lib/google/cloud/datacatalog/v1/schema_pb.rb +27 -11
  27. data/lib/google/cloud/datacatalog/v1/search_pb.rb +25 -21
  28. data/lib/google/cloud/datacatalog/v1/table_spec_pb.rb +24 -26
  29. data/lib/google/cloud/datacatalog/v1/tags_pb.rb +25 -59
  30. data/lib/google/cloud/datacatalog/v1/timestamps_pb.rb +25 -6
  31. data/lib/google/cloud/datacatalog/v1/usage_pb.rb +26 -11
  32. data/proto_docs/google/api/client.rb +67 -4
  33. data/proto_docs/google/cloud/datacatalog/v1/common.rb +25 -0
  34. data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +367 -41
  35. data/proto_docs/google/cloud/datacatalog/v1/dump_content.rb +53 -0
  36. data/proto_docs/google/cloud/datacatalog/v1/gcs_fileset_spec.rb +2 -1
  37. data/proto_docs/google/cloud/datacatalog/v1/policytagmanager.rb +23 -2
  38. data/proto_docs/google/cloud/datacatalog/v1/policytagmanagerserialization.rb +6 -3
  39. data/proto_docs/google/cloud/datacatalog/v1/schema.rb +68 -3
  40. data/proto_docs/google/cloud/datacatalog/v1/search.rb +2 -2
  41. data/proto_docs/google/cloud/datacatalog/v1/table_spec.rb +5 -5
  42. data/proto_docs/google/cloud/datacatalog/v1/tags.rb +11 -8
  43. data/proto_docs/google/cloud/datacatalog/v1/usage.rb +30 -1
  44. data/proto_docs/google/longrunning/operations.rb +164 -0
  45. data/proto_docs/google/protobuf/any.rb +144 -0
  46. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  47. data/proto_docs/google/rpc/status.rb +48 -0
  48. metadata +11 -4
@@ -1066,6 +1066,44 @@ module Google
1066
1066
  result
1067
1067
  end
1068
1068
 
1069
+ ##
1070
+ # Baseline implementation for the reconcile_tags REST call
1071
+ #
1072
+ # @param request_pb [::Google::Cloud::DataCatalog::V1::ReconcileTagsRequest]
1073
+ # A request object representing the call parameters. Required.
1074
+ # @param options [::Gapic::CallOptions]
1075
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1076
+ #
1077
+ # @yield [result, operation] Access the result along with the TransportOperation object
1078
+ # @yieldparam result [::Google::Longrunning::Operation]
1079
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1080
+ #
1081
+ # @return [::Google::Longrunning::Operation]
1082
+ # A result object deserialized from the server's reply
1083
+ def reconcile_tags request_pb, options = nil
1084
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1085
+
1086
+ verb, uri, query_string_params, body = ServiceStub.transcode_reconcile_tags_request request_pb
1087
+ query_string_params = if query_string_params.any?
1088
+ query_string_params.to_h { |p| p.split("=", 2) }
1089
+ else
1090
+ {}
1091
+ end
1092
+
1093
+ response = @client_stub.make_http_request(
1094
+ verb,
1095
+ uri: uri,
1096
+ body: body || "",
1097
+ params: query_string_params,
1098
+ options: options
1099
+ )
1100
+ operation = ::Gapic::Rest::TransportOperation.new response
1101
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1102
+
1103
+ yield result, operation if block_given?
1104
+ result
1105
+ end
1106
+
1069
1107
  ##
1070
1108
  # Baseline implementation for the star_entry REST call
1071
1109
  #
@@ -1256,6 +1294,44 @@ module Google
1256
1294
  result
1257
1295
  end
1258
1296
 
1297
+ ##
1298
+ # Baseline implementation for the import_entries REST call
1299
+ #
1300
+ # @param request_pb [::Google::Cloud::DataCatalog::V1::ImportEntriesRequest]
1301
+ # A request object representing the call parameters. Required.
1302
+ # @param options [::Gapic::CallOptions]
1303
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1304
+ #
1305
+ # @yield [result, operation] Access the result along with the TransportOperation object
1306
+ # @yieldparam result [::Google::Longrunning::Operation]
1307
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1308
+ #
1309
+ # @return [::Google::Longrunning::Operation]
1310
+ # A result object deserialized from the server's reply
1311
+ def import_entries request_pb, options = nil
1312
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1313
+
1314
+ verb, uri, query_string_params, body = ServiceStub.transcode_import_entries_request request_pb
1315
+ query_string_params = if query_string_params.any?
1316
+ query_string_params.to_h { |p| p.split("=", 2) }
1317
+ else
1318
+ {}
1319
+ end
1320
+
1321
+ response = @client_stub.make_http_request(
1322
+ verb,
1323
+ uri: uri,
1324
+ body: body || "",
1325
+ params: query_string_params,
1326
+ options: options
1327
+ )
1328
+ operation = ::Gapic::Rest::TransportOperation.new response
1329
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1330
+
1331
+ yield result, operation if block_given?
1332
+ result
1333
+ end
1334
+
1259
1335
  ##
1260
1336
  # @private
1261
1337
  #
@@ -1864,6 +1940,28 @@ module Google
1864
1940
  transcoder.transcode request_pb
1865
1941
  end
1866
1942
 
1943
+ ##
1944
+ # @private
1945
+ #
1946
+ # GRPC transcoding helper method for the reconcile_tags REST call
1947
+ #
1948
+ # @param request_pb [::Google::Cloud::DataCatalog::V1::ReconcileTagsRequest]
1949
+ # A request object representing the call parameters. Required.
1950
+ # @return [Array(String, [String, nil], Hash{String => String})]
1951
+ # Uri, Body, Query string parameters
1952
+ def self.transcode_reconcile_tags_request request_pb
1953
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1954
+ .with_bindings(
1955
+ uri_method: :post,
1956
+ uri_template: "/v1/{parent}/tags:reconcile",
1957
+ body: "*",
1958
+ matches: [
1959
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/?$}, false]
1960
+ ]
1961
+ )
1962
+ transcoder.transcode request_pb
1963
+ end
1964
+
1867
1965
  ##
1868
1966
  # @private
1869
1967
  #
@@ -2013,6 +2111,28 @@ module Google
2013
2111
  )
2014
2112
  transcoder.transcode request_pb
2015
2113
  end
2114
+
2115
+ ##
2116
+ # @private
2117
+ #
2118
+ # GRPC transcoding helper method for the import_entries REST call
2119
+ #
2120
+ # @param request_pb [::Google::Cloud::DataCatalog::V1::ImportEntriesRequest]
2121
+ # A request object representing the call parameters. Required.
2122
+ # @return [Array(String, [String, nil], Hash{String => String})]
2123
+ # Uri, Body, Query string parameters
2124
+ def self.transcode_import_entries_request request_pb
2125
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2126
+ .with_bindings(
2127
+ uri_method: :post,
2128
+ uri_template: "/v1/{parent}/entries:import",
2129
+ body: "*",
2130
+ matches: [
2131
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/?$}, false]
2132
+ ]
2133
+ )
2134
+ transcoder.transcode request_pb
2135
+ end
2016
2136
  end
2017
2137
  end
2018
2138
  end
@@ -24,6 +24,7 @@ require "google/cloud/data_catalog/v1/version"
24
24
 
25
25
  require "google/cloud/data_catalog/v1/data_catalog/credentials"
26
26
  require "google/cloud/data_catalog/v1/data_catalog/paths"
27
+ require "google/cloud/data_catalog/v1/data_catalog/rest/operations"
27
28
  require "google/cloud/data_catalog/v1/data_catalog/rest/client"
28
29
 
29
30
  module Google
@@ -24,6 +24,7 @@ require "google/cloud/data_catalog/v1/version"
24
24
 
25
25
  require "google/cloud/data_catalog/v1/data_catalog/credentials"
26
26
  require "google/cloud/data_catalog/v1/data_catalog/paths"
27
+ require "google/cloud/data_catalog/v1/data_catalog/operations"
27
28
  require "google/cloud/data_catalog/v1/data_catalog/client"
28
29
  require "google/cloud/data_catalog/v1/data_catalog/rest"
29
30
 
@@ -450,7 +450,7 @@ module Google
450
450
  # @param options [::Gapic::CallOptions, ::Hash]
451
451
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
452
452
  #
453
- # @overload list_taxonomies(parent: nil, page_size: nil, page_token: nil)
453
+ # @overload list_taxonomies(parent: nil, page_size: nil, page_token: nil, filter: nil)
454
454
  # Pass arguments to `list_taxonomies` via keyword arguments. Note that at
455
455
  # least one keyword argument is required. To specify no parameters, or to keep all
456
456
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -465,6 +465,9 @@ module Google
465
465
  # the first page is returned.
466
466
  #
467
467
  # The token is returned in the response to a previous list request.
468
+ # @param filter [::String]
469
+ # Supported field for filter is 'service' and value is 'dataplex'.
470
+ # Eg: service=dataplex.
468
471
  #
469
472
  # @yield [response, operation] Access the result along with the RPC operation
470
473
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DataCatalog::V1::Taxonomy>]
@@ -1393,9 +1396,9 @@ module Google
1393
1396
  # * (`String`) The path to a service account key file in JSON format
1394
1397
  # * (`Hash`) A service account key as a Hash
1395
1398
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1396
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1399
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1397
1400
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1398
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1401
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1399
1402
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1400
1403
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1401
1404
  # * (`nil`) indicating no credentials
@@ -372,7 +372,7 @@ module Google
372
372
  # @param options [::Gapic::CallOptions, ::Hash]
373
373
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
374
374
  #
375
- # @overload list_taxonomies(parent: nil, page_size: nil, page_token: nil)
375
+ # @overload list_taxonomies(parent: nil, page_size: nil, page_token: nil, filter: nil)
376
376
  # Pass arguments to `list_taxonomies` via keyword arguments. Note that at
377
377
  # least one keyword argument is required. To specify no parameters, or to keep all
378
378
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -387,6 +387,9 @@ module Google
387
387
  # the first page is returned.
388
388
  #
389
389
  # The token is returned in the response to a previous list request.
390
+ # @param filter [::String]
391
+ # Supported field for filter is 'service' and value is 'dataplex'.
392
+ # Eg: service=dataplex.
390
393
  # @yield [result, operation] Access the result along with the TransportOperation object
391
394
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1::Taxonomy>]
392
395
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1077,9 +1080,9 @@ module Google
1077
1080
  # * (`String`) The path to a service account key file in JSON format
1078
1081
  # * (`Hash`) A service account key as a Hash
1079
1082
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1080
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1083
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1081
1084
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1082
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1085
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1083
1086
  # * (`nil`) indicating no credentials
1084
1087
  # @return [::Object]
1085
1088
  # @!attribute [rw] scope
@@ -288,7 +288,8 @@ module Google
288
288
  # the default parameter values, pass an empty Hash as a request object (see above).
289
289
  #
290
290
  # @param parent [::String]
291
- # Required. Resource name of project that the imported taxonomies will belong to.
291
+ # Required. Resource name of project that the imported taxonomies will belong
292
+ # to.
292
293
  # @param inline_source [::Google::Cloud::DataCatalog::V1::InlineSource, ::Hash]
293
294
  # Inline source taxonomy to import.
294
295
  # @param cross_regional_source [::Google::Cloud::DataCatalog::V1::CrossRegionalSource, ::Hash]
@@ -382,7 +383,8 @@ module Google
382
383
  # the default parameter values, pass an empty Hash as a request object (see above).
383
384
  #
384
385
  # @param parent [::String]
385
- # Required. Resource name of the project that the exported taxonomies belong to.
386
+ # Required. Resource name of the project that the exported taxonomies belong
387
+ # to.
386
388
  # @param taxonomies [::Array<::String>]
387
389
  # Required. Resource names of the taxonomies to export.
388
390
  # @param serialized_taxonomies [::Boolean]
@@ -491,9 +493,9 @@ module Google
491
493
  # * (`String`) The path to a service account key file in JSON format
492
494
  # * (`Hash`) A service account key as a Hash
493
495
  # * (`Google::Auth::Credentials`) A googleauth credentials object
494
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
496
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
495
497
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
496
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
498
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
497
499
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
498
500
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
499
501
  # * (`nil`) indicating no credentials
@@ -256,7 +256,8 @@ module Google
256
256
  # the default parameter values, pass an empty Hash as a request object (see above).
257
257
  #
258
258
  # @param parent [::String]
259
- # Required. Resource name of project that the imported taxonomies will belong to.
259
+ # Required. Resource name of project that the imported taxonomies will belong
260
+ # to.
260
261
  # @param inline_source [::Google::Cloud::DataCatalog::V1::InlineSource, ::Hash]
261
262
  # Inline source taxonomy to import.
262
263
  # @param cross_regional_source [::Google::Cloud::DataCatalog::V1::CrossRegionalSource, ::Hash]
@@ -327,7 +328,8 @@ module Google
327
328
  # the default parameter values, pass an empty Hash as a request object (see above).
328
329
  #
329
330
  # @param parent [::String]
330
- # Required. Resource name of the project that the exported taxonomies belong to.
331
+ # Required. Resource name of the project that the exported taxonomies belong
332
+ # to.
331
333
  # @param taxonomies [::Array<::String>]
332
334
  # Required. Resource names of the taxonomies to export.
333
335
  # @param serialized_taxonomies [::Boolean]
@@ -413,9 +415,9 @@ module Google
413
415
  # * (`String`) The path to a service account key file in JSON format
414
416
  # * (`Hash`) A service account key as a Hash
415
417
  # * (`Google::Auth::Credentials`) A googleauth credentials object
416
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
418
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
417
419
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
418
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
420
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
419
421
  # * (`nil`) indicating no credentials
420
422
  # @return [::Object]
421
423
  # @!attribute [rw] scope
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataCatalog
23
23
  module V1
24
- VERSION = "0.14.0"
24
+ VERSION = "0.16.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/datacatalog/v1/bigquery.proto
3
4
 
@@ -5,33 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/field_behavior_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/datacatalog/v1/bigquery.proto", :syntax => :proto3) do
10
- add_message "google.cloud.datacatalog.v1.BigQueryConnectionSpec" do
11
- optional :connection_type, :enum, 1, "google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType"
12
- optional :has_credential, :bool, 3
13
- oneof :connection_spec do
14
- optional :cloud_sql, :message, 2, "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec"
15
- end
16
- end
17
- add_enum "google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType" do
18
- value :CONNECTION_TYPE_UNSPECIFIED, 0
19
- value :CLOUD_SQL, 1
20
- end
21
- add_message "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec" do
22
- optional :instance_id, :string, 1
23
- optional :database, :string, 2
24
- optional :type, :enum, 3, "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType"
25
- end
26
- add_enum "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType" do
27
- value :DATABASE_TYPE_UNSPECIFIED, 0
28
- value :POSTGRES, 1
29
- value :MYSQL, 2
30
- end
31
- add_message "google.cloud.datacatalog.v1.BigQueryRoutineSpec" do
32
- repeated :imported_libraries, :string, 1
9
+
10
+ descriptor_data = "\n*google/cloud/datacatalog/v1/bigquery.proto\x12\x1bgoogle.cloud.datacatalog.v1\x1a\x1fgoogle/api/field_behavior.proto\"\xb4\x02\n\x16\x42igQueryConnectionSpec\x12[\n\x0f\x63onnection_type\x18\x01 \x01(\x0e\x32\x42.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType\x12P\n\tcloud_sql\x18\x02 \x01(\x0b\x32;.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpecH\x00\x12\x16\n\x0ehas_credential\x18\x03 \x01(\x08\"@\n\x0e\x43onnectionType\x12\x1f\n\x1b\x43ONNECTION_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCLOUD_SQL\x10\x01\x42\x11\n\x0f\x63onnection_spec\"\xe7\x01\n\x1e\x43loudSqlBigQueryConnectionSpec\x12\x13\n\x0binstance_id\x18\x01 \x01(\t\x12\x10\n\x08\x64\x61tabase\x18\x02 \x01(\t\x12V\n\x04type\x18\x03 \x01(\x0e\x32H.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType\"F\n\x0c\x44\x61tabaseType\x12\x1d\n\x19\x44\x41TABASE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08POSTGRES\x10\x01\x12\t\n\x05MYSQL\x10\x02\"1\n\x13\x42igQueryRoutineSpec\x12\x1a\n\x12imported_libraries\x18\x01 \x03(\tB\xd5\x01\n\x1f\x63om.google.cloud.datacatalog.v1B\rBigQueryProtoP\x01ZAcloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb\xf8\x01\x01\xaa\x02\x1bGoogle.Cloud.DataCatalog.V1\xca\x02\x1bGoogle\\Cloud\\DataCatalog\\V1\xea\x02\x1eGoogle::Cloud::DataCatalog::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
30
  end
34
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
35
34
  end
36
35
 
37
36
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/datacatalog/v1/common.proto
3
4
 
@@ -5,20 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/timestamp_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/datacatalog/v1/common.proto", :syntax => :proto3) do
10
- add_message "google.cloud.datacatalog.v1.PersonalDetails" do
11
- optional :starred, :bool, 1
12
- optional :star_time, :message, 2, "google.protobuf.Timestamp"
13
- end
14
- add_enum "google.cloud.datacatalog.v1.IntegratedSystem" do
15
- value :INTEGRATED_SYSTEM_UNSPECIFIED, 0
16
- value :BIGQUERY, 1
17
- value :CLOUD_PUBSUB, 2
18
- value :DATAPROC_METASTORE, 3
19
- value :DATAPLEX, 4
9
+
10
+ descriptor_data = "\n(google/cloud/datacatalog/v1/common.proto\x12\x1bgoogle.cloud.datacatalog.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"Q\n\x0fPersonalDetails\x12\x0f\n\x07starred\x18\x01 \x01(\x08\x12-\n\tstar_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp*\xbd\x01\n\x10IntegratedSystem\x12!\n\x1dINTEGRATED_SYSTEM_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x42IGQUERY\x10\x01\x12\x10\n\x0c\x43LOUD_PUBSUB\x10\x02\x12\x16\n\x12\x44\x41TAPROC_METASTORE\x10\x03\x12\x0c\n\x08\x44\x41TAPLEX\x10\x04\x12\x11\n\rCLOUD_SPANNER\x10\x06\x12\x12\n\x0e\x43LOUD_BIGTABLE\x10\x07\x12\r\n\tCLOUD_SQL\x10\x08\x12\n\n\x06LOOKER\x10\t*j\n\x0eManagingSystem\x12\x1f\n\x1bMANAGING_SYSTEM_UNSPECIFIED\x10\x00\x12\x1c\n\x18MANAGING_SYSTEM_DATAPLEX\x10\x01\x12\x19\n\x15MANAGING_SYSTEM_OTHER\x10\x02\x42\xc6\x01\n\x1f\x63om.google.cloud.datacatalog.v1P\x01ZAcloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb\xf8\x01\x01\xaa\x02\x1bGoogle.Cloud.DataCatalog.V1\xca\x02\x1bGoogle\\Cloud\\DataCatalog\\V1\xea\x02\x1eGoogle::Cloud::DataCatalog::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
20
31
  end
21
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
22
35
  end
23
36
 
24
37
  module Google
@@ -27,6 +40,7 @@ module Google
27
40
  module V1
28
41
  PersonalDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.PersonalDetails").msgclass
29
42
  IntegratedSystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.IntegratedSystem").enummodule
43
+ ManagingSystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ManagingSystem").enummodule
30
44
  end
31
45
  end
32
46
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/datacatalog/v1/data_source.proto
3
4
 
@@ -5,26 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/field_behavior_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/datacatalog/v1/data_source.proto", :syntax => :proto3) do
10
- add_message "google.cloud.datacatalog.v1.DataSource" do
11
- optional :service, :enum, 1, "google.cloud.datacatalog.v1.DataSource.Service"
12
- optional :resource, :string, 2
13
- optional :source_entry, :string, 3
14
- oneof :properties do
15
- optional :storage_properties, :message, 4, "google.cloud.datacatalog.v1.StorageProperties"
16
- end
17
- end
18
- add_enum "google.cloud.datacatalog.v1.DataSource.Service" do
19
- value :SERVICE_UNSPECIFIED, 0
20
- value :CLOUD_STORAGE, 1
21
- value :BIGQUERY, 2
22
- end
23
- add_message "google.cloud.datacatalog.v1.StorageProperties" do
24
- repeated :file_pattern, :string, 1
25
- optional :file_type, :string, 2
9
+
10
+ descriptor_data = "\n-google/cloud/datacatalog/v1/data_source.proto\x12\x1bgoogle.cloud.datacatalog.v1\x1a\x1fgoogle/api/field_behavior.proto\"\x9c\x02\n\nDataSource\x12@\n\x07service\x18\x01 \x01(\x0e\x32/.google.cloud.datacatalog.v1.DataSource.Service\x12\x10\n\x08resource\x18\x02 \x01(\t\x12\x19\n\x0csource_entry\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12L\n\x12storage_properties\x18\x04 \x01(\x0b\x32..google.cloud.datacatalog.v1.StoragePropertiesH\x00\"C\n\x07Service\x12\x17\n\x13SERVICE_UNSPECIFIED\x10\x00\x12\x11\n\rCLOUD_STORAGE\x10\x01\x12\x0c\n\x08\x42IGQUERY\x10\x02\x42\x0c\n\nproperties\"<\n\x11StorageProperties\x12\x14\n\x0c\x66ile_pattern\x18\x01 \x03(\t\x12\x11\n\tfile_type\x18\x02 \x01(\tB\xd7\x01\n\x1f\x63om.google.cloud.datacatalog.v1B\x0f\x44\x61taSourceProtoP\x01ZAcloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb\xf8\x01\x01\xaa\x02\x1bGoogle.Cloud.DataCatalog.V1\xca\x02\x1bGoogle\\Cloud\\DataCatalog\\V1\xea\x02\x1eGoogle::Cloud::DataCatalog::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
26
30
  end
27
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
28
34
  end
29
35
 
30
36
  module Google