google-cloud-data_catalog-v1 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +18 -47
  3. data/lib/google/cloud/data_catalog/v1/data_catalog/rest/client.rb +18 -47
  4. data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
  5. data/lib/google/cloud/datacatalog/v1/bigquery_pb.rb +24 -25
  6. data/lib/google/cloud/datacatalog/v1/common_pb.rb +25 -19
  7. data/lib/google/cloud/datacatalog/v1/data_source_pb.rb +24 -18
  8. data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +41 -339
  9. data/lib/google/cloud/datacatalog/v1/dataplex_spec_pb.rb +25 -21
  10. data/lib/google/cloud/datacatalog/v1/dump_content_pb.rb +27 -13
  11. data/lib/google/cloud/datacatalog/v1/gcs_fileset_spec_pb.rb +25 -10
  12. data/lib/google/cloud/datacatalog/v1/physical_schema_pb.rb +24 -26
  13. data/lib/google/cloud/datacatalog/v1/policytagmanager_pb.rb +26 -72
  14. data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +25 -43
  15. data/lib/google/cloud/datacatalog/v1/schema_pb.rb +24 -36
  16. data/lib/google/cloud/datacatalog/v1/search_pb.rb +25 -21
  17. data/lib/google/cloud/datacatalog/v1/table_spec_pb.rb +24 -26
  18. data/lib/google/cloud/datacatalog/v1/tags_pb.rb +25 -59
  19. data/lib/google/cloud/datacatalog/v1/timestamps_pb.rb +25 -6
  20. data/lib/google/cloud/datacatalog/v1/usage_pb.rb +25 -16
  21. data/proto_docs/google/api/client.rb +58 -1
  22. data/proto_docs/google/cloud/datacatalog/v1/common.rb +6 -0
  23. data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +84 -20
  24. data/proto_docs/google/cloud/datacatalog/v1/dump_content.rb +2 -2
  25. data/proto_docs/google/cloud/datacatalog/v1/policytagmanager.rb +1 -1
  26. data/proto_docs/google/protobuf/any.rb +7 -4
  27. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  28. metadata +4 -4
@@ -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/timestamps.proto
3
4
 
@@ -6,14 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/datacatalog/v1/timestamps.proto", :syntax => :proto3) do
11
- add_message "google.cloud.datacatalog.v1.SystemTimestamps" do
12
- optional :create_time, :message, 1, "google.protobuf.Timestamp"
13
- optional :update_time, :message, 2, "google.protobuf.Timestamp"
14
- optional :expire_time, :message, 3, "google.protobuf.Timestamp"
10
+
11
+ descriptor_data = "\n,google/cloud/datacatalog/v1/timestamps.proto\x12\x1bgoogle.cloud.datacatalog.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xaa\x01\n\x10SystemTimestamps\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\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"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
15
32
  end
16
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
17
36
  end
18
37
 
19
38
  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/usage.proto
3
4
 
