| 1 | package Google::Cloud::Discoveryengine::V1beta::AssistAnswer::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 'AssistAnswer', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer']; | ||
| 12 | |||
| 13 | coerce 'AssistAnswer', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedAssistAnswer', | ||
| 17 | as ArrayRef[AssistAnswer()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedAssistAnswer', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringAssistAnswer', | ||
| 23 | as HashRef[AssistAnswer()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'AssistSkippedReason', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'Reply', | ||
| 32 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::Reply']; | ||
| 33 | |||
| 34 | coerce 'Reply', | ||
| 35 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::Reply'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedReply', | ||
| 38 | as ArrayRef[Reply()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedReply', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::Reply'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringReply', | ||
| 44 | as HashRef[Reply()]; | ||
| 45 | |||
| 46 | declare 'CustomerPolicyEnforcementResult', | ||
| 47 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult']; | ||
| 48 | |||
| 49 | coerce 'CustomerPolicyEnforcementResult', | ||
| 50 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedCustomerPolicyEnforcementResult', | ||
| 53 | as ArrayRef[CustomerPolicyEnforcementResult()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedCustomerPolicyEnforcementResult', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringCustomerPolicyEnforcementResult', | ||
| 59 | as HashRef[CustomerPolicyEnforcementResult()]; | ||
| 60 | |||
| 61 | declare 'Verdict', | ||
| 62 | as (Int | Str); | ||
| 63 | |||
| 64 | declare 'BannedPhraseEnforcementResult', | ||
| 65 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult']; | ||
| 66 | |||
| 67 | coerce 'BannedPhraseEnforcementResult', | ||
| 68 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedBannedPhraseEnforcementResult', | ||
| 71 | as ArrayRef[BannedPhraseEnforcementResult()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedBannedPhraseEnforcementResult', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringBannedPhraseEnforcementResult', | ||
| 77 | as HashRef[BannedPhraseEnforcementResult()]; | ||
| 78 | |||
| 79 | declare 'ModelArmorEnforcementResult', | ||
| 80 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult']; | ||
| 81 | |||
| 82 | coerce 'ModelArmorEnforcementResult', | ||
| 83 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedModelArmorEnforcementResult', | ||
| 86 | as ArrayRef[ModelArmorEnforcementResult()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedModelArmorEnforcementResult', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringModelArmorEnforcementResult', | ||
| 92 | as HashRef[ModelArmorEnforcementResult()]; | ||
| 93 | |||
| 94 | declare 'PolicyEnforcementResult', | ||
| 95 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::PolicyEnforcementResult']; | ||
| 96 | |||
| 97 | coerce 'PolicyEnforcementResult', | ||
| 98 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::PolicyEnforcementResult'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedPolicyEnforcementResult', | ||
| 101 | as ArrayRef[PolicyEnforcementResult()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedPolicyEnforcementResult', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer::CustomerPolicyEnforcementResult::PolicyEnforcementResult'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringPolicyEnforcementResult', | ||
| 107 | as HashRef[PolicyEnforcementResult()]; | ||
| 108 | |||
| 109 | declare 'AssistantContent', | ||
| 110 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent']; | ||
| 111 | |||
| 112 | coerce 'AssistantContent', | ||
| 113 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedAssistantContent', | ||
| 116 | as ArrayRef[AssistantContent()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedAssistantContent', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringAssistantContent', | ||
| 122 | as HashRef[AssistantContent()]; | ||
| 123 | |||
| 124 | declare 'Blob', | ||
| 125 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::Blob']; | ||
| 126 | |||
| 127 | coerce 'Blob', | ||
| 128 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::Blob'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedBlob', | ||
| 131 | as ArrayRef[Blob()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedBlob', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::Blob'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringBlob', | ||
| 137 | as HashRef[Blob()]; | ||
| 138 | |||
| 139 | declare 'File', | ||
| 140 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::File']; | ||
| 141 | |||
| 142 | coerce 'File', | ||
| 143 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::File'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedFile', | ||
| 146 | as ArrayRef[File()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedFile', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::File'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringFile', | ||
| 152 | as HashRef[File()]; | ||
| 153 | |||
| 154 | declare 'ExecutableCode', | ||
| 155 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::ExecutableCode']; | ||
| 156 | |||
| 157 | coerce 'ExecutableCode', | ||
| 158 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::ExecutableCode'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedExecutableCode', | ||
| 161 | as ArrayRef[ExecutableCode()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedExecutableCode', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::ExecutableCode'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringExecutableCode', | ||
| 167 | as HashRef[ExecutableCode()]; | ||
| 168 | |||
| 169 | declare 'CodeExecutionResult', | ||
| 170 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::CodeExecutionResult']; | ||
| 171 | |||
| 172 | coerce 'CodeExecutionResult', | ||
| 173 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::CodeExecutionResult'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedCodeExecutionResult', | ||
| 176 | as ArrayRef[CodeExecutionResult()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedCodeExecutionResult', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantContent::CodeExecutionResult'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringCodeExecutionResult', | ||
| 182 | as HashRef[CodeExecutionResult()]; | ||
| 183 | |||
| 184 | declare 'Outcome', | ||
| 185 | as (Int | Str); | ||
| 186 | |||
| 187 | declare 'AssistantGroundedContent', | ||
| 188 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent']; | ||
| 189 | |||
| 190 | coerce 'AssistantGroundedContent', | ||
| 191 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent'->new($_) }; | ||
| 192 | |||
| 193 | declare 'RepeatedAssistantGroundedContent', | ||
| 194 | as ArrayRef[AssistantGroundedContent()]; | ||
| 195 | |||
| 196 | coerce 'RepeatedAssistantGroundedContent', | ||
| 197 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent'->new($_) } @$_ ] }; | ||
| 198 | |||
| 199 | declare 'MapStringAssistantGroundedContent', | ||
| 200 | as HashRef[AssistantGroundedContent()]; | ||
| 201 | |||
| 202 | declare 'TextGroundingMetadata', | ||
| 203 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata']; | ||
| 204 | |||
| 205 | coerce 'TextGroundingMetadata', | ||
| 206 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata'->new($_) }; | ||
| 207 | |||
| 208 | declare 'RepeatedTextGroundingMetadata', | ||
| 209 | as ArrayRef[TextGroundingMetadata()]; | ||
| 210 | |||
| 211 | coerce 'RepeatedTextGroundingMetadata', | ||
| 212 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata'->new($_) } @$_ ] }; | ||
| 213 | |||
| 214 | declare 'MapStringTextGroundingMetadata', | ||
| 215 | as HashRef[TextGroundingMetadata()]; | ||
| 216 | |||
| 217 | declare 'Segment', | ||
| 218 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Segment']; | ||
| 219 | |||
| 220 | coerce 'Segment', | ||
| 221 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Segment'->new($_) }; | ||
| 222 | |||
| 223 | declare 'RepeatedSegment', | ||
| 224 | as ArrayRef[Segment()]; | ||
| 225 | |||
| 226 | coerce 'RepeatedSegment', | ||
| 227 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Segment'->new($_) } @$_ ] }; | ||
| 228 | |||
| 229 | declare 'MapStringSegment', | ||
| 230 | as HashRef[Segment()]; | ||
| 231 | |||
| 232 | declare 'VisualSegment', | ||
| 233 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::VisualSegment']; | ||
| 234 | |||
| 235 | coerce 'VisualSegment', | ||
| 236 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::VisualSegment'->new($_) }; | ||
| 237 | |||
| 238 | declare 'RepeatedVisualSegment', | ||
| 239 | as ArrayRef[VisualSegment()]; | ||
| 240 | |||
| 241 | coerce 'RepeatedVisualSegment', | ||
| 242 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::VisualSegment'->new($_) } @$_ ] }; | ||
| 243 | |||
| 244 | declare 'MapStringVisualSegment', | ||
| 245 | as HashRef[VisualSegment()]; | ||
| 246 | |||
| 247 | declare 'Reference', | ||
| 248 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference']; | ||
| 249 | |||
| 250 | coerce 'Reference', | ||
| 251 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference'->new($_) }; | ||
| 252 | |||
| 253 | declare 'RepeatedReference', | ||
| 254 | as ArrayRef[Reference()]; | ||
| 255 | |||
| 256 | coerce 'RepeatedReference', | ||
| 257 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference'->new($_) } @$_ ] }; | ||
| 258 | |||
| 259 | declare 'MapStringReference', | ||
| 260 | as HashRef[Reference()]; | ||
| 261 | |||
| 262 | declare 'DocumentMetadata', | ||
| 263 | as InstanceOf['Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference::DocumentMetadata']; | ||
| 264 | |||
| 265 | coerce 'DocumentMetadata', | ||
| 266 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference::DocumentMetadata'->new($_) }; | ||
| 267 | |||
| 268 | declare 'RepeatedDocumentMetadata', | ||
| 269 | as ArrayRef[DocumentMetadata()]; | ||
| 270 | |||
| 271 | coerce 'RepeatedDocumentMetadata', | ||
| 272 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistantGroundedContent::TextGroundingMetadata::Reference::DocumentMetadata'->new($_) } @$_ ] }; | ||
| 273 | |||
| 274 | declare 'MapStringDocumentMetadata', | ||
| 275 | as HashRef[DocumentMetadata()]; | ||
| 276 | |||
| 277 | declare 'Language', | ||
| 278 | as (Int | Str); | ||
| 279 | |||
| 280 | 1; | ||
| 281 | |||
| 282 | __END__ |