google-cloud-web_risk-v1 0.8.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5917c20c38860aa4203e645388a14d19e694f03231c7227446022b6144d438e3
4
- data.tar.gz: 0c62427299f2a62d8261c2fd96cea1c331c4d5275726f006c7aa80eea64e3d09
3
+ metadata.gz: d52c6b84fe3329181b7d53a27c2a94a03af814428411104c2006d797a62c168d
4
+ data.tar.gz: f5860ba32632dbba391faa4cd2f02eb91be0fd8b6cdafee8944dca9d6c3ff573
5
5
  SHA512:
6
- metadata.gz: f057ccdca509ca2dfb7a5996805ea7e98678ddcb15be0eb6e3f0baf77ec3f9d8bd41b80e0ab72a7c37069707fe17cfcc96b40c15fe4a988c6b341f2c623a5a47
7
- data.tar.gz: 2b16c774b6a7302d7b44e26fc25d4f0cafb6aabc9bcb956ee2af970b4d9fe0876090c69133d490a9d8e7d91d15f068c668fd8915b1e734f33052dd6ed11ce2c2
6
+ metadata.gz: 9596e5be3f8324a79835725af36da3f44b6cc14594cf31e89363d9c69093f1aca4f200e1ca3d806233c85a976281ff8d451187927f1791ff6cf366317e3bffd0
7
+ data.tar.gz: 48fd5435f8523a4f44b1969a4b39278664623de2d4543bcce150056b3d507a5fb603fb5e85f54b4303c6baa81e11b63149012fdb3c43035f88f48f343f97b29c
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebRisk
23
23
  module V1
24
- VERSION = "0.8.0"
24
+ VERSION = "0.9.1"
25
25
  end
26
26
  end
27
27
  end
@@ -141,7 +141,7 @@ module Google
141
141
  credentials = @config.credentials
142
142
  # Use self-signed JWT if the endpoint is unchanged from default,
143
143
  # but only if the default endpoint does not have a region prefix.
144
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
144
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
145
145
  !@config.endpoint.split(".").first.include?("-")
146
146
  credentials ||= Credentials.default scope: @config.scope,
147
147
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -723,7 +723,9 @@ module Google
723
723
  class Configuration
724
724
  extend ::Gapic::Config
725
725
 
726
- config_attr :endpoint, "webrisk.googleapis.com", ::String
726
+ DEFAULT_ENDPOINT = "webrisk.googleapis.com"
727
+
728
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
727
729
  config_attr :credentials, nil do |value|
728
730
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
729
731
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "webrisk.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "webrisk.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -137,7 +137,7 @@ module Google
137
137
  credentials = @config.credentials
138
138
  # Use self-signed JWT if the endpoint is unchanged from default,
139
139
  # but only if the default endpoint does not have a region prefix.
140
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
140
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
141
141
  !@config.endpoint.split(".").first.include?("-")
142
142
  credentials ||= Credentials.default scope: @config.scope,
143
143
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -607,7 +607,9 @@ module Google
607
607
  class Configuration
608
608
  extend ::Gapic::Config
609
609
 
610
- config_attr :endpoint, "webrisk.googleapis.com", ::String
610
+ DEFAULT_ENDPOINT = "webrisk.googleapis.com"
611
+
612
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
611
613
  config_attr :credentials, nil do |value|
612
614
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
613
615
  allowed.any? { |klass| klass === value }
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "webrisk.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "webrisk.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_compute_threat_list_diff_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_search_uris_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_search_hashes_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_create_submission_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_submit_uri_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -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/webrisk/v1/webrisk.proto
3
4
 
@@ -10,163 +11,32 @@ require 'google/api/resource_pb'
10
11
  require 'google/longrunning/operations_pb'
11
12
  require 'google/protobuf/timestamp_pb'
