| 1 | package Google::Cloud::Language::V1::LanguageService::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 'EncodingType', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'Document', | ||
| 14 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::Document']; | ||
| 15 | |||
| 16 | coerce 'Document', | ||
| 17 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::Document'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedDocument', | ||
| 20 | as ArrayRef[Document()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedDocument', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::Document'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringDocument', | ||
| 26 | as HashRef[Document()]; | ||
| 27 | |||
| 28 | declare 'Type', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'Sentence', | ||
| 32 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::Sentence']; | ||
| 33 | |||
| 34 | coerce 'Sentence', | ||
| 35 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::Sentence'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedSentence', | ||
| 38 | as ArrayRef[Sentence()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedSentence', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::Sentence'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringSentence', | ||
| 44 | as HashRef[Sentence()]; | ||
| 45 | |||
| 46 | declare 'Entity', | ||
| 47 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::Entity']; | ||
| 48 | |||
| 49 | coerce 'Entity', | ||
| 50 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::Entity'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedEntity', | ||
| 53 | as ArrayRef[Entity()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedEntity', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::Entity'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringEntity', | ||
| 59 | as HashRef[Entity()]; | ||
| 60 | |||
| 61 | declare 'Type', | ||
| 62 | as (Int | Str); | ||
| 63 | |||
| 64 | declare 'MetadataEntry', | ||
| 65 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::Entity::MetadataEntry']; | ||
| 66 | |||
| 67 | coerce 'MetadataEntry', | ||
| 68 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::Entity::MetadataEntry'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedMetadataEntry', | ||
| 71 | as ArrayRef[MetadataEntry()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedMetadataEntry', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::Entity::MetadataEntry'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringMetadataEntry', | ||
| 77 | as HashRef[MetadataEntry()]; | ||
| 78 | |||
| 79 | declare 'Token', | ||
| 80 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::Token']; | ||
| 81 | |||
| 82 | coerce 'Token', | ||
| 83 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::Token'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedToken', | ||
| 86 | as ArrayRef[Token()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedToken', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::Token'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringToken', | ||
| 92 | as HashRef[Token()]; | ||
| 93 | |||
| 94 | declare 'Sentiment', | ||
| 95 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::Sentiment']; | ||
| 96 | |||
| 97 | coerce 'Sentiment', | ||
| 98 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::Sentiment'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedSentiment', | ||
| 101 | as ArrayRef[Sentiment()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedSentiment', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::Sentiment'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringSentiment', | ||
| 107 | as HashRef[Sentiment()]; | ||
| 108 | |||
| 109 | declare 'PartOfSpeech', | ||
| 110 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::PartOfSpeech']; | ||
| 111 | |||
| 112 | coerce 'PartOfSpeech', | ||
| 113 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::PartOfSpeech'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedPartOfSpeech', | ||
| 116 | as ArrayRef[PartOfSpeech()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedPartOfSpeech', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::PartOfSpeech'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringPartOfSpeech', | ||
| 122 | as HashRef[PartOfSpeech()]; | ||
| 123 | |||
| 124 | declare 'Tag', | ||
| 125 | as (Int | Str); | ||
| 126 | |||
| 127 | declare 'Aspect', | ||
| 128 | as (Int | Str); | ||
| 129 | |||
| 130 | declare 'Case', | ||
| 131 | as (Int | Str); | ||
| 132 | |||
| 133 | declare 'Form', | ||
| 134 | as (Int | Str); | ||
| 135 | |||
| 136 | declare 'Gender', | ||
| 137 | as (Int | Str); | ||
| 138 | |||
| 139 | declare 'Mood', | ||
| 140 | as (Int | Str); | ||
| 141 | |||
| 142 | declare 'Number', | ||
| 143 | as (Int | Str); | ||
| 144 | |||
| 145 | declare 'Person', | ||
| 146 | as (Int | Str); | ||
| 147 | |||
| 148 | declare 'Proper', | ||
| 149 | as (Int | Str); | ||
| 150 | |||
| 151 | declare 'Reciprocity', | ||
| 152 | as (Int | Str); | ||
| 153 | |||
| 154 | declare 'Tense', | ||
| 155 | as (Int | Str); | ||
| 156 | |||
| 157 | declare 'Voice', | ||
| 158 | as (Int | Str); | ||
| 159 | |||
| 160 | declare 'DependencyEdge', | ||
| 161 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::DependencyEdge']; | ||
| 162 | |||
| 163 | coerce 'DependencyEdge', | ||
| 164 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::DependencyEdge'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedDependencyEdge', | ||
| 167 | as ArrayRef[DependencyEdge()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedDependencyEdge', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::DependencyEdge'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringDependencyEdge', | ||
| 173 | as HashRef[DependencyEdge()]; | ||
| 174 | |||
| 175 | declare 'Label', | ||
| 176 | as (Int | Str); | ||
| 177 | |||
| 178 | declare 'EntityMention', | ||
| 179 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::EntityMention']; | ||
| 180 | |||
| 181 | coerce 'EntityMention', | ||
| 182 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::EntityMention'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedEntityMention', | ||
| 185 | as ArrayRef[EntityMention()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedEntityMention', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::EntityMention'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringEntityMention', | ||
| 191 | as HashRef[EntityMention()]; | ||
| 192 | |||
| 193 | declare 'Type', | ||
| 194 | as (Int | Str); | ||
| 195 | |||
| 196 | declare 'TextSpan', | ||
| 197 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::TextSpan']; | ||
| 198 | |||
| 199 | coerce 'TextSpan', | ||
| 200 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::TextSpan'->new($_) }; | ||
| 201 | |||
| 202 | declare 'RepeatedTextSpan', | ||
| 203 | as ArrayRef[TextSpan()]; | ||
| 204 | |||
| 205 | coerce 'RepeatedTextSpan', | ||
| 206 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::TextSpan'->new($_) } @$_ ] }; | ||
| 207 | |||
| 208 | declare 'MapStringTextSpan', | ||
| 209 | as HashRef[TextSpan()]; | ||
| 210 | |||
| 211 | declare 'ClassificationCategory', | ||
| 212 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::ClassificationCategory']; | ||
| 213 | |||
| 214 | coerce 'ClassificationCategory', | ||
| 215 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::ClassificationCategory'->new($_) }; | ||
| 216 | |||
| 217 | declare 'RepeatedClassificationCategory', | ||
| 218 | as ArrayRef[ClassificationCategory()]; | ||
| 219 | |||
| 220 | coerce 'RepeatedClassificationCategory', | ||
| 221 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::ClassificationCategory'->new($_) } @$_ ] }; | ||
| 222 | |||
| 223 | declare 'MapStringClassificationCategory', | ||
| 224 | as HashRef[ClassificationCategory()]; | ||
| 225 | |||
| 226 | declare 'ClassificationModelOptions', | ||
| 227 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::ClassificationModelOptions']; | ||
| 228 | |||
| 229 | coerce 'ClassificationModelOptions', | ||
| 230 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::ClassificationModelOptions'->new($_) }; | ||
| 231 | |||
| 232 | declare 'RepeatedClassificationModelOptions', | ||
| 233 | as ArrayRef[ClassificationModelOptions()]; | ||
| 234 | |||
| 235 | coerce 'RepeatedClassificationModelOptions', | ||
| 236 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::ClassificationModelOptions'->new($_) } @$_ ] }; | ||
| 237 | |||
| 238 | declare 'MapStringClassificationModelOptions', | ||
| 239 | as HashRef[ClassificationModelOptions()]; | ||
| 240 | |||
| 241 | declare 'V1Model', | ||
| 242 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::ClassificationModelOptions::V1Model']; | ||
| 243 | |||
| 244 | coerce 'V1Model', | ||
| 245 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::ClassificationModelOptions::V1Model'->new($_) }; | ||
| 246 | |||
| 247 | declare 'RepeatedV1Model', | ||
| 248 | as ArrayRef[V1Model()]; | ||
| 249 | |||
| 250 | coerce 'RepeatedV1Model', | ||
| 251 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::ClassificationModelOptions::V1Model'->new($_) } @$_ ] }; | ||
| 252 | |||
| 253 | declare 'MapStringV1Model', | ||
| 254 | as HashRef[V1Model()]; | ||
| 255 | |||
| 256 | declare 'V2Model', | ||
| 257 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::ClassificationModelOptions::V2Model']; | ||
| 258 | |||
| 259 | coerce 'V2Model', | ||
| 260 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::ClassificationModelOptions::V2Model'->new($_) }; | ||
| 261 | |||
| 262 | declare 'RepeatedV2Model', | ||
| 263 | as ArrayRef[V2Model()]; | ||
| 264 | |||
| 265 | coerce 'RepeatedV2Model', | ||
| 266 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::ClassificationModelOptions::V2Model'->new($_) } @$_ ] }; | ||
| 267 | |||
| 268 | declare 'MapStringV2Model', | ||
| 269 | as HashRef[V2Model()]; | ||
| 270 | |||
| 271 | declare 'ContentCategoriesVersion', | ||
| 272 | as (Int | Str); | ||
| 273 | |||
| 274 | declare 'AnalyzeSentimentRequest', | ||
| 275 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::AnalyzeSentimentRequest']; | ||
| 276 | |||
| 277 | coerce 'AnalyzeSentimentRequest', | ||
| 278 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::AnalyzeSentimentRequest'->new($_) }; | ||
| 279 | |||
| 280 | declare 'RepeatedAnalyzeSentimentRequest', | ||
| 281 | as ArrayRef[AnalyzeSentimentRequest()]; | ||
| 282 | |||
| 283 | coerce 'RepeatedAnalyzeSentimentRequest', | ||
| 284 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::AnalyzeSentimentRequest'->new($_) } @$_ ] }; | ||
| 285 | |||
| 286 | declare 'MapStringAnalyzeSentimentRequest', | ||
| 287 | as HashRef[AnalyzeSentimentRequest()]; | ||
| 288 | |||
| 289 | declare 'AnalyzeSentimentResponse', | ||
| 290 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::AnalyzeSentimentResponse']; | ||
| 291 | |||
| 292 | coerce 'AnalyzeSentimentResponse', | ||
| 293 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::AnalyzeSentimentResponse'->new($_) }; | ||
| 294 | |||
| 295 | declare 'RepeatedAnalyzeSentimentResponse', | ||
| 296 | as ArrayRef[AnalyzeSentimentResponse()]; | ||
| 297 | |||
| 298 | coerce 'RepeatedAnalyzeSentimentResponse', | ||
| 299 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::AnalyzeSentimentResponse'->new($_) } @$_ ] }; | ||
| 300 | |||
| 301 | declare 'MapStringAnalyzeSentimentResponse', | ||
| 302 | as HashRef[AnalyzeSentimentResponse()]; | ||
| 303 | |||
| 304 | declare 'AnalyzeEntitySentimentRequest', | ||
| 305 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::AnalyzeEntitySentimentRequest']; | ||
| 306 | |||
| 307 | coerce 'AnalyzeEntitySentimentRequest', | ||
| 308 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::AnalyzeEntitySentimentRequest'->new($_) }; | ||
| 309 | |||
| 310 | declare 'RepeatedAnalyzeEntitySentimentRequest', | ||
| 311 | as ArrayRef[AnalyzeEntitySentimentRequest()]; | ||
| 312 | |||
| 313 | coerce 'RepeatedAnalyzeEntitySentimentRequest', | ||
| 314 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::AnalyzeEntitySentimentRequest'->new($_) } @$_ ] }; | ||
| 315 | |||
| 316 | declare 'MapStringAnalyzeEntitySentimentRequest', | ||
| 317 | as HashRef[AnalyzeEntitySentimentRequest()]; | ||
| 318 | |||
| 319 | declare 'AnalyzeEntitySentimentResponse', | ||
| 320 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::AnalyzeEntitySentimentResponse']; | ||
| 321 | |||
| 322 | coerce 'AnalyzeEntitySentimentResponse', | ||
| 323 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::AnalyzeEntitySentimentResponse'->new($_) }; | ||
| 324 | |||
| 325 | declare 'RepeatedAnalyzeEntitySentimentResponse', | ||
| 326 | as ArrayRef[AnalyzeEntitySentimentResponse()]; | ||
| 327 | |||
| 328 | coerce 'RepeatedAnalyzeEntitySentimentResponse', | ||
| 329 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::AnalyzeEntitySentimentResponse'->new($_) } @$_ ] }; | ||
| 330 | |||
| 331 | declare 'MapStringAnalyzeEntitySentimentResponse', | ||
| 332 | as HashRef[AnalyzeEntitySentimentResponse()]; | ||
| 333 | |||
| 334 | declare 'AnalyzeEntitiesRequest', | ||
| 335 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::AnalyzeEntitiesRequest']; | ||
| 336 | |||
| 337 | coerce 'AnalyzeEntitiesRequest', | ||
| 338 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::AnalyzeEntitiesRequest'->new($_) }; | ||
| 339 | |||
| 340 | declare 'RepeatedAnalyzeEntitiesRequest', | ||
| 341 | as ArrayRef[AnalyzeEntitiesRequest()]; | ||
| 342 | |||
| 343 | coerce 'RepeatedAnalyzeEntitiesRequest', | ||
| 344 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::AnalyzeEntitiesRequest'->new($_) } @$_ ] }; | ||
| 345 | |||
| 346 | declare 'MapStringAnalyzeEntitiesRequest', | ||
| 347 | as HashRef[AnalyzeEntitiesRequest()]; | ||
| 348 | |||
| 349 | declare 'AnalyzeEntitiesResponse', | ||
| 350 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::AnalyzeEntitiesResponse']; | ||
| 351 | |||
| 352 | coerce 'AnalyzeEntitiesResponse', | ||
| 353 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::AnalyzeEntitiesResponse'->new($_) }; | ||
| 354 | |||
| 355 | declare 'RepeatedAnalyzeEntitiesResponse', | ||
| 356 | as ArrayRef[AnalyzeEntitiesResponse()]; | ||
| 357 | |||
| 358 | coerce 'RepeatedAnalyzeEntitiesResponse', | ||
| 359 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::AnalyzeEntitiesResponse'->new($_) } @$_ ] }; | ||
| 360 | |||
| 361 | declare 'MapStringAnalyzeEntitiesResponse', | ||
| 362 | as HashRef[AnalyzeEntitiesResponse()]; | ||
| 363 | |||
| 364 | declare 'AnalyzeSyntaxRequest', | ||
| 365 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::AnalyzeSyntaxRequest']; | ||
| 366 | |||
| 367 | coerce 'AnalyzeSyntaxRequest', | ||
| 368 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::AnalyzeSyntaxRequest'->new($_) }; | ||
| 369 | |||
| 370 | declare 'RepeatedAnalyzeSyntaxRequest', | ||
| 371 | as ArrayRef[AnalyzeSyntaxRequest()]; | ||
| 372 | |||
| 373 | coerce 'RepeatedAnalyzeSyntaxRequest', | ||
| 374 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::AnalyzeSyntaxRequest'->new($_) } @$_ ] }; | ||
| 375 | |||
| 376 | declare 'MapStringAnalyzeSyntaxRequest', | ||
| 377 | as HashRef[AnalyzeSyntaxRequest()]; | ||
| 378 | |||
| 379 | declare 'AnalyzeSyntaxResponse', | ||
| 380 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::AnalyzeSyntaxResponse']; | ||
| 381 | |||
| 382 | coerce 'AnalyzeSyntaxResponse', | ||
| 383 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::AnalyzeSyntaxResponse'->new($_) }; | ||
| 384 | |||
| 385 | declare 'RepeatedAnalyzeSyntaxResponse', | ||
| 386 | as ArrayRef[AnalyzeSyntaxResponse()]; | ||
| 387 | |||
| 388 | coerce 'RepeatedAnalyzeSyntaxResponse', | ||
| 389 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::AnalyzeSyntaxResponse'->new($_) } @$_ ] }; | ||
| 390 | |||
| 391 | declare 'MapStringAnalyzeSyntaxResponse', | ||
| 392 | as HashRef[AnalyzeSyntaxResponse()]; | ||
| 393 | |||
| 394 | declare 'ClassifyTextRequest', | ||
| 395 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::ClassifyTextRequest']; | ||
| 396 | |||
| 397 | coerce 'ClassifyTextRequest', | ||
| 398 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::ClassifyTextRequest'->new($_) }; | ||
| 399 | |||
| 400 | declare 'RepeatedClassifyTextRequest', | ||
| 401 | as ArrayRef[ClassifyTextRequest()]; | ||
| 402 | |||
| 403 | coerce 'RepeatedClassifyTextRequest', | ||
| 404 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::ClassifyTextRequest'->new($_) } @$_ ] }; | ||
| 405 | |||
| 406 | declare 'MapStringClassifyTextRequest', | ||
| 407 | as HashRef[ClassifyTextRequest()]; | ||
| 408 | |||
| 409 | declare 'ClassifyTextResponse', | ||
| 410 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::ClassifyTextResponse']; | ||
| 411 | |||
| 412 | coerce 'ClassifyTextResponse', | ||
| 413 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::ClassifyTextResponse'->new($_) }; | ||
| 414 | |||
| 415 | declare 'RepeatedClassifyTextResponse', | ||
| 416 | as ArrayRef[ClassifyTextResponse()]; | ||
| 417 | |||
| 418 | coerce 'RepeatedClassifyTextResponse', | ||
| 419 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::ClassifyTextResponse'->new($_) } @$_ ] }; | ||
| 420 | |||
| 421 | declare 'MapStringClassifyTextResponse', | ||
| 422 | as HashRef[ClassifyTextResponse()]; | ||
| 423 | |||
| 424 | declare 'ModerateTextRequest', | ||
| 425 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::ModerateTextRequest']; | ||
| 426 | |||
| 427 | coerce 'ModerateTextRequest', | ||
| 428 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::ModerateTextRequest'->new($_) }; | ||
| 429 | |||
| 430 | declare 'RepeatedModerateTextRequest', | ||
| 431 | as ArrayRef[ModerateTextRequest()]; | ||
| 432 | |||
| 433 | coerce 'RepeatedModerateTextRequest', | ||
| 434 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::ModerateTextRequest'->new($_) } @$_ ] }; | ||
| 435 | |||
| 436 | declare 'MapStringModerateTextRequest', | ||
| 437 | as HashRef[ModerateTextRequest()]; | ||
| 438 | |||
| 439 | declare 'ModerateTextResponse', | ||
| 440 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::ModerateTextResponse']; | ||
| 441 | |||
| 442 | coerce 'ModerateTextResponse', | ||
| 443 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::ModerateTextResponse'->new($_) }; | ||
| 444 | |||
| 445 | declare 'RepeatedModerateTextResponse', | ||
| 446 | as ArrayRef[ModerateTextResponse()]; | ||
| 447 | |||
| 448 | coerce 'RepeatedModerateTextResponse', | ||
| 449 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::ModerateTextResponse'->new($_) } @$_ ] }; | ||
| 450 | |||
| 451 | declare 'MapStringModerateTextResponse', | ||
| 452 | as HashRef[ModerateTextResponse()]; | ||
| 453 | |||
| 454 | declare 'AnnotateTextRequest', | ||
| 455 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::AnnotateTextRequest']; | ||
| 456 | |||
| 457 | coerce 'AnnotateTextRequest', | ||
| 458 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::AnnotateTextRequest'->new($_) }; | ||
| 459 | |||
| 460 | declare 'RepeatedAnnotateTextRequest', | ||
| 461 | as ArrayRef[AnnotateTextRequest()]; | ||
| 462 | |||
| 463 | coerce 'RepeatedAnnotateTextRequest', | ||
| 464 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::AnnotateTextRequest'->new($_) } @$_ ] }; | ||
| 465 | |||
| 466 | declare 'MapStringAnnotateTextRequest', | ||
| 467 | as HashRef[AnnotateTextRequest()]; | ||
| 468 | |||
| 469 | declare 'Features', | ||
| 470 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::AnnotateTextRequest::Features']; | ||
| 471 | |||
| 472 | coerce 'Features', | ||
| 473 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::AnnotateTextRequest::Features'->new($_) }; | ||
| 474 | |||
| 475 | declare 'RepeatedFeatures', | ||
| 476 | as ArrayRef[Features()]; | ||
| 477 | |||
| 478 | coerce 'RepeatedFeatures', | ||
| 479 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::AnnotateTextRequest::Features'->new($_) } @$_ ] }; | ||
| 480 | |||
| 481 | declare 'MapStringFeatures', | ||
| 482 | as HashRef[Features()]; | ||
| 483 | |||
| 484 | declare 'AnnotateTextResponse', | ||
| 485 | as InstanceOf['Google::Cloud::Language::V1::LanguageService::AnnotateTextResponse']; | ||
| 486 | |||
| 487 | coerce 'AnnotateTextResponse', | ||
| 488 | from HashRef, via { 'Google::Cloud::Language::V1::LanguageService::AnnotateTextResponse'->new($_) }; | ||
| 489 | |||
| 490 | declare 'RepeatedAnnotateTextResponse', | ||
| 491 | as ArrayRef[AnnotateTextResponse()]; | ||
| 492 | |||
| 493 | coerce 'RepeatedAnnotateTextResponse', | ||
| 494 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Language::V1::LanguageService::AnnotateTextResponse'->new($_) } @$_ ] }; | ||
| 495 | |||
| 496 | declare 'MapStringAnnotateTextResponse', | ||
| 497 | as HashRef[AnnotateTextResponse()]; | ||
| 498 | |||
| 499 | 1; | ||
| 500 | |||
| 501 | __END__ |