@@ -6,24 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/datacatalog/v1/usage.proto", :syntax => :proto3) do
11
- add_message "google.cloud.datacatalog.v1.UsageStats" do
12
- optional :total_completions, :float, 1
13
- optional :total_failures, :float, 2
14
- optional :total_cancellations, :float, 3
15
- optional :total_execution_time_for_completions_millis, :float, 4
16
- end
17
- add_message "google.cloud.datacatalog.v1.CommonUsageStats" do
18
- proto3_optional :view_count, :int64, 1
19
- end
20
- add_message "google.cloud.datacatalog.v1.UsageSignal" do
21
- optional :update_time, :message, 1, "google.protobuf.Timestamp"
22
- map :usage_within_time_range, :string, :message, 2, "google.cloud.datacatalog.v1.UsageStats"
23
- map :common_usage_within_time_range, :string, :message, 3, "google.cloud.datacatalog.v1.CommonUsageStats"
24
- proto3_optional :favorite_count, :int64, 4
10
+
11
+ descriptor_data = "\n\'google/cloud/datacatalog/v1/usage.proto\x12\x1bgoogle.cloud.datacatalog.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x91\x01\n\nUsageStats\x12\x19\n\x11total_completions\x18\x01 \x01(\x02\x12\x16\n\x0etotal_failures\x18\x02 \x01(\x02\x12\x1b\n\x13total_cancellations\x18\x03 \x01(\x02\x12\x33\n+total_execution_time_for_completions_millis\x18\x04 \x01(\x02\":\n\x10\x43ommonUsageStats\x12\x17\n\nview_count\x18\x01 \x01(\x03H\x00\x88\x01\x01\x42\r\n\x0b_view_count\"\xa2\x04\n\x0bUsageSignal\x12/\n\x0bupdate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12h\n\x17usage_within_time_range\x18\x02 \x03(\x0b\x32\x42.google.cloud.datacatalog.v1.UsageSignal.UsageWithinTimeRangeEntryB\x03\xe0\x41\x03\x12p\n\x1e\x63ommon_usage_within_time_range\x18\x03 \x03(\x0b\x32H.google.cloud.datacatalog.v1.UsageSignal.CommonUsageWithinTimeRangeEntry\x12\x1b\n\x0e\x66\x61vorite_count\x18\x04 \x01(\x03H\x00\x88\x01\x01\x1a\x64\n\x19UsageWithinTimeRangeEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.datacatalog.v1.UsageStats:\x02\x38\x01\x1ap\n\x1f\x43ommonUsageWithinTimeRangeEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.google.cloud.datacatalog.v1.CommonUsageStats:\x02\x38\x01\x42\x11\n\x0f_favorite_countB\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"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
25
32
  end
26
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
27
36
  end
28
37
 
29
38
  module Google
@@ -83,7 +83,7 @@ module Google
83
83
  # long-running operation pattern.
84
84
  # @!attribute [rw] new_issue_uri
85
85
  # @return [::String]
86
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
87
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
88
88
  # @!attribute [rw] documentation_uri
89
89
  # @return [::String]
@@ -209,9 +209,57 @@ module Google
209
209
  # @!attribute [rw] common
210
210
  # @return [::Google::Api::CommonLanguageSettings]
211
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
212
242
  class DotnetSettings
213
243
  include ::Google::Protobuf::MessageExts
214
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
215
263
  end
216
264
 
217
265
  # Settings for Ruby client libraries.
@@ -305,6 +353,15 @@ module Google
305
353
 
306
354
  # Street View Org.
307
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
308
365
  end
309
366
 
310
367
  # To where should client libraries be published?
@@ -50,6 +50,12 @@ module Google
50
50
  # Dataplex.
51
51
  DATAPLEX = 4
52
52
 
53
+ # Cloud Spanner
54
+ CLOUD_SPANNER = 6
55
+
56
+ # Cloud Bigtable
57
+ CLOUD_BIGTABLE = 7
58
+
53
59
  # Cloud Sql
54
60
  CLOUD_SQL = 8
55
61
 
@@ -129,6 +129,9 @@ module Google
129
129
  # @!attribute [rw] results
130
130
  # @return [::Array<::Google::Cloud::DataCatalog::V1::SearchCatalogResult>]
131
131
  # Search results.
132
+ # @!attribute [rw] total_size
133
+ # @return [::Integer]
134
+ # The approximate total number of entries matched by the query.
132
135
  # @!attribute [rw] next_page_token
133
136
  # @return [::String]
134
137
  # Pagination token that can be used in subsequent calls to retrieve the next
@@ -362,7 +365,9 @@ module Google
362
365
  # (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
363
366
  # @!attribute [rw] fully_qualified_name
364
367
  # @return [::String]
365
- # Fully qualified name (FQN) of the resource.
368
+ # [Fully Qualified Name
369
+ # (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
370
+ # of the resource.
366
371
  #
367
372
  # FQNs take two forms:
368
373
  #
