google-cloud-web_security_scanner-v1 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 664278dbf7337d9bb4ecd02684aacd426ed0d77bbeec9799de7bbf4c9502176b
4
- data.tar.gz: 9488c252bb4a875cd3db1af007a64652692b8d7dc3d9e947db9e58de8733ba57
3
+ metadata.gz: bcb654752532d15aafc457597f21b6a94aa1c0b13015ced0195a45863980cd15
4
+ data.tar.gz: 0b050a1dd8ac2c0d2035eaab19bf9f15e67d60aacb29e4381301de8580aa611d
5
5
  SHA512:
6
- metadata.gz: 4b49af522889a3376efaf816733646841355ae37228d8c9dca822336247735622281b6adcbe130942ee520f15cd43bc660059a05c875d43195b572d0f66e1cdc
7
- data.tar.gz: 186ac8c4d35aeac6b17ac6f351259cf39497b0ba8d331873c24d60acd1d66c54f318a531e00fabe6c9619e48a6905e3f37a14aea2a7c2520ffb0b22d92c4b888
6
+ metadata.gz: e509f751a7817f00a1a40daa26ea7cf8d62cd63905ced11025255404cecc67766ed6187731aeb0bbf4f7eeaf56880258a085f3646b85cda92ac706c0cba20b35
7
+ data.tar.gz: a86081a97c1d35a9d3950d766c5a91f7c7354fcd251aa71c81f54294df1c90942e0028afa8ce02df246cde6b2dfe46cba39c9ea84128d1b24f40093bc727c429
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebSecurityScanner
23
23
  module V1
24
- VERSION = "0.6.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1424,9 +1424,9 @@ module Google
1424
1424
  # * (`String`) The path to a service account key file in JSON format
1425
1425
  # * (`Hash`) A service account key as a Hash
1426
1426
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1427
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1427
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1428
1428
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1429
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1429
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1430
1430
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1431
1431
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1432
1432
  # * (`nil`) indicating no credentials
@@ -1100,9 +1100,9 @@ module Google
1100
1100
  # * (`String`) The path to a service account key file in JSON format
1101
1101
  # * (`Hash`) A service account key as a Hash
1102
1102
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1103
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1103
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1104
1104
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1105
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1105
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1106
1106
  # * (`nil`) indicating no credentials
1107
1107
  # @return [::Object]
1108
1108
  # @!attribute [rw] scope
@@ -1,16 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/websecurityscanner/v1/crawled_url.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/websecurityscanner/v1/crawled_url.proto", :syntax => :proto3) do
8
- add_message "google.cloud.websecurityscanner.v1.CrawledUrl" do
9
- optional :http_method, :string, 1
10
- optional :url, :string, 2
11
- optional :body, :string, 3
7
+
8
+ descriptor_data = "\n4google/cloud/websecurityscanner/v1/crawled_url.proto\x12\"google.cloud.websecurityscanner.v1\"<\n\nCrawledUrl\x12\x13\n\x0bhttp_method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\tB\x85\x02\n&com.google.cloud.websecurityscanner.v1B\x0f\x43rawledUrlProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::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}"
12
28
  end
13
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."
14
32
  end
15
33
 
16
34
  module Google
