google-cloud-security_center-v1 0.28.0 → 0.29.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/security_center/v1/version.rb +1 -1
  3. data/lib/google/cloud/securitycenter/v1/access_pb.rb +24 -20
  4. data/lib/google/cloud/securitycenter/v1/asset_pb.rb +28 -25
  5. data/lib/google/cloud/securitycenter/v1/bigquery_export_pb.rb +25 -11
  6. data/lib/google/cloud/securitycenter/v1/cloud_dlp_data_profile_pb.rb +24 -4
  7. data/lib/google/cloud/securitycenter/v1/cloud_dlp_inspection_pb.rb +24 -7
  8. data/lib/google/cloud/securitycenter/v1/compliance_pb.rb +24 -6
  9. data/lib/google/cloud/securitycenter/v1/connection_pb.rb +24 -16
  10. data/lib/google/cloud/securitycenter/v1/contact_details_pb.rb +24 -7
  11. data/lib/google/cloud/securitycenter/v1/container_pb.rb +25 -7
  12. data/lib/google/cloud/securitycenter/v1/database_pb.rb +24 -8
  13. data/lib/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module_pb.rb +25 -12
  14. data/lib/google/cloud/securitycenter/v1/exfiltration_pb.rb +24 -9
  15. data/lib/google/cloud/securitycenter/v1/external_system_pb.rb +25 -8
  16. data/lib/google/cloud/securitycenter/v1/file_pb.rb +24 -9
  17. data/lib/google/cloud/securitycenter/v1/finding_pb.rb +45 -67
  18. data/lib/google/cloud/securitycenter/v1/folder_pb.rb +24 -5
  19. data/lib/google/cloud/securitycenter/v1/iam_binding_pb.rb +24 -11
  20. data/lib/google/cloud/securitycenter/v1/indicator_pb.rb +24 -24
  21. data/lib/google/cloud/securitycenter/v1/kernel_rootkit_pb.rb +24 -12
  22. data/lib/google/cloud/securitycenter/v1/kubernetes_pb.rb +26 -58
  23. data/lib/google/cloud/securitycenter/v1/label_pb.rb +24 -5
  24. data/lib/google/cloud/securitycenter/v1/mitre_attack_pb.rb +24 -63
  25. data/lib/google/cloud/securitycenter/v1/mute_config_pb.rb +25 -10
  26. data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +24 -13
  27. data/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +26 -8
  28. data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +24 -16
  29. data/lib/google/cloud/securitycenter/v1/process_pb.rb +25 -17
  30. data/lib/google/cloud/securitycenter/v1/resource_pb.rb +25 -11
  31. data/lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb +25 -11
  32. data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_config_pb.rb +25 -26
  33. data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_module_pb.rb +26 -16
  34. data/lib/google/cloud/securitycenter/v1/security_marks_pb.rb +24 -6
  35. data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +40 -279
  36. data/lib/google/cloud/securitycenter/v1/source_pb.rb +24 -7
  37. data/lib/google/cloud/securitycenter/v1/vulnerability_pb.rb +24 -59
  38. data/proto_docs/google/api/client.rb +10 -1
  39. data/proto_docs/google/protobuf/any.rb +7 -4
  40. data/proto_docs/google/protobuf/struct.rb +1 -1
  41. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  42. 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/securitycenter/v1/external_system.proto
3
4
 
@@ -6,16 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/resource_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/securitycenter/v1/external_system.proto", :syntax => :proto3) do
11
- add_message "google.cloud.securitycenter.v1.ExternalSystem" do
12
- optional :name, :string, 1
13
- repeated :assignees, :string, 2
14
- optional :external_uid, :string, 3
15
- optional :status, :string, 4
16
- optional :external_system_update_time, :message, 5, "google.protobuf.Timestamp"
10
+
11
+ descriptor_data = "\n4google/cloud/securitycenter/v1/external_system.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe0\x03\n\x0e\x45xternalSystem\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tassignees\x18\x02 \x03(\t\x12\x14\n\x0c\x65xternal_uid\x18\x03 \x01(\t\x12\x0e\n\x06status\x18\x04 \x01(\t\x12?\n\x1b\x65xternal_system_update_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp:\xc5\x02\xea\x41\xc1\x02\n,securitycenter.googleapis.com/ExternalSystem\x12\x61organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}\x12Ufolders/{folder}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}\x12Wprojects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}B\xed\x01\n\"com.google.cloud.securitycenter.v1B\x13\x45xternalSystemProtoP\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::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}"
17
32
  end