@@ -377,6 +382,16 @@ module Google
377
382
  # Example for a DPMS table:
378
383
  #
379
384
  # `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
385
+ # @!attribute [rw] project
386
+ # @return [::String]
387
+ # Project where the lookup should be performed. Required to lookup
388
+ # entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
389
+ # using its `fully_qualified_name`. Ignored in other cases.
390
+ # @!attribute [rw] location
391
+ # @return [::String]
392
+ # Location where the lookup should be performed. Required to lookup
393
+ # entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
394
+ # using its `fully_qualified_name`. Ignored in other cases.
380
395
  class LookupEntryRequest
381
396
  include ::Google::Protobuf::MessageExts
382
397
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -420,25 +435,11 @@ module Google
420
435
  # The maximum size is 200 bytes when encoded in UTF-8.
421
436
  # @!attribute [rw] fully_qualified_name
422
437
  # @return [::String]
423
- # Fully qualified name (FQN) of the resource. Set automatically for entries
424
- # representing resources from synced systems. Settable only during creation
425
- # and read-only afterwards. Can be used for search and lookup of the entries.
426
- #
427
- #
428
- #
429
- # FQNs take two forms:
430
- #
431
- # * For non-regionalized resources:
432
- #
433
- # `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
434
- #
435
- # * For regionalized resources:
436
- #
437
- # `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
438
- #
439
- # Example for a DPMS table:
440
- #
441
- # `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
438
+ # [Fully Qualified Name
439
+ # (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
440
+ # of the resource. Set automatically for entries representing resources from
441
+ # synced systems. Settable only during creation, and read-only later. Can
442
+ # be used for search and lookup of the entries.
442
443
  # @!attribute [rw] type
443
444
  # @return [::Google::Cloud::DataCatalog::V1::EntryType]
444
445
  # The type of the entry.
@@ -484,6 +485,10 @@ module Google
484
485
  # @return [::Google::Cloud::DataCatalog::V1::LookerSystemSpec]
485
486
  # Specification that applies to Looker sysstem. Only settable when
486
487
  # `user_specified_system` is equal to `LOOKER`
488
+ # @!attribute [rw] cloud_bigtable_system_spec
489
+ # @return [::Google::Cloud::DataCatalog::V1::CloudBigtableSystemSpec]
490
+ # Specification that applies to Cloud Bigtable system. Only settable when
491
+ # `integrated_system` is equal to `CLOUD_BIGTABLE`
487
492
  # @!attribute [rw] gcs_fileset_spec
488
493
  # @return [::Google::Cloud::DataCatalog::V1::GcsFilesetSpec]
489
494
  # Specification that applies to a Cloud Storage fileset. Valid only
@@ -515,6 +520,9 @@ module Google
515
520
  # @return [::Google::Cloud::DataCatalog::V1::FilesetSpec]
516
521
  # Specification that applies to a fileset resource. Valid only
517
522
  # for entries with the `FILESET` type.
523
+ # @!attribute [rw] service_spec
524
+ # @return [::Google::Cloud::DataCatalog::V1::ServiceSpec]
525
+ # Specification that applies to a Service resource.
518
526
  # @!attribute [rw] display_name
519
527
  # @return [::String]
520
528
  # Display name of an entry.
@@ -789,6 +797,58 @@ module Google
789
797
  extend ::Google::Protobuf::MessageExts::ClassMethods
790
798
  end
791
799
 
