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/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
@@ -1,73 +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/mitre_attack.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/mitre_attack.proto", :syntax => :proto3) do
8
- add_message "google.cloud.securitycenter.v1.MitreAttack" do
9
- optional :primary_tactic, :enum, 1, "google.cloud.securitycenter.v1.MitreAttack.Tactic"
10
- repeated :primary_techniques, :enum, 2, "google.cloud.securitycenter.v1.MitreAttack.Technique"
11
- repeated :additional_tactics, :enum, 3, "google.cloud.securitycenter.v1.MitreAttack.Tactic"
12
- repeated :additional_techniques, :enum, 4, "google.cloud.securitycenter.v1.MitreAttack.Technique"
13
- optional :version, :string, 5
14
- end
15
- add_enum "google.cloud.securitycenter.v1.MitreAttack.Tactic" do
16
- value :TACTIC_UNSPECIFIED, 0
17
- value :RECONNAISSANCE, 1
18
- value :RESOURCE_DEVELOPMENT, 2
19
- value :INITIAL_ACCESS, 5
20
- value :EXECUTION, 3
21
- value :PERSISTENCE, 6
22
- value :PRIVILEGE_ESCALATION, 8
23
- value :DEFENSE_EVASION, 7
24
- value :CREDENTIAL_ACCESS, 9
25
- value :DISCOVERY, 10
26
- value :LATERAL_MOVEMENT, 11
27
- value :COLLECTION, 12
28
- value :COMMAND_AND_CONTROL, 4
29
- value :EXFILTRATION, 13
30
- value :IMPACT, 14
31
- end
32
- add_enum "google.cloud.securitycenter.v1.MitreAttack.Technique" do
33
- value :TECHNIQUE_UNSPECIFIED, 0
34
- value :ACTIVE_SCANNING, 1
35
- value :SCANNING_IP_BLOCKS, 2
36
- value :INGRESS_TOOL_TRANSFER, 3
37
- value :NATIVE_API, 4
38
- value :SHARED_MODULES, 5
39
- value :COMMAND_AND_SCRIPTING_INTERPRETER, 6
40
- value :UNIX_SHELL, 7
41
- value :RESOURCE_HIJACKING, 8
42
- value :PROXY, 9
43
- value :EXTERNAL_PROXY, 10
44
- value :MULTI_HOP_PROXY, 11
45
- value :DYNAMIC_RESOLUTION, 12
46
- value :UNSECURED_CREDENTIALS, 13
47
- value :VALID_ACCOUNTS, 14
48
- value :LOCAL_ACCOUNTS, 15
49
- value :CLOUD_ACCOUNTS, 16
50
- value :NETWORK_DENIAL_OF_SERVICE, 17
51
- value :PERMISSION_GROUPS_DISCOVERY, 18
52
- value :CLOUD_GROUPS, 19
53
- value :EXFILTRATION_OVER_WEB_SERVICE, 20
54
- value :EXFILTRATION_TO_CLOUD_STORAGE, 21
55
- value :ACCOUNT_MANIPULATION, 22
56
- value :SSH_AUTHORIZED_KEYS, 23
57
- value :CREATE_OR_MODIFY_SYSTEM_PROCESS, 24
58
- value :STEAL_WEB_SESSION_COOKIE, 25
59
- value :MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE, 26
60
- value :EXPLOIT_PUBLIC_FACING_APPLICATION, 27
61
- value :MODIFY_AUTHENTICATION_PROCESS, 28
62
- value :DATA_DESTRUCTION, 29
63
- value :DOMAIN_POLICY_MODIFICATION, 30
64
- value :IMPAIR_DEFENSES, 31
65
- value :NETWORK_SERVICE_DISCOVERY, 32
66
- value :ACCESS_TOKEN_MANIPULATION, 33
67
- value :ABUSE_ELEVATION_CONTROL_MECHANISM, 34
68
- value :DEFAULT_ACCOUNTS, 35
7
+
8
+ descriptor_data = "\n1google/cloud/securitycenter/v1/mitre_attack.proto\x12\x1egoogle.cloud.securitycenter.v1\"\xe8\x0c\n\x0bMitreAttack\x12J\n\x0eprimary_tactic\x18\x01 \x01(\x0e\x32\x32.google.cloud.securitycenter.v1.MitreAttack.Tactic\x12Q\n\x12primary_techniques\x18\x02 \x03(\x0e\x32\x35.google.cloud.securitycenter.v1.MitreAttack.Technique\x12N\n\x12\x61\x64\x64itional_tactics\x18\x03 \x03(\x0e\x32\x32.google.cloud.securitycenter.v1.MitreAttack.Tactic\x12T\n\x15\x61\x64\x64itional_techniques\x18\x04 \x03(\x0e\x32\x35.google.cloud.securitycenter.v1.MitreAttack.Technique\x12\x0f\n\x07version\x18\x05 \x01(\t\"\xb4\x02\n\x06Tactic\x12\x16\n\x12TACTIC_UNSPECIFIED\x10\x00\x12\x12\n\x0eRECONNAISSANCE\x10\x01\x12\x18\n\x14RESOURCE_DEVELOPMENT\x10\x02\x12\x12\n\x0eINITIAL_ACCESS\x10\x05\x12\r\n\tEXECUTION\x10\x03\x12\x0f\n\x0bPERSISTENCE\x10\x06\x12\x18\n\x14PRIVILEGE_ESCALATION\x10\x08\x12\x13\n\x0f\x44\x45\x46\x45NSE_EVASION\x10\x07\x12\x15\n\x11\x43REDENTIAL_ACCESS\x10\t\x12\r\n\tDISCOVERY\x10\n\x12\x14\n\x10LATERAL_MOVEMENT\x10\x0b\x12\x0e\n\nCOLLECTION\x10\x0c\x12\x17\n\x13\x43OMMAND_AND_CONTROL\x10\x04\x12\x10\n\x0c\x45XFILTRATION\x10\r\x12\n\n\x06IMPACT\x10\x0e\"\xcb\x07\n\tTechnique\x12\x19\n\x15TECHNIQUE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x41\x43TIVE_SCANNING\x10\x01\x12\x16\n\x12SCANNING_IP_BLOCKS\x10\x02\x12\x19\n\x15INGRESS_TOOL_TRANSFER\x10\x03\x12\x0e\n\nNATIVE_API\x10\x04\x12\x12\n\x0eSHARED_MODULES\x10\x05\x12%\n!COMMAND_AND_SCRIPTING_INTERPRETER\x10\x06\x12\x0e\n\nUNIX_SHELL\x10\x07\x12\x16\n\x12RESOURCE_HIJACKING\x10\x08\x12\t\n\x05PROXY\x10\t\x12\x12\n\x0e\x45XTERNAL_PROXY\x10\n\x12\x13\n\x0fMULTI_HOP_PROXY\x10\x0b\x12\x16\n\x12\x44YNAMIC_RESOLUTION\x10\x0c\x12\x19\n\x15UNSECURED_CREDENTIALS\x10\r\x12\x12\n\x0eVALID_ACCOUNTS\x10\x0e\x12\x12\n\x0eLOCAL_ACCOUNTS\x10\x0f\x12\x12\n\x0e\x43LOUD_ACCOUNTS\x10\x10\x12\x1d\n\x19NETWORK_DENIAL_OF_SERVICE\x10\x11\x12\x1f\n\x1bPERMISSION_GROUPS_DISCOVERY\x10\x12\x12\x10\n\x0c\x43LOUD_GROUPS\x10\x13\x12!\n\x1d\x45XFILTRATION_OVER_WEB_SERVICE\x10\x14\x12!\n\x1d\x45XFILTRATION_TO_CLOUD_STORAGE\x10\x15\x12\x18\n\x14\x41\x43\x43OUNT_MANIPULATION\x10\x16\x12\x17\n\x13SSH_AUTHORIZED_KEYS\x10\x17\x12#\n\x1f\x43REATE_OR_MODIFY_SYSTEM_PROCESS\x10\x18\x12\x1c\n\x18STEAL_WEB_SESSION_COOKIE\x10\x19\x12\'\n#MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE\x10\x1a\x12%\n!EXPLOIT_PUBLIC_FACING_APPLICATION\x10\x1b\x12!\n\x1dMODIFY_AUTHENTICATION_PROCESS\x10\x1c\x12\x14\n\x10\x44\x41TA_DESTRUCTION\x10\x1d\x12\x1e\n\x1a\x44OMAIN_POLICY_MODIFICATION\x10\x1e\x12\x13\n\x0fIMPAIR_DEFENSES\x10\x1f\x12\x1d\n\x19NETWORK_SERVICE_DISCOVERY\x10 \x12\x1d\n\x19\x41\x43\x43\x45SS_TOKEN_MANIPULATION\x10!\x12%\n!ABUSE_ELEVATION_CONTROL_MECHANISM\x10\"\x12\x14\n\x10\x44\x45\x46\x41ULT_ACCOUNTS\x10#B\xea\x01\n\"com.google.cloud.securitycenter.v1B\x10MitreAttackProtoP\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}"
69
28
  end
