| 1 | package Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::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 'GetConversationRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::GetConversationRequest']; | ||
| 12 | |||
| 13 | coerce 'GetConversationRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::GetConversationRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedGetConversationRequest', | ||
| 17 | as ArrayRef[GetConversationRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedGetConversationRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::GetConversationRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringGetConversationRequest', | ||
| 23 | as HashRef[GetConversationRequest()]; | ||
| 24 | |||
| 25 | declare 'DeleteConversationRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::DeleteConversationRequest']; | ||
| 27 | |||
| 28 | coerce 'DeleteConversationRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::DeleteConversationRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedDeleteConversationRequest', | ||
| 32 | as ArrayRef[DeleteConversationRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedDeleteConversationRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::DeleteConversationRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringDeleteConversationRequest', | ||
| 38 | as HashRef[DeleteConversationRequest()]; | ||
| 39 | |||
| 40 | declare 'ListConversationsRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::ListConversationsRequest']; | ||
| 42 | |||
| 43 | coerce 'ListConversationsRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::ListConversationsRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedListConversationsRequest', | ||
| 47 | as ArrayRef[ListConversationsRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedListConversationsRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::ListConversationsRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringListConversationsRequest', | ||
| 53 | as HashRef[ListConversationsRequest()]; | ||
| 54 | |||
| 55 | declare 'ListConversationsResponse', | ||
| 56 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::ListConversationsResponse']; | ||
| 57 | |||
| 58 | coerce 'ListConversationsResponse', | ||
| 59 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::ListConversationsResponse'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedListConversationsResponse', | ||
| 62 | as ArrayRef[ListConversationsResponse()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedListConversationsResponse', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::ListConversationsResponse'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringListConversationsResponse', | ||
| 68 | as HashRef[ListConversationsResponse()]; | ||
| 69 | |||
| 70 | declare 'Conversation', | ||
| 71 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation']; | ||
| 72 | |||
| 73 | coerce 'Conversation', | ||
| 74 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedConversation', | ||
| 77 | as ArrayRef[Conversation()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedConversation', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringConversation', | ||
| 83 | as HashRef[Conversation()]; | ||
| 84 | |||
| 85 | declare 'Type', | ||
| 86 | as (Int | Str); | ||
| 87 | |||
| 88 | declare 'Metrics', | ||
| 89 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Metrics']; | ||
| 90 | |||
| 91 | coerce 'Metrics', | ||
| 92 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Metrics'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedMetrics', | ||
| 95 | as ArrayRef[Metrics()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedMetrics', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Metrics'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringMetrics', | ||
| 101 | as HashRef[Metrics()]; | ||
| 102 | |||
| 103 | declare 'QueryInputCount', | ||
| 104 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Metrics::QueryInputCount']; | ||
| 105 | |||
| 106 | coerce 'QueryInputCount', | ||
| 107 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Metrics::QueryInputCount'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedQueryInputCount', | ||
| 110 | as ArrayRef[QueryInputCount()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedQueryInputCount', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Metrics::QueryInputCount'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringQueryInputCount', | ||
| 116 | as HashRef[QueryInputCount()]; | ||
| 117 | |||
| 118 | declare 'MatchTypeCount', | ||
| 119 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Metrics::MatchTypeCount']; | ||
| 120 | |||
| 121 | coerce 'MatchTypeCount', | ||
| 122 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Metrics::MatchTypeCount'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedMatchTypeCount', | ||
| 125 | as ArrayRef[MatchTypeCount()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedMatchTypeCount', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Metrics::MatchTypeCount'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringMatchTypeCount', | ||
| 131 | as HashRef[MatchTypeCount()]; | ||
| 132 | |||
| 133 | declare 'Interaction', | ||
| 134 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Interaction']; | ||
| 135 | |||
| 136 | coerce 'Interaction', | ||
| 137 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Interaction'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedInteraction', | ||
| 140 | as ArrayRef[Interaction()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedInteraction', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Interaction'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringInteraction', | ||
| 146 | as HashRef[Interaction()]; | ||
| 147 | |||
| 148 | declare 'MissingTransition', | ||
| 149 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Interaction::MissingTransition']; | ||
| 150 | |||
| 151 | coerce 'MissingTransition', | ||
| 152 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Interaction::MissingTransition'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedMissingTransition', | ||
| 155 | as ArrayRef[MissingTransition()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedMissingTransition', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Interaction::MissingTransition'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringMissingTransition', | ||
| 161 | as HashRef[MissingTransition()]; | ||
| 162 | |||
| 163 | declare 'StepMetrics', | ||
| 164 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Interaction::StepMetrics']; | ||
| 165 | |||
| 166 | coerce 'StepMetrics', | ||
| 167 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Interaction::StepMetrics'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedStepMetrics', | ||
| 170 | as ArrayRef[StepMetrics()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedStepMetrics', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::Interaction::StepMetrics'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringStepMetrics', | ||
| 176 | as HashRef[StepMetrics()]; | ||
| 177 | |||
| 178 | declare 'FlowVersionsEntry', | ||
| 179 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::FlowVersionsEntry']; | ||
| 180 | |||
| 181 | coerce 'FlowVersionsEntry', | ||
| 182 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::FlowVersionsEntry'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedFlowVersionsEntry', | ||
| 185 | as ArrayRef[FlowVersionsEntry()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedFlowVersionsEntry', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::ConversationHistory::Conversation::FlowVersionsEntry'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringFlowVersionsEntry', | ||
| 191 | as HashRef[FlowVersionsEntry()]; | ||
| 192 | |||
| 193 | 1; | ||
| 194 | |||
| 195 | __END__ |