800
+ # Specification that applies to
801
+ # all entries that are part of `CLOUD_BIGTABLE` system
802
+ # (user_specified_type)
803
+ # @!attribute [rw] instance_display_name
804
+ # @return [::String]
805
+ # Display name of the Instance. This is user specified and different from
806
+ # the resource name.
807
+ class CloudBigtableSystemSpec
808
+ include ::Google::Protobuf::MessageExts
809
+ extend ::Google::Protobuf::MessageExts::ClassMethods
810
+ end
811
+
812
+ # Specification that applies to Instance
813
+ # entries that are part of `CLOUD_BIGTABLE` system.
814
+ # (user_specified_type)
815
+ # @!attribute [rw] cloud_bigtable_cluster_specs
816
+ # @return [::Array<::Google::Cloud::DataCatalog::V1::CloudBigtableInstanceSpec::CloudBigtableClusterSpec>]
817
+ # The list of clusters for the Instance.
818
+ class CloudBigtableInstanceSpec
819
+ include ::Google::Protobuf::MessageExts
820
+ extend ::Google::Protobuf::MessageExts::ClassMethods
821
+
822
+ # Spec that applies to clusters of an Instance of Cloud Bigtable.
823
+ # @!attribute [rw] display_name
824
+ # @return [::String]
825
+ # Name of the cluster.
826
+ # @!attribute [rw] location
827
+ # @return [::String]
828
+ # Location of the cluster, typically a Cloud zone.
829
+ # @!attribute [rw] type
830
+ # @return [::String]
831
+ # Type of the resource. For a cluster this would be "CLUSTER".
832
+ # @!attribute [rw] linked_resource
833
+ # @return [::String]
834
+ # A link back to the parent resource, in this case Instance.
835
+ class CloudBigtableClusterSpec
836
+ include ::Google::Protobuf::MessageExts
837
+ extend ::Google::Protobuf::MessageExts::ClassMethods
838
+ end
839
+ end
840
+
841
+ # Specification that applies to a Service resource. Valid only
842
+ # for entries with the `SERVICE` type.
843
+ # @!attribute [rw] cloud_bigtable_instance_spec
844
+ # @return [::Google::Cloud::DataCatalog::V1::CloudBigtableInstanceSpec]
845
+ # Specification that applies to Instance entries of `CLOUD_BIGTABLE`
846
+ # system.
847
+ class ServiceSpec
848
+ include ::Google::Protobuf::MessageExts
849
+ extend ::Google::Protobuf::MessageExts::ClassMethods
850
+ end
851
+
792
852
  # Business Context of the entry.
793
853
  # @!attribute [rw] entry_overview
794
854
  # @return [::Google::Cloud::DataCatalog::V1::EntryOverview]
@@ -1278,6 +1338,10 @@ module Google
1278
1338
  # @!attribute [rw] gcs_bucket_path
1279
1339
  # @return [::String]
1280
1340
  # Path to a Cloud Storage bucket that contains a dump ready for ingestion.
1341
+ # @!attribute [rw] job_id
1342
+ # @return [::String]
1343
+ # Optional. (Optional) Dataplex task job id, if specified will be used as
1344
+ # part of ImportEntries LRO ID
1281
1345
  class ImportEntriesRequest
1282
1346
  include ::Google::Protobuf::MessageExts
1283
1347
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -28,11 +28,11 @@ module Google
28
28
  # Non-encrypted Data Catalog v1 Entry.
29
29
  # @!attribute [rw] present_tags
30
30
  # @return [::Array<::Google::Cloud::DataCatalog::V1::Tag>]
31
- # Tags that should be ingested into the Data Catalog.
31
+ # Optional. Tags that should be ingested into the Data Catalog.
32
32
  # Caller should populate template name, column and fields.
33
33
  # @!attribute [rw] absent_tags
34
34
  # @return [::Array<::Google::Cloud::DataCatalog::V1::Tag>]
35
- # Tags that should be deleted from the Data Catalog.
35
+ # Optional. Tags that should be deleted from the Data Catalog.
36
36
  # Caller should populate template name and column only.
37
37
  class TaggedEntry
38
38
  include ::Google::Protobuf::MessageExts
@@ -91,7 +91,7 @@ module Google
91
91
  # The Google Cloud service name.
92
92
  # @!attribute [rw] identity
93
93
  # @return [::String]
94
- # P4SA Identity of the service.
94
+ # The service agent for the service.
95
95
  class Service
96
96
  include ::Google::Protobuf::MessageExts
97
97
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-data_catalog-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-23 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a