18
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."
19
36
  end
20
37
 
21
38
  module Google
@@ -1,19 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/file.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/securitycenter/v1/file.proto", :syntax => :proto3) do
8
- add_message "google.cloud.securitycenter.v1.File" do
9
- optional :path, :string, 1
10
- optional :size, :int64, 2
11
- optional :sha256, :string, 3
12
- optional :hashed_size, :int64, 4
13
- optional :partially_hashed, :bool, 5
14
- optional :contents, :string, 6
7
+
8
+ descriptor_data = "\n)google/cloud/securitycenter/v1/file.proto\x12\x1egoogle.cloud.securitycenter.v1\"s\n\x04\x46ile\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0c\n\x04size\x18\x02 \x01(\x03\x12\x0e\n\x06sha256\x18\x03 \x01(\t\x12\x13\n\x0bhashed_size\x18\x04 \x01(\x03\x12\x18\n\x10partially_hashed\x18\x05 \x01(\x08\x12\x10\n\x08\x63ontents\x18\x06 \x01(\tB\xe3\x01\n\"com.google.cloud.securitycenter.v1B\tFileProtoP\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
15
28
  end
16
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
17
32
  end
18
33
 
19
34
  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/securitycenter/v1/finding.proto
3
4
 
@@ -27,75 +28,52 @@ require 'google/cloud/securitycenter/v1/vulnerability_pb'
27
28
  require 'google/protobuf/struct_pb'
28
29
  require 'google/protobuf/timestamp_pb'
29
30
 
