| 1 | package Google::Cloud::Discoveryengine::V1::Answer::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 'Answer', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer']; | ||
| 12 | |||
| 13 | coerce 'Answer', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedAnswer', | ||
| 17 | as ArrayRef[Answer()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedAnswer', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringAnswer', | ||
| 23 | as HashRef[Answer()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'AnswerSkippedReason', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'Citation', | ||
| 32 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Citation']; | ||
| 33 | |||
| 34 | coerce 'Citation', | ||
| 35 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Citation'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedCitation', | ||
| 38 | as ArrayRef[Citation()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedCitation', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Citation'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringCitation', | ||
| 44 | as HashRef[Citation()]; | ||
| 45 | |||
| 46 | declare 'CitationSource', | ||
| 47 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::CitationSource']; | ||
| 48 | |||
| 49 | coerce 'CitationSource', | ||
| 50 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::CitationSource'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedCitationSource', | ||
| 53 | as ArrayRef[CitationSource()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedCitationSource', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::CitationSource'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringCitationSource', | ||
| 59 | as HashRef[CitationSource()]; | ||
| 60 | |||
| 61 | declare 'GroundingSupport', | ||
| 62 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::GroundingSupport']; | ||
| 63 | |||
| 64 | coerce 'GroundingSupport', | ||
| 65 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::GroundingSupport'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedGroundingSupport', | ||
| 68 | as ArrayRef[GroundingSupport()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedGroundingSupport', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::GroundingSupport'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringGroundingSupport', | ||
| 74 | as HashRef[GroundingSupport()]; | ||
| 75 | |||
| 76 | declare 'Reference', | ||
| 77 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference']; | ||
| 78 | |||
| 79 | coerce 'Reference', | ||
| 80 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedReference', | ||
| 83 | as ArrayRef[Reference()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedReference', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringReference', | ||
| 89 | as HashRef[Reference()]; | ||
| 90 | |||
| 91 | declare 'UnstructuredDocumentInfo', | ||
| 92 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::UnstructuredDocumentInfo']; | ||
| 93 | |||
| 94 | coerce 'UnstructuredDocumentInfo', | ||
| 95 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::UnstructuredDocumentInfo'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedUnstructuredDocumentInfo', | ||
| 98 | as ArrayRef[UnstructuredDocumentInfo()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedUnstructuredDocumentInfo', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::UnstructuredDocumentInfo'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringUnstructuredDocumentInfo', | ||
| 104 | as HashRef[UnstructuredDocumentInfo()]; | ||
| 105 | |||
| 106 | declare 'ChunkContent', | ||
| 107 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::UnstructuredDocumentInfo::ChunkContent']; | ||
| 108 | |||
| 109 | coerce 'ChunkContent', | ||
| 110 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::UnstructuredDocumentInfo::ChunkContent'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedChunkContent', | ||
| 113 | as ArrayRef[ChunkContent()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedChunkContent', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::UnstructuredDocumentInfo::ChunkContent'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringChunkContent', | ||
| 119 | as HashRef[ChunkContent()]; | ||
| 120 | |||
| 121 | declare 'ChunkInfo', | ||
| 122 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::ChunkInfo']; | ||
| 123 | |||
| 124 | coerce 'ChunkInfo', | ||
| 125 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::ChunkInfo'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedChunkInfo', | ||
| 128 | as ArrayRef[ChunkInfo()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedChunkInfo', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::ChunkInfo'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringChunkInfo', | ||
| 134 | as HashRef[ChunkInfo()]; | ||
| 135 | |||
| 136 | declare 'DocumentMetadata', | ||
| 137 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::ChunkInfo::DocumentMetadata']; | ||
| 138 | |||
| 139 | coerce 'DocumentMetadata', | ||
| 140 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::ChunkInfo::DocumentMetadata'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedDocumentMetadata', | ||
| 143 | as ArrayRef[DocumentMetadata()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedDocumentMetadata', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::ChunkInfo::DocumentMetadata'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringDocumentMetadata', | ||
| 149 | as HashRef[DocumentMetadata()]; | ||
| 150 | |||
| 151 | declare 'StructuredDocumentInfo', | ||
| 152 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::StructuredDocumentInfo']; | ||
| 153 | |||
| 154 | coerce 'StructuredDocumentInfo', | ||
| 155 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::StructuredDocumentInfo'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedStructuredDocumentInfo', | ||
| 158 | as ArrayRef[StructuredDocumentInfo()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedStructuredDocumentInfo', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Reference::StructuredDocumentInfo'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringStructuredDocumentInfo', | ||
| 164 | as HashRef[StructuredDocumentInfo()]; | ||
| 165 | |||
| 166 | declare 'Step', | ||
| 167 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Step']; | ||
| 168 | |||
| 169 | coerce 'Step', | ||
| 170 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step'->new($_) }; | ||
| 171 | |||
| 172 | declare 'RepeatedStep', | ||
| 173 | as ArrayRef[Step()]; | ||
| 174 | |||
| 175 | coerce 'RepeatedStep', | ||
| 176 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step'->new($_) } @$_ ] }; | ||
| 177 | |||
| 178 | declare 'MapStringStep', | ||
| 179 | as HashRef[Step()]; | ||
| 180 | |||
| 181 | declare 'State', | ||
| 182 | as (Int | Str); | ||
| 183 | |||
| 184 | declare 'Action', | ||
| 185 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action']; | ||
| 186 | |||
| 187 | coerce 'Action', | ||
| 188 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action'->new($_) }; | ||
| 189 | |||
| 190 | declare 'RepeatedAction', | ||
| 191 | as ArrayRef[Action()]; | ||
| 192 | |||
| 193 | coerce 'RepeatedAction', | ||
| 194 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action'->new($_) } @$_ ] }; | ||
| 195 | |||
| 196 | declare 'MapStringAction', | ||
| 197 | as HashRef[Action()]; | ||
| 198 | |||
| 199 | declare 'SearchAction', | ||
| 200 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::SearchAction']; | ||
| 201 | |||
| 202 | coerce 'SearchAction', | ||
| 203 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::SearchAction'->new($_) }; | ||
| 204 | |||
| 205 | declare 'RepeatedSearchAction', | ||
| 206 | as ArrayRef[SearchAction()]; | ||
| 207 | |||
| 208 | coerce 'RepeatedSearchAction', | ||
| 209 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::SearchAction'->new($_) } @$_ ] }; | ||
| 210 | |||
| 211 | declare 'MapStringSearchAction', | ||
| 212 | as HashRef[SearchAction()]; | ||
| 213 | |||
| 214 | declare 'Observation', | ||
| 215 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation']; | ||
| 216 | |||
| 217 | coerce 'Observation', | ||
| 218 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation'->new($_) }; | ||
| 219 | |||
| 220 | declare 'RepeatedObservation', | ||
| 221 | as ArrayRef[Observation()]; | ||
| 222 | |||
| 223 | coerce 'RepeatedObservation', | ||
| 224 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation'->new($_) } @$_ ] }; | ||
| 225 | |||
| 226 | declare 'MapStringObservation', | ||
| 227 | as HashRef[Observation()]; | ||
| 228 | |||
| 229 | declare 'SearchResult', | ||
| 230 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation::SearchResult']; | ||
| 231 | |||
| 232 | coerce 'SearchResult', | ||
| 233 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation::SearchResult'->new($_) }; | ||
| 234 | |||
| 235 | declare 'RepeatedSearchResult', | ||
| 236 | as ArrayRef[SearchResult()]; | ||
| 237 | |||
| 238 | coerce 'RepeatedSearchResult', | ||
| 239 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation::SearchResult'->new($_) } @$_ ] }; | ||
| 240 | |||
| 241 | declare 'MapStringSearchResult', | ||
| 242 | as HashRef[SearchResult()]; | ||
| 243 | |||
| 244 | declare 'SnippetInfo', | ||
| 245 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation::SearchResult::SnippetInfo']; | ||
| 246 | |||
| 247 | coerce 'SnippetInfo', | ||
| 248 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation::SearchResult::SnippetInfo'->new($_) }; | ||
| 249 | |||
| 250 | declare 'RepeatedSnippetInfo', | ||
| 251 | as ArrayRef[SnippetInfo()]; | ||
| 252 | |||
| 253 | coerce 'RepeatedSnippetInfo', | ||
| 254 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation::SearchResult::SnippetInfo'->new($_) } @$_ ] }; | ||
| 255 | |||
| 256 | declare 'MapStringSnippetInfo', | ||
| 257 | as HashRef[SnippetInfo()]; | ||
| 258 | |||
| 259 | declare 'ChunkInfo', | ||
| 260 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation::SearchResult::ChunkInfo']; | ||
| 261 | |||
| 262 | coerce 'ChunkInfo', | ||
| 263 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation::SearchResult::ChunkInfo'->new($_) }; | ||
| 264 | |||
| 265 | declare 'RepeatedChunkInfo', | ||
| 266 | as ArrayRef[ChunkInfo()]; | ||
| 267 | |||
| 268 | coerce 'RepeatedChunkInfo', | ||
| 269 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::Step::Action::Observation::SearchResult::ChunkInfo'->new($_) } @$_ ] }; | ||
| 270 | |||
| 271 | declare 'MapStringChunkInfo', | ||
| 272 | as HashRef[ChunkInfo()]; | ||
| 273 | |||
| 274 | declare 'QueryUnderstandingInfo', | ||
| 275 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::QueryUnderstandingInfo']; | ||
| 276 | |||
| 277 | coerce 'QueryUnderstandingInfo', | ||
| 278 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::QueryUnderstandingInfo'->new($_) }; | ||
| 279 | |||
| 280 | declare 'RepeatedQueryUnderstandingInfo', | ||
| 281 | as ArrayRef[QueryUnderstandingInfo()]; | ||
| 282 | |||
| 283 | coerce 'RepeatedQueryUnderstandingInfo', | ||
| 284 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::QueryUnderstandingInfo'->new($_) } @$_ ] }; | ||
| 285 | |||
| 286 | declare 'MapStringQueryUnderstandingInfo', | ||
| 287 | as HashRef[QueryUnderstandingInfo()]; | ||
| 288 | |||
| 289 | declare 'QueryClassificationInfo', | ||
| 290 | as InstanceOf['Google::Cloud::Discoveryengine::V1::Answer::Answer::QueryUnderstandingInfo::QueryClassificationInfo']; | ||
| 291 | |||
| 292 | coerce 'QueryClassificationInfo', | ||
| 293 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::QueryUnderstandingInfo::QueryClassificationInfo'->new($_) }; | ||
| 294 | |||
| 295 | declare 'RepeatedQueryClassificationInfo', | ||
| 296 | as ArrayRef[QueryClassificationInfo()]; | ||
| 297 | |||
| 298 | coerce 'RepeatedQueryClassificationInfo', | ||
| 299 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::Answer::Answer::QueryUnderstandingInfo::QueryClassificationInfo'->new($_) } @$_ ] }; | ||
| 300 | |||
| 301 | declare 'MapStringQueryClassificationInfo', | ||
| 302 | as HashRef[QueryClassificationInfo()]; | ||
| 303 | |||
| 304 | declare 'Type', | ||
| 305 | as (Int | Str); | ||
| 306 | |||
| 307 | 1; | ||
| 308 | |||
| 309 | __END__ |