| 1 | package Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::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 'ResponseMessage', | ||
| 11 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage']; | ||
| 12 | |||
| 13 | coerce 'ResponseMessage', | ||
| 14 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedResponseMessage', | ||
| 17 | as ArrayRef[ResponseMessage()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedResponseMessage', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringResponseMessage', | ||
| 23 | as HashRef[ResponseMessage()]; | ||
| 24 | |||
| 25 | declare 'ResponseType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'Text', | ||
| 29 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::Text']; | ||
| 30 | |||
| 31 | coerce 'Text', | ||
| 32 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::Text'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedText', | ||
| 35 | as ArrayRef[Text()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedText', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::Text'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringText', | ||
| 41 | as HashRef[Text()]; | ||
| 42 | |||
| 43 | declare 'LiveAgentHandoff', | ||
| 44 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::LiveAgentHandoff']; | ||
| 45 | |||
| 46 | coerce 'LiveAgentHandoff', | ||
| 47 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::LiveAgentHandoff'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedLiveAgentHandoff', | ||
| 50 | as ArrayRef[LiveAgentHandoff()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedLiveAgentHandoff', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::LiveAgentHandoff'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringLiveAgentHandoff', | ||
| 56 | as HashRef[LiveAgentHandoff()]; | ||
| 57 | |||
| 58 | declare 'ConversationSuccess', | ||
| 59 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::ConversationSuccess']; | ||
| 60 | |||
| 61 | coerce 'ConversationSuccess', | ||
| 62 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::ConversationSuccess'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedConversationSuccess', | ||
| 65 | as ArrayRef[ConversationSuccess()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedConversationSuccess', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::ConversationSuccess'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringConversationSuccess', | ||
| 71 | as HashRef[ConversationSuccess()]; | ||
| 72 | |||
| 73 | declare 'OutputAudioText', | ||
| 74 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::OutputAudioText']; | ||
| 75 | |||
| 76 | coerce 'OutputAudioText', | ||
| 77 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::OutputAudioText'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedOutputAudioText', | ||
| 80 | as ArrayRef[OutputAudioText()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedOutputAudioText', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::OutputAudioText'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringOutputAudioText', | ||
| 86 | as HashRef[OutputAudioText()]; | ||
| 87 | |||
| 88 | declare 'EndInteraction', | ||
| 89 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::EndInteraction']; | ||
| 90 | |||
| 91 | coerce 'EndInteraction', | ||
| 92 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::EndInteraction'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedEndInteraction', | ||
| 95 | as ArrayRef[EndInteraction()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedEndInteraction', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::EndInteraction'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringEndInteraction', | ||
| 101 | as HashRef[EndInteraction()]; | ||
| 102 | |||
| 103 | declare 'PlayAudio', | ||
| 104 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::PlayAudio']; | ||
| 105 | |||
| 106 | coerce 'PlayAudio', | ||
| 107 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::PlayAudio'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedPlayAudio', | ||
| 110 | as ArrayRef[PlayAudio()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedPlayAudio', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::PlayAudio'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringPlayAudio', | ||
| 116 | as HashRef[PlayAudio()]; | ||
| 117 | |||
| 118 | declare 'MixedAudio', | ||
| 119 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::MixedAudio']; | ||
| 120 | |||
| 121 | coerce 'MixedAudio', | ||
| 122 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::MixedAudio'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedMixedAudio', | ||
| 125 | as ArrayRef[MixedAudio()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedMixedAudio', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::MixedAudio'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringMixedAudio', | ||
| 131 | as HashRef[MixedAudio()]; | ||
| 132 | |||
| 133 | declare 'Segment', | ||
| 134 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::MixedAudio::Segment']; | ||
| 135 | |||
| 136 | coerce 'Segment', | ||
| 137 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::MixedAudio::Segment'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedSegment', | ||
| 140 | as ArrayRef[Segment()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedSegment', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::MixedAudio::Segment'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringSegment', | ||
| 146 | as HashRef[Segment()]; | ||
| 147 | |||
| 148 | declare 'TelephonyTransferCall', | ||
| 149 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::TelephonyTransferCall']; | ||
| 150 | |||
| 151 | coerce 'TelephonyTransferCall', | ||
| 152 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::TelephonyTransferCall'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedTelephonyTransferCall', | ||
| 155 | as ArrayRef[TelephonyTransferCall()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedTelephonyTransferCall', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::TelephonyTransferCall'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringTelephonyTransferCall', | ||
| 161 | as HashRef[TelephonyTransferCall()]; | ||
| 162 | |||
| 163 | declare 'KnowledgeInfoCard', | ||
| 164 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::KnowledgeInfoCard']; | ||
| 165 | |||
| 166 | coerce 'KnowledgeInfoCard', | ||
| 167 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::KnowledgeInfoCard'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedKnowledgeInfoCard', | ||
| 170 | as ArrayRef[KnowledgeInfoCard()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedKnowledgeInfoCard', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage::KnowledgeInfoCard'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringKnowledgeInfoCard', | ||
| 176 | as HashRef[KnowledgeInfoCard()]; | ||
| 177 | |||
| 178 | 1; | ||
| 179 | |||
| 180 | __END__ |