@@ -1,67 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/websecurityscanner/v1/finding_addon.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/websecurityscanner/v1/finding_addon.proto", :syntax => :proto3) do
8
- add_message "google.cloud.websecurityscanner.v1.Form" do
9
- optional :action_uri, :string, 1
10
- repeated :fields, :string, 2
11
- end
12
- add_message "google.cloud.websecurityscanner.v1.OutdatedLibrary" do
13
- optional :library_name, :string, 1
14
- optional :version, :string, 2
15
- repeated :learn_more_urls, :string, 3
16
- end
17
- add_message "google.cloud.websecurityscanner.v1.ViolatingResource" do
18
- optional :content_type, :string, 1
19
- optional :resource_url, :string, 2
20
- end
21
- add_message "google.cloud.websecurityscanner.v1.VulnerableParameters" do
22
- repeated :parameter_names, :string, 1
23
- end
24
- add_message "google.cloud.websecurityscanner.v1.VulnerableHeaders" do
25
- repeated :headers, :message, 1, "google.cloud.websecurityscanner.v1.VulnerableHeaders.Header"
26
- repeated :missing_headers, :message, 2, "google.cloud.websecurityscanner.v1.VulnerableHeaders.Header"
27
- end
28
- add_message "google.cloud.websecurityscanner.v1.VulnerableHeaders.Header" do
29
- optional :name, :string, 1
30
- optional :value, :string, 2
31
- end
32
- add_message "google.cloud.websecurityscanner.v1.Xss" do
33
- repeated :stack_traces, :string, 1
34
- optional :error_message, :string, 2
35
- optional :attack_vector, :enum, 3, "google.cloud.websecurityscanner.v1.Xss.AttackVector"
36
- optional :stored_xss_seeding_url, :string, 4
37
- end
38
- add_enum "google.cloud.websecurityscanner.v1.Xss.AttackVector" do
39
- value :ATTACK_VECTOR_UNSPECIFIED, 0
40
- value :LOCAL_STORAGE, 1
41
- value :SESSION_STORAGE, 2
42
- value :WINDOW_NAME, 3
43
- value :REFERRER, 4
44
- value :FORM_INPUT, 5
45
- value :COOKIE, 6
46
- value :POST_MESSAGE, 7
47
- value :GET_PARAMETERS, 8
48
- value :URL_FRAGMENT, 9
49
- value :HTML_COMMENT, 10
50
- value :POST_PARAMETERS, 11
51
- value :PROTOCOL, 12
52
- value :STORED_XSS, 13
53
- value :SAME_ORIGIN, 14
54
- value :USER_CONTROLLABLE_URL, 15
55
- end
56
- add_message "google.cloud.websecurityscanner.v1.Xxe" do
57
- optional :payload_value, :string, 1
58
- optional :payload_location, :enum, 2, "google.cloud.websecurityscanner.v1.Xxe.Location"
59
- end
60
- add_enum "google.cloud.websecurityscanner.v1.Xxe.Location" do
61
- value :LOCATION_UNSPECIFIED, 0
62
- value :COMPLETE_REQUEST_BODY, 1
7
+
8
+ descriptor_data = "\n6google/cloud/websecurityscanner/v1/finding_addon.proto\x12\"google.cloud.websecurityscanner.v1\"*\n\x04\x46orm\x12\x12\n\naction_uri\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x03(\t\"Q\n\x0fOutdatedLibrary\x12\x14\n\x0clibrary_name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x17\n\x0flearn_more_urls\x18\x03 \x03(\t\"?\n\x11ViolatingResource\x12\x14\n\x0c\x63ontent_type\x18\x01 \x01(\t\x12\x14\n\x0cresource_url\x18\x02 \x01(\t\"/\n\x14VulnerableParameters\x12\x17\n\x0fparameter_names\x18\x01 \x03(\t\"\xe0\x01\n\x11VulnerableHeaders\x12M\n\x07headers\x18\x01 \x03(\x0b\x32<.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header\x12U\n\x0fmissing_headers\x18\x02 \x03(\x0b\x32<.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header\x1a%\n\x06Header\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\xdb\x03\n\x03Xss\x12\x14\n\x0cstack_traces\x18\x01 \x03(\t\x12\x15\n\rerror_message\x18\x02 \x01(\t\x12K\n\rattack_vector\x18\x03 \x01(\x0e\x32\x34.google.cloud.websecurityscanner.v1.Xss.AttackVector\x12\x1e\n\x16stored_xss_seeding_url\x18\x04 \x01(\t\"\xb9\x02\n\x0c\x41ttackVector\x12\x1d\n\x19\x41TTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x11\n\rLOCAL_STORAGE\x10\x01\x12\x13\n\x0fSESSION_STORAGE\x10\x02\x12\x0f\n\x0bWINDOW_NAME\x10\x03\x12\x0c\n\x08REFERRER\x10\x04\x12\x0e\n\nFORM_INPUT\x10\x05\x12\n\n\x06\x43OOKIE\x10\x06\x12\x10\n\x0cPOST_MESSAGE\x10\x07\x12\x12\n\x0eGET_PARAMETERS\x10\x08\x12\x10\n\x0cURL_FRAGMENT\x10\t\x12\x10\n\x0cHTML_COMMENT\x10\n\x12\x13\n\x0fPOST_PARAMETERS\x10\x0b\x12\x0c\n\x08PROTOCOL\x10\x0c\x12\x0e\n\nSTORED_XSS\x10\r\x12\x0f\n\x0bSAME_ORIGIN\x10\x0e\x12\x19\n\x15USER_CONTROLLABLE_URL\x10\x0f\"\xa9\x01\n\x03Xxe\x12\x15\n\rpayload_value\x18\x01 \x01(\t\x12J\n\x10payload_location\x18\x02 \x01(\x0e\x32\x30.google.cloud.websecurityscanner.v1.Xxe.Location\"?\n\x08Location\x12\x18\n\x14LOCATION_UNSPECIFIED\x10\x00\x12\x19\n\x15\x43OMPLETE_REQUEST_BODY\x10\x01\x42\x87\x02\n&com.google.cloud.websecurityscanner.v1B\x11\x46indingAddonProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::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}"
63
28
  end
64
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."
65
32
  end
66
33
 
67
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/websecurityscanner/v1/finding.proto
3
4
 
@@ -7,36 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/cloud/websecurityscanner/v1/finding_addon_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/websecurityscanner/v1/finding.proto", :syntax => :proto3) do
12
- add_message "google.cloud.websecurityscanner.v1.Finding" do
13
- optional :name, :string, 1
14
- optional :finding_type, :string, 2
15
- optional :severity, :enum, 17, "google.cloud.websecurityscanner.v1.Finding.Severity"
16
- optional :http_method, :string, 3
17
- optional :fuzzed_url, :string, 4
18
- optional :body, :string, 5
19
- optional :description, :string, 6
20
- optional :reproduction_url, :string, 7
21
- optional :frame_url, :string, 8
22
- optional :final_url, :string, 9
23
- optional :tracking_id, :string, 10
24
- optional :form, :message, 16, "google.cloud.websecurityscanner.v1.Form"
25
- optional :outdated_library, :message, 11, "google.cloud.websecurityscanner.v1.OutdatedLibrary"
26
- optional :violating_resource, :message, 12, "google.cloud.websecurityscanner.v1.ViolatingResource"
27
- optional :vulnerable_headers, :message, 15, "google.cloud.websecurityscanner.v1.VulnerableHeaders"
28
- optional :vulnerable_parameters, :message, 13, "google.cloud.websecurityscanner.v1.VulnerableParameters"
29
- optional :xss, :message, 14, "google.cloud.websecurityscanner.v1.Xss"
30
- optional :xxe, :message, 18, "google.cloud.websecurityscanner.v1.Xxe"
31
- end
32
- add_enum "google.cloud.websecurityscanner.v1.Finding.Severity" do
33
- value :SEVERITY_UNSPECIFIED, 0
34
- value :CRITICAL, 1
35
- value :HIGH, 2
36
- value :MEDIUM, 3
37
- value :LOW, 4
11
+
12
+ descriptor_data = "\n0google/cloud/websecurityscanner/v1/finding.proto\x12\"google.cloud.websecurityscanner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x36google/cloud/websecurityscanner/v1/finding_addon.proto\"\xec\x07\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x66inding_type\x18\x02 \x01(\t\x12K\n\x08severity\x18\x11 \x01(\x0e\x32\x34.google.cloud.websecurityscanner.v1.Finding.SeverityB\x03\xe0\x41\x03\x12\x13\n\x0bhttp_method\x18\x03 \x01(\t\x12\x12\n\nfuzzed_url\x18\x04 \x01(\t\x12\x0c\n\x04\x62ody\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x18\n\x10reproduction_url\x18\x07 \x01(\t\x12\x11\n\tframe_url\x18\x08 \x01(\t\x12\x11\n\tfinal_url\x18\t \x01(\t\x12\x13\n\x0btracking_id\x18\n \x01(\t\x12\x36\n\x04\x66orm\x18\x10 \x01(\x0b\x32(.google.cloud.websecurityscanner.v1.Form\x12M\n\x10outdated_library\x18\x0b \x01(\x0b\x32\x33.google.cloud.websecurityscanner.v1.OutdatedLibrary\x12Q\n\x12violating_resource\x18\x0c \x01(\x0b\x32\x35.google.cloud.websecurityscanner.v1.ViolatingResource\x12Q\n\x12vulnerable_headers\x18\x0f \x01(\x0b\x32\x35.google.cloud.websecurityscanner.v1.VulnerableHeaders\x12W\n\x15vulnerable_parameters\x18\r \x01(\x0b\x32\x38.google.cloud.websecurityscanner.v1.VulnerableParameters\x12\x34\n\x03xss\x18\x0e \x01(\x0b\x32\'.google.cloud.websecurityscanner.v1.Xss\x12\x39\n\x03xxe\x18\x12 \x01(\x0b\x32\'.google.cloud.websecurityscanner.v1.XxeB\x03\xe0\x41\x03\"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:\x84\x01\xea\x41\x80\x01\n)websecurityscanner.googleapis.com/Finding\x12Sprojects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}B\x82\x02\n&com.google.cloud.websecurityscanner.v1B\x0c\x46indingProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::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.websecurityscanner.v1.Form", "google/cloud/websecurityscanner/v1/finding_addon.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}"
38
33
  end