30
- Google::Protobuf::DescriptorPool.generated_pool.build do
31
- add_file("google/cloud/securitycenter/v1/finding.proto", :syntax => :proto3) do
32
- add_message "google.cloud.securitycenter.v1.Finding" do
33
- optional :name, :string, 1
34
- optional :parent, :string, 2
35
- optional :resource_name, :string, 3
36
- optional :state, :enum, 4, "google.cloud.securitycenter.v1.Finding.State"
37
- optional :category, :string, 5
38
- optional :external_uri, :string, 6
39
- map :source_properties, :string, :message, 7, "google.protobuf.Value"
40
- optional :security_marks, :message, 8, "google.cloud.securitycenter.v1.SecurityMarks"
41
- optional :event_time, :message, 9, "google.protobuf.Timestamp"
42
- optional :create_time, :message, 10, "google.protobuf.Timestamp"
43
- optional :severity, :enum, 12, "google.cloud.securitycenter.v1.Finding.Severity"
44
- optional :canonical_name, :string, 14
45
- optional :mute, :enum, 15, "google.cloud.securitycenter.v1.Finding.Mute"
46
- optional :finding_class, :enum, 17, "google.cloud.securitycenter.v1.Finding.FindingClass"
47
- optional :indicator, :message, 18, "google.cloud.securitycenter.v1.Indicator"
48
- optional :vulnerability, :message, 20, "google.cloud.securitycenter.v1.Vulnerability"
49
- optional :mute_update_time, :message, 21, "google.protobuf.Timestamp"
50
- map :external_systems, :string, :message, 22, "google.cloud.securitycenter.v1.ExternalSystem"
51
- optional :mitre_attack, :message, 25, "google.cloud.securitycenter.v1.MitreAttack"
52
- optional :access, :message, 26, "google.cloud.securitycenter.v1.Access"
53
- repeated :connections, :message, 31, "google.cloud.securitycenter.v1.Connection"
54
- optional :mute_initiator, :string, 28
55
- repeated :processes, :message, 30, "google.cloud.securitycenter.v1.Process"
56
- map :contacts, :string, :message, 33, "google.cloud.securitycenter.v1.ContactDetails"
57
- repeated :compliances, :message, 34, "google.cloud.securitycenter.v1.Compliance"
58
- optional :parent_display_name, :string, 36
59
- optional :description, :string, 37
60
- optional :exfiltration, :message, 38, "google.cloud.securitycenter.v1.Exfiltration"
61
- repeated :iam_bindings, :message, 39, "google.cloud.securitycenter.v1.IamBinding"
62
- optional :next_steps, :string, 40
63
- optional :module_name, :string, 41
64
- repeated :containers, :message, 42, "google.cloud.securitycenter.v1.Container"
65
- optional :kubernetes, :message, 43, "google.cloud.securitycenter.v1.Kubernetes"
66
- optional :database, :message, 44, "google.cloud.securitycenter.v1.Database"
67
- repeated :files, :message, 46, "google.cloud.securitycenter.v1.File"
68
- optional :cloud_dlp_inspection, :message, 48, "google.cloud.securitycenter.v1.CloudDlpInspection"
69
- optional :cloud_dlp_data_profile, :message, 49, "google.cloud.securitycenter.v1.CloudDlpDataProfile"
70
- optional :kernel_rootkit, :message, 50, "google.cloud.securitycenter.v1.KernelRootkit"
71
- end
72
- add_enum "google.cloud.securitycenter.v1.Finding.State" do
73
- value :STATE_UNSPECIFIED, 0
74
- value :ACTIVE, 1
75
- value :INACTIVE, 2
76
- end
77
- add_enum "google.cloud.securitycenter.v1.Finding.Severity" do
78
- value :SEVERITY_UNSPECIFIED, 0
79
- value :CRITICAL, 1
80
- value :HIGH, 2
81
- value :MEDIUM, 3
82
- value :LOW, 4
83
- end
84
- add_enum "google.cloud.securitycenter.v1.Finding.Mute" do
85
- value :MUTE_UNSPECIFIED, 0
86
- value :MUTED, 1
87
- value :UNMUTED, 2
88
- value :UNDEFINED, 4
89
- end
90
- add_enum "google.cloud.securitycenter.v1.Finding.FindingClass" do
91
- value :FINDING_CLASS_UNSPECIFIED, 0
92
- value :THREAT, 1
93
- value :VULNERABILITY, 2
94
- value :MISCONFIGURATION, 3
95
- value :OBSERVATION, 4
96
- value :SCC_ERROR, 5
31
+
32
+ descriptor_data = "\n,google/cloud/securitycenter/v1/finding.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/securitycenter/v1/access.proto\x1a;google/cloud/securitycenter/v1/cloud_dlp_data_profile.proto\x1a\x39google/cloud/securitycenter/v1/cloud_dlp_inspection.proto\x1a/google/cloud/securitycenter/v1/compliance.proto\x1a/google/cloud/securitycenter/v1/connection.proto\x1a\x34google/cloud/securitycenter/v1/contact_details.proto\x1a.google/cloud/securitycenter/v1/container.proto\x1a-google/cloud/securitycenter/v1/database.proto\x1a\x31google/cloud/securitycenter/v1/exfiltration.proto\x1a\x34google/cloud/securitycenter/v1/external_system.proto\x1a)google/cloud/securitycenter/v1/file.proto\x1a\x30google/cloud/securitycenter/v1/iam_binding.proto\x1a.google/cloud/securitycenter/v1/indicator.proto\x1a\x33google/cloud/securitycenter/v1/kernel_rootkit.proto\x1a/google/cloud/securitycenter/v1/kubernetes.proto\x1a\x31google/cloud/securitycenter/v1/mitre_attack.proto\x1a,google/cloud/securitycenter/v1/process.proto\x1a\x33google/cloud/securitycenter/v1/security_marks.proto\x1a\x32google/cloud/securitycenter/v1/vulnerability.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xde\x16\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06parent\x18\x02 \x01(\t\x12\x15\n\rresource_name\x18\x03 \x01(\t\x12<\n\x05state\x18\x04 \x01(\x0e\x32-.google.cloud.securitycenter.v1.Finding.State\x12\x10\n\x08\x63\x61tegory\x18\x05 \x01(\t\x12\x14\n\x0c\x65xternal_uri\x18\x06 \x01(\t\x12X\n\x11source_properties\x18\x07 \x03(\x0b\x32=.google.cloud.securitycenter.v1.Finding.SourcePropertiesEntry\x12J\n\x0esecurity_marks\x18\x08 \x01(\x0b\x32-.google.cloud.securitycenter.v1.SecurityMarksB\x03\xe0\x41\x03\x12.\n\nevent_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x08severity\x18\x0c \x01(\x0e\x32\x30.google.cloud.securitycenter.v1.Finding.Severity\x12\x16\n\x0e\x63\x61nonical_name\x18\x0e \x01(\t\x12:\n\x04mute\x18\x0f \x01(\x0e\x32,.google.cloud.securitycenter.v1.Finding.Mute\x12K\n\rfinding_class\x18\x11 \x01(\x0e\x32\x34.google.cloud.securitycenter.v1.Finding.FindingClass\x12<\n\tindicator\x18\x12 \x01(\x0b\x32).google.cloud.securitycenter.v1.Indicator\x12\x44\n\rvulnerability\x18\x14 \x01(\x0b\x32-.google.cloud.securitycenter.v1.Vulnerability\x12\x39\n\x10mute_update_time\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12[\n\x10\x65xternal_systems\x18\x16 \x03(\x0b\x32<.google.cloud.securitycenter.v1.Finding.ExternalSystemsEntryB\x03\xe0\x41\x03\x12\x41\n\x0cmitre_attack\x18\x19 \x01(\x0b\x32+.google.cloud.securitycenter.v1.MitreAttack\x12\x36\n\x06\x61\x63\x63\x65ss\x18\x1a \x01(\x0b\x32&.google.cloud.securitycenter.v1.Access\x12?\n\x0b\x63onnections\x18\x1f \x03(\x0b\x32*.google.cloud.securitycenter.v1.Connection\x12\x16\n\x0emute_initiator\x18\x1c \x01(\t\x12:\n\tprocesses\x18\x1e \x03(\x0b\x32\'.google.cloud.securitycenter.v1.Process\x12L\n\x08\x63ontacts\x18! \x03(\x0b\x32\x35.google.cloud.securitycenter.v1.Finding.ContactsEntryB\x03\xe0\x41\x03\x12?\n\x0b\x63ompliances\x18\" \x03(\x0b\x32*.google.cloud.securitycenter.v1.Compliance\x12 \n\x13parent_display_name\x18$ \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18% \x01(\t\x12\x42\n\x0c\x65xfiltration\x18& \x01(\x0b\x32,.google.cloud.securitycenter.v1.Exfiltration\x12@\n\x0ciam_bindings\x18\' \x03(\x0b\x32*.google.cloud.securitycenter.v1.IamBinding\x12\x12\n\nnext_steps\x18( \x01(\t\x12\x13\n\x0bmodule_name\x18) \x01(\t\x12=\n\ncontainers\x18* \x03(\x0b\x32).google.cloud.securitycenter.v1.Container\x12>\n\nkubernetes\x18+ \x01(\x0b\x32*.google.cloud.securitycenter.v1.Kubernetes\x12:\n\x08\x64\x61tabase\x18, \x01(\x0b\x32(.google.cloud.securitycenter.v1.Database\x12\x33\n\x05\x66iles\x18. \x03(\x0b\x32$.google.cloud.securitycenter.v1.File\x12P\n\x14\x63loud_dlp_inspection\x18\x30 \x01(\x0b\x32\x32.google.cloud.securitycenter.v1.CloudDlpInspection\x12S\n\x16\x63loud_dlp_data_profile\x18\x31 \x01(\x0b\x32\x33.google.cloud.securitycenter.v1.CloudDlpDataProfile\x12\x45\n\x0ekernel_rootkit\x18\x32 \x01(\x0b\x32-.google.cloud.securitycenter.v1.KernelRootkit\x1aO\n\x15SourcePropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x1a\x66\n\x14\x45xternalSystemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.cloud.securitycenter.v1.ExternalSystem:\x02\x38\x01\x1a_\n\rContactsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.cloud.securitycenter.v1.ContactDetails:\x02\x38\x01\"8\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\"Q\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RITICAL\x10\x01\x12\x08\n\x04HIGH\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x07\n\x03LOW\x10\x04\"C\n\x04Mute\x12\x14\n\x10MUTE_UNSPECIFIED\x10\x00\x12\t\n\x05MUTED\x10\x01\x12\x0b\n\x07UNMUTED\x10\x02\x12\r\n\tUNDEFINED\x10\x04\"\x82\x01\n\x0c\x46indingClass\x12\x1d\n\x19\x46INDING_CLASS_UNSPECIFIED\x10\x00\x12\n\n\x06THREAT\x10\x01\x12\x11\n\rVULNERABILITY\x10\x02\x12\x14\n\x10MISCONFIGURATION\x10\x03\x12\x0f\n\x0bOBSERVATION\x10\x04\x12\r\n\tSCC_ERROR\x10\x05:\xdb\x01\xea\x41\xd7\x01\n%securitycenter.googleapis.com/Finding\x12@organizations/{organization}/sources/{source}/findings/{finding}\x12\x34\x66olders/{folder}/sources/{source}/findings/{finding}\x12\x36projects/{project}/sources/{source}/findings/{finding}B\xd8\x01\n\"com.google.cloud.securitycenter.v1P\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
33
+
34
+ pool = Google::Protobuf::DescriptorPool.generated_pool
35
+
36
+ begin
37
+ pool.add_serialized_file(descriptor_data)
38
+ rescue TypeError => e
39
+ # Compatibility code: will be removed in the next major version.
40
+ require 'google/protobuf/descriptor_pb'
41
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
42
+ parsed.clear_dependency
43
+ serialized = parsed.class.encode(parsed)
44
+ file = pool.add_serialized_file(serialized)
45
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
46
+ imports = [
47
+ ["google.cloud.securitycenter.v1.SecurityMarks", "google/cloud/securitycenter/v1/security_marks.proto"],
48
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
49
+ ["google.cloud.securitycenter.v1.Indicator", "google/cloud/securitycenter/v1/indicator.proto"],
50
+ ["google.cloud.securitycenter.v1.Vulnerability", "google/cloud/securitycenter/v1/vulnerability.proto"],
51
+ ["google.cloud.securitycenter.v1.MitreAttack", "google/cloud/securitycenter/v1/mitre_attack.proto"],
52
+ ["google.cloud.securitycenter.v1.Access", "google/cloud/securitycenter/v1/access.proto"],
53
+ ["google.cloud.securitycenter.v1.Connection", "google/cloud/securitycenter/v1/connection.proto"],
54
+ ["google.cloud.securitycenter.v1.Process", "google/cloud/securitycenter/v1/process.proto"],
55
+ ["google.cloud.securitycenter.v1.Compliance", "google/cloud/securitycenter/v1/compliance.proto"],
56
+ ["google.cloud.securitycenter.v1.Exfiltration", "google/cloud/securitycenter/v1/exfiltration.proto"],
57
+ ["google.cloud.securitycenter.v1.IamBinding", "google/cloud/securitycenter/v1/iam_binding.proto"],
58
+ ["google.cloud.securitycenter.v1.Container", "google/cloud/securitycenter/v1/container.proto"],
59
+ ["google.cloud.securitycenter.v1.Kubernetes", "google/cloud/securitycenter/v1/kubernetes.proto"],
60
+ ["google.cloud.securitycenter.v1.Database", "google/cloud/securitycenter/v1/database.proto"],
61
+ ["google.cloud.securitycenter.v1.File", "google/cloud/securitycenter/v1/file.proto"],
62
+ ["google.cloud.securitycenter.v1.CloudDlpInspection", "google/cloud/securitycenter/v1/cloud_dlp_inspection.proto"],
63
+ ["google.cloud.securitycenter.v1.CloudDlpDataProfile", "google/cloud/securitycenter/v1/cloud_dlp_data_profile.proto"],
64
+ ["google.cloud.securitycenter.v1.KernelRootkit", "google/cloud/securitycenter/v1/kernel_rootkit.proto"],
65
+ ["google.protobuf.Value", "google/protobuf/struct.proto"],
66
+ ["google.cloud.securitycenter.v1.ExternalSystem", "google/cloud/securitycenter/v1/external_system.proto"],
67
+ ["google.cloud.securitycenter.v1.ContactDetails", "google/cloud/securitycenter/v1/contact_details.proto"],
68
+ ]
69
+ imports.each do |type_name, expected_filename|
70
+ import_file = pool.lookup(type_name).file_descriptor
71
+ if import_file.name != expected_filename
72
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
97
73
  end
