Skip to content

Commit d49f0a3

Browse files
feat: added support for detecting key-value pairs in client provided metadata (#33807)
* feat: added support for detecting key-value pairs in client provided metadata PiperOrigin-RevId: 895098649 Source-Link: googleapis/googleapis@544bab0 Source-Link: googleapis/googleapis-gen@676f5fc Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRscC12Mi8uT3dsQm90LnlhbWwiLCJoIjoiNjc2ZjVmYzU5MGQ1NzdiODk5M2FhNWZhNmI1MGYyMjdiZjM1ZmU1YSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent f00ad2c commit d49f0a3

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

google-cloud-dlp-v2/lib/google/privacy/dlp/v2/dlp_pb.rb

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-dlp-v2/proto_docs/google/api/client.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ module Api
3131
# @!attribute [rw] selective_gapic_generation
3232
# @return [::Google::Api::SelectiveGapicGeneration]
3333
# Configuration for which RPCs should be generated in the GAPIC client.
34+
#
35+
# Note: This field should not be used in most cases.
3436
class CommonLanguageSettings
3537
include ::Google::Protobuf::MessageExts
3638
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -441,6 +443,8 @@ class LongRunning
441443

442444
# This message is used to configure the generation of a subset of the RPCs in
443445
# a service for client libraries.
446+
#
447+
# Note: This feature should not be used in most cases.
444448
# @!attribute [rw] methods
445449
# @return [::Array<::String>]
446450
# An allowlist of the fully qualified names of RPCs that should be included

google-cloud-dlp-v2/proto_docs/google/privacy/dlp/v2/dlp.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,11 +488,23 @@ module BytesType
488488
# Content data to inspect or redact. Replaces `type` and `data`.
489489
#
490490
# Note: The following fields are mutually exclusive: `byte_item`, `value`, `table`. If a field in that set is populated, all other fields in the set will automatically be cleared.
491+
# @!attribute [rw] content_metadata
492+
# @return [::Google::Cloud::Dlp::V2::ContentMetadata]
493+
# User provided metadata for the content.
491494
class ContentItem
492495
include ::Google::Protobuf::MessageExts
493496
extend ::Google::Protobuf::MessageExts::ClassMethods
494497
end
495498

499+
# Metadata on content to be scanned.
500+
# @!attribute [rw] properties
501+
# @return [::Array<::Google::Cloud::Dlp::V2::KeyValueMetadataProperty>]
502+
# User provided key-value pairs of content metadata.
503+
class ContentMetadata
504+
include ::Google::Protobuf::MessageExts
505+
extend ::Google::Protobuf::MessageExts::ClassMethods
506+
end
507+
496508
# Structured content to inspect. Up to 50,000 `Value`s per request allowed. See
497509
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-structured-text#inspecting_a_table
498510
# to learn more.
@@ -516,6 +528,18 @@ class Row
516528
end
517529
end
518530

531+
# A key-value pair in the Metadata.
532+
# @!attribute [rw] key
533+
# @return [::String]
534+
# The key of the property.
535+
# @!attribute [rw] value
536+
# @return [::String]
537+
# The value of the property.
538+
class KeyValueMetadataProperty
539+
include ::Google::Protobuf::MessageExts
540+
extend ::Google::Protobuf::MessageExts::ClassMethods
541+
end
542+
519543
# All the findings for a single scanned item.
520544
# @!attribute [rw] findings
521545
# @return [::Array<::Google::Cloud::Dlp::V2::Finding>]
@@ -8828,6 +8852,9 @@ module MetadataType
88288852

88298853
# Metadata extracted from the files.
88308854
CONTENT_METADATA = 3
8855+
8856+
# Metadata provided by the client.
8857+
CLIENT_PROVIDED_METADATA = 4
88318858
end
88328859

88338860
# Parts of the APIs which use certain infoTypes.

0 commit comments

Comments
 (0)