39
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."
40
37
  end
41
38
 
42
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/websecurityscanner/v1/finding_type_stats.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/websecurityscanner/v1/finding_type_stats.proto", :syntax => :proto3) do
8
- add_message "google.cloud.websecurityscanner.v1.FindingTypeStats" do
9
- optional :finding_type, :string, 1
10
- optional :finding_count, :int32, 2
7
+
8
+ descriptor_data = "\n;google/cloud/websecurityscanner/v1/finding_type_stats.proto\x12\"google.cloud.websecurityscanner.v1\"?\n\x10\x46indingTypeStats\x12\x14\n\x0c\x66inding_type\x18\x01 \x01(\t\x12\x15\n\rfinding_count\x18\x02 \x01(\x05\x42\x8b\x02\n&com.google.cloud.websecurityscanner.v1B\x15\x46indingTypeStatsProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::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,59 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/websecurityscanner/v1/scan_config_error.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/websecurityscanner/v1/scan_config_error.proto", :syntax => :proto3) do
8
- add_message "google.cloud.websecurityscanner.v1.ScanConfigError" do
9
- optional :code, :enum, 1, "google.cloud.websecurityscanner.v1.ScanConfigError.Code"
10
- optional :field_name, :string, 2
11
- end
12
- add_enum "google.cloud.websecurityscanner.v1.ScanConfigError.Code" do
13
- value :CODE_UNSPECIFIED, 0
14
- value :OK, 0
15
- value :INTERNAL_ERROR, 1
16
- value :APPENGINE_API_BACKEND_ERROR, 2
17
- value :APPENGINE_API_NOT_ACCESSIBLE, 3
18
- value :APPENGINE_DEFAULT_HOST_MISSING, 4
19
- value :CANNOT_USE_GOOGLE_COM_ACCOUNT, 6
20
- value :CANNOT_USE_OWNER_ACCOUNT, 7
21
- value :COMPUTE_API_BACKEND_ERROR, 8
22
- value :COMPUTE_API_NOT_ACCESSIBLE, 9
23
- value :CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, 10
24
- value :CUSTOM_LOGIN_URL_MALFORMED, 11
25
- value :CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, 12
26
- value :CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, 13
27
- value :CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, 14
28
- value :CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, 15
29
- value :DUPLICATE_SCAN_NAME, 16
30
- value :INVALID_FIELD_VALUE, 18
31
- value :FAILED_TO_AUTHENTICATE_TO_TARGET, 19
32
- value :FINDING_TYPE_UNSPECIFIED, 20
33
- value :FORBIDDEN_TO_SCAN_COMPUTE, 21
34
- value :FORBIDDEN_UPDATE_TO_MANAGED_SCAN, 43
35
- value :MALFORMED_FILTER, 22
36
- value :MALFORMED_RESOURCE_NAME, 23
37
- value :PROJECT_INACTIVE, 24
38
- value :REQUIRED_FIELD, 25
39
- value :RESOURCE_NAME_INCONSISTENT, 26
40
- value :SCAN_ALREADY_RUNNING, 27
41
- value :SCAN_NOT_RUNNING, 28
42
- value :SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, 29
43
- value :SEED_URL_MALFORMED, 30
44
- value :SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, 31
45
- value :SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, 32
46
- value :SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, 33
47
- value :SEED_URL_HAS_UNRESERVED_IP_ADDRESS, 35
48
- value :SERVICE_ACCOUNT_NOT_CONFIGURED, 36
49
- value :TOO_MANY_SCANS, 37
50
- value :UNABLE_TO_RESOLVE_PROJECT_INFO, 38
51
- value :UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, 39
52
- value :UNSUPPORTED_FILTER, 40
53
- value :UNSUPPORTED_FINDING_TYPE, 41
54
- value :UNSUPPORTED_URL_SCHEME, 42
7
+
8
+ descriptor_data = "\n:google/cloud/websecurityscanner/v1/scan_config_error.proto\x12\"google.cloud.websecurityscanner.v1\"\xe9\x0b\n\x0fScanConfigError\x12\x46\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x38.google.cloud.websecurityscanner.v1.ScanConfigError.Code\x12\x12\n\nfield_name\x18\x02 \x01(\t\"\xf9\n\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eINTERNAL_ERROR\x10\x01\x12\x1f\n\x1b\x41PPENGINE_API_BACKEND_ERROR\x10\x02\x12 \n\x1c\x41PPENGINE_API_NOT_ACCESSIBLE\x10\x03\x12\"\n\x1e\x41PPENGINE_DEFAULT_HOST_MISSING\x10\x04\x12!\n\x1d\x43\x41NNOT_USE_GOOGLE_COM_ACCOUNT\x10\x06\x12\x1c\n\x18\x43\x41NNOT_USE_OWNER_ACCOUNT\x10\x07\x12\x1d\n\x19\x43OMPUTE_API_BACKEND_ERROR\x10\x08\x12\x1e\n\x1a\x43OMPUTE_API_NOT_ACCESSIBLE\x10\t\x12\x37\n3CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT\x10\n\x12\x1e\n\x1a\x43USTOM_LOGIN_URL_MALFORMED\x10\x0b\x12\x33\n/CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\x10\x0c\x12\x31\n-CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS\x10\r\x12\x30\n,CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS\x10\x0e\x12.\n*CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS\x10\x0f\x12\x17\n\x13\x44UPLICATE_SCAN_NAME\x10\x10\x12\x17\n\x13INVALID_FIELD_VALUE\x10\x12\x12$\n FAILED_TO_AUTHENTICATE_TO_TARGET\x10\x13\x12\x1c\n\x18\x46INDING_TYPE_UNSPECIFIED\x10\x14\x12\x1d\n\x19\x46ORBIDDEN_TO_SCAN_COMPUTE\x10\x15\x12$\n FORBIDDEN_UPDATE_TO_MANAGED_SCAN\x10+\x12\x14\n\x10MALFORMED_FILTER\x10\x16\x12\x1b\n\x17MALFORMED_RESOURCE_NAME\x10\x17\x12\x14\n\x10PROJECT_INACTIVE\x10\x18\x12\x12\n\x0eREQUIRED_FIELD\x10\x19\x12\x1e\n\x1aRESOURCE_NAME_INCONSISTENT\x10\x1a\x12\x18\n\x14SCAN_ALREADY_RUNNING\x10\x1b\x12\x14\n\x10SCAN_NOT_RUNNING\x10\x1c\x12/\n+SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT\x10\x1d\x12\x16\n\x12SEED_URL_MALFORMED\x10\x1e\x12+\n\'SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\x10\x1f\x12)\n%SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS\x10 \x12(\n$SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS\x10!\x12&\n\"SEED_URL_HAS_UNRESERVED_IP_ADDRESS\x10#\x12\"\n\x1eSERVICE_ACCOUNT_NOT_CONFIGURED\x10$\x12\x12\n\x0eTOO_MANY_SCANS\x10%\x12\"\n\x1eUNABLE_TO_RESOLVE_PROJECT_INFO\x10&\x12(\n$UNSUPPORTED_BLACKLIST_PATTERN_FORMAT\x10\'\x12\x16\n\x12UNSUPPORTED_FILTER\x10(\x12\x1c\n\x18UNSUPPORTED_FINDING_TYPE\x10)\x12\x1a\n\x16UNSUPPORTED_URL_SCHEME\x10*\x1a\x02\x10\x01\x42\x8a\x02\n&com.google.cloud.websecurityscanner.v1B\x14ScanConfigErrorProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::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}"
55
28
  end
