| 1 | package Google::Cloud::Discoveryengine::V1beta::SearchService::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 'SearchRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest']; | ||
| 12 | |||
| 13 | coerce 'SearchRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedSearchRequest', | ||
| 17 | as ArrayRef[SearchRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedSearchRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringSearchRequest', | ||
| 23 | as HashRef[SearchRequest()]; | ||
| 24 | |||
| 25 | declare 'RankingExpressionBackend', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'RelevanceThreshold', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'ImageQuery', | ||
| 32 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ImageQuery']; | ||
| 33 | |||
| 34 | coerce 'ImageQuery', | ||
| 35 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ImageQuery'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedImageQuery', | ||
| 38 | as ArrayRef[ImageQuery()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedImageQuery', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ImageQuery'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringImageQuery', | ||
| 44 | as HashRef[ImageQuery()]; | ||
| 45 | |||
| 46 | declare 'DataStoreSpec', | ||
| 47 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::DataStoreSpec']; | ||
| 48 | |||
| 49 | coerce 'DataStoreSpec', | ||
| 50 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::DataStoreSpec'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedDataStoreSpec', | ||
| 53 | as ArrayRef[DataStoreSpec()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedDataStoreSpec', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::DataStoreSpec'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringDataStoreSpec', | ||
| 59 | as HashRef[DataStoreSpec()]; | ||
| 60 | |||
| 61 | declare 'FacetSpec', | ||
| 62 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::FacetSpec']; | ||
| 63 | |||
| 64 | coerce 'FacetSpec', | ||
| 65 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::FacetSpec'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedFacetSpec', | ||
| 68 | as ArrayRef[FacetSpec()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedFacetSpec', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::FacetSpec'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringFacetSpec', | ||
| 74 | as HashRef[FacetSpec()]; | ||
| 75 | |||
| 76 | declare 'FacetKey', | ||
| 77 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::FacetSpec::FacetKey']; | ||
| 78 | |||
| 79 | coerce 'FacetKey', | ||
| 80 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::FacetSpec::FacetKey'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedFacetKey', | ||
| 83 | as ArrayRef[FacetKey()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedFacetKey', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::FacetSpec::FacetKey'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringFacetKey', | ||
| 89 | as HashRef[FacetKey()]; | ||
| 90 | |||
| 91 | declare 'BoostSpec', | ||
| 92 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec']; | ||
| 93 | |||
| 94 | coerce 'BoostSpec', | ||
| 95 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedBoostSpec', | ||
| 98 | as ArrayRef[BoostSpec()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedBoostSpec', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringBoostSpec', | ||
| 104 | as HashRef[BoostSpec()]; | ||
| 105 | |||
| 106 | declare 'ConditionBoostSpec', | ||
| 107 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec::ConditionBoostSpec']; | ||
| 108 | |||
| 109 | coerce 'ConditionBoostSpec', | ||
| 110 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec::ConditionBoostSpec'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedConditionBoostSpec', | ||
| 113 | as ArrayRef[ConditionBoostSpec()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedConditionBoostSpec', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec::ConditionBoostSpec'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringConditionBoostSpec', | ||
| 119 | as HashRef[ConditionBoostSpec()]; | ||
| 120 | |||
| 121 | declare 'BoostControlSpec', | ||
| 122 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec::ConditionBoostSpec::BoostControlSpec']; | ||
| 123 | |||
| 124 | coerce 'BoostControlSpec', | ||
| 125 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec::ConditionBoostSpec::BoostControlSpec'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedBoostControlSpec', | ||
| 128 | as ArrayRef[BoostControlSpec()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedBoostControlSpec', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec::ConditionBoostSpec::BoostControlSpec'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringBoostControlSpec', | ||
| 134 | as HashRef[BoostControlSpec()]; | ||
| 135 | |||
| 136 | declare 'AttributeType', | ||
| 137 | as (Int | Str); | ||
| 138 | |||
| 139 | declare 'InterpolationType', | ||
| 140 | as (Int | Str); | ||
| 141 | |||
| 142 | declare 'ControlPoint', | ||
| 143 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec::ConditionBoostSpec::BoostControlSpec::ControlPoint']; | ||
| 144 | |||
| 145 | coerce 'ControlPoint', | ||
| 146 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec::ConditionBoostSpec::BoostControlSpec::ControlPoint'->new($_) }; | ||
| 147 | |||
| 148 | declare 'RepeatedControlPoint', | ||
| 149 | as ArrayRef[ControlPoint()]; | ||
| 150 | |||
| 151 | coerce 'RepeatedControlPoint', | ||
| 152 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::BoostSpec::ConditionBoostSpec::BoostControlSpec::ControlPoint'->new($_) } @$_ ] }; | ||
| 153 | |||
| 154 | declare 'MapStringControlPoint', | ||
| 155 | as HashRef[ControlPoint()]; | ||
| 156 | |||
| 157 | declare 'QueryExpansionSpec', | ||
| 158 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::QueryExpansionSpec']; | ||
| 159 | |||
| 160 | coerce 'QueryExpansionSpec', | ||
| 161 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::QueryExpansionSpec'->new($_) }; | ||
| 162 | |||
| 163 | declare 'RepeatedQueryExpansionSpec', | ||
| 164 | as ArrayRef[QueryExpansionSpec()]; | ||
| 165 | |||
| 166 | coerce 'RepeatedQueryExpansionSpec', | ||
| 167 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::QueryExpansionSpec'->new($_) } @$_ ] }; | ||
| 168 | |||
| 169 | declare 'MapStringQueryExpansionSpec', | ||
| 170 | as HashRef[QueryExpansionSpec()]; | ||
| 171 | |||
| 172 | declare 'Condition', | ||
| 173 | as (Int | Str); | ||
| 174 | |||
| 175 | declare 'SpellCorrectionSpec', | ||
| 176 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SpellCorrectionSpec']; | ||
| 177 | |||
| 178 | coerce 'SpellCorrectionSpec', | ||
| 179 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SpellCorrectionSpec'->new($_) }; | ||
| 180 | |||
| 181 | declare 'RepeatedSpellCorrectionSpec', | ||
| 182 | as ArrayRef[SpellCorrectionSpec()]; | ||
| 183 | |||
| 184 | coerce 'RepeatedSpellCorrectionSpec', | ||
| 185 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SpellCorrectionSpec'->new($_) } @$_ ] }; | ||
| 186 | |||
| 187 | declare 'MapStringSpellCorrectionSpec', | ||
| 188 | as HashRef[SpellCorrectionSpec()]; | ||
| 189 | |||
| 190 | declare 'Mode', | ||
| 191 | as (Int | Str); | ||
| 192 | |||
| 193 | declare 'ContentSearchSpec', | ||
| 194 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec']; | ||
| 195 | |||
| 196 | coerce 'ContentSearchSpec', | ||
| 197 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec'->new($_) }; | ||
| 198 | |||
| 199 | declare 'RepeatedContentSearchSpec', | ||
| 200 | as ArrayRef[ContentSearchSpec()]; | ||
| 201 | |||
| 202 | coerce 'RepeatedContentSearchSpec', | ||
| 203 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec'->new($_) } @$_ ] }; | ||
| 204 | |||
| 205 | declare 'MapStringContentSearchSpec', | ||
| 206 | as HashRef[ContentSearchSpec()]; | ||
| 207 | |||
| 208 | declare 'SearchResultMode', | ||
| 209 | as (Int | Str); | ||
| 210 | |||
| 211 | declare 'SnippetSpec', | ||
| 212 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SnippetSpec']; | ||
| 213 | |||
| 214 | coerce 'SnippetSpec', | ||
| 215 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SnippetSpec'->new($_) }; | ||
| 216 | |||
| 217 | declare 'RepeatedSnippetSpec', | ||
| 218 | as ArrayRef[SnippetSpec()]; | ||
| 219 | |||
| 220 | coerce 'RepeatedSnippetSpec', | ||
| 221 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SnippetSpec'->new($_) } @$_ ] }; | ||
| 222 | |||
| 223 | declare 'MapStringSnippetSpec', | ||
| 224 | as HashRef[SnippetSpec()]; | ||
| 225 | |||
| 226 | declare 'SummarySpec', | ||
| 227 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec']; | ||
| 228 | |||
| 229 | coerce 'SummarySpec', | ||
| 230 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec'->new($_) }; | ||
| 231 | |||
| 232 | declare 'RepeatedSummarySpec', | ||
| 233 | as ArrayRef[SummarySpec()]; | ||
| 234 | |||
| 235 | coerce 'RepeatedSummarySpec', | ||
| 236 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec'->new($_) } @$_ ] }; | ||
| 237 | |||
| 238 | declare 'MapStringSummarySpec', | ||
| 239 | as HashRef[SummarySpec()]; | ||
| 240 | |||
| 241 | declare 'MultiModalSpec', | ||
| 242 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec::MultiModalSpec']; | ||
| 243 | |||
| 244 | coerce 'MultiModalSpec', | ||
| 245 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec::MultiModalSpec'->new($_) }; | ||
| 246 | |||
| 247 | declare 'RepeatedMultiModalSpec', | ||
| 248 | as ArrayRef[MultiModalSpec()]; | ||
| 249 | |||
| 250 | coerce 'RepeatedMultiModalSpec', | ||
| 251 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec::MultiModalSpec'->new($_) } @$_ ] }; | ||
| 252 | |||
| 253 | declare 'MapStringMultiModalSpec', | ||
| 254 | as HashRef[MultiModalSpec()]; | ||
| 255 | |||
| 256 | declare 'ImageSource', | ||
| 257 | as (Int | Str); | ||
| 258 | |||
| 259 | declare 'ModelPromptSpec', | ||
| 260 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec::ModelPromptSpec']; | ||
| 261 | |||
| 262 | coerce 'ModelPromptSpec', | ||
| 263 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec::ModelPromptSpec'->new($_) }; | ||
| 264 | |||
| 265 | declare 'RepeatedModelPromptSpec', | ||
| 266 | as ArrayRef[ModelPromptSpec()]; | ||
| 267 | |||
| 268 | coerce 'RepeatedModelPromptSpec', | ||
| 269 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec::ModelPromptSpec'->new($_) } @$_ ] }; | ||
| 270 | |||
| 271 | declare 'MapStringModelPromptSpec', | ||
| 272 | as HashRef[ModelPromptSpec()]; | ||
| 273 | |||
| 274 | declare 'ModelSpec', | ||
| 275 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec::ModelSpec']; | ||
| 276 | |||
| 277 | coerce 'ModelSpec', | ||
| 278 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec::ModelSpec'->new($_) }; | ||
| 279 | |||
| 280 | declare 'RepeatedModelSpec', | ||
| 281 | as ArrayRef[ModelSpec()]; | ||
| 282 | |||
| 283 | coerce 'RepeatedModelSpec', | ||
| 284 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::SummarySpec::ModelSpec'->new($_) } @$_ ] }; | ||
| 285 | |||
| 286 | declare 'MapStringModelSpec', | ||
| 287 | as HashRef[ModelSpec()]; | ||
| 288 | |||
| 289 | declare 'ExtractiveContentSpec', | ||
| 290 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::ExtractiveContentSpec']; | ||
| 291 | |||
| 292 | coerce 'ExtractiveContentSpec', | ||
| 293 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::ExtractiveContentSpec'->new($_) }; | ||
| 294 | |||
| 295 | declare 'RepeatedExtractiveContentSpec', | ||
| 296 | as ArrayRef[ExtractiveContentSpec()]; | ||
| 297 | |||
| 298 | coerce 'RepeatedExtractiveContentSpec', | ||
| 299 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::ExtractiveContentSpec'->new($_) } @$_ ] }; | ||
| 300 | |||
| 301 | declare 'MapStringExtractiveContentSpec', | ||
| 302 | as HashRef[ExtractiveContentSpec()]; | ||
| 303 | |||
| 304 | declare 'ChunkSpec', | ||
| 305 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::ChunkSpec']; | ||
| 306 | |||
| 307 | coerce 'ChunkSpec', | ||
| 308 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::ChunkSpec'->new($_) }; | ||
| 309 | |||
| 310 | declare 'RepeatedChunkSpec', | ||
| 311 | as ArrayRef[ChunkSpec()]; | ||
| 312 | |||
| 313 | coerce 'RepeatedChunkSpec', | ||
| 314 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ContentSearchSpec::ChunkSpec'->new($_) } @$_ ] }; | ||
| 315 | |||
| 316 | declare 'MapStringChunkSpec', | ||
| 317 | as HashRef[ChunkSpec()]; | ||
| 318 | |||
| 319 | declare 'EmbeddingSpec', | ||
| 320 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::EmbeddingSpec']; | ||
| 321 | |||
| 322 | coerce 'EmbeddingSpec', | ||
| 323 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::EmbeddingSpec'->new($_) }; | ||
| 324 | |||
| 325 | declare 'RepeatedEmbeddingSpec', | ||
| 326 | as ArrayRef[EmbeddingSpec()]; | ||
| 327 | |||
| 328 | coerce 'RepeatedEmbeddingSpec', | ||
| 329 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::EmbeddingSpec'->new($_) } @$_ ] }; | ||
| 330 | |||
| 331 | declare 'MapStringEmbeddingSpec', | ||
| 332 | as HashRef[EmbeddingSpec()]; | ||
| 333 | |||
| 334 | declare 'EmbeddingVector', | ||
| 335 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::EmbeddingSpec::EmbeddingVector']; | ||
| 336 | |||
| 337 | coerce 'EmbeddingVector', | ||
| 338 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::EmbeddingSpec::EmbeddingVector'->new($_) }; | ||
| 339 | |||
| 340 | declare 'RepeatedEmbeddingVector', | ||
| 341 | as ArrayRef[EmbeddingVector()]; | ||
| 342 | |||
| 343 | coerce 'RepeatedEmbeddingVector', | ||
| 344 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::EmbeddingSpec::EmbeddingVector'->new($_) } @$_ ] }; | ||
| 345 | |||
| 346 | declare 'MapStringEmbeddingVector', | ||
| 347 | as HashRef[EmbeddingVector()]; | ||
| 348 | |||
| 349 | declare 'NaturalLanguageQueryUnderstandingSpec', | ||
| 350 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::NaturalLanguageQueryUnderstandingSpec']; | ||
| 351 | |||
| 352 | coerce 'NaturalLanguageQueryUnderstandingSpec', | ||
| 353 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::NaturalLanguageQueryUnderstandingSpec'->new($_) }; | ||
| 354 | |||
| 355 | declare 'RepeatedNaturalLanguageQueryUnderstandingSpec', | ||
| 356 | as ArrayRef[NaturalLanguageQueryUnderstandingSpec()]; | ||
| 357 | |||
| 358 | coerce 'RepeatedNaturalLanguageQueryUnderstandingSpec', | ||
| 359 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::NaturalLanguageQueryUnderstandingSpec'->new($_) } @$_ ] }; | ||
| 360 | |||
| 361 | declare 'MapStringNaturalLanguageQueryUnderstandingSpec', | ||
| 362 | as HashRef[NaturalLanguageQueryUnderstandingSpec()]; | ||
| 363 | |||
| 364 | declare 'FilterExtractionCondition', | ||
| 365 | as (Int | Str); | ||
| 366 | |||
| 367 | declare 'ExtractedFilterBehavior', | ||
| 368 | as (Int | Str); | ||
| 369 | |||
| 370 | declare 'SearchAsYouTypeSpec', | ||
| 371 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SearchAsYouTypeSpec']; | ||
| 372 | |||
| 373 | coerce 'SearchAsYouTypeSpec', | ||
| 374 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SearchAsYouTypeSpec'->new($_) }; | ||
| 375 | |||
| 376 | declare 'RepeatedSearchAsYouTypeSpec', | ||
| 377 | as ArrayRef[SearchAsYouTypeSpec()]; | ||
| 378 | |||
| 379 | coerce 'RepeatedSearchAsYouTypeSpec', | ||
| 380 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SearchAsYouTypeSpec'->new($_) } @$_ ] }; | ||
| 381 | |||
| 382 | declare 'MapStringSearchAsYouTypeSpec', | ||
| 383 | as HashRef[SearchAsYouTypeSpec()]; | ||
| 384 | |||
| 385 | declare 'Condition', | ||
| 386 | as (Int | Str); | ||
| 387 | |||
| 388 | declare 'DisplaySpec', | ||
| 389 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::DisplaySpec']; | ||
| 390 | |||
| 391 | coerce 'DisplaySpec', | ||
| 392 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::DisplaySpec'->new($_) }; | ||
| 393 | |||
| 394 | declare 'RepeatedDisplaySpec', | ||
| 395 | as ArrayRef[DisplaySpec()]; | ||
| 396 | |||
| 397 | coerce 'RepeatedDisplaySpec', | ||
| 398 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::DisplaySpec'->new($_) } @$_ ] }; | ||
| 399 | |||
| 400 | declare 'MapStringDisplaySpec', | ||
| 401 | as HashRef[DisplaySpec()]; | ||
| 402 | |||
| 403 | declare 'MatchHighlightingCondition', | ||
| 404 | as (Int | Str); | ||
| 405 | |||
| 406 | declare 'CrowdingSpec', | ||
| 407 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::CrowdingSpec']; | ||
| 408 | |||
| 409 | coerce 'CrowdingSpec', | ||
| 410 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::CrowdingSpec'->new($_) }; | ||
| 411 | |||
| 412 | declare 'RepeatedCrowdingSpec', | ||
| 413 | as ArrayRef[CrowdingSpec()]; | ||
| 414 | |||
| 415 | coerce 'RepeatedCrowdingSpec', | ||
| 416 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::CrowdingSpec'->new($_) } @$_ ] }; | ||
| 417 | |||
| 418 | declare 'MapStringCrowdingSpec', | ||
| 419 | as HashRef[CrowdingSpec()]; | ||
| 420 | |||
| 421 | declare 'Mode', | ||
| 422 | as (Int | Str); | ||
| 423 | |||
| 424 | declare 'SessionSpec', | ||
| 425 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SessionSpec']; | ||
| 426 | |||
| 427 | coerce 'SessionSpec', | ||
| 428 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SessionSpec'->new($_) }; | ||
| 429 | |||
| 430 | declare 'RepeatedSessionSpec', | ||
| 431 | as ArrayRef[SessionSpec()]; | ||
| 432 | |||
| 433 | coerce 'RepeatedSessionSpec', | ||
| 434 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SessionSpec'->new($_) } @$_ ] }; | ||
| 435 | |||
| 436 | declare 'MapStringSessionSpec', | ||
| 437 | as HashRef[SessionSpec()]; | ||
| 438 | |||
| 439 | declare 'RelevanceFilterSpec', | ||
| 440 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::RelevanceFilterSpec']; | ||
| 441 | |||
| 442 | coerce 'RelevanceFilterSpec', | ||
| 443 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::RelevanceFilterSpec'->new($_) }; | ||
| 444 | |||
| 445 | declare 'RepeatedRelevanceFilterSpec', | ||
| 446 | as ArrayRef[RelevanceFilterSpec()]; | ||
| 447 | |||
| 448 | coerce 'RepeatedRelevanceFilterSpec', | ||
| 449 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::RelevanceFilterSpec'->new($_) } @$_ ] }; | ||
| 450 | |||
| 451 | declare 'MapStringRelevanceFilterSpec', | ||
| 452 | as HashRef[RelevanceFilterSpec()]; | ||
| 453 | |||
| 454 | declare 'RelevanceThresholdSpec', | ||
| 455 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::RelevanceFilterSpec::RelevanceThresholdSpec']; | ||
| 456 | |||
| 457 | coerce 'RelevanceThresholdSpec', | ||
| 458 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::RelevanceFilterSpec::RelevanceThresholdSpec'->new($_) }; | ||
| 459 | |||
| 460 | declare 'RepeatedRelevanceThresholdSpec', | ||
| 461 | as ArrayRef[RelevanceThresholdSpec()]; | ||
| 462 | |||
| 463 | coerce 'RepeatedRelevanceThresholdSpec', | ||
| 464 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::RelevanceFilterSpec::RelevanceThresholdSpec'->new($_) } @$_ ] }; | ||
| 465 | |||
| 466 | declare 'MapStringRelevanceThresholdSpec', | ||
| 467 | as HashRef[RelevanceThresholdSpec()]; | ||
| 468 | |||
| 469 | declare 'PersonalizationSpec', | ||
| 470 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::PersonalizationSpec']; | ||
| 471 | |||
| 472 | coerce 'PersonalizationSpec', | ||
| 473 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::PersonalizationSpec'->new($_) }; | ||
| 474 | |||
| 475 | declare 'RepeatedPersonalizationSpec', | ||
| 476 | as ArrayRef[PersonalizationSpec()]; | ||
| 477 | |||
| 478 | coerce 'RepeatedPersonalizationSpec', | ||
| 479 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::PersonalizationSpec'->new($_) } @$_ ] }; | ||
| 480 | |||
| 481 | declare 'MapStringPersonalizationSpec', | ||
| 482 | as HashRef[PersonalizationSpec()]; | ||
| 483 | |||
| 484 | declare 'Mode', | ||
| 485 | as (Int | Str); | ||
| 486 | |||
| 487 | declare 'RelevanceScoreSpec', | ||
| 488 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::RelevanceScoreSpec']; | ||
| 489 | |||
| 490 | coerce 'RelevanceScoreSpec', | ||
| 491 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::RelevanceScoreSpec'->new($_) }; | ||
| 492 | |||
| 493 | declare 'RepeatedRelevanceScoreSpec', | ||
| 494 | as ArrayRef[RelevanceScoreSpec()]; | ||
| 495 | |||
| 496 | coerce 'RepeatedRelevanceScoreSpec', | ||
| 497 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::RelevanceScoreSpec'->new($_) } @$_ ] }; | ||
| 498 | |||
| 499 | declare 'MapStringRelevanceScoreSpec', | ||
| 500 | as HashRef[RelevanceScoreSpec()]; | ||
| 501 | |||
| 502 | declare 'SearchAddonSpec', | ||
| 503 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SearchAddonSpec']; | ||
| 504 | |||
| 505 | coerce 'SearchAddonSpec', | ||
| 506 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SearchAddonSpec'->new($_) }; | ||
| 507 | |||
| 508 | declare 'RepeatedSearchAddonSpec', | ||
| 509 | as ArrayRef[SearchAddonSpec()]; | ||
| 510 | |||
| 511 | coerce 'RepeatedSearchAddonSpec', | ||
| 512 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::SearchAddonSpec'->new($_) } @$_ ] }; | ||
| 513 | |||
| 514 | declare 'MapStringSearchAddonSpec', | ||
| 515 | as HashRef[SearchAddonSpec()]; | ||
| 516 | |||
| 517 | declare 'CustomRankingParams', | ||
| 518 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::CustomRankingParams']; | ||
| 519 | |||
| 520 | coerce 'CustomRankingParams', | ||
| 521 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::CustomRankingParams'->new($_) }; | ||
| 522 | |||
| 523 | declare 'RepeatedCustomRankingParams', | ||
| 524 | as ArrayRef[CustomRankingParams()]; | ||
| 525 | |||
| 526 | coerce 'RepeatedCustomRankingParams', | ||
| 527 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::CustomRankingParams'->new($_) } @$_ ] }; | ||
| 528 | |||
| 529 | declare 'MapStringCustomRankingParams', | ||
| 530 | as HashRef[CustomRankingParams()]; | ||
| 531 | |||
| 532 | declare 'ParamsEntry', | ||
| 533 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ParamsEntry']; | ||
| 534 | |||
| 535 | coerce 'ParamsEntry', | ||
| 536 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ParamsEntry'->new($_) }; | ||
| 537 | |||
| 538 | declare 'RepeatedParamsEntry', | ||
| 539 | as ArrayRef[ParamsEntry()]; | ||
| 540 | |||
| 541 | coerce 'RepeatedParamsEntry', | ||
| 542 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::ParamsEntry'->new($_) } @$_ ] }; | ||
| 543 | |||
| 544 | declare 'MapStringParamsEntry', | ||
| 545 | as HashRef[ParamsEntry()]; | ||
| 546 | |||
| 547 | declare 'UserLabelsEntry', | ||
| 548 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::UserLabelsEntry']; | ||
| 549 | |||
| 550 | coerce 'UserLabelsEntry', | ||
| 551 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::UserLabelsEntry'->new($_) }; | ||
| 552 | |||
| 553 | declare 'RepeatedUserLabelsEntry', | ||
| 554 | as ArrayRef[UserLabelsEntry()]; | ||
| 555 | |||
| 556 | coerce 'RepeatedUserLabelsEntry', | ||
| 557 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchRequest::UserLabelsEntry'->new($_) } @$_ ] }; | ||
| 558 | |||
| 559 | declare 'MapStringUserLabelsEntry', | ||
| 560 | as HashRef[UserLabelsEntry()]; | ||
| 561 | |||
| 562 | declare 'SearchResponse', | ||
| 563 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse']; | ||
| 564 | |||
| 565 | coerce 'SearchResponse', | ||
| 566 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse'->new($_) }; | ||
| 567 | |||
| 568 | declare 'RepeatedSearchResponse', | ||
| 569 | as ArrayRef[SearchResponse()]; | ||
| 570 | |||
| 571 | coerce 'RepeatedSearchResponse', | ||
| 572 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse'->new($_) } @$_ ] }; | ||
| 573 | |||
| 574 | declare 'MapStringSearchResponse', | ||
| 575 | as HashRef[SearchResponse()]; | ||
| 576 | |||
| 577 | declare 'SemanticState', | ||
| 578 | as (Int | Str); | ||
| 579 | |||
| 580 | declare 'SearchResult', | ||
| 581 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult']; | ||
| 582 | |||
| 583 | coerce 'SearchResult', | ||
| 584 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult'->new($_) }; | ||
| 585 | |||
| 586 | declare 'RepeatedSearchResult', | ||
| 587 | as ArrayRef[SearchResult()]; | ||
| 588 | |||
| 589 | coerce 'RepeatedSearchResult', | ||
| 590 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult'->new($_) } @$_ ] }; | ||
| 591 | |||
| 592 | declare 'MapStringSearchResult', | ||
| 593 | as HashRef[SearchResult()]; | ||
| 594 | |||
| 595 | declare 'RankSignals', | ||
| 596 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult::RankSignals']; | ||
| 597 | |||
| 598 | coerce 'RankSignals', | ||
| 599 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult::RankSignals'->new($_) }; | ||
| 600 | |||
| 601 | declare 'RepeatedRankSignals', | ||
| 602 | as ArrayRef[RankSignals()]; | ||
| 603 | |||
| 604 | coerce 'RepeatedRankSignals', | ||
| 605 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult::RankSignals'->new($_) } @$_ ] }; | ||
| 606 | |||
| 607 | declare 'MapStringRankSignals', | ||
| 608 | as HashRef[RankSignals()]; | ||
| 609 | |||
| 610 | declare 'CustomSignal', | ||
| 611 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult::RankSignals::CustomSignal']; | ||
| 612 | |||
| 613 | coerce 'CustomSignal', | ||
| 614 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult::RankSignals::CustomSignal'->new($_) }; | ||
| 615 | |||
| 616 | declare 'RepeatedCustomSignal', | ||
| 617 | as ArrayRef[CustomSignal()]; | ||
| 618 | |||
| 619 | coerce 'RepeatedCustomSignal', | ||
| 620 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult::RankSignals::CustomSignal'->new($_) } @$_ ] }; | ||
| 621 | |||
| 622 | declare 'MapStringCustomSignal', | ||
| 623 | as HashRef[CustomSignal()]; | ||
| 624 | |||
| 625 | declare 'ModelScoresEntry', | ||
| 626 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult::ModelScoresEntry']; | ||
| 627 | |||
| 628 | coerce 'ModelScoresEntry', | ||
| 629 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult::ModelScoresEntry'->new($_) }; | ||
| 630 | |||
| 631 | declare 'RepeatedModelScoresEntry', | ||
| 632 | as ArrayRef[ModelScoresEntry()]; | ||
| 633 | |||
| 634 | coerce 'RepeatedModelScoresEntry', | ||
| 635 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SearchResult::ModelScoresEntry'->new($_) } @$_ ] }; | ||
| 636 | |||
| 637 | declare 'MapStringModelScoresEntry', | ||
| 638 | as HashRef[ModelScoresEntry()]; | ||
| 639 | |||
| 640 | declare 'Facet', | ||
| 641 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Facet']; | ||
| 642 | |||
| 643 | coerce 'Facet', | ||
| 644 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Facet'->new($_) }; | ||
| 645 | |||
| 646 | declare 'RepeatedFacet', | ||
| 647 | as ArrayRef[Facet()]; | ||
| 648 | |||
| 649 | coerce 'RepeatedFacet', | ||
| 650 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Facet'->new($_) } @$_ ] }; | ||
| 651 | |||
| 652 | declare 'MapStringFacet', | ||
| 653 | as HashRef[Facet()]; | ||
| 654 | |||
| 655 | declare 'FacetValue', | ||
| 656 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Facet::FacetValue']; | ||
| 657 | |||
| 658 | coerce 'FacetValue', | ||
| 659 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Facet::FacetValue'->new($_) }; | ||
| 660 | |||
| 661 | declare 'RepeatedFacetValue', | ||
| 662 | as ArrayRef[FacetValue()]; | ||
| 663 | |||
| 664 | coerce 'RepeatedFacetValue', | ||
| 665 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Facet::FacetValue'->new($_) } @$_ ] }; | ||
| 666 | |||
| 667 | declare 'MapStringFacetValue', | ||
| 668 | as HashRef[FacetValue()]; | ||
| 669 | |||
| 670 | declare 'GuidedSearchResult', | ||
| 671 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::GuidedSearchResult']; | ||
| 672 | |||
| 673 | coerce 'GuidedSearchResult', | ||
| 674 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::GuidedSearchResult'->new($_) }; | ||
| 675 | |||
| 676 | declare 'RepeatedGuidedSearchResult', | ||
| 677 | as ArrayRef[GuidedSearchResult()]; | ||
| 678 | |||
| 679 | coerce 'RepeatedGuidedSearchResult', | ||
| 680 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::GuidedSearchResult'->new($_) } @$_ ] }; | ||
| 681 | |||
| 682 | declare 'MapStringGuidedSearchResult', | ||
| 683 | as HashRef[GuidedSearchResult()]; | ||
| 684 | |||
| 685 | declare 'RefinementAttribute', | ||
| 686 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::GuidedSearchResult::RefinementAttribute']; | ||
| 687 | |||
| 688 | coerce 'RefinementAttribute', | ||
| 689 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::GuidedSearchResult::RefinementAttribute'->new($_) }; | ||
| 690 | |||
| 691 | declare 'RepeatedRefinementAttribute', | ||
| 692 | as ArrayRef[RefinementAttribute()]; | ||
| 693 | |||
| 694 | coerce 'RepeatedRefinementAttribute', | ||
| 695 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::GuidedSearchResult::RefinementAttribute'->new($_) } @$_ ] }; | ||
| 696 | |||
| 697 | declare 'MapStringRefinementAttribute', | ||
| 698 | as HashRef[RefinementAttribute()]; | ||
| 699 | |||
| 700 | declare 'Summary', | ||
| 701 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary']; | ||
| 702 | |||
| 703 | coerce 'Summary', | ||
| 704 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary'->new($_) }; | ||
| 705 | |||
| 706 | declare 'RepeatedSummary', | ||
| 707 | as ArrayRef[Summary()]; | ||
| 708 | |||
| 709 | coerce 'RepeatedSummary', | ||
| 710 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary'->new($_) } @$_ ] }; | ||
| 711 | |||
| 712 | declare 'MapStringSummary', | ||
| 713 | as HashRef[Summary()]; | ||
| 714 | |||
| 715 | declare 'SummarySkippedReason', | ||
| 716 | as (Int | Str); | ||
| 717 | |||
| 718 | declare 'SafetyAttributes', | ||
| 719 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::SafetyAttributes']; | ||
| 720 | |||
| 721 | coerce 'SafetyAttributes', | ||
| 722 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::SafetyAttributes'->new($_) }; | ||
| 723 | |||
| 724 | declare 'RepeatedSafetyAttributes', | ||
| 725 | as ArrayRef[SafetyAttributes()]; | ||
| 726 | |||
| 727 | coerce 'RepeatedSafetyAttributes', | ||
| 728 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::SafetyAttributes'->new($_) } @$_ ] }; | ||
| 729 | |||
| 730 | declare 'MapStringSafetyAttributes', | ||
| 731 | as HashRef[SafetyAttributes()]; | ||
| 732 | |||
| 733 | declare 'CitationMetadata', | ||
| 734 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::CitationMetadata']; | ||
| 735 | |||
| 736 | coerce 'CitationMetadata', | ||
| 737 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::CitationMetadata'->new($_) }; | ||
| 738 | |||
| 739 | declare 'RepeatedCitationMetadata', | ||
| 740 | as ArrayRef[CitationMetadata()]; | ||
| 741 | |||
| 742 | coerce 'RepeatedCitationMetadata', | ||
| 743 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::CitationMetadata'->new($_) } @$_ ] }; | ||
| 744 | |||
| 745 | declare 'MapStringCitationMetadata', | ||
| 746 | as HashRef[CitationMetadata()]; | ||
| 747 | |||
| 748 | declare 'Citation', | ||
| 749 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::Citation']; | ||
| 750 | |||
| 751 | coerce 'Citation', | ||
| 752 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::Citation'->new($_) }; | ||
| 753 | |||
| 754 | declare 'RepeatedCitation', | ||
| 755 | as ArrayRef[Citation()]; | ||
| 756 | |||
| 757 | coerce 'RepeatedCitation', | ||
| 758 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::Citation'->new($_) } @$_ ] }; | ||
| 759 | |||
| 760 | declare 'MapStringCitation', | ||
| 761 | as HashRef[Citation()]; | ||
| 762 | |||
| 763 | declare 'CitationSource', | ||
| 764 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::CitationSource']; | ||
| 765 | |||
| 766 | coerce 'CitationSource', | ||
| 767 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::CitationSource'->new($_) }; | ||
| 768 | |||
| 769 | declare 'RepeatedCitationSource', | ||
| 770 | as ArrayRef[CitationSource()]; | ||
| 771 | |||
| 772 | coerce 'RepeatedCitationSource', | ||
| 773 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::CitationSource'->new($_) } @$_ ] }; | ||
| 774 | |||
| 775 | declare 'MapStringCitationSource', | ||
| 776 | as HashRef[CitationSource()]; | ||
| 777 | |||
| 778 | declare 'Reference', | ||
| 779 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::Reference']; | ||
| 780 | |||
| 781 | coerce 'Reference', | ||
| 782 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::Reference'->new($_) }; | ||
| 783 | |||
| 784 | declare 'RepeatedReference', | ||
| 785 | as ArrayRef[Reference()]; | ||
| 786 | |||
| 787 | coerce 'RepeatedReference', | ||
| 788 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::Reference'->new($_) } @$_ ] }; | ||
| 789 | |||
| 790 | declare 'MapStringReference', | ||
| 791 | as HashRef[Reference()]; | ||
| 792 | |||
| 793 | declare 'ChunkContent', | ||
| 794 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::Reference::ChunkContent']; | ||
| 795 | |||
| 796 | coerce 'ChunkContent', | ||
| 797 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::Reference::ChunkContent'->new($_) }; | ||
| 798 | |||
| 799 | declare 'RepeatedChunkContent', | ||
| 800 | as ArrayRef[ChunkContent()]; | ||
| 801 | |||
| 802 | coerce 'RepeatedChunkContent', | ||
| 803 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::Reference::ChunkContent'->new($_) } @$_ ] }; | ||
| 804 | |||
| 805 | declare 'MapStringChunkContent', | ||
| 806 | as HashRef[ChunkContent()]; | ||
| 807 | |||
| 808 | declare 'BlobAttachment', | ||
| 809 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::BlobAttachment']; | ||
| 810 | |||
| 811 | coerce 'BlobAttachment', | ||
| 812 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::BlobAttachment'->new($_) }; | ||
| 813 | |||
| 814 | declare 'RepeatedBlobAttachment', | ||
| 815 | as ArrayRef[BlobAttachment()]; | ||
| 816 | |||
| 817 | coerce 'RepeatedBlobAttachment', | ||
| 818 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::BlobAttachment'->new($_) } @$_ ] }; | ||
| 819 | |||
| 820 | declare 'MapStringBlobAttachment', | ||
| 821 | as HashRef[BlobAttachment()]; | ||
| 822 | |||
| 823 | declare 'AttributionType', | ||
| 824 | as (Int | Str); | ||
| 825 | |||
| 826 | declare 'Blob', | ||
| 827 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::BlobAttachment::Blob']; | ||
| 828 | |||
| 829 | coerce 'Blob', | ||
| 830 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::BlobAttachment::Blob'->new($_) }; | ||
| 831 | |||
| 832 | declare 'RepeatedBlob', | ||
| 833 | as ArrayRef[Blob()]; | ||
| 834 | |||
| 835 | coerce 'RepeatedBlob', | ||
| 836 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::BlobAttachment::Blob'->new($_) } @$_ ] }; | ||
| 837 | |||
| 838 | declare 'MapStringBlob', | ||
| 839 | as HashRef[Blob()]; | ||
| 840 | |||
| 841 | declare 'SummaryWithMetadata', | ||
| 842 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::SummaryWithMetadata']; | ||
| 843 | |||
| 844 | coerce 'SummaryWithMetadata', | ||
| 845 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::SummaryWithMetadata'->new($_) }; | ||
| 846 | |||
| 847 | declare 'RepeatedSummaryWithMetadata', | ||
| 848 | as ArrayRef[SummaryWithMetadata()]; | ||
| 849 | |||
| 850 | coerce 'RepeatedSummaryWithMetadata', | ||
| 851 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::Summary::SummaryWithMetadata'->new($_) } @$_ ] }; | ||
| 852 | |||
| 853 | declare 'MapStringSummaryWithMetadata', | ||
| 854 | as HashRef[SummaryWithMetadata()]; | ||
| 855 | |||
| 856 | declare 'GeoSearchDebugInfo', | ||
| 857 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::GeoSearchDebugInfo']; | ||
| 858 | |||
| 859 | coerce 'GeoSearchDebugInfo', | ||
| 860 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::GeoSearchDebugInfo'->new($_) }; | ||
| 861 | |||
| 862 | declare 'RepeatedGeoSearchDebugInfo', | ||
| 863 | as ArrayRef[GeoSearchDebugInfo()]; | ||
| 864 | |||
| 865 | coerce 'RepeatedGeoSearchDebugInfo', | ||
| 866 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::GeoSearchDebugInfo'->new($_) } @$_ ] }; | ||
| 867 | |||
| 868 | declare 'MapStringGeoSearchDebugInfo', | ||
| 869 | as HashRef[GeoSearchDebugInfo()]; | ||
| 870 | |||
| 871 | declare 'QueryExpansionInfo', | ||
| 872 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::QueryExpansionInfo']; | ||
| 873 | |||
| 874 | coerce 'QueryExpansionInfo', | ||
| 875 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::QueryExpansionInfo'->new($_) }; | ||
| 876 | |||
| 877 | declare 'RepeatedQueryExpansionInfo', | ||
| 878 | as ArrayRef[QueryExpansionInfo()]; | ||
| 879 | |||
| 880 | coerce 'RepeatedQueryExpansionInfo', | ||
| 881 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::QueryExpansionInfo'->new($_) } @$_ ] }; | ||
| 882 | |||
| 883 | declare 'MapStringQueryExpansionInfo', | ||
| 884 | as HashRef[QueryExpansionInfo()]; | ||
| 885 | |||
| 886 | declare 'NaturalLanguageQueryUnderstandingInfo', | ||
| 887 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo']; | ||
| 888 | |||
| 889 | coerce 'NaturalLanguageQueryUnderstandingInfo', | ||
| 890 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo'->new($_) }; | ||
| 891 | |||
| 892 | declare 'RepeatedNaturalLanguageQueryUnderstandingInfo', | ||
| 893 | as ArrayRef[NaturalLanguageQueryUnderstandingInfo()]; | ||
| 894 | |||
| 895 | coerce 'RepeatedNaturalLanguageQueryUnderstandingInfo', | ||
| 896 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo'->new($_) } @$_ ] }; | ||
| 897 | |||
| 898 | declare 'MapStringNaturalLanguageQueryUnderstandingInfo', | ||
| 899 | as HashRef[NaturalLanguageQueryUnderstandingInfo()]; | ||
| 900 | |||
| 901 | declare 'StructuredExtractedFilter', | ||
| 902 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter']; | ||
| 903 | |||
| 904 | coerce 'StructuredExtractedFilter', | ||
| 905 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter'->new($_) }; | ||
| 906 | |||
| 907 | declare 'RepeatedStructuredExtractedFilter', | ||
| 908 | as ArrayRef[StructuredExtractedFilter()]; | ||
| 909 | |||
| 910 | coerce 'RepeatedStructuredExtractedFilter', | ||
| 911 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter'->new($_) } @$_ ] }; | ||
| 912 | |||
| 913 | declare 'MapStringStructuredExtractedFilter', | ||
| 914 | as HashRef[StructuredExtractedFilter()]; | ||
| 915 | |||
| 916 | declare 'StringConstraint', | ||
| 917 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::StringConstraint']; | ||
| 918 | |||
| 919 | coerce 'StringConstraint', | ||
| 920 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::StringConstraint'->new($_) }; | ||
| 921 | |||
| 922 | declare 'RepeatedStringConstraint', | ||
| 923 | as ArrayRef[StringConstraint()]; | ||
| 924 | |||
| 925 | coerce 'RepeatedStringConstraint', | ||
| 926 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::StringConstraint'->new($_) } @$_ ] }; | ||
| 927 | |||
| 928 | declare 'MapStringStringConstraint', | ||
| 929 | as HashRef[StringConstraint()]; | ||
| 930 | |||
| 931 | declare 'NumberConstraint', | ||
| 932 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::NumberConstraint']; | ||
| 933 | |||
| 934 | coerce 'NumberConstraint', | ||
| 935 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::NumberConstraint'->new($_) }; | ||
| 936 | |||
| 937 | declare 'RepeatedNumberConstraint', | ||
| 938 | as ArrayRef[NumberConstraint()]; | ||
| 939 | |||
| 940 | coerce 'RepeatedNumberConstraint', | ||
| 941 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::NumberConstraint'->new($_) } @$_ ] }; | ||
| 942 | |||
| 943 | declare 'MapStringNumberConstraint', | ||
| 944 | as HashRef[NumberConstraint()]; | ||
| 945 | |||
| 946 | declare 'Comparison', | ||
| 947 | as (Int | Str); | ||
| 948 | |||
| 949 | declare 'GeolocationConstraint', | ||
| 950 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::GeolocationConstraint']; | ||
| 951 | |||
| 952 | coerce 'GeolocationConstraint', | ||
| 953 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::GeolocationConstraint'->new($_) }; | ||
| 954 | |||
| 955 | declare 'RepeatedGeolocationConstraint', | ||
| 956 | as ArrayRef[GeolocationConstraint()]; | ||
| 957 | |||
| 958 | coerce 'RepeatedGeolocationConstraint', | ||
| 959 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::GeolocationConstraint'->new($_) } @$_ ] }; | ||
| 960 | |||
| 961 | declare 'MapStringGeolocationConstraint', | ||
| 962 | as HashRef[GeolocationConstraint()]; | ||
| 963 | |||
| 964 | declare 'AndExpression', | ||
| 965 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::AndExpression']; | ||
| 966 | |||
| 967 | coerce 'AndExpression', | ||
| 968 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::AndExpression'->new($_) }; | ||
| 969 | |||
| 970 | declare 'RepeatedAndExpression', | ||
| 971 | as ArrayRef[AndExpression()]; | ||
| 972 | |||
| 973 | coerce 'RepeatedAndExpression', | ||
| 974 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::AndExpression'->new($_) } @$_ ] }; | ||
| 975 | |||
| 976 | declare 'MapStringAndExpression', | ||
| 977 | as HashRef[AndExpression()]; | ||
| 978 | |||
| 979 | declare 'OrExpression', | ||
| 980 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::OrExpression']; | ||
| 981 | |||
| 982 | coerce 'OrExpression', | ||
| 983 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::OrExpression'->new($_) }; | ||
| 984 | |||
| 985 | declare 'RepeatedOrExpression', | ||
| 986 | as ArrayRef[OrExpression()]; | ||
| 987 | |||
| 988 | coerce 'RepeatedOrExpression', | ||
| 989 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::OrExpression'->new($_) } @$_ ] }; | ||
| 990 | |||
| 991 | declare 'MapStringOrExpression', | ||
| 992 | as HashRef[OrExpression()]; | ||
| 993 | |||
| 994 | declare 'Expression', | ||
| 995 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::Expression']; | ||
| 996 | |||
| 997 | coerce 'Expression', | ||
| 998 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::Expression'->new($_) }; | ||
| 999 | |||
| 1000 | declare 'RepeatedExpression', | ||
| 1001 | as ArrayRef[Expression()]; | ||
| 1002 | |||
| 1003 | coerce 'RepeatedExpression', | ||
| 1004 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::Expression'->new($_) } @$_ ] }; | ||
| 1005 | |||
| 1006 | declare 'MapStringExpression', | ||
| 1007 | as HashRef[Expression()]; | ||
| 1008 | |||
| 1009 | declare 'SessionInfo', | ||
| 1010 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SessionInfo']; | ||
| 1011 | |||
| 1012 | coerce 'SessionInfo', | ||
| 1013 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SessionInfo'->new($_) }; | ||
| 1014 | |||
| 1015 | declare 'RepeatedSessionInfo', | ||
| 1016 | as ArrayRef[SessionInfo()]; | ||
| 1017 | |||
| 1018 | coerce 'RepeatedSessionInfo', | ||
| 1019 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::SessionInfo'->new($_) } @$_ ] }; | ||
| 1020 | |||
| 1021 | declare 'MapStringSessionInfo', | ||
| 1022 | as HashRef[SessionInfo()]; | ||
| 1023 | |||
| 1024 | declare 'OneBoxResult', | ||
| 1025 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::OneBoxResult']; | ||
| 1026 | |||
| 1027 | coerce 'OneBoxResult', | ||
| 1028 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::OneBoxResult'->new($_) }; | ||
| 1029 | |||
| 1030 | declare 'RepeatedOneBoxResult', | ||
| 1031 | as ArrayRef[OneBoxResult()]; | ||
| 1032 | |||
| 1033 | coerce 'RepeatedOneBoxResult', | ||
| 1034 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::SearchService::SearchResponse::OneBoxResult'->new($_) } @$_ ] }; | ||
| 1035 | |||
| 1036 | declare 'MapStringOneBoxResult', | ||
| 1037 | as HashRef[OneBoxResult()]; | ||
| 1038 | |||
| 1039 | declare 'OneBoxType', | ||
| 1040 | as (Int | Str); | ||
| 1041 | |||
| 1042 | 1; | ||
| 1043 | |||
| 1044 | __END__ |