98
74
  end
75
+ warn "Each proto file must use a consistent fully-qualified name."
76
+ warn "This will become an error in the next major version."
99
77
  end
100
78
 
101
79
  module Google
@@ -1,15 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/folder.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/securitycenter/v1/folder.proto", :syntax => :proto3) do
8
- add_message "google.cloud.securitycenter.v1.Folder" do
9
- optional :resource_folder, :string, 1
10
- optional :resource_folder_display_name, :string, 2
7
+
8
+ descriptor_data = "\n+google/cloud/securitycenter/v1/folder.proto\x12\x1egoogle.cloud.securitycenter.v1\"G\n\x06\x46older\x12\x17\n\x0fresource_folder\x18\x01 \x01(\t\x12$\n\x1cresource_folder_display_name\x18\x02 \x01(\tB\xe5\x01\n\"com.google.cloud.securitycenter.v1B\x0b\x46olderProtoP\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
11
28
  end
12
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
13
32
  end
14
33
 
15
34
  module Google
@@ -1,21 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/iam_binding.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/securitycenter/v1/iam_binding.proto", :syntax => :proto3) do
8
- add_message "google.cloud.securitycenter.v1.IamBinding" do
9
- optional :action, :enum, 1, "google.cloud.securitycenter.v1.IamBinding.Action"
10
- optional :role, :string, 2
11
- optional :member, :string, 3
12
- end
13
- add_enum "google.cloud.securitycenter.v1.IamBinding.Action" do
14
- value :ACTION_UNSPECIFIED, 0
15
- value :ADD, 1
16
- value :REMOVE, 2
7
+
8
+ descriptor_data = "\n0google/cloud/securitycenter/v1/iam_binding.proto\x12\x1egoogle.cloud.securitycenter.v1\"\xa4\x01\n\nIamBinding\x12\x41\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x31.google.cloud.securitycenter.v1.IamBinding.Action\x12\x0c\n\x04role\x18\x02 \x01(\t\x12\x0e\n\x06member\x18\x03 \x01(\t\"5\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\x42\xe9\x01\n\"com.google.cloud.securitycenter.v1B\x0fIamBindingProtoP\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
17
28
  end