56
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."
57
32
  end
58
33
 
59
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/websecurityscanner/v1/scan_config.proto
3
4
 
@@ -6,68 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/websecurityscanner/v1/scan_config.proto", :syntax => :proto3) do
11
- add_message "google.cloud.websecurityscanner.v1.ScanConfig" do
12
- optional :name, :string, 1
13
- optional :display_name, :string, 2
14
- optional :max_qps, :int32, 3
15
- repeated :starting_urls, :string, 4
16
- optional :authentication, :message, 5, "google.cloud.websecurityscanner.v1.ScanConfig.Authentication"
17
- optional :user_agent, :enum, 6, "google.cloud.websecurityscanner.v1.ScanConfig.UserAgent"
18
- repeated :blacklist_patterns, :string, 7
19
- optional :schedule, :message, 8, "google.cloud.websecurityscanner.v1.ScanConfig.Schedule"
20
- optional :export_to_security_command_center, :enum, 10, "google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter"
21
- optional :risk_level, :enum, 12, "google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel"
22
- optional :managed_scan, :bool, 13
23
- optional :static_ip_scan, :bool, 14
24
- optional :ignore_http_status_errors, :bool, 15
25
- end
26
- add_message "google.cloud.websecurityscanner.v1.ScanConfig.Authentication" do
27
- oneof :authentication do
28
- optional :google_account, :message, 1, "google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount"
29
- optional :custom_account, :message, 2, "google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount"
30
- optional :iap_credential, :message, 4, "google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential"
31
- end
32
- end
33
- add_message "google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount" do
34
- optional :username, :string, 1
35
- optional :password, :string, 2
36
- end
37
- add_message "google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount" do
38
- optional :username, :string, 1
39
- optional :password, :string, 2
40
- optional :login_url, :string, 3
41
- end
42
- add_message "google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential" do
43
- oneof :iap_credentials do
44
- optional :iap_test_service_account_info, :message, 1, "google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo"
45
- end
46
- end
47
- add_message "google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo" do
48
- optional :target_audience_client_id, :string, 1
49
- end
50
- add_message "google.cloud.websecurityscanner.v1.ScanConfig.Schedule" do
51
- optional :schedule_time, :message, 1, "google.protobuf.Timestamp"
52
- optional :interval_duration_days, :int32, 2
53
- end
54
- add_enum "google.cloud.websecurityscanner.v1.ScanConfig.UserAgent" do
55
- value :USER_AGENT_UNSPECIFIED, 0
56
- value :CHROME_LINUX, 1
57
- value :CHROME_ANDROID, 2
58
- value :SAFARI_IPHONE, 3
59
- end
60
- add_enum "google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel" do
61
- value :RISK_LEVEL_UNSPECIFIED, 0
62
- value :NORMAL, 1
63
- value :LOW, 2
64
- end
65
- add_enum "google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter" do
66
- value :EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED, 0
67
- value :ENABLED, 1
68
- value :DISABLED, 2
10
+
11
+ descriptor_data = "\n4google/cloud/websecurityscanner/v1/scan_config.proto\x12\"google.cloud.websecurityscanner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc4\r\n\nScanConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0f\n\x07max_qps\x18\x03 \x01(\x05\x12\x15\n\rstarting_urls\x18\x04 \x03(\t\x12U\n\x0e\x61uthentication\x18\x05 \x01(\x0b\x32=.google.cloud.websecurityscanner.v1.ScanConfig.Authentication\x12L\n\nuser_agent\x18\x06 \x01(\x0e\x32\x38.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent\x12\x1a\n\x12\x62lacklist_patterns\x18\x07 \x03(\t\x12I\n\x08schedule\x18\x08 \x01(\x0b\x32\x37.google.cloud.websecurityscanner.v1.ScanConfig.Schedule\x12w\n!export_to_security_command_center\x18\n \x01(\x0e\x32L.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter\x12L\n\nrisk_level\x18\x0c \x01(\x0e\x32\x38.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel\x12\x14\n\x0cmanaged_scan\x18\r \x01(\x08\x12\x16\n\x0estatic_ip_scan\x18\x0e \x01(\x08\x12!\n\x19ignore_http_status_errors\x18\x0f \x01(\x08\x1a\xd7\x05\n\x0e\x41uthentication\x12i\n\x0egoogle_account\x18\x01 \x01(\x0b\x32K.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountB\x02\x18\x01H\x00\x12\x65\n\x0e\x63ustom_account\x18\x02 \x01(\x0b\x32K.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountH\x00\x12\x65\n\x0eiap_credential\x18\x04 \x01(\x0b\x32K.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialH\x00\x1a\x37\n\rGoogleAccount\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t:\x02\x18\x01\x1a\x46\n\rCustomAccount\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x11\n\tlogin_url\x18\x03 \x01(\t\x1a\xf8\x01\n\rIapCredential\x12\x8e\x01\n\x1diap_test_service_account_info\x18\x01 \x01(\x0b\x32\x65.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoH\x00\x1a\x43\n\x19IapTestServiceAccountInfo\x12&\n\x19target_audience_client_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x11\n\x0fiap_credentialsB\x10\n\x0e\x61uthentication\x1a]\n\x08Schedule\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1e\n\x16interval_duration_days\x18\x02 \x01(\x05\"`\n\tUserAgent\x12\x1a\n\x16USER_AGENT_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43HROME_LINUX\x10\x01\x12\x12\n\x0e\x43HROME_ANDROID\x10\x02\x12\x11\n\rSAFARI_IPHONE\x10\x03\"<\n\tRiskLevel\x12\x1a\n\x16RISK_LEVEL_UNSPECIFIED\x10\x00\x12\n\n\x06NORMAL\x10\x01\x12\x07\n\x03LOW\x10\x02\"m\n\x1d\x45xportToSecurityCommandCenter\x12\x31\n-EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x42\x85\x02\n&com.google.cloud.websecurityscanner.v1B\x0fScanConfigProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::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}"
69
32
  end