70
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."
71
32
  end
72
33
 
73
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/mute_config.proto
3
4
 
@@ -7,18 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/securitycenter/v1/mute_config.proto", :syntax => :proto3) do
12
- add_message "google.cloud.securitycenter.v1.MuteConfig" do
13
- optional :name, :string, 1
14
- optional :display_name, :string, 2
15
- optional :description, :string, 3
16
- optional :filter, :string, 4
17
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
18
- optional :update_time, :message, 6, "google.protobuf.Timestamp"
19
- optional :most_recent_editor, :string, 7
11
+
12
+ descriptor_data = "\n0google/cloud/securitycenter/v1/mute_config.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xae\x03\n\nMuteConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x02\x18\x01\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\x12most_recent_editor\x18\x07 \x01(\tB\x03\xe0\x41\x03:\xc0\x01\xea\x41\xbc\x01\n(securitycenter.googleapis.com/MuteConfig\x12\x36organizations/{organization}/muteConfigs/{mute_config}\x12*folders/{folder}/muteConfigs/{mute_config}\x12,projects/{project}/muteConfigs/{mute_config}B\xe9\x01\n\"com.google.cloud.securitycenter.v1B\x0fMuteConfigProtoP\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.protobuf.Timestamp", "google/protobuf/timestamp.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}"
20
33
  end