12
13
 
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_file("google/cloud/webrisk/v1/webrisk.proto", :syntax => :proto3) do
15
- add_message "google.cloud.webrisk.v1.ComputeThreatListDiffRequest" do
16
- optional :threat_type, :enum, 1, "google.cloud.webrisk.v1.ThreatType"
17
- optional :version_token, :bytes, 2
18
- optional :constraints, :message, 3, "google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints"
19
- end
20
- add_message "google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints" do
21
- optional :max_diff_entries, :int32, 1
22
- optional :max_database_entries, :int32, 2
23
- repeated :supported_compressions, :enum, 3, "google.cloud.webrisk.v1.CompressionType"
24
- end
25
- add_message "google.cloud.webrisk.v1.ComputeThreatListDiffResponse" do
26
- optional :response_type, :enum, 4, "google.cloud.webrisk.v1.ComputeThreatListDiffResponse.ResponseType"
27
- optional :additions, :message, 5, "google.cloud.webrisk.v1.ThreatEntryAdditions"
28
- optional :removals, :message, 6, "google.cloud.webrisk.v1.ThreatEntryRemovals"
29
- optional :new_version_token, :bytes, 7
30
- optional :checksum, :message, 8, "google.cloud.webrisk.v1.ComputeThreatListDiffResponse.Checksum"
31
- optional :recommended_next_diff, :message, 2, "google.protobuf.Timestamp"
32
- end
33
- add_message "google.cloud.webrisk.v1.ComputeThreatListDiffResponse.Checksum" do
34
- optional :sha256, :bytes, 1
35
- end
36
- add_enum "google.cloud.webrisk.v1.ComputeThreatListDiffResponse.ResponseType" do
37
- value :RESPONSE_TYPE_UNSPECIFIED, 0
38
- value :DIFF, 1
39
- value :RESET, 2
40
- end
41
- add_message "google.cloud.webrisk.v1.SearchUrisRequest" do
42
- optional :uri, :string, 1
43
- repeated :threat_types, :enum, 2, "google.cloud.webrisk.v1.ThreatType"
44
- end
45
- add_message "google.cloud.webrisk.v1.SearchUrisResponse" do
46
- optional :threat, :message, 1, "google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri"
47
- end
48
- add_message "google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri" do
49
- repeated :threat_types, :enum, 1, "google.cloud.webrisk.v1.ThreatType"
50
- optional :expire_time, :message, 2, "google.protobuf.Timestamp"
51
- end
52
- add_message "google.cloud.webrisk.v1.SearchHashesRequest" do
53
- optional :hash_prefix, :bytes, 1
54
- repeated :threat_types, :enum, 2, "google.cloud.webrisk.v1.ThreatType"
55
- end
56
- add_message "google.cloud.webrisk.v1.SearchHashesResponse" do
57
- repeated :threats, :message, 1, "google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash"
58
- optional :negative_expire_time, :message, 2, "google.protobuf.Timestamp"
59
- end
60
- add_message "google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash" do
61
- repeated :threat_types, :enum, 1, "google.cloud.webrisk.v1.ThreatType"
62
- optional :hash, :bytes, 2
63
- optional :expire_time, :message, 3, "google.protobuf.Timestamp"
64
- end
65
- add_message "google.cloud.webrisk.v1.ThreatEntryAdditions" do
66
- repeated :raw_hashes, :message, 1, "google.cloud.webrisk.v1.RawHashes"
67
- optional :rice_hashes, :message, 2, "google.cloud.webrisk.v1.RiceDeltaEncoding"
68
- end
69
- add_message "google.cloud.webrisk.v1.ThreatEntryRemovals" do
70
- optional :raw_indices, :message, 1, "google.cloud.webrisk.v1.RawIndices"
71
- optional :rice_indices, :message, 2, "google.cloud.webrisk.v1.RiceDeltaEncoding"
72
- end
73
- add_message "google.cloud.webrisk.v1.RawIndices" do
74
- repeated :indices, :int32, 1
75
- end
76
- add_message "google.cloud.webrisk.v1.RawHashes" do
77
- optional :prefix_size, :int32, 1
78
- optional :raw_hashes, :bytes, 2
79
- end
80
- add_message "google.cloud.webrisk.v1.RiceDeltaEncoding" do
81
- optional :first_value, :int64, 1
82
- optional :rice_parameter, :int32, 2
83
- optional :entry_count, :int32, 3
84
- optional :encoded_data, :bytes, 4
85
- end
86
- add_message "google.cloud.webrisk.v1.Submission" do
87
- optional :uri, :string, 1
88
- repeated :threat_types, :enum, 2, "google.cloud.webrisk.v1.ThreatType"
89
- end
90
- add_message "google.cloud.webrisk.v1.ThreatInfo" do
91
- optional :abuse_type, :enum, 1, "google.cloud.webrisk.v1.ThreatInfo.AbuseType"
92
- optional :threat_confidence, :message, 2, "google.cloud.webrisk.v1.ThreatInfo.Confidence"
93
- optional :threat_justification, :message, 3, "google.cloud.webrisk.v1.ThreatInfo.ThreatJustification"
94
- end
95
- add_message "google.cloud.webrisk.v1.ThreatInfo.Confidence" do
96
- oneof :value do
97
- optional :score, :float, 1
98
- optional :level, :enum, 2, "google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel"
99
- end
100
- end
101
- add_enum "google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel" do
102
- value :CONFIDENCE_LEVEL_UNSPECIFIED, 0
103
- value :LOW, 1
104
- value :MEDIUM, 2
105
- value :HIGH, 3
106
- end
107
- add_message "google.cloud.webrisk.v1.ThreatInfo.ThreatJustification" do
108
- repeated :labels, :enum, 1, "google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel"
109
- repeated :comments, :string, 2
110
- end
111
- add_enum "google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel" do
112
- value :JUSTIFICATION_LABEL_UNSPECIFIED, 0
113
- value :MANUAL_VERIFICATION, 1
114
- value :USER_REPORT, 2
115
- value :AUTOMATED_REPORT, 3
116
- end
117
- add_enum "google.cloud.webrisk.v1.ThreatInfo.AbuseType" do
118
- value :ABUSE_TYPE_UNSPECIFIED, 0
119
- value :MALWARE, 1
120
- value :SOCIAL_ENGINEERING, 2
121
- value :UNWANTED_SOFTWARE, 3
122
- end
123
- add_message "google.cloud.webrisk.v1.ThreatDiscovery" do
124
- optional :platform, :enum, 1, "google.cloud.webrisk.v1.ThreatDiscovery.Platform"
125
- repeated :region_codes, :string, 2
126
- end
127
- add_enum "google.cloud.webrisk.v1.ThreatDiscovery.Platform" do
128
- value :PLATFORM_UNSPECIFIED, 0
129
- value :ANDROID, 1
130
- value :IOS, 2
131
- value :MACOS, 3
132
- value :WINDOWS, 4
133
- end
134
- add_message "google.cloud.webrisk.v1.CreateSubmissionRequest" do
135
- optional :parent, :string, 1
136
- optional :submission, :message, 2, "google.cloud.webrisk.v1.Submission"
137
- end
138
- add_message "google.cloud.webrisk.v1.SubmitUriRequest" do
139
- optional :parent, :string, 1
140
- optional :submission, :message, 2, "google.cloud.webrisk.v1.Submission"
141
- optional :threat_info, :message, 3, "google.cloud.webrisk.v1.ThreatInfo"
142
- optional :threat_discovery, :message, 4, "google.cloud.webrisk.v1.ThreatDiscovery"
143
- end
144
- add_message "google.cloud.webrisk.v1.SubmitUriMetadata" do
145
- optional :state, :enum, 1, "google.cloud.webrisk.v1.SubmitUriMetadata.State"
146
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
147
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
148
- end
149
- add_enum "google.cloud.webrisk.v1.SubmitUriMetadata.State" do
150
- value :STATE_UNSPECIFIED, 0
151
- value :RUNNING, 1
152
- value :SUCCEEDED, 2
153
- value :CANCELLED, 3
154
- value :FAILED, 4
155
- value :CLOSED, 5
156
- end
157
- add_enum "google.cloud.webrisk.v1.ThreatType" do
158
- value :THREAT_TYPE_UNSPECIFIED, 0
159
- value :MALWARE, 1
160
- value :SOCIAL_ENGINEERING, 2
161
- value :UNWANTED_SOFTWARE, 3
162
- value :SOCIAL_ENGINEERING_EXTENDED_COVERAGE, 4
163
- end
164
- add_enum "google.cloud.webrisk.v1.CompressionType" do
165
- value :COMPRESSION_TYPE_UNSPECIFIED, 0
166
- value :RAW, 1
167
- value :RICE, 2
14
+
15
+ descriptor_data = "\n%google/cloud/webrisk/v1/webrisk.proto\x12\x17google.cloud.webrisk.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe3\x02\n\x1c\x43omputeThreatListDiffRequest\x12=\n\x0bthreat_type\x18\x01 \x01(\x0e\x32#.google.cloud.webrisk.v1.ThreatTypeB\x03\xe0\x41\x02\x12\x15\n\rversion_token\x18\x02 \x01(\x0c\x12[\n\x0b\x63onstraints\x18\x03 \x01(\x0b\x32\x41.google.cloud.webrisk.v1.ComputeThreatListDiffRequest.ConstraintsB\x03\xe0\x41\x02\x1a\x8f\x01\n\x0b\x43onstraints\x12\x18\n\x10max_diff_entries\x18\x01 \x01(\x05\x12\x1c\n\x14max_database_entries\x18\x02 \x01(\x05\x12H\n\x16supported_compressions\x18\x03 \x03(\x0e\x32(.google.cloud.webrisk.v1.CompressionType\"\x86\x04\n\x1d\x43omputeThreatListDiffResponse\x12Z\n\rresponse_type\x18\x04 \x01(\x0e\x32\x43.google.cloud.webrisk.v1.ComputeThreatListDiffResponse.ResponseType\x12@\n\tadditions\x18\x05 \x01(\x0b\x32-.google.cloud.webrisk.v1.ThreatEntryAdditions\x12>\n\x08removals\x18\x06 \x01(\x0b\x32,.google.cloud.webrisk.v1.ThreatEntryRemovals\x12\x19\n\x11new_version_token\x18\x07 \x01(\x0c\x12Q\n\x08\x63hecksum\x18\x08 \x01(\x0b\x32?.google.cloud.webrisk.v1.ComputeThreatListDiffResponse.Checksum\x12\x39\n\x15recommended_next_diff\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x1a\n\x08\x43hecksum\x12\x0e\n\x06sha256\x18\x01 \x01(\x0c\"B\n\x0cResponseType\x12\x1d\n\x19RESPONSE_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x44IFF\x10\x01\x12\t\n\x05RESET\x10\x02\"e\n\x11SearchUrisRequest\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0cthreat_types\x18\x02 \x03(\x0e\x32#.google.cloud.webrisk.v1.ThreatTypeB\x03\xe0\x41\x02\"\xd4\x01\n\x12SearchUrisResponse\x12\x45\n\x06threat\x18\x01 \x01(\x0b\x32\x35.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri\x1aw\n\tThreatUri\x12\x39\n\x0cthreat_types\x18\x01 \x03(\x0e\x32#.google.cloud.webrisk.v1.ThreatType\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"j\n\x13SearchHashesRequest\x12\x13\n\x0bhash_prefix\x18\x01 \x01(\x0c\x12>\n\x0cthreat_types\x18\x02 \x03(\x0e\x32#.google.cloud.webrisk.v1.ThreatTypeB\x03\xe0\x41\x02\"\xa4\x02\n\x14SearchHashesResponse\x12I\n\x07threats\x18\x01 \x03(\x0b\x32\x38.google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash\x12\x38\n\x14negative_expire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x86\x01\n\nThreatHash\x12\x39\n\x0cthreat_types\x18\x01 \x03(\x0e\x32#.google.cloud.webrisk.v1.ThreatType\x12\x0c\n\x04hash\x18\x02 \x01(\x0c\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8f\x01\n\x14ThreatEntryAdditions\x12\x36\n\nraw_hashes\x18\x01 \x03(\x0b\x32\".google.cloud.webrisk.v1.RawHashes\x12?\n\x0brice_hashes\x18\x02 \x01(\x0b\x32*.google.cloud.webrisk.v1.RiceDeltaEncoding\"\x91\x01\n\x13ThreatEntryRemovals\x12\x38\n\x0braw_indices\x18\x01 \x01(\x0b\x32#.google.cloud.webrisk.v1.RawIndices\x12@\n\x0crice_indices\x18\x02 \x01(\x0b\x32*.google.cloud.webrisk.v1.RiceDeltaEncoding\"\x1d\n\nRawIndices\x12\x0f\n\x07indices\x18\x01 \x03(\x05\"4\n\tRawHashes\x12\x13\n\x0bprefix_size\x18\x01 \x01(\x05\x12\x12\n\nraw_hashes\x18\x02 \x01(\x0c\"k\n\x11RiceDeltaEncoding\x12\x13\n\x0b\x66irst_value\x18\x01 \x01(\x03\x12\x16\n\x0erice_parameter\x18\x02 \x01(\x05\x12\x13\n\x0b\x65ntry_count\x18\x03 \x01(\x05\x12\x14\n\x0c\x65ncoded_data\x18\x04 \x01(\x0c\"^\n\nSubmission\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0cthreat_types\x18\x02 \x03(\x0e\x32#.google.cloud.webrisk.v1.ThreatTypeB\x03\xe0\x41\x03\"\xa5\x06\n\nThreatInfo\x12\x41\n\nabuse_type\x18\x01 \x01(\x0e\x32-.google.cloud.webrisk.v1.ThreatInfo.AbuseType\x12I\n\x11threat_confidence\x18\x02 \x01(\x0b\x32..google.cloud.webrisk.v1.ThreatInfo.Confidence\x12U\n\x14threat_justification\x18\x03 \x01(\x0b\x32\x37.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification\x1a\xcb\x01\n\nConfidence\x12\x0f\n\x05score\x18\x01 \x01(\x02H\x00\x12O\n\x05level\x18\x02 \x01(\x0e\x32>.google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevelH\x00\"R\n\x0f\x43onfidenceLevel\x12 \n\x1c\x43ONFIDENCE_LEVEL_UNSPECIFIED\x10\x00\x12\x07\n\x03LOW\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x08\n\x04HIGH\x10\x03\x42\x07\n\x05value\x1a\xfe\x01\n\x13ThreatJustification\x12Z\n\x06labels\x18\x01 \x03(\x0e\x32J.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel\x12\x10\n\x08\x63omments\x18\x02 \x03(\t\"y\n\x12JustificationLabel\x12#\n\x1fJUSTIFICATION_LABEL_UNSPECIFIED\x10\x00\x12\x17\n\x13MANUAL_VERIFICATION\x10\x01\x12\x0f\n\x0bUSER_REPORT\x10\x02\x12\x14\n\x10\x41UTOMATED_REPORT\x10\x03\"c\n\tAbuseType\x12\x1a\n\x16\x41\x42USE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07MALWARE\x10\x01\x12\x16\n\x12SOCIAL_ENGINEERING\x10\x02\x12\x15\n\x11UNWANTED_SOFTWARE\x10\x03\"\xc0\x01\n\x0fThreatDiscovery\x12\x43\n\x08platform\x18\x01 \x01(\x0e\x32\x31.google.cloud.webrisk.v1.ThreatDiscovery.Platform\x12\x14\n\x0cregion_codes\x18\x02 \x03(\t\"R\n\x08Platform\x12\x18\n\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41NDROID\x10\x01\x12\x07\n\x03IOS\x10\x02\x12\t\n\x05MACOS\x10\x03\x12\x0b\n\x07WINDOWS\x10\x04\"\x9c\x01\n\x17\x43reateSubmissionRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12<\n\nsubmission\x18\x02 \x01(\x0b\x32#.google.cloud.webrisk.v1.SubmissionB\x03\xe0\x41\x02\"\x93\x02\n\x10SubmitUriRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12<\n\nsubmission\x18\x02 \x01(\x0b\x32#.google.cloud.webrisk.v1.SubmissionB\x03\xe0\x41\x02\x12\x38\n\x0bthreat_info\x18\x03 \x01(\x0b\x32#.google.cloud.webrisk.v1.ThreatInfo\x12\x42\n\x10threat_discovery\x18\x04 \x01(\x0b\x32(.google.cloud.webrisk.v1.ThreatDiscovery\"\x99\x02\n\x11SubmitUriMetadata\x12?\n\x05state\x18\x01 \x01(\x0e\x32\x30.google.cloud.webrisk.v1.SubmitUriMetadata.State\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\n\n\x06\x43LOSED\x10\x05*\x8f\x01\n\nThreatType\x12\x1b\n\x17THREAT_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07MALWARE\x10\x01\x12\x16\n\x12SOCIAL_ENGINEERING\x10\x02\x12\x15\n\x11UNWANTED_SOFTWARE\x10\x03\x12(\n$SOCIAL_ENGINEERING_EXTENDED_COVERAGE\x10\x04*F\n\x0f\x43ompressionType\x12 \n\x1c\x43OMPRESSION_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03RAW\x10\x01\x12\x08\n\x04RICE\x10\x02\x32\xcd\x07\n\x0eWebRiskService\x12\xd3\x01\n\x15\x43omputeThreatListDiff\x12\x35.google.cloud.webrisk.v1.ComputeThreatListDiffRequest\x1a\x36.google.cloud.webrisk.v1.ComputeThreatListDiffResponse\"K\x82\xd3\xe4\x93\x02\x1d\x12\x1b/v1/threatLists:computeDiff\xda\x41%threat_type,version_token,constraints\x12\x91\x01\n\nSearchUris\x12*.google.cloud.webrisk.v1.SearchUrisRequest\x1a+.google.cloud.webrisk.v1.SearchUrisResponse\"*\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1/uris:search\xda\x41\x10uri,threat_types\x12\xa1\x01\n\x0cSearchHashes\x12,.google.cloud.webrisk.v1.SearchHashesRequest\x1a-.google.cloud.webrisk.v1.SearchHashesResponse\"4\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/hashes:search\xda\x41\x18hash_prefix,threat_types\x12\xb6\x01\n\x10\x43reateSubmission\x12\x30.google.cloud.webrisk.v1.CreateSubmissionRequest\x1a#.google.cloud.webrisk.v1.Submission\"K\x82\xd3\xe4\x93\x02\x31\"#/v1/{parent=projects/*}/submissions:\nsubmission\xda\x41\x11parent,submission\x12\xa7\x01\n\tSubmitUri\x12).google.cloud.webrisk.v1.SubmitUriRequest\x1a\x1d.google.longrunning.Operation\"P\x82\xd3\xe4\x93\x02(\"#/v1/{parent=projects/*}/uris:submit:\x01*\xca\x41\x1f\n\nSubmission\x12\x11SubmitUriMetadata\x1aJ\xca\x41\x16webrisk.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb6\x01\n\x15\x63om.google.webrisk.v1B\x0cWebRiskProtoP\x01Z5cloud.google.com/go/webrisk/apiv1/webriskpb;webriskpb\xa2\x02\x04GCWR\xaa\x02\x17Google.Cloud.WebRisk.V1\xca\x02\x17Google\\Cloud\\WebRisk\\V1\xea\x02\x1aGoogle::Cloud::WebRisk::V1b\x06proto3"
16
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError => e
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
168
36
  end
169
37
  end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
170
40
  end
171
41
 
172
42
  module Google
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -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_risk-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.1
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-05-19 00:00:00.000000000 Z
11
+ date: 2023-06-06 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.1
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.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a