18
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
19
32
  end
20
33
 
21
34
  module Google
@@ -1,34 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/indicator.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/securitycenter/v1/indicator.proto", :syntax => :proto3) do
8
- add_message "google.cloud.securitycenter.v1.Indicator" do
9
- repeated :ip_addresses, :string, 1
10
- repeated :domains, :string, 2
11
- repeated :signatures, :message, 3, "google.cloud.securitycenter.v1.Indicator.ProcessSignature"
12
- repeated :uris, :string, 4
13
- end
14
- add_message "google.cloud.securitycenter.v1.Indicator.ProcessSignature" do
15
- oneof :signature do
16
- optional :memory_hash_signature, :message, 6, "google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature"
17
- optional :yara_rule_signature, :message, 7, "google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature"
18
- end
19
- end
20
- add_message "google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature" do
21
- optional :binary_family, :string, 1
22
- repeated :detections, :message, 4, "google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection"
23
- end
24
- add_message "google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection" do
25
- optional :binary, :string, 2
26
- optional :percent_pages_matched, :double, 3
27
- end
28
- add_message "google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature" do
29
- optional :yara_rule, :string, 5
7
+
8
+ descriptor_data = "\n.google/cloud/securitycenter/v1/indicator.proto\x12\x1egoogle.cloud.securitycenter.v1\"\x91\x05\n\tIndicator\x12\x14\n\x0cip_addresses\x18\x01 \x03(\t\x12\x0f\n\x07\x64omains\x18\x02 \x03(\t\x12N\n\nsignatures\x18\x03 \x03(\x0b\x32:.google.cloud.securitycenter.v1.Indicator.ProcessSignature\x12\x0c\n\x04uris\x18\x04 \x03(\t\x1a\xfe\x03\n\x10ProcessSignature\x12o\n\x15memory_hash_signature\x18\x06 \x01(\x0b\x32N.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignatureH\x00\x12k\n\x13yara_rule_signature\x18\x07 \x01(\x0b\x32L.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignatureH\x00\x1a\xd6\x01\n\x13MemoryHashSignature\x12\x15\n\rbinary_family\x18\x01 \x01(\t\x12l\n\ndetections\x18\x04 \x03(\x0b\x32X.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection\x1a:\n\tDetection\x12\x0e\n\x06\x62inary\x18\x02 \x01(\t\x12\x1d\n\x15percent_pages_matched\x18\x03 \x01(\x01\x1a&\n\x11YaraRuleSignature\x12\x11\n\tyara_rule\x18\x05 \x01(\tB\x0b\n\tsignatureB\xe8\x01\n\"com.google.cloud.securitycenter.v1B\x0eIndicatorProtoP\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
28
  end
