google-cloud-security_center-v1 0.27.0 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/security_center/v1/security_center/client.rb +1 -1
  3. data/lib/google/cloud/security_center/v1/security_center/paths.rb +82 -0
  4. data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +1 -1
  5. data/lib/google/cloud/security_center/v1/version.rb +1 -1
  6. data/lib/google/cloud/securitycenter/v1/access_pb.rb +24 -20
  7. data/lib/google/cloud/securitycenter/v1/asset_pb.rb +28 -25
  8. data/lib/google/cloud/securitycenter/v1/bigquery_export_pb.rb +25 -11
  9. data/lib/google/cloud/securitycenter/v1/cloud_dlp_data_profile_pb.rb +44 -0
  10. data/lib/google/cloud/securitycenter/v1/cloud_dlp_inspection_pb.rb +44 -0
  11. data/lib/google/cloud/securitycenter/v1/compliance_pb.rb +24 -6
  12. data/lib/google/cloud/securitycenter/v1/connection_pb.rb +24 -16
  13. data/lib/google/cloud/securitycenter/v1/contact_details_pb.rb +24 -7
  14. data/lib/google/cloud/securitycenter/v1/container_pb.rb +25 -7
  15. data/lib/google/cloud/securitycenter/v1/database_pb.rb +24 -8
  16. data/lib/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module_pb.rb +25 -12
  17. data/lib/google/cloud/securitycenter/v1/exfiltration_pb.rb +24 -9
  18. data/lib/google/cloud/securitycenter/v1/external_system_pb.rb +25 -8
  19. data/lib/google/cloud/securitycenter/v1/file_pb.rb +24 -9
  20. data/lib/google/cloud/securitycenter/v1/finding_pb.rb +47 -65
  21. data/lib/google/cloud/securitycenter/v1/folder_pb.rb +24 -5
  22. data/lib/google/cloud/securitycenter/v1/iam_binding_pb.rb +24 -11
  23. data/lib/google/cloud/securitycenter/v1/indicator_pb.rb +24 -24
  24. data/lib/google/cloud/securitycenter/v1/kernel_rootkit_pb.rb +24 -12
  25. data/lib/google/cloud/securitycenter/v1/kubernetes_pb.rb +26 -58
  26. data/lib/google/cloud/securitycenter/v1/label_pb.rb +24 -5
  27. data/lib/google/cloud/securitycenter/v1/mitre_attack_pb.rb +24 -63
  28. data/lib/google/cloud/securitycenter/v1/mute_config_pb.rb +25 -10
  29. data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +24 -13
  30. data/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +26 -8
  31. data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +24 -16
  32. data/lib/google/cloud/securitycenter/v1/process_pb.rb +25 -17
  33. data/lib/google/cloud/securitycenter/v1/resource_pb.rb +25 -11
  34. data/lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb +25 -11
  35. data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_config_pb.rb +25 -26
  36. data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_module_pb.rb +26 -16
  37. data/lib/google/cloud/securitycenter/v1/security_marks_pb.rb +24 -6
  38. data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +40 -279
  39. data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +1 -1
  40. data/lib/google/cloud/securitycenter/v1/source_pb.rb +24 -7
  41. data/lib/google/cloud/securitycenter/v1/vulnerability_pb.rb +24 -59
  42. data/proto_docs/google/api/client.rb +10 -1
  43. data/proto_docs/google/cloud/securitycenter/v1/access.rb +28 -29
  44. data/proto_docs/google/cloud/securitycenter/v1/cloud_dlp_data_profile.rb +37 -0
  45. data/proto_docs/google/cloud/securitycenter/v1/cloud_dlp_inspection.rb +50 -0
  46. data/proto_docs/google/cloud/securitycenter/v1/finding.rb +30 -21
  47. data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +11 -11
  48. data/proto_docs/google/protobuf/any.rb +7 -4
  49. data/proto_docs/google/protobuf/struct.rb +1 -1
  50. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  51. metadata +8 -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/effective_security_health_analytics_custom_module.proto
3
4
 