70
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."
71
36
  end
72
37
 
73
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/websecurityscanner/v1/scan_run_error_trace.proto
3
4
 
@@ -5,23 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/cloud/websecurityscanner/v1/scan_config_error_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/websecurityscanner/v1/scan_run_error_trace.proto", :syntax => :proto3) do
10
- add_message "google.cloud.websecurityscanner.v1.ScanRunErrorTrace" do
11
- optional :code, :enum, 1, "google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code"
12
- optional :scan_config_error, :message, 2, "google.cloud.websecurityscanner.v1.ScanConfigError"
13
- optional :most_common_http_error_code, :int32, 3
14
- end
15
- add_enum "google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code" do
16
- value :CODE_UNSPECIFIED, 0
17
- value :INTERNAL_ERROR, 1
18
- value :SCAN_CONFIG_ISSUE, 2
19
- value :AUTHENTICATION_CONFIG_ISSUE, 3
20
- value :TIMED_OUT_WHILE_SCANNING, 4
21
- value :TOO_MANY_REDIRECTS, 5
22
- value :TOO_MANY_HTTP_ERRORS, 6
9
+
10
+ descriptor_data = "\n=google/cloud/websecurityscanner/v1/scan_run_error_trace.proto\x12\"google.cloud.websecurityscanner.v1\x1a:google/cloud/websecurityscanner/v1/scan_config_error.proto\"\x8d\x03\n\x11ScanRunErrorTrace\x12H\n\x04\x63ode\x18\x01 \x01(\x0e\x32:.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code\x12N\n\x11scan_config_error\x18\x02 \x01(\x0b\x32\x33.google.cloud.websecurityscanner.v1.ScanConfigError\x12#\n\x1bmost_common_http_error_code\x18\x03 \x01(\x05\"\xb8\x01\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eINTERNAL_ERROR\x10\x01\x12\x15\n\x11SCAN_CONFIG_ISSUE\x10\x02\x12\x1f\n\x1b\x41UTHENTICATION_CONFIG_ISSUE\x10\x03\x12\x1c\n\x18TIMED_OUT_WHILE_SCANNING\x10\x04\x12\x16\n\x12TOO_MANY_REDIRECTS\x10\x05\x12\x18\n\x14TOO_MANY_HTTP_ERRORS\x10\x06\x42\x8c\x02\n&com.google.cloud.websecurityscanner.v1B\x16ScanRunErrorTraceProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::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.websecurityscanner.v1.ScanConfigError", "google/cloud/websecurityscanner/v1/scan_config_error.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}"
23
31
  end
24
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."
25
35
  end
26
36
 
27
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/websecurityscanner/v1/scan_run_log.proto
3
4
 
@@ -6,19 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/cloud/websecurityscanner/v1/scan_run_pb'
7
8
  require 'google/cloud/websecurityscanner/v1/scan_run_error_trace_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/websecurityscanner/v1/scan_run_log.proto", :syntax => :proto3) do