31
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
32
  end
33
33
 
34
34
  module Google
@@ -1,22 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/kernel_rootkit.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/securitycenter/v1/kernel_rootkit.proto", :syntax => :proto3) do
8
- add_message "google.cloud.securitycenter.v1.KernelRootkit" do
9
- optional :name, :string, 1
10
- optional :unexpected_code_modification, :bool, 2
11
- optional :unexpected_read_only_data_modification, :bool, 3
12
- optional :unexpected_ftrace_handler, :bool, 4
13
- optional :unexpected_kprobe_handler, :bool, 5
14
- optional :unexpected_kernel_code_pages, :bool, 6
15
- optional :unexpected_system_call_handler, :bool, 7
16
- optional :unexpected_interrupt_handler, :bool, 8
17
- optional :unexpected_processes_in_runqueue, :bool, 9
7
+
8
+ descriptor_data = "\n3google/cloud/securitycenter/v1/kernel_rootkit.proto\x12\x1egoogle.cloud.securitycenter.v1\"\xd7\x02\n\rKernelRootkit\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x1cunexpected_code_modification\x18\x02 \x01(\x08\x12.\n&unexpected_read_only_data_modification\x18\x03 \x01(\x08\x12!\n\x19unexpected_ftrace_handler\x18\x04 \x01(\x08\x12!\n\x19unexpected_kprobe_handler\x18\x05 \x01(\x08\x12$\n\x1cunexpected_kernel_code_pages\x18\x06 \x01(\x08\x12&\n\x1eunexpected_system_call_handler\x18\x07 \x01(\x08\x12$\n\x1cunexpected_interrupt_handler\x18\x08 \x01(\x08\x12(\n unexpected_processes_in_runqueue\x18\t \x01(\x08\x42\xec\x01\n\"com.google.cloud.securitycenter.v1B\x12KernelRootkitProtoP\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
18
28
  end