@@ -7,20 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/cloud/securitycenter/v1/security_health_analytics_custom_config_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto", :syntax => :proto3) do
12
- add_message "google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule" do
13
- optional :name, :string, 1
14
- optional :custom_config, :message, 2, "google.cloud.securitycenter.v1.CustomConfig"
15
- optional :enablement_state, :enum, 3, "google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState"
16
- optional :display_name, :string, 4
17
- end
18
- add_enum "google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState" do
19
- value :ENABLEMENT_STATE_UNSPECIFIED, 0
20
- value :ENABLED, 1
21
- value :DISABLED, 2
11
+
12
+ descriptor_data = "\nVgoogle/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1aLgoogle/cloud/securitycenter/v1/security_health_analytics_custom_config.proto\"\xfd\x05\n,EffectiveSecurityHealthAnalyticsCustomModule\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12H\n\rcustom_config\x18\x02 \x01(\x0b\x32,.google.cloud.securitycenter.v1.CustomConfigB\x03\xe0\x41\x03\x12{\n\x10\x65nablement_state\x18\x03 \x01(\x0e\x32\\.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementStateB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\"N\n\x0f\x45nablementState\x12 \n\x1c\x45NABLEMENT_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02:\x87\x03\xea\x41\x83\x03\nJsecuritycenter.googleapis.com/EffectiveSecurityHealthAnalyticsCustomModule\x12morganizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}\x12\x61\x66olders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}\x12\x63projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}B\x8b\x02\n\"com.google.cloud.securitycenter.v1B1EffectiveSecurityHealthAnalyticsCustomModuleProtoP\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"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.cloud.securitycenter.v1.CustomConfig", "google/cloud/securitycenter/v1/security_health_analytics_custom_config.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}"
22
33
  end
23
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."
24
37
  end
25
38
 
26
39
  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/exfiltration.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/exfiltration.proto", :syntax => :proto3) do
8
- add_message "google.cloud.securitycenter.v1.Exfiltration" do
9
- repeated :sources, :message, 1, "google.cloud.securitycenter.v1.ExfilResource"
10
- repeated :targets, :message, 2, "google.cloud.securitycenter.v1.ExfilResource"
11
- end
12
- add_message "google.cloud.securitycenter.v1.ExfilResource" do
13
- optional :name, :string, 1
14
- repeated :components, :string, 2
7
+
8
+ descriptor_data = "\n1google/cloud/securitycenter/v1/exfiltration.proto\x12\x1egoogle.cloud.securitycenter.v1\"\x8e\x01\n\x0c\x45xfiltration\x12>\n\x07sources\x18\x01 \x03(\x0b\x32-.google.cloud.securitycenter.v1.ExfilResource\x12>\n\x07targets\x18\x02 \x03(\x0b\x32-.google.cloud.securitycenter.v1.ExfilResource\"1\n\rExfilResource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ncomponents\x18\x02 \x03(\tB\xeb\x01\n\"com.google.cloud.securitycenter.v1B\x11\x45xfiltrationProtoP\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/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
 
@@ -6,6 +7,8 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/cloud/securitycenter/v1/access_pb'
10
+ require 'google/cloud/securitycenter/v1/cloud_dlp_data_profile_pb'
11
+ require 'google/cloud/securitycenter/v1/cloud_dlp_inspection_pb'
9
12
  require 'google/cloud/securitycenter/v1/compliance_pb'
10
13
  require 'google/cloud/securitycenter/v1/connection_pb'
11
14
  require 'google/cloud/securitycenter/v1/contact_details_pb'
@@ -25,73 +28,52 @@ require 'google/cloud/securitycenter/v1/vulnerability_pb'
25
28
  require 'google/protobuf/struct_pb'
26
29
  require 'google/protobuf/timestamp_pb'
27
30
 