11
- add_message "google.cloud.websecurityscanner.v1.ScanRunLog" do
12
- optional :summary, :string, 1
13
- optional :name, :string, 2
14
- optional :execution_state, :enum, 3, "google.cloud.websecurityscanner.v1.ScanRun.ExecutionState"
15
- optional :result_state, :enum, 4, "google.cloud.websecurityscanner.v1.ScanRun.ResultState"
16
- optional :urls_crawled_count, :int64, 5
17
- optional :urls_tested_count, :int64, 6
18
- optional :has_findings, :bool, 7
19
- optional :error_trace, :message, 8, "google.cloud.websecurityscanner.v1.ScanRunErrorTrace"
10
+
11
+ descriptor_data = "\n5google/cloud/websecurityscanner/v1/scan_run_log.proto\x12\"google.cloud.websecurityscanner.v1\x1a\x31google/cloud/websecurityscanner/v1/scan_run.proto\x1a=google/cloud/websecurityscanner/v1/scan_run_error_trace.proto\"\xe8\x02\n\nScanRunLog\x12\x0f\n\x07summary\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12S\n\x0f\x65xecution_state\x18\x03 \x01(\x0e\x32:.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState\x12M\n\x0cresult_state\x18\x04 \x01(\x0e\x32\x37.google.cloud.websecurityscanner.v1.ScanRun.ResultState\x12\x1a\n\x12urls_crawled_count\x18\x05 \x01(\x03\x12\x19\n\x11urls_tested_count\x18\x06 \x01(\x03\x12\x14\n\x0chas_findings\x18\x07 \x01(\x08\x12J\n\x0b\x65rror_trace\x18\x08 \x01(\x0b\x32\x35.google.cloud.websecurityscanner.v1.ScanRunErrorTraceB\x85\x02\n&com.google.cloud.websecurityscanner.v1B\x0fScanRunLogProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::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.websecurityscanner.v1.ScanRunErrorTrace", "google/cloud/websecurityscanner/v1/scan_run_error_trace.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/websecurityscanner/v1/scan_run.proto
3
4
 
@@ -7,34 +8,34 @@ require 'google/cloud/websecurityscanner/v1/scan_run_error_trace_pb'
7
8
  require 'google/cloud/websecurityscanner/v1/scan_run_warning_trace_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/websecurityscanner/v1/scan_run.proto", :syntax => :proto3) do