21
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."
22
37
  end
23
38
 
24
39
  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/notification_config.proto
3
4
 
@@ -6,21 +7,31 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/securitycenter/v1/notification_config.proto", :syntax => :proto3) do
11
- add_message "google.cloud.securitycenter.v1.NotificationConfig" do
12
- optional :name, :string, 1
13
- optional :description, :string, 2
14
- optional :pubsub_topic, :string, 3
15
- optional :service_account, :string, 4
16
- oneof :notify_config do
17
- optional :streaming_config, :message, 5, "google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig"
18
- end
19
- end
20
- add_message "google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig" do
21
- optional :filter, :string, 1
10
+
11
+ descriptor_data = "\n8google/cloud/securitycenter/v1/notification_config.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9c\x04\n\x12NotificationConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x36\n\x0cpubsub_topic\x18\x03 \x01(\tB \xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x1c\n\x0fservice_account\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12^\n\x10streaming_config\x18\x05 \x01(\x0b\x32\x42.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigH\x00\x1a!\n\x0fStreamingConfig\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t:\xf8\x01\xea\x41\xf4\x01\n0securitycenter.googleapis.com/NotificationConfig\x12\x46organizations/{organization}/notificationConfigs/{notification_config}\x12:folders/{folder}/notificationConfigs/{notification_config}\x12<projects/{project}/notificationConfigs/{notification_config}B\x0f\n\rnotify_configB\xb4\x02\n\"com.google.cloud.securitycenter.v1B\x17NotificationConfigProtoP\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::V1\xea\x41@\n\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}b\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
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
22
31
  end
23
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
24
35
  end
25
36
 
26
37
  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/notification_message.proto
3
4
 
@@ -6,16 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/cloud/securitycenter/v1/finding_pb'
7
8
  require 'google/cloud/securitycenter/v1/resource_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/securitycenter/v1/notification_message.proto", :syntax => :proto3) do