28
- Google::Protobuf::DescriptorPool.generated_pool.build do
29
- add_file("google/cloud/securitycenter/v1/finding.proto", :syntax => :proto3) do
30
- add_message "google.cloud.securitycenter.v1.Finding" do
31
- optional :name, :string, 1
32
- optional :parent, :string, 2
33
- optional :resource_name, :string, 3
34
- optional :state, :enum, 4, "google.cloud.securitycenter.v1.Finding.State"
35
- optional :category, :string, 5
36
- optional :external_uri, :string, 6
37
- map :source_properties, :string, :message, 7, "google.protobuf.Value"
38
- optional :security_marks, :message, 8, "google.cloud.securitycenter.v1.SecurityMarks"
39
- optional :event_time, :message, 9, "google.protobuf.Timestamp"
40
- optional :create_time, :message, 10, "google.protobuf.Timestamp"
41
- optional :severity, :enum, 12, "google.cloud.securitycenter.v1.Finding.Severity"
42
- optional :canonical_name, :string, 14
43
- optional :mute, :enum, 15, "google.cloud.securitycenter.v1.Finding.Mute"
44
- optional :finding_class, :enum, 17, "google.cloud.securitycenter.v1.Finding.FindingClass"
45
- optional :indicator, :message, 18, "google.cloud.securitycenter.v1.Indicator"
46
- optional :vulnerability, :message, 20, "google.cloud.securitycenter.v1.Vulnerability"
47
- optional :mute_update_time, :message, 21, "google.protobuf.Timestamp"
48
- map :external_systems, :string, :message, 22, "google.cloud.securitycenter.v1.ExternalSystem"
49
- optional :mitre_attack, :message, 25, "google.cloud.securitycenter.v1.MitreAttack"
50
- optional :access, :message, 26, "google.cloud.securitycenter.v1.Access"
51
- repeated :connections, :message, 31, "google.cloud.securitycenter.v1.Connection"
52
- optional :mute_initiator, :string, 28
53
- repeated :processes, :message, 30, "google.cloud.securitycenter.v1.Process"
54
- map :contacts, :string, :message, 33, "google.cloud.securitycenter.v1.ContactDetails"
55
- repeated :compliances, :message, 34, "google.cloud.securitycenter.v1.Compliance"
56
- optional :parent_display_name, :string, 36
57
- optional :description, :string, 37
58
- optional :exfiltration, :message, 38, "google.cloud.securitycenter.v1.Exfiltration"
59
- repeated :iam_bindings, :message, 39, "google.cloud.securitycenter.v1.IamBinding"
60
- optional :next_steps, :string, 40
61
- optional :module_name, :string, 41
62
- repeated :containers, :message, 42, "google.cloud.securitycenter.v1.Container"
63
- optional :kubernetes, :message, 43, "google.cloud.securitycenter.v1.Kubernetes"
64
- optional :database, :message, 44, "google.cloud.securitycenter.v1.Database"
65
- repeated :files, :message, 46, "google.cloud.securitycenter.v1.File"
66
- optional :kernel_rootkit, :message, 50, "google.cloud.securitycenter.v1.KernelRootkit"
67
- end
68
- add_enum "google.cloud.securitycenter.v1.Finding.State" do
69
- value :STATE_UNSPECIFIED, 0
70
- value :ACTIVE, 1
71
- value :INACTIVE, 2
72
- end
73
- add_enum "google.cloud.securitycenter.v1.Finding.Severity" do
74
- value :SEVERITY_UNSPECIFIED, 0
75
- value :CRITICAL, 1
76
- value :HIGH, 2
77
- value :MEDIUM, 3
78
- value :LOW, 4
79
- end
80
- add_enum "google.cloud.securitycenter.v1.Finding.Mute" do
81
- value :MUTE_UNSPECIFIED, 0
82
- value :MUTED, 1
83
- value :UNMUTED, 2
84
- value :UNDEFINED, 4
85
- end
86
- add_enum "google.cloud.securitycenter.v1.Finding.FindingClass" do
87
- value :FINDING_CLASS_UNSPECIFIED, 0
88
- value :THREAT, 1
89
- value :VULNERABILITY, 2
90
- value :MISCONFIGURATION, 3
91
- value :OBSERVATION, 4
92
- 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}"
93
73
  end
94
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."
95
77
  end
96
78
 
97
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