| 1 | package Google::Cloud::Discoveryengine::V1::GroundedGenerationService::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 'GroundedGenerationContent', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GroundedGenerationContent']; | ||
| 12 | |||
| 13 | coerce 'GroundedGenerationContent', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GroundedGenerationContent'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedGroundedGenerationContent', | ||
| 17 | as ArrayRef[GroundedGenerationContent()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedGroundedGenerationContent', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GroundedGenerationContent'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringGroundedGenerationContent', | ||
| 23 | as HashRef[GroundedGenerationContent()]; | ||
| 24 | |||
| 25 | declare 'Part', | ||
| 26 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GroundedGenerationContent::Part']; | ||
| 27 | |||
| 28 | coerce 'Part', | ||
| 29 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GroundedGenerationContent::Part'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedPart', | ||
| 32 | as ArrayRef[Part()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedPart', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GroundedGenerationContent::Part'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringPart', | ||
| 38 | as HashRef[Part()]; | ||
| 39 | |||
| 40 | declare 'GenerateGroundedContentRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest']; | ||
| 42 | |||
| 43 | coerce 'GenerateGroundedContentRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedGenerateGroundedContentRequest', | ||
| 47 | as ArrayRef[GenerateGroundedContentRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedGenerateGroundedContentRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringGenerateGroundedContentRequest', | ||
| 53 | as HashRef[GenerateGroundedContentRequest()]; | ||
| 54 | |||
| 55 | declare 'GenerationSpec', | ||
| 56 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GenerationSpec']; | ||
| 57 | |||
| 58 | coerce 'GenerationSpec', | ||
| 59 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GenerationSpec'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedGenerationSpec', | ||
| 62 | as ArrayRef[GenerationSpec()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedGenerationSpec', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GenerationSpec'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringGenerationSpec', | ||
| 68 | as HashRef[GenerationSpec()]; | ||
| 69 | |||
| 70 | declare 'ProvisionedThroughputSetting', | ||
| 71 | as (Int | Str); | ||
| 72 | |||
| 73 | declare 'DynamicRetrievalConfiguration', | ||
| 74 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::DynamicRetrievalConfiguration']; | ||
| 75 | |||
| 76 | coerce 'DynamicRetrievalConfiguration', | ||
| 77 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::DynamicRetrievalConfiguration'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedDynamicRetrievalConfiguration', | ||
| 80 | as ArrayRef[DynamicRetrievalConfiguration()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedDynamicRetrievalConfiguration', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::DynamicRetrievalConfiguration'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringDynamicRetrievalConfiguration', | ||
| 86 | as HashRef[DynamicRetrievalConfiguration()]; | ||
| 87 | |||
| 88 | declare 'DynamicRetrievalPredictor', | ||
| 89 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::DynamicRetrievalConfiguration::DynamicRetrievalPredictor']; | ||
| 90 | |||
| 91 | coerce 'DynamicRetrievalPredictor', | ||
| 92 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::DynamicRetrievalConfiguration::DynamicRetrievalPredictor'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedDynamicRetrievalPredictor', | ||
| 95 | as ArrayRef[DynamicRetrievalPredictor()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedDynamicRetrievalPredictor', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::DynamicRetrievalConfiguration::DynamicRetrievalPredictor'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringDynamicRetrievalPredictor', | ||
| 101 | as HashRef[DynamicRetrievalPredictor()]; | ||
| 102 | |||
| 103 | declare 'Version', | ||
| 104 | as (Int | Str); | ||
| 105 | |||
| 106 | declare 'GroundingSource', | ||
| 107 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource']; | ||
| 108 | |||
| 109 | coerce 'GroundingSource', | ||
| 110 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedGroundingSource', | ||
| 113 | as ArrayRef[GroundingSource()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedGroundingSource', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringGroundingSource', | ||
| 119 | as HashRef[GroundingSource()]; | ||
| 120 | |||
| 121 | declare 'InlineSource', | ||
| 122 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::InlineSource']; | ||
| 123 | |||
| 124 | coerce 'InlineSource', | ||
| 125 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::InlineSource'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedInlineSource', | ||
| 128 | as ArrayRef[InlineSource()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedInlineSource', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::InlineSource'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringInlineSource', | ||
| 134 | as HashRef[InlineSource()]; | ||
| 135 | |||
| 136 | declare 'AttributesEntry', | ||
| 137 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::InlineSource::AttributesEntry']; | ||
| 138 | |||
| 139 | coerce 'AttributesEntry', | ||
| 140 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::InlineSource::AttributesEntry'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedAttributesEntry', | ||
| 143 | as ArrayRef[AttributesEntry()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedAttributesEntry', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::InlineSource::AttributesEntry'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringAttributesEntry', | ||
| 149 | as HashRef[AttributesEntry()]; | ||
| 150 | |||
| 151 | declare 'SearchSource', | ||
| 152 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::SearchSource']; | ||
| 153 | |||
| 154 | coerce 'SearchSource', | ||
| 155 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::SearchSource'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedSearchSource', | ||
| 158 | as ArrayRef[SearchSource()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedSearchSource', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::SearchSource'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringSearchSource', | ||
| 164 | as HashRef[SearchSource()]; | ||
| 165 | |||
| 166 | declare 'GoogleSearchSource', | ||
| 167 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::GoogleSearchSource']; | ||
| 168 | |||
| 169 | coerce 'GoogleSearchSource', | ||
| 170 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::GoogleSearchSource'->new($_) }; | ||
| 171 | |||
| 172 | declare 'RepeatedGoogleSearchSource', | ||
| 173 | as ArrayRef[GoogleSearchSource()]; | ||
| 174 | |||
| 175 | coerce 'RepeatedGoogleSearchSource', | ||
| 176 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::GoogleSearchSource'->new($_) } @$_ ] }; | ||
| 177 | |||
| 178 | declare 'MapStringGoogleSearchSource', | ||
| 179 | as HashRef[GoogleSearchSource()]; | ||
| 180 | |||
| 181 | declare 'EnterpriseWebRetrievalSource', | ||
| 182 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::EnterpriseWebRetrievalSource']; | ||
| 183 | |||
| 184 | coerce 'EnterpriseWebRetrievalSource', | ||
| 185 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::EnterpriseWebRetrievalSource'->new($_) }; | ||
| 186 | |||
| 187 | declare 'RepeatedEnterpriseWebRetrievalSource', | ||
| 188 | as ArrayRef[EnterpriseWebRetrievalSource()]; | ||
| 189 | |||
| 190 | coerce 'RepeatedEnterpriseWebRetrievalSource', | ||
| 191 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSource::EnterpriseWebRetrievalSource'->new($_) } @$_ ] }; | ||
| 192 | |||
| 193 | declare 'MapStringEnterpriseWebRetrievalSource', | ||
| 194 | as HashRef[EnterpriseWebRetrievalSource()]; | ||
| 195 | |||
| 196 | declare 'GroundingSpec', | ||
| 197 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSpec']; | ||
| 198 | |||
| 199 | coerce 'GroundingSpec', | ||
| 200 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSpec'->new($_) }; | ||
| 201 | |||
| 202 | declare 'RepeatedGroundingSpec', | ||
| 203 | as ArrayRef[GroundingSpec()]; | ||
| 204 | |||
| 205 | coerce 'RepeatedGroundingSpec', | ||
| 206 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::GroundingSpec'->new($_) } @$_ ] }; | ||
| 207 | |||
| 208 | declare 'MapStringGroundingSpec', | ||
| 209 | as HashRef[GroundingSpec()]; | ||
| 210 | |||
| 211 | declare 'UserLabelsEntry', | ||
| 212 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::UserLabelsEntry']; | ||
| 213 | |||
| 214 | coerce 'UserLabelsEntry', | ||
| 215 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::UserLabelsEntry'->new($_) }; | ||
| 216 | |||
| 217 | declare 'RepeatedUserLabelsEntry', | ||
| 218 | as ArrayRef[UserLabelsEntry()]; | ||
| 219 | |||
| 220 | coerce 'RepeatedUserLabelsEntry', | ||
| 221 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest::UserLabelsEntry'->new($_) } @$_ ] }; | ||
| 222 | |||
| 223 | declare 'MapStringUserLabelsEntry', | ||
| 224 | as HashRef[UserLabelsEntry()]; | ||
| 225 | |||
| 226 | declare 'GenerateGroundedContentResponse', | ||
| 227 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse']; | ||
| 228 | |||
| 229 | coerce 'GenerateGroundedContentResponse', | ||
| 230 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse'->new($_) }; | ||
| 231 | |||
| 232 | declare 'RepeatedGenerateGroundedContentResponse', | ||
| 233 | as ArrayRef[GenerateGroundedContentResponse()]; | ||
| 234 | |||
| 235 | coerce 'RepeatedGenerateGroundedContentResponse', | ||
| 236 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse'->new($_) } @$_ ] }; | ||
| 237 | |||
| 238 | declare 'MapStringGenerateGroundedContentResponse', | ||
| 239 | as HashRef[GenerateGroundedContentResponse()]; | ||
| 240 | |||
| 241 | declare 'Candidate', | ||
| 242 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate']; | ||
| 243 | |||
| 244 | coerce 'Candidate', | ||
| 245 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate'->new($_) }; | ||
| 246 | |||
| 247 | declare 'RepeatedCandidate', | ||
| 248 | as ArrayRef[Candidate()]; | ||
| 249 | |||
| 250 | coerce 'RepeatedCandidate', | ||
| 251 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate'->new($_) } @$_ ] }; | ||
| 252 | |||
| 253 | declare 'MapStringCandidate', | ||
| 254 | as HashRef[Candidate()]; | ||
| 255 | |||
| 256 | declare 'GroundingMetadata', | ||
| 257 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata']; | ||
| 258 | |||
| 259 | coerce 'GroundingMetadata', | ||
| 260 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata'->new($_) }; | ||
| 261 | |||
| 262 | declare 'RepeatedGroundingMetadata', | ||
| 263 | as ArrayRef[GroundingMetadata()]; | ||
| 264 | |||
| 265 | coerce 'RepeatedGroundingMetadata', | ||
| 266 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata'->new($_) } @$_ ] }; | ||
| 267 | |||
| 268 | declare 'MapStringGroundingMetadata', | ||
| 269 | as HashRef[GroundingMetadata()]; | ||
| 270 | |||
| 271 | declare 'RetrievalMetadata', | ||
| 272 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::RetrievalMetadata']; | ||
| 273 | |||
| 274 | coerce 'RetrievalMetadata', | ||
| 275 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::RetrievalMetadata'->new($_) }; | ||
| 276 | |||
| 277 | declare 'RepeatedRetrievalMetadata', | ||
| 278 | as ArrayRef[RetrievalMetadata()]; | ||
| 279 | |||
| 280 | coerce 'RepeatedRetrievalMetadata', | ||
| 281 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::RetrievalMetadata'->new($_) } @$_ ] }; | ||
| 282 | |||
| 283 | declare 'MapStringRetrievalMetadata', | ||
| 284 | as HashRef[RetrievalMetadata()]; | ||
| 285 | |||
| 286 | declare 'Source', | ||
| 287 | as (Int | Str); | ||
| 288 | |||
| 289 | declare 'DynamicRetrievalMetadata', | ||
| 290 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalMetadata']; | ||
| 291 | |||
| 292 | coerce 'DynamicRetrievalMetadata', | ||
| 293 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalMetadata'->new($_) }; | ||
| 294 | |||
| 295 | declare 'RepeatedDynamicRetrievalMetadata', | ||
| 296 | as ArrayRef[DynamicRetrievalMetadata()]; | ||
| 297 | |||
| 298 | coerce 'RepeatedDynamicRetrievalMetadata', | ||
| 299 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalMetadata'->new($_) } @$_ ] }; | ||
| 300 | |||
| 301 | declare 'MapStringDynamicRetrievalMetadata', | ||
| 302 | as HashRef[DynamicRetrievalMetadata()]; | ||
| 303 | |||
| 304 | declare 'DynamicRetrievalPredictorMetadata', | ||
| 305 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalPredictorMetadata']; | ||
| 306 | |||
| 307 | coerce 'DynamicRetrievalPredictorMetadata', | ||
| 308 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalPredictorMetadata'->new($_) }; | ||
| 309 | |||
| 310 | declare 'RepeatedDynamicRetrievalPredictorMetadata', | ||
| 311 | as ArrayRef[DynamicRetrievalPredictorMetadata()]; | ||
| 312 | |||
| 313 | coerce 'RepeatedDynamicRetrievalPredictorMetadata', | ||
| 314 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalPredictorMetadata'->new($_) } @$_ ] }; | ||
| 315 | |||
| 316 | declare 'MapStringDynamicRetrievalPredictorMetadata', | ||
| 317 | as HashRef[DynamicRetrievalPredictorMetadata()]; | ||
| 318 | |||
| 319 | declare 'Version', | ||
| 320 | as (Int | Str); | ||
| 321 | |||
| 322 | declare 'SearchEntryPoint', | ||
| 323 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::SearchEntryPoint']; | ||
| 324 | |||
| 325 | coerce 'SearchEntryPoint', | ||
| 326 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::SearchEntryPoint'->new($_) }; | ||
| 327 | |||
| 328 | declare 'RepeatedSearchEntryPoint', | ||
| 329 | as ArrayRef[SearchEntryPoint()]; | ||
| 330 | |||
| 331 | coerce 'RepeatedSearchEntryPoint', | ||
| 332 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::SearchEntryPoint'->new($_) } @$_ ] }; | ||
| 333 | |||
| 334 | declare 'MapStringSearchEntryPoint', | ||
| 335 | as HashRef[SearchEntryPoint()]; | ||
| 336 | |||
| 337 | declare 'GroundingSupport', | ||
| 338 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::GroundingSupport']; | ||
| 339 | |||
| 340 | coerce 'GroundingSupport', | ||
| 341 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::GroundingSupport'->new($_) }; | ||
| 342 | |||
| 343 | declare 'RepeatedGroundingSupport', | ||
| 344 | as ArrayRef[GroundingSupport()]; | ||
| 345 | |||
| 346 | coerce 'RepeatedGroundingSupport', | ||
| 347 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::GroundingSupport'->new($_) } @$_ ] }; | ||
| 348 | |||
| 349 | declare 'MapStringGroundingSupport', | ||
| 350 | as HashRef[GroundingSupport()]; | ||
| 351 | |||
| 352 | declare 'ImageMetadata', | ||
| 353 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::ImageMetadata']; | ||
| 354 | |||
| 355 | coerce 'ImageMetadata', | ||
| 356 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::ImageMetadata'->new($_) }; | ||
| 357 | |||
| 358 | declare 'RepeatedImageMetadata', | ||
| 359 | as ArrayRef[ImageMetadata()]; | ||
| 360 | |||
| 361 | coerce 'RepeatedImageMetadata', | ||
| 362 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::ImageMetadata'->new($_) } @$_ ] }; | ||
| 363 | |||
| 364 | declare 'MapStringImageMetadata', | ||
| 365 | as HashRef[ImageMetadata()]; | ||
| 366 | |||
| 367 | declare 'WebsiteInfo', | ||
| 368 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::ImageMetadata::WebsiteInfo']; | ||
| 369 | |||
| 370 | coerce 'WebsiteInfo', | ||
| 371 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::ImageMetadata::WebsiteInfo'->new($_) }; | ||
| 372 | |||
| 373 | declare 'RepeatedWebsiteInfo', | ||
| 374 | as ArrayRef[WebsiteInfo()]; | ||
| 375 | |||
| 376 | coerce 'RepeatedWebsiteInfo', | ||
| 377 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::ImageMetadata::WebsiteInfo'->new($_) } @$_ ] }; | ||
| 378 | |||
| 379 | declare 'MapStringWebsiteInfo', | ||
| 380 | as HashRef[WebsiteInfo()]; | ||
| 381 | |||
| 382 | declare 'Image', | ||
| 383 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::ImageMetadata::Image']; | ||
| 384 | |||
| 385 | coerce 'Image', | ||
| 386 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::ImageMetadata::Image'->new($_) }; | ||
| 387 | |||
| 388 | declare 'RepeatedImage', | ||
| 389 | as ArrayRef[Image()]; | ||
| 390 | |||
| 391 | coerce 'RepeatedImage', | ||
| 392 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::ImageMetadata::Image'->new($_) } @$_ ] }; | ||
| 393 | |||
| 394 | declare 'MapStringImage', | ||
| 395 | as HashRef[Image()]; | ||
| 396 | |||
| 397 | declare 'VideoMetadata', | ||
| 398 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::VideoMetadata']; | ||
| 399 | |||
| 400 | coerce 'VideoMetadata', | ||
| 401 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::VideoMetadata'->new($_) }; | ||
| 402 | |||
| 403 | declare 'RepeatedVideoMetadata', | ||
| 404 | as ArrayRef[VideoMetadata()]; | ||
| 405 | |||
| 406 | coerce 'RepeatedVideoMetadata', | ||
| 407 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse::Candidate::GroundingMetadata::VideoMetadata'->new($_) } @$_ ] }; | ||
| 408 | |||
| 409 | declare 'MapStringVideoMetadata', | ||
| 410 | as HashRef[VideoMetadata()]; | ||
| 411 | |||
| 412 | declare 'CheckGroundingSpec', | ||
| 413 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingSpec']; | ||
| 414 | |||
| 415 | coerce 'CheckGroundingSpec', | ||
| 416 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingSpec'->new($_) }; | ||
| 417 | |||
| 418 | declare 'RepeatedCheckGroundingSpec', | ||
| 419 | as ArrayRef[CheckGroundingSpec()]; | ||
| 420 | |||
| 421 | coerce 'RepeatedCheckGroundingSpec', | ||
| 422 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingSpec'->new($_) } @$_ ] }; | ||
| 423 | |||
| 424 | declare 'MapStringCheckGroundingSpec', | ||
| 425 | as HashRef[CheckGroundingSpec()]; | ||
| 426 | |||
| 427 | declare 'CheckGroundingRequest', | ||
| 428 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingRequest']; | ||
| 429 | |||
| 430 | coerce 'CheckGroundingRequest', | ||
| 431 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingRequest'->new($_) }; | ||
| 432 | |||
| 433 | declare 'RepeatedCheckGroundingRequest', | ||
| 434 | as ArrayRef[CheckGroundingRequest()]; | ||
| 435 | |||
| 436 | coerce 'RepeatedCheckGroundingRequest', | ||
| 437 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingRequest'->new($_) } @$_ ] }; | ||
| 438 | |||
| 439 | declare 'MapStringCheckGroundingRequest', | ||
| 440 | as HashRef[CheckGroundingRequest()]; | ||
| 441 | |||
| 442 | declare 'UserLabelsEntry', | ||
| 443 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingRequest::UserLabelsEntry']; | ||
| 444 | |||
| 445 | coerce 'UserLabelsEntry', | ||
| 446 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingRequest::UserLabelsEntry'->new($_) }; | ||
| 447 | |||
| 448 | declare 'RepeatedUserLabelsEntry', | ||
| 449 | as ArrayRef[UserLabelsEntry()]; | ||
| 450 | |||
| 451 | coerce 'RepeatedUserLabelsEntry', | ||
| 452 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingRequest::UserLabelsEntry'->new($_) } @$_ ] }; | ||
| 453 | |||
| 454 | declare 'MapStringUserLabelsEntry', | ||
| 455 | as HashRef[UserLabelsEntry()]; | ||
| 456 | |||
| 457 | declare 'CheckGroundingResponse', | ||
| 458 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingResponse']; | ||
| 459 | |||
| 460 | coerce 'CheckGroundingResponse', | ||
| 461 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingResponse'->new($_) }; | ||
| 462 | |||
| 463 | declare 'RepeatedCheckGroundingResponse', | ||
| 464 | as ArrayRef[CheckGroundingResponse()]; | ||
| 465 | |||
| 466 | coerce 'RepeatedCheckGroundingResponse', | ||
| 467 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingResponse'->new($_) } @$_ ] }; | ||
| 468 | |||
| 469 | declare 'MapStringCheckGroundingResponse', | ||
| 470 | as HashRef[CheckGroundingResponse()]; | ||
| 471 | |||
| 472 | declare 'CheckGroundingFactChunk', | ||
| 473 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingResponse::CheckGroundingFactChunk']; | ||
| 474 | |||
| 475 | coerce 'CheckGroundingFactChunk', | ||
| 476 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingResponse::CheckGroundingFactChunk'->new($_) }; | ||
| 477 | |||
| 478 | declare 'RepeatedCheckGroundingFactChunk', | ||
| 479 | as ArrayRef[CheckGroundingFactChunk()]; | ||
| 480 | |||
| 481 | coerce 'RepeatedCheckGroundingFactChunk', | ||
| 482 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingResponse::CheckGroundingFactChunk'->new($_) } @$_ ] }; | ||
| 483 | |||
| 484 | declare 'MapStringCheckGroundingFactChunk', | ||
| 485 | as HashRef[CheckGroundingFactChunk()]; | ||
| 486 | |||
| 487 | declare 'Claim', | ||
| 488 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingResponse::Claim']; | ||
| 489 | |||
| 490 | coerce 'Claim', | ||
| 491 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingResponse::Claim'->new($_) }; | ||
| 492 | |||
| 493 | declare 'RepeatedClaim', | ||
| 494 | as ArrayRef[Claim()]; | ||
| 495 | |||
| 496 | coerce 'RepeatedClaim', | ||
| 497 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingResponse::Claim'->new($_) } @$_ ] }; | ||
| 498 | |||
| 499 | declare 'MapStringClaim', | ||
| 500 | as HashRef[Claim()]; | ||
| 501 | |||
| 502 | declare 'CitationMetadata', | ||
| 503 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CitationMetadata']; | ||
| 504 | |||
| 505 | coerce 'CitationMetadata', | ||
| 506 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CitationMetadata'->new($_) }; | ||
| 507 | |||
| 508 | declare 'RepeatedCitationMetadata', | ||
| 509 | as ArrayRef[CitationMetadata()]; | ||
| 510 | |||
| 511 | coerce 'RepeatedCitationMetadata', | ||
| 512 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CitationMetadata'->new($_) } @$_ ] }; | ||
| 513 | |||
| 514 | declare 'MapStringCitationMetadata', | ||
| 515 | as HashRef[CitationMetadata()]; | ||
| 516 | |||
| 517 | declare 'Citation', | ||
| 518 | as InstanceOf['Google::Cloud::Discoveryengine::V1::GroundedGenerationService::Citation']; | ||
| 519 | |||
| 520 | coerce 'Citation', | ||
| 521 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::Citation'->new($_) }; | ||
| 522 | |||
| 523 | declare 'RepeatedCitation', | ||
| 524 | as ArrayRef[Citation()]; | ||
| 525 | |||
| 526 | coerce 'RepeatedCitation', | ||
| 527 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::GroundedGenerationService::Citation'->new($_) } @$_ ] }; | ||
| 528 | |||
| 529 | declare 'MapStringCitation', | ||
| 530 | as HashRef[Citation()]; | ||
| 531 | |||
| 532 | declare 'PhishBlockThreshold', | ||
| 533 | as (Int | Str); | ||
| 534 | |||
| 535 | 1; | ||
| 536 | |||
| 537 | __END__ |