11
- add_message "google.cloud.securitycenter.v1.NotificationMessage" do
12
- optional :notification_config_name, :string, 1
13
- optional :resource, :message, 3, "google.cloud.securitycenter.v1.Resource"
14
- oneof :event do
15
- optional :finding, :message, 2, "google.cloud.securitycenter.v1.Finding"
16
- end
10
+
11
+ descriptor_data = "\n9google/cloud/securitycenter/v1/notification_message.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a,google/cloud/securitycenter/v1/finding.proto\x1a-google/cloud/securitycenter/v1/resource.proto\"\xb8\x01\n\x13NotificationMessage\x12 \n\x18notification_config_name\x18\x01 \x01(\t\x12:\n\x07\x66inding\x18\x02 \x01(\x0b\x32\'.google.cloud.securitycenter.v1.FindingH\x00\x12:\n\x08resource\x18\x03 \x01(\x0b\x32(.google.cloud.securitycenter.v1.ResourceB\x07\n\x05\x65ventB\xf2\x01\n\"com.google.cloud.securitycenter.v1B\x18NotificationMessageProtoP\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.Finding", "google/cloud/securitycenter/v1/finding.proto"],
27
+ ["google.cloud.securitycenter.v1.Resource", "google/cloud/securitycenter/v1/resource.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}"
17
33
  end
18
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."
19
37
  end
20
38
 
21
39
  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/organization_settings.proto
3
4
 
@@ -5,24 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/resource_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/securitycenter/v1/organization_settings.proto", :syntax => :proto3) do
10
- add_message "google.cloud.securitycenter.v1.OrganizationSettings" do
11
- optional :name, :string, 1
12
- optional :enable_asset_discovery, :bool, 2
13
- optional :asset_discovery_config, :message, 3, "google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig"
14
- end
15
- add_message "google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig" do
16
- repeated :project_ids, :string, 1
17
- optional :inclusion_mode, :enum, 2, "google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode"
18
- repeated :folder_ids, :string, 3
19
- end
20
- add_enum "google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode" do
21
- value :INCLUSION_MODE_UNSPECIFIED, 0
22
- value :INCLUDE_ONLY, 1
23
- value :EXCLUDE, 2
9
+
10
+ descriptor_data = "\n:google/cloud/securitycenter/v1/organization_settings.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x19google/api/resource.proto\"\x9e\x04\n\x14OrganizationSettings\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\x16\x65nable_asset_discovery\x18\x02 \x01(\x08\x12i\n\x16\x61sset_discovery_config\x18\x03 \x01(\x0b\x32I.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig\x1a\x80\x02\n\x14\x41ssetDiscoveryConfig\x12\x13\n\x0bproject_ids\x18\x01 \x03(\t\x12o\n\x0einclusion_mode\x18\x02 \x01(\x0e\x32W.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode\x12\x12\n\nfolder_ids\x18\x03 \x03(\t\"N\n\rInclusionMode\x12\x1e\n\x1aINCLUSION_MODE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINCLUDE_ONLY\x10\x01\x12\x0b\n\x07\x45XCLUDE\x10\x02:j\xea\x41g\n2securitycenter.googleapis.com/OrganizationSettings\x12\x31organizations/{organization}/organizationSettingsB\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"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
24
30
  end
25
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
26
34
  end
27
35
 
28
36
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/process.proto
3
4
 
@@ -5,25 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/cloud/securitycenter/v1/file_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/securitycenter/v1/process.proto", :syntax => :proto3) do
10
- add_message "google.cloud.securitycenter.v1.Process" do
11
- optional :name, :string, 12
12
- optional :binary, :message, 3, "google.cloud.securitycenter.v1.File"
13
- repeated :libraries, :message, 4, "google.cloud.securitycenter.v1.File"
14
- optional :script, :message, 5, "google.cloud.securitycenter.v1.File"
15
- repeated :args, :string, 6
16
- optional :arguments_truncated, :bool, 7
17
- repeated :env_variables, :message, 8, "google.cloud.securitycenter.v1.EnvironmentVariable"
18
- optional :env_variables_truncated, :bool, 9
19
- optional :pid, :int64, 10
20
- optional :parent_pid, :int64, 11
21
- end
22
- add_message "google.cloud.securitycenter.v1.EnvironmentVariable" do
23
- optional :name, :string, 1
24
- optional :val, :string, 2
9
+
10
+ descriptor_data = "\n,google/cloud/securitycenter/v1/process.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a)google/cloud/securitycenter/v1/file.proto\"\xf5\x02\n\x07Process\x12\x0c\n\x04name\x18\x0c \x01(\t\x12\x34\n\x06\x62inary\x18\x03 \x01(\x0b\x32$.google.cloud.securitycenter.v1.File\x12\x37\n\tlibraries\x18\x04 \x03(\x0b\x32$.google.cloud.securitycenter.v1.File\x12\x34\n\x06script\x18\x05 \x01(\x0b\x32$.google.cloud.securitycenter.v1.File\x12\x0c\n\x04\x61rgs\x18\x06 \x03(\t\x12\x1b\n\x13\x61rguments_truncated\x18\x07 \x01(\x08\x12J\n\renv_variables\x18\x08 \x03(\x0b\x32\x33.google.cloud.securitycenter.v1.EnvironmentVariable\x12\x1f\n\x17\x65nv_variables_truncated\x18\t \x01(\x08\x12\x0b\n\x03pid\x18\n \x01(\x03\x12\x12\n\nparent_pid\x18\x0b \x01(\x03\"0\n\x13\x45nvironmentVariable\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03val\x18\x02 \x01(\tB\xe6\x01\n\"com.google.cloud.securitycenter.v1B\x0cProcessProtoP\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"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.cloud.securitycenter.v1.File", "google/cloud/securitycenter/v1/file.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
25
31
  end
26
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
27
35
  end
28
36
 
29
37
  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/resource.proto
3
4
 
@@ -6,19 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/cloud/securitycenter/v1/folder_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/securitycenter/v1/resource.proto", :syntax => :proto3) do
11
- add_message "google.cloud.securitycenter.v1.Resource" do
12
- optional :name, :string, 1
13
- optional :display_name, :string, 8
14
- optional :type, :string, 6
15
- optional :project, :string, 2
16
- optional :project_display_name, :string, 3
17
- optional :parent, :string, 4
18
- optional :parent_display_name, :string, 5
19
- repeated :folders, :message, 7, "google.cloud.securitycenter.v1.Folder"
10
+
11
+ descriptor_data = "\n-google/cloud/securitycenter/v1/resource.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a+google/cloud/securitycenter/v1/folder.proto\"\xd6\x01\n\x08Resource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x08 \x01(\t\x12\x0c\n\x04type\x18\x06 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x1c\n\x14project_display_name\x18\x03 \x01(\t\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12\x1b\n\x13parent_display_name\x18\x05 \x01(\t\x12<\n\x07\x66olders\x18\x07 \x03(\x0b\x32&.google.cloud.securitycenter.v1.FolderB\x03\xe0\x41\x03\x42\xe7\x01\n\"com.google.cloud.securitycenter.v1B\rResourceProtoP\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.Folder", "google/cloud/securitycenter/v1/folder.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}"
20
32
  end
21
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."
22
36
  end
23
37
 
24
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/securitycenter/v1/run_asset_discovery_response.proto
3
4
 
@@ -5,19 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/duration_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/securitycenter/v1/run_asset_discovery_response.proto", :syntax => :proto3) do
10
- add_message "google.cloud.securitycenter.v1.RunAssetDiscoveryResponse" do
11
- optional :state, :enum, 1, "google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State"
12
- optional :duration, :message, 2, "google.protobuf.Duration"
13
- end
14
- add_enum "google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State" do
15
- value :STATE_UNSPECIFIED, 0
16
- value :COMPLETED, 1
17
- value :SUPERSEDED, 2
18
- value :TERMINATED, 3
9
+
10
+ descriptor_data = "\nAgoogle/cloud/securitycenter/v1/run_asset_discovery_response.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1egoogle/protobuf/duration.proto\"\xe7\x01\n\x19RunAssetDiscoveryResponse\x12N\n\x05state\x18\x01 \x01(\x0e\x32?.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"M\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tCOMPLETED\x10\x01\x12\x0e\n\nSUPERSEDED\x10\x02\x12\x0e\n\nTERMINATED\x10\x03\x42\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"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
19
31
  end
20
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
21
35
  end
22
36
 
23
37
  module Google