12
- add_message "google.cloud.websecurityscanner.v1.ScanRun" do
13
- optional :name, :string, 1
14
- optional :execution_state, :enum, 2, "google.cloud.websecurityscanner.v1.ScanRun.ExecutionState"
15
- optional :result_state, :enum, 3, "google.cloud.websecurityscanner.v1.ScanRun.ResultState"
16
- optional :start_time, :message, 4, "google.protobuf.Timestamp"
17
- optional :end_time, :message, 5, "google.protobuf.Timestamp"
18
- optional :urls_crawled_count, :int64, 6
19
- optional :urls_tested_count, :int64, 7
20
- optional :has_vulnerabilities, :bool, 8
21
- optional :progress_percent, :int32, 9
22
- optional :error_trace, :message, 10, "google.cloud.websecurityscanner.v1.ScanRunErrorTrace"
23
- repeated :warning_traces, :message, 11, "google.cloud.websecurityscanner.v1.ScanRunWarningTrace"
24
- end
25
- add_enum "google.cloud.websecurityscanner.v1.ScanRun.ExecutionState" do
26
- value :EXECUTION_STATE_UNSPECIFIED, 0
27
- value :QUEUED, 1
28
- value :SCANNING, 2
29
- value :FINISHED, 3
30
- end
31
- add_enum "google.cloud.websecurityscanner.v1.ScanRun.ResultState" do
32
- value :RESULT_STATE_UNSPECIFIED, 0
33
- value :SUCCESS, 1
34
- value :ERROR, 2
35
- value :KILLED, 3
11
+
12
+ descriptor_data = "\n1google/cloud/websecurityscanner/v1/scan_run.proto\x12\"google.cloud.websecurityscanner.v1\x1a=google/cloud/websecurityscanner/v1/scan_run_error_trace.proto\x1a?google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd0\x05\n\x07ScanRun\x12\x0c\n\x04name\x18\x01 \x01(\t\x12S\n\x0f\x65xecution_state\x18\x02 \x01(\x0e\x32:.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState\x12M\n\x0cresult_state\x18\x03 \x01(\x0e\x32\x37.google.cloud.websecurityscanner.v1.ScanRun.ResultState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12urls_crawled_count\x18\x06 \x01(\x03\x12\x19\n\x11urls_tested_count\x18\x07 \x01(\x03\x12\x1b\n\x13has_vulnerabilities\x18\x08 \x01(\x08\x12\x18\n\x10progress_percent\x18\t \x01(\x05\x12J\n\x0b\x65rror_trace\x18\n \x01(\x0b\x32\x35.google.cloud.websecurityscanner.v1.ScanRunErrorTrace\x12O\n\x0ewarning_traces\x18\x0b \x03(\x0b\x32\x37.google.cloud.websecurityscanner.v1.ScanRunWarningTrace\"Y\n\x0e\x45xecutionState\x12\x1f\n\x1b\x45XECUTION_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0c\n\x08SCANNING\x10\x02\x12\x0c\n\x08\x46INISHED\x10\x03\"O\n\x0bResultState\x12\x1c\n\x18RESULT_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SUCCESS\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\n\n\x06KILLED\x10\x03\x42\x82\x02\n&com.google.cloud.websecurityscanner.v1B\x0cScanRunProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::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
+ ["google.cloud.websecurityscanner.v1.ScanRunErrorTrace", "google/cloud/websecurityscanner/v1/scan_run_error_trace.proto"],
29
+ ["google.cloud.websecurityscanner.v1.ScanRunWarningTrace", "google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
36
35
  end
37
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
38
39
  end
39
40
 
40
41
  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/websecurityscanner/v1/scan_run_warning_trace.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto", :syntax => :proto3) do
8
- add_message "google.cloud.websecurityscanner.v1.ScanRunWarningTrace" do
9
- optional :code, :enum, 1, "google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code"
10
- end
11
- add_enum "google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code" do
12
- value :CODE_UNSPECIFIED, 0
13
- value :INSUFFICIENT_CRAWL_RESULTS, 1
14
- value :TOO_MANY_CRAWL_RESULTS, 2
15
- value :TOO_MANY_FUZZ_TASKS, 3
16
- value :BLOCKED_BY_IAP, 4
17
- value :NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN, 5
7
+
8
+ descriptor_data = "\n?google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto\x12\"google.cloud.websecurityscanner.v1\"\x95\x02\n\x13ScanRunWarningTrace\x12J\n\x04\x63ode\x18\x01 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code\"\xb1\x01\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x1e\n\x1aINSUFFICIENT_CRAWL_RESULTS\x10\x01\x12\x1a\n\x16TOO_MANY_CRAWL_RESULTS\x10\x02\x12\x17\n\x13TOO_MANY_FUZZ_TASKS\x10\x03\x12\x12\n\x0e\x42LOCKED_BY_IAP\x10\x04\x12*\n&NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN\x10\x05\x42\x8e\x02\n&com.google.cloud.websecurityscanner.v1B\x18ScanRunWarningTraceProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::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/websecurityscanner/v1/web_security_scanner.proto
3
4
 
@@ -13,78 +14,37 @@ require 'google/cloud/websecurityscanner/v1/scan_run_pb'
13
14
  require 'google/protobuf/empty_pb'
14
15
  require 'google/protobuf/field_mask_pb'
15
16
 
16
- Google::Protobuf::DescriptorPool.generated_pool.build do
17
- add_file("google/cloud/websecurityscanner/v1/web_security_scanner.proto", :syntax => :proto3) do
18
- add_message "google.cloud.websecurityscanner.v1.CreateScanConfigRequest" do
19
- optional :parent, :string, 1
20
- optional :scan_config, :message, 2, "google.cloud.websecurityscanner.v1.ScanConfig"
21
- end
22
- add_message "google.cloud.websecurityscanner.v1.DeleteScanConfigRequest" do
23
- optional :name, :string, 1
24
- end
25
- add_message "google.cloud.websecurityscanner.v1.GetScanConfigRequest" do
26
- optional :name, :string, 1
27
- end
28
- add_message "google.cloud.websecurityscanner.v1.ListScanConfigsRequest" do
29
- optional :parent, :string, 1
30
- optional :page_token, :string, 2
31
- optional :page_size, :int32, 3
32
- end
33
- add_message "google.cloud.websecurityscanner.v1.UpdateScanConfigRequest" do
34
- optional :scan_config, :message, 2, "google.cloud.websecurityscanner.v1.ScanConfig"
35
- optional :update_mask, :message, 3, "google.protobuf.FieldMask"
36
- end
37
- add_message "google.cloud.websecurityscanner.v1.ListScanConfigsResponse" do
38
- repeated :scan_configs, :message, 1, "google.cloud.websecurityscanner.v1.ScanConfig"
39
- optional :next_page_token, :string, 2
40
- end
41
- add_message "google.cloud.websecurityscanner.v1.StartScanRunRequest" do
42
- optional :name, :string, 1
43
- end
44
- add_message "google.cloud.websecurityscanner.v1.GetScanRunRequest" do
45
- optional :name, :string, 1
46
- end
47
- add_message "google.cloud.websecurityscanner.v1.ListScanRunsRequest" do
48
- optional :parent, :string, 1
49
- optional :page_token, :string, 2
50
- optional :page_size, :int32, 3
51
- end
52
- add_message "google.cloud.websecurityscanner.v1.ListScanRunsResponse" do
53
- repeated :scan_runs, :message, 1, "google.cloud.websecurityscanner.v1.ScanRun"
54
- optional :next_page_token, :string, 2
55
- end
56
- add_message "google.cloud.websecurityscanner.v1.StopScanRunRequest" do
57
- optional :name, :string, 1
58
- end
59
- add_message "google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest" do
60
- optional :parent, :string, 1
61
- optional :page_token, :string, 2
62
- optional :page_size, :int32, 3
63
- end
64
- add_message "google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse" do
65
- repeated :crawled_urls, :message, 1, "google.cloud.websecurityscanner.v1.CrawledUrl"
66
- optional :next_page_token, :string, 2
67
- end
68
- add_message "google.cloud.websecurityscanner.v1.GetFindingRequest" do
69
- optional :name, :string, 1
70
- end
71
- add_message "google.cloud.websecurityscanner.v1.ListFindingsRequest" do
72
- optional :parent, :string, 1
73
- optional :filter, :string, 2
74
- optional :page_token, :string, 3
75
- optional :page_size, :int32, 4
76
- end
77
- add_message "google.cloud.websecurityscanner.v1.ListFindingsResponse" do
78
- repeated :findings, :message, 1, "google.cloud.websecurityscanner.v1.Finding"
79
- optional :next_page_token, :string, 2
80
- end
81
- add_message "google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest" do
82
- optional :parent, :string, 1
83
- end
84
- add_message "google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse" do
85
- repeated :finding_type_stats, :message, 1, "google.cloud.websecurityscanner.v1.FindingTypeStats"
17
+
18
+ descriptor_data = "\n=google/cloud/websecurityscanner/v1/web_security_scanner.proto\x12\"google.cloud.websecurityscanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x34google/cloud/websecurityscanner/v1/crawled_url.proto\x1a\x30google/cloud/websecurityscanner/v1/finding.proto\x1a;google/cloud/websecurityscanner/v1/finding_type_stats.proto\x1a\x34google/cloud/websecurityscanner/v1/scan_config.proto\x1a\x31google/cloud/websecurityscanner/v1/scan_run.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"n\n\x17\x43reateScanConfigRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x43\n\x0bscan_config\x18\x02 \x01(\x0b\x32..google.cloud.websecurityscanner.v1.ScanConfig\"\'\n\x17\x44\x65leteScanConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"$\n\x14GetScanConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"O\n\x16ListScanConfigsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"\x8f\x01\n\x17UpdateScanConfigRequest\x12\x43\n\x0bscan_config\x18\x02 \x01(\x0b\x32..google.cloud.websecurityscanner.v1.ScanConfig\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"x\n\x17ListScanConfigsResponse\x12\x44\n\x0cscan_configs\x18\x01 \x03(\x0b\x32..google.cloud.websecurityscanner.v1.ScanConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"#\n\x13StartScanRunRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"!\n\x11GetScanRunRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"L\n\x13ListScanRunsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"o\n\x14ListScanRunsResponse\x12>\n\tscan_runs\x18\x01 \x03(\x0b\x32+.google.cloud.websecurityscanner.v1.ScanRun\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\"\n\x12StopScanRunRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"O\n\x16ListCrawledUrlsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"x\n\x17ListCrawledUrlsResponse\x12\x44\n\x0c\x63rawled_urls\x18\x01 \x03(\x0b\x32..google.cloud.websecurityscanner.v1.CrawledUrl\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"!\n\x11GetFindingRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\\\n\x13ListFindingsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\"n\n\x14ListFindingsResponse\x12=\n\x08\x66indings\x18\x01 \x03(\x0b\x32+.google.cloud.websecurityscanner.v1.Finding\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"-\n\x1bListFindingTypeStatsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\"p\n\x1cListFindingTypeStatsResponse\x12P\n\x12\x66inding_type_stats\x18\x01 \x03(\x0b\x32\x34.google.cloud.websecurityscanner.v1.FindingTypeStats2\xe9\x13\n\x12WebSecurityScanner\x12\xb9\x01\n\x10\x43reateScanConfig\x12;.google.cloud.websecurityscanner.v1.CreateScanConfigRequest\x1a..google.cloud.websecurityscanner.v1.ScanConfig\"8\x82\xd3\xe4\x93\x02\x32\"#/v1/{parent=projects/*}/scanConfigs:\x0bscan_config\x12\x94\x01\n\x10\x44\x65leteScanConfig\x12;.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02%*#/v1/{name=projects/*/scanConfigs/*}\x12\xa6\x01\n\rGetScanConfig\x12\x38.google.cloud.websecurityscanner.v1.GetScanConfigRequest\x1a..google.cloud.websecurityscanner.v1.ScanConfig\"+\x82\xd3\xe4\x93\x02%\x12#/v1/{name=projects/*/scanConfigs/*}\x12\xb7\x01\n\x0fListScanConfigs\x12:.google.cloud.websecurityscanner.v1.ListScanConfigsRequest\x1a;.google.cloud.websecurityscanner.v1.ListScanConfigsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/v1/{parent=projects/*}/scanConfigs\x12\xc5\x01\n\x10UpdateScanConfig\x12;.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest\x1a..google.cloud.websecurityscanner.v1.ScanConfig\"D\x82\xd3\xe4\x93\x02>2//v1/{scan_config.name=projects/*/scanConfigs/*}:\x0bscan_config\x12\xaa\x01\n\x0cStartScanRun\x12\x37.google.cloud.websecurityscanner.v1.StartScanRunRequest\x1a+.google.cloud.websecurityscanner.v1.ScanRun\"4\x82\xd3\xe4\x93\x02.\")/v1/{name=projects/*/scanConfigs/*}:start:\x01*\x12\xa8\x01\n\nGetScanRun\x12\x35.google.cloud.websecurityscanner.v1.GetScanRunRequest\x1a+.google.cloud.websecurityscanner.v1.ScanRun\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/scanConfigs/*/scanRuns/*}\x12\xb9\x01\n\x0cListScanRuns\x12\x37.google.cloud.websecurityscanner.v1.ListScanRunsRequest\x1a\x38.google.cloud.websecurityscanner.v1.ListScanRunsResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/scanConfigs/*}/scanRuns\x12\xb2\x01\n\x0bStopScanRun\x12\x36.google.cloud.websecurityscanner.v1.StopScanRunRequest\x1a+.google.cloud.websecurityscanner.v1.ScanRun\">\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/scanConfigs/*/scanRuns/*}:stop:\x01*\x12\xd0\x01\n\x0fListCrawledUrls\x12:.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest\x1a;.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse\"D\x82\xd3\xe4\x93\x02>\x12</v1/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls\x12\xb3\x01\n\nGetFinding\x12\x35.google.cloud.websecurityscanner.v1.GetFindingRequest\x1a+.google.cloud.websecurityscanner.v1.Finding\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}\x12\xc4\x01\n\x0cListFindings\x12\x37.google.cloud.websecurityscanner.v1.ListFindingsRequest\x1a\x38.google.cloud.websecurityscanner.v1.ListFindingsResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings\x12\xe4\x01\n\x14ListFindingTypeStats\x12?.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest\x1a@.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats\x1aU\xca\x41!websecurityscanner.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x8d\x02\n&com.google.cloud.websecurityscanner.v1B\x17WebSecurityScannerProtoP\x01ZVcloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb\xaa\x02\"Google.Cloud.WebSecurityScanner.V1\xca\x02\"Google\\Cloud\\WebSecurityScanner\\V1\xea\x02%Google::Cloud::WebSecurityScanner::V1b\x06proto3"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError => e
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.cloud.websecurityscanner.v1.ScanConfig", "google/cloud/websecurityscanner/v1/scan_config.proto"],
34
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
35
+ ["google.cloud.websecurityscanner.v1.ScanRun", "google/cloud/websecurityscanner/v1/scan_run.proto"],
36
+ ["google.cloud.websecurityscanner.v1.CrawledUrl", "google/cloud/websecurityscanner/v1/crawled_url.proto"],
37
+ ["google.cloud.websecurityscanner.v1.Finding", "google/cloud/websecurityscanner/v1/finding.proto"],
38
+ ["google.cloud.websecurityscanner.v1.FindingTypeStats", "google/cloud/websecurityscanner/v1/finding_type_stats.proto"],
39
+ ]
40
+ imports.each do |type_name, expected_filename|
41
+ import_file = pool.lookup(type_name).file_descriptor
42
+ if import_file.name != expected_filename
43
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
86
44
  end
87
45
  end
46
+ warn "Each proto file must use a consistent fully-qualified name."
47
+ warn "This will become an error in the next major version."
88
48
  end
89
49
 
90
50
  module Google
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-web_security_scanner-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a