19
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
20
32
  end
21
33
 
22
34
  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/securitycenter/v1/kubernetes.proto
3
4
 
@@ -6,66 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/cloud/securitycenter/v1/container_pb'
7
8
  require 'google/cloud/securitycenter/v1/label_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/securitycenter/v1/kubernetes.proto", :syntax => :proto3) do
11
- add_message "google.cloud.securitycenter.v1.Kubernetes" do
12
- repeated :pods, :message, 1, "google.cloud.securitycenter.v1.Kubernetes.Pod"
13
- repeated :nodes, :message, 2, "google.cloud.securitycenter.v1.Kubernetes.Node"
14
- repeated :node_pools, :message, 3, "google.cloud.securitycenter.v1.Kubernetes.NodePool"
15
- repeated :roles, :message, 4, "google.cloud.securitycenter.v1.Kubernetes.Role"
16
- repeated :bindings, :message, 5, "google.cloud.securitycenter.v1.Kubernetes.Binding"
17
- repeated :access_reviews, :message, 6, "google.cloud.securitycenter.v1.Kubernetes.AccessReview"
18
- end
19
- add_message "google.cloud.securitycenter.v1.Kubernetes.Pod" do
20
- optional :ns, :string, 1
21
- optional :name, :string, 2
22
- repeated :labels, :message, 3, "google.cloud.securitycenter.v1.Label"
23
- repeated :containers, :message, 4, "google.cloud.securitycenter.v1.Container"
24
- end
25
- add_message "google.cloud.securitycenter.v1.Kubernetes.Node" do
26
- optional :name, :string, 1
27
- end
28
- add_message "google.cloud.securitycenter.v1.Kubernetes.NodePool" do
29
- optional :name, :string, 1
30
- repeated :nodes, :message, 2, "google.cloud.securitycenter.v1.Kubernetes.Node"
31
- end
32
- add_message "google.cloud.securitycenter.v1.Kubernetes.Role" do
33
- optional :kind, :enum, 1, "google.cloud.securitycenter.v1.Kubernetes.Role.Kind"
34
- optional :ns, :string, 2
35
- optional :name, :string, 3
36
- end
37
- add_enum "google.cloud.securitycenter.v1.Kubernetes.Role.Kind" do
38
- value :KIND_UNSPECIFIED, 0
39
- value :ROLE, 1
40
- value :CLUSTER_ROLE, 2
41
- end
42
- add_message "google.cloud.securitycenter.v1.Kubernetes.Binding" do
43
- optional :ns, :string, 1
44
- optional :name, :string, 2
45
- optional :role, :message, 3, "google.cloud.securitycenter.v1.Kubernetes.Role"
46
- repeated :subjects, :message, 4, "google.cloud.securitycenter.v1.Kubernetes.Subject"
47
- end
48
- add_message "google.cloud.securitycenter.v1.Kubernetes.Subject" do
49
- optional :kind, :enum, 1, "google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType"
50
- optional :ns, :string, 2
51
- optional :name, :string, 3
52
- end
53
- add_enum "google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType" do
54
- value :AUTH_TYPE_UNSPECIFIED, 0
55
- value :USER, 1
56
- value :SERVICEACCOUNT, 2
57
- value :GROUP, 3
58
- end
59
- add_message "google.cloud.securitycenter.v1.Kubernetes.AccessReview" do
60
- optional :group, :string, 1
61
- optional :ns, :string, 2
62
- optional :name, :string, 3
63
- optional :resource, :string, 4
64
- optional :subresource, :string, 5
65
- optional :verb, :string, 6
66
- optional :version, :string, 7
10
+
11
+ descriptor_data = "\n/google/cloud/securitycenter/v1/kubernetes.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a.google/cloud/securitycenter/v1/container.proto\x1a*google/cloud/securitycenter/v1/label.proto\"\xbe\n\n\nKubernetes\x12<\n\x04pods\x18\x01 \x03(\x0b\x32..google.cloud.securitycenter.v1.Kubernetes.Pod\x12>\n\x05nodes\x18\x02 \x03(\x0b\x32/.google.cloud.securitycenter.v1.Kubernetes.Node\x12G\n\nnode_pools\x18\x03 \x03(\x0b\x32\x33.google.cloud.securitycenter.v1.Kubernetes.NodePool\x12>\n\x05roles\x18\x04 \x03(\x0b\x32/.google.cloud.securitycenter.v1.Kubernetes.Role\x12\x44\n\x08\x62indings\x18\x05 \x03(\x0b\x32\x32.google.cloud.securitycenter.v1.Kubernetes.Binding\x12O\n\x0e\x61\x63\x63\x65ss_reviews\x18\x06 \x03(\x0b\x32\x37.google.cloud.securitycenter.v1.Kubernetes.AccessReview\x1a\x95\x01\n\x03Pod\x12\n\n\x02ns\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x35\n\x06labels\x18\x03 \x03(\x0b\x32%.google.cloud.securitycenter.v1.Label\x12=\n\ncontainers\x18\x04 \x03(\x0b\x32).google.cloud.securitycenter.v1.Container\x1a\x14\n\x04Node\x12\x0c\n\x04name\x18\x01 \x01(\t\x1aX\n\x08NodePool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x05nodes\x18\x02 \x03(\x0b\x32/.google.cloud.securitycenter.v1.Kubernetes.Node\x1a\x9e\x01\n\x04Role\x12\x42\n\x04kind\x18\x01 \x01(\x0e\x32\x34.google.cloud.securitycenter.v1.Kubernetes.Role.Kind\x12\n\n\x02ns\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\"8\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x08\n\x04ROLE\x10\x01\x12\x10\n\x0c\x43LUSTER_ROLE\x10\x02\x1a\xa8\x01\n\x07\x42inding\x12\n\n\x02ns\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12=\n\x04role\x18\x03 \x01(\x0b\x32/.google.cloud.securitycenter.v1.Kubernetes.Role\x12\x44\n\x08subjects\x18\x04 \x03(\x0b\x32\x32.google.cloud.securitycenter.v1.Kubernetes.Subject\x1a\xbe\x01\n\x07Subject\x12I\n\x04kind\x18\x01 \x01(\x0e\x32;.google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType\x12\n\n\x02ns\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\"N\n\x08\x41uthType\x12\x19\n\x15\x41UTH_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04USER\x10\x01\x12\x12\n\x0eSERVICEACCOUNT\x10\x02\x12\t\n\x05GROUP\x10\x03\x1a}\n\x0c\x41\x63\x63\x65ssReview\x12\r\n\x05group\x18\x01 \x01(\t\x12\n\n\x02ns\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x10\n\x08resource\x18\x04 \x01(\t\x12\x13\n\x0bsubresource\x18\x05 \x01(\t\x12\x0c\n\x04verb\x18\x06 \x01(\t\x12\x0f\n\x07version\x18\x07 \x01(\tB\xe9\x01\n\"com.google.cloud.securitycenter.v1B\x0fKubernetesProtoP\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::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.cloud.securitycenter.v1.Label", "google/cloud/securitycenter/v1/label.proto"],
27
+ ["google.cloud.securitycenter.v1.Container", "google/cloud/securitycenter/v1/container.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
67
33
  end
68
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
69
37
  end
70
38
 
71
39
  module Google
@@ -1,15 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/label.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/securitycenter/v1/label.proto", :syntax => :proto3) do
8
- add_message "google.cloud.securitycenter.v1.Label" do
9
- optional :name, :string, 1
10
- optional :value, :string, 2
7
+
8
+ descriptor_data = "\n*google/cloud/securitycenter/v1/label.proto\x12\x1egoogle.cloud.securitycenter.v1\"$\n\x05Label\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\tB\xe4\x01\n\"com.google.cloud.securitycenter.v1B\nLabelProtoP\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
11
28
  end
12
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
13
32
  end
14
33
 
15
34
  module Google