« Security/Safebrowsing/V5alpha1/Safebrowsing.pm
↑ Summary
Cloud/Security/Safebrowsing/V5alpha1.pm »
| 1 | package Google::Security::Safebrowsing::V5alpha1::Safebrowsing::Types; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Type::Library -base; | ||
| 7 | use Type::Utils -all; | ||
| 8 | use Types::Standard -types; | ||
| 9 | |||
| 10 | declare 'ThreatType', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'LikelySafeType', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'ThreatAttribute', | ||
| 17 | as (Int | Str); | ||
| 18 | |||
| 19 | declare 'SearchHashesRequest', | ||
| 20 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::SearchHashesRequest']; | ||
| 21 | |||
| 22 | coerce 'SearchHashesRequest', | ||
| 23 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::SearchHashesRequest'->new($_) }; | ||
| 24 | |||
| 25 | declare 'RepeatedSearchHashesRequest', | ||
| 26 | as ArrayRef[SearchHashesRequest()]; | ||
| 27 | |||
| 28 | coerce 'RepeatedSearchHashesRequest', | ||
| 29 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::SearchHashesRequest'->new($_) } @$_ ] }; | ||
| 30 | |||
| 31 | declare 'MapStringSearchHashesRequest', | ||
| 32 | as HashRef[SearchHashesRequest()]; | ||
| 33 | |||
| 34 | declare 'SearchHashesResponse', | ||
| 35 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::SearchHashesResponse']; | ||
| 36 | |||
| 37 | coerce 'SearchHashesResponse', | ||
| 38 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::SearchHashesResponse'->new($_) }; | ||
| 39 | |||
| 40 | declare 'RepeatedSearchHashesResponse', | ||
| 41 | as ArrayRef[SearchHashesResponse()]; | ||
| 42 | |||
| 43 | coerce 'RepeatedSearchHashesResponse', | ||
| 44 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::SearchHashesResponse'->new($_) } @$_ ] }; | ||
| 45 | |||
| 46 | declare 'MapStringSearchHashesResponse', | ||
| 47 | as HashRef[SearchHashesResponse()]; | ||
| 48 | |||
| 49 | declare 'FullHash', | ||
| 50 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::FullHash']; | ||
| 51 | |||
| 52 | coerce 'FullHash', | ||
| 53 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::FullHash'->new($_) }; | ||
| 54 | |||
| 55 | declare 'RepeatedFullHash', | ||
| 56 | as ArrayRef[FullHash()]; | ||
| 57 | |||
| 58 | coerce 'RepeatedFullHash', | ||
| 59 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::FullHash'->new($_) } @$_ ] }; | ||
| 60 | |||
| 61 | declare 'MapStringFullHash', | ||
| 62 | as HashRef[FullHash()]; | ||
| 63 | |||
| 64 | declare 'FullHashDetail', | ||
| 65 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::FullHash::FullHashDetail']; | ||
| 66 | |||
| 67 | coerce 'FullHashDetail', | ||
| 68 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::FullHash::FullHashDetail'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedFullHashDetail', | ||
| 71 | as ArrayRef[FullHashDetail()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedFullHashDetail', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::FullHash::FullHashDetail'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringFullHashDetail', | ||
| 77 | as HashRef[FullHashDetail()]; | ||
| 78 | |||
| 79 | declare 'GetHashListRequest', | ||
| 80 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::GetHashListRequest']; | ||
| 81 | |||
| 82 | coerce 'GetHashListRequest', | ||
| 83 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::GetHashListRequest'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedGetHashListRequest', | ||
| 86 | as ArrayRef[GetHashListRequest()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedGetHashListRequest', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::GetHashListRequest'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringGetHashListRequest', | ||
| 92 | as HashRef[GetHashListRequest()]; | ||
| 93 | |||
| 94 | declare 'SizeConstraints', | ||
| 95 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::SizeConstraints']; | ||
| 96 | |||
| 97 | coerce 'SizeConstraints', | ||
| 98 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::SizeConstraints'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedSizeConstraints', | ||
| 101 | as ArrayRef[SizeConstraints()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedSizeConstraints', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::SizeConstraints'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringSizeConstraints', | ||
| 107 | as HashRef[SizeConstraints()]; | ||
| 108 | |||
| 109 | declare 'RiceDeltaEncoded32Bit', | ||
| 110 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded32Bit']; | ||
| 111 | |||
| 112 | coerce 'RiceDeltaEncoded32Bit', | ||
| 113 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded32Bit'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedRiceDeltaEncoded32Bit', | ||
| 116 | as ArrayRef[RiceDeltaEncoded32Bit()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedRiceDeltaEncoded32Bit', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded32Bit'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringRiceDeltaEncoded32Bit', | ||
| 122 | as HashRef[RiceDeltaEncoded32Bit()]; | ||
| 123 | |||
| 124 | declare 'RiceDeltaEncoded64Bit', | ||
| 125 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded64Bit']; | ||
| 126 | |||
| 127 | coerce 'RiceDeltaEncoded64Bit', | ||
| 128 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded64Bit'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedRiceDeltaEncoded64Bit', | ||
| 131 | as ArrayRef[RiceDeltaEncoded64Bit()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedRiceDeltaEncoded64Bit', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded64Bit'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringRiceDeltaEncoded64Bit', | ||
| 137 | as HashRef[RiceDeltaEncoded64Bit()]; | ||
| 138 | |||
| 139 | declare 'RiceDeltaEncoded128Bit', | ||
| 140 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded128Bit']; | ||
| 141 | |||
| 142 | coerce 'RiceDeltaEncoded128Bit', | ||
| 143 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded128Bit'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedRiceDeltaEncoded128Bit', | ||
| 146 | as ArrayRef[RiceDeltaEncoded128Bit()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedRiceDeltaEncoded128Bit', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded128Bit'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringRiceDeltaEncoded128Bit', | ||
| 152 | as HashRef[RiceDeltaEncoded128Bit()]; | ||
| 153 | |||
| 154 | declare 'RiceDeltaEncoded256Bit', | ||
| 155 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded256Bit']; | ||
| 156 | |||
| 157 | coerce 'RiceDeltaEncoded256Bit', | ||
| 158 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded256Bit'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedRiceDeltaEncoded256Bit', | ||
| 161 | as ArrayRef[RiceDeltaEncoded256Bit()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedRiceDeltaEncoded256Bit', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::RiceDeltaEncoded256Bit'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringRiceDeltaEncoded256Bit', | ||
| 167 | as HashRef[RiceDeltaEncoded256Bit()]; | ||
| 168 | |||
| 169 | declare 'HashListMetadata', | ||
| 170 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::HashListMetadata']; | ||
| 171 | |||
| 172 | coerce 'HashListMetadata', | ||
| 173 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::HashListMetadata'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedHashListMetadata', | ||
| 176 | as ArrayRef[HashListMetadata()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedHashListMetadata', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::HashListMetadata'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringHashListMetadata', | ||
| 182 | as HashRef[HashListMetadata()]; | ||
| 183 | |||
| 184 | declare 'HashLength', | ||
| 185 | as (Int | Str); | ||
| 186 | |||
| 187 | declare 'HashList', | ||
| 188 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::HashList']; | ||
| 189 | |||
| 190 | coerce 'HashList', | ||
| 191 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::HashList'->new($_) }; | ||
| 192 | |||
| 193 | declare 'RepeatedHashList', | ||
| 194 | as ArrayRef[HashList()]; | ||
| 195 | |||
| 196 | coerce 'RepeatedHashList', | ||
| 197 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::HashList'->new($_) } @$_ ] }; | ||
| 198 | |||
| 199 | declare 'MapStringHashList', | ||
| 200 | as HashRef[HashList()]; | ||
| 201 | |||
| 202 | declare 'BatchGetHashListsRequest', | ||
| 203 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::BatchGetHashListsRequest']; | ||
| 204 | |||
| 205 | coerce 'BatchGetHashListsRequest', | ||
| 206 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::BatchGetHashListsRequest'->new($_) }; | ||
| 207 | |||
| 208 | declare 'RepeatedBatchGetHashListsRequest', | ||
| 209 | as ArrayRef[BatchGetHashListsRequest()]; | ||
| 210 | |||
| 211 | coerce 'RepeatedBatchGetHashListsRequest', | ||
| 212 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::BatchGetHashListsRequest'->new($_) } @$_ ] }; | ||
| 213 | |||
| 214 | declare 'MapStringBatchGetHashListsRequest', | ||
| 215 | as HashRef[BatchGetHashListsRequest()]; | ||
| 216 | |||
| 217 | declare 'BatchGetHashListsResponse', | ||
| 218 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::BatchGetHashListsResponse']; | ||
| 219 | |||
| 220 | coerce 'BatchGetHashListsResponse', | ||
| 221 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::BatchGetHashListsResponse'->new($_) }; | ||
| 222 | |||
| 223 | declare 'RepeatedBatchGetHashListsResponse', | ||
| 224 | as ArrayRef[BatchGetHashListsResponse()]; | ||
| 225 | |||
| 226 | coerce 'RepeatedBatchGetHashListsResponse', | ||
| 227 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::BatchGetHashListsResponse'->new($_) } @$_ ] }; | ||
| 228 | |||
| 229 | declare 'MapStringBatchGetHashListsResponse', | ||
| 230 | as HashRef[BatchGetHashListsResponse()]; | ||
| 231 | |||
| 232 | declare 'ListHashListsRequest', | ||
| 233 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::ListHashListsRequest']; | ||
| 234 | |||
| 235 | coerce 'ListHashListsRequest', | ||
| 236 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::ListHashListsRequest'->new($_) }; | ||
| 237 | |||
| 238 | declare 'RepeatedListHashListsRequest', | ||
| 239 | as ArrayRef[ListHashListsRequest()]; | ||
| 240 | |||
| 241 | coerce 'RepeatedListHashListsRequest', | ||
| 242 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::ListHashListsRequest'->new($_) } @$_ ] }; | ||
| 243 | |||
| 244 | declare 'MapStringListHashListsRequest', | ||
| 245 | as HashRef[ListHashListsRequest()]; | ||
| 246 | |||
| 247 | declare 'ListHashListsResponse', | ||
| 248 | as InstanceOf['Google::Security::Safebrowsing::V5alpha1::Safebrowsing::ListHashListsResponse']; | ||
| 249 | |||
| 250 | coerce 'ListHashListsResponse', | ||
| 251 | from HashRef, via { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::ListHashListsResponse'->new($_) }; | ||
| 252 | |||
| 253 | declare 'RepeatedListHashListsResponse', | ||
| 254 | as ArrayRef[ListHashListsResponse()]; | ||
| 255 | |||
| 256 | coerce 'RepeatedListHashListsResponse', | ||
| 257 | from ArrayRef[HashRef], via { [ map { 'Google::Security::Safebrowsing::V5alpha1::Safebrowsing::ListHashListsResponse'->new($_) } @$_ ] }; | ||
| 258 | |||
| 259 | declare 'MapStringListHashListsResponse', | ||
| 260 | as HashRef[ListHashListsResponse()]; | ||
| 261 | |||
| 262 | 1; | ||
| 263 | |||
| 264 | __END__ |