google-cloud-web_risk-v1 0.8.0 → 0.9.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1383d0175c0d10000f8270f6b41a8c0ee7053b8f07779ae954eb4fadc4b0933f
|
4
|
+
data.tar.gz: 30695601705260c72759547424eb07d400e3d378049816c5ae6f19f19e65eea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d2973a2385cbce154d6b47501dd97f8c58f1e199aa7d1618c24ab56ce99c5cdbc6d0a2a494f6208e1b2cf34b31558b44a038fe73be8b1533bf5f55d0254dd43
|
7
|
+
data.tar.gz: cc833ebf014e900e81406ce68eae8150c9d5623656e66ae26c5f6d893509f5cc11fadf012a75e306961faca900aa715f6d5d815c5aa8db2787437114c1c3b596
|
@@ -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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
-
#
|
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
|
-
#
|
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://
|
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.
|
4
|
+
version: 0.9.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-05-
|
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.
|
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.
|
29
|
+
version: 0.19.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|