| 1 | package Google::Cloud::Dialogflow::V2::Agent::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 'Agent', | ||
| 11 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::Agent']; | ||
| 12 | |||
| 13 | coerce 'Agent', | ||
| 14 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::Agent'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedAgent', | ||
| 17 | as ArrayRef[Agent()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedAgent', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::Agent'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringAgent', | ||
| 23 | as HashRef[Agent()]; | ||
| 24 | |||
| 25 | declare 'MatchMode', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'ApiVersion', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'Tier', | ||
| 32 | as (Int | Str); | ||
| 33 | |||
| 34 | declare 'GetAgentRequest', | ||
| 35 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::GetAgentRequest']; | ||
| 36 | |||
| 37 | coerce 'GetAgentRequest', | ||
| 38 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::GetAgentRequest'->new($_) }; | ||
| 39 | |||
| 40 | declare 'RepeatedGetAgentRequest', | ||
| 41 | as ArrayRef[GetAgentRequest()]; | ||
| 42 | |||
| 43 | coerce 'RepeatedGetAgentRequest', | ||
| 44 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::GetAgentRequest'->new($_) } @$_ ] }; | ||
| 45 | |||
| 46 | declare 'MapStringGetAgentRequest', | ||
| 47 | as HashRef[GetAgentRequest()]; | ||
| 48 | |||
| 49 | declare 'SetAgentRequest', | ||
| 50 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::SetAgentRequest']; | ||
| 51 | |||
| 52 | coerce 'SetAgentRequest', | ||
| 53 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::SetAgentRequest'->new($_) }; | ||
| 54 | |||
| 55 | declare 'RepeatedSetAgentRequest', | ||
| 56 | as ArrayRef[SetAgentRequest()]; | ||
| 57 | |||
| 58 | coerce 'RepeatedSetAgentRequest', | ||
| 59 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::SetAgentRequest'->new($_) } @$_ ] }; | ||
| 60 | |||
| 61 | declare 'MapStringSetAgentRequest', | ||
| 62 | as HashRef[SetAgentRequest()]; | ||
| 63 | |||
| 64 | declare 'DeleteAgentRequest', | ||
| 65 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::DeleteAgentRequest']; | ||
| 66 | |||
| 67 | coerce 'DeleteAgentRequest', | ||
| 68 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::DeleteAgentRequest'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedDeleteAgentRequest', | ||
| 71 | as ArrayRef[DeleteAgentRequest()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedDeleteAgentRequest', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::DeleteAgentRequest'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringDeleteAgentRequest', | ||
| 77 | as HashRef[DeleteAgentRequest()]; | ||
| 78 | |||
| 79 | declare 'SearchAgentsRequest', | ||
| 80 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::SearchAgentsRequest']; | ||
| 81 | |||
| 82 | coerce 'SearchAgentsRequest', | ||
| 83 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::SearchAgentsRequest'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedSearchAgentsRequest', | ||
| 86 | as ArrayRef[SearchAgentsRequest()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedSearchAgentsRequest', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::SearchAgentsRequest'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringSearchAgentsRequest', | ||
| 92 | as HashRef[SearchAgentsRequest()]; | ||
| 93 | |||
| 94 | declare 'SearchAgentsResponse', | ||
| 95 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::SearchAgentsResponse']; | ||
| 96 | |||
| 97 | coerce 'SearchAgentsResponse', | ||
| 98 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::SearchAgentsResponse'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedSearchAgentsResponse', | ||
| 101 | as ArrayRef[SearchAgentsResponse()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedSearchAgentsResponse', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::SearchAgentsResponse'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringSearchAgentsResponse', | ||
| 107 | as HashRef[SearchAgentsResponse()]; | ||
| 108 | |||
| 109 | declare 'TrainAgentRequest', | ||
| 110 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::TrainAgentRequest']; | ||
| 111 | |||
| 112 | coerce 'TrainAgentRequest', | ||
| 113 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::TrainAgentRequest'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedTrainAgentRequest', | ||
| 116 | as ArrayRef[TrainAgentRequest()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedTrainAgentRequest', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::TrainAgentRequest'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringTrainAgentRequest', | ||
| 122 | as HashRef[TrainAgentRequest()]; | ||
| 123 | |||
| 124 | declare 'ExportAgentRequest', | ||
| 125 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::ExportAgentRequest']; | ||
| 126 | |||
| 127 | coerce 'ExportAgentRequest', | ||
| 128 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::ExportAgentRequest'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedExportAgentRequest', | ||
| 131 | as ArrayRef[ExportAgentRequest()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedExportAgentRequest', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::ExportAgentRequest'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringExportAgentRequest', | ||
| 137 | as HashRef[ExportAgentRequest()]; | ||
| 138 | |||
| 139 | declare 'ExportAgentResponse', | ||
| 140 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::ExportAgentResponse']; | ||
| 141 | |||
| 142 | coerce 'ExportAgentResponse', | ||
| 143 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::ExportAgentResponse'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedExportAgentResponse', | ||
| 146 | as ArrayRef[ExportAgentResponse()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedExportAgentResponse', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::ExportAgentResponse'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringExportAgentResponse', | ||
| 152 | as HashRef[ExportAgentResponse()]; | ||
| 153 | |||
| 154 | declare 'ImportAgentRequest', | ||
| 155 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::ImportAgentRequest']; | ||
| 156 | |||
| 157 | coerce 'ImportAgentRequest', | ||
| 158 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::ImportAgentRequest'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedImportAgentRequest', | ||
| 161 | as ArrayRef[ImportAgentRequest()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedImportAgentRequest', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::ImportAgentRequest'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringImportAgentRequest', | ||
| 167 | as HashRef[ImportAgentRequest()]; | ||
| 168 | |||
| 169 | declare 'RestoreAgentRequest', | ||
| 170 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::RestoreAgentRequest']; | ||
| 171 | |||
| 172 | coerce 'RestoreAgentRequest', | ||
| 173 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::RestoreAgentRequest'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedRestoreAgentRequest', | ||
| 176 | as ArrayRef[RestoreAgentRequest()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedRestoreAgentRequest', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::RestoreAgentRequest'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringRestoreAgentRequest', | ||
| 182 | as HashRef[RestoreAgentRequest()]; | ||
| 183 | |||
| 184 | declare 'GetValidationResultRequest', | ||
| 185 | as InstanceOf['Google::Cloud::Dialogflow::V2::Agent::GetValidationResultRequest']; | ||
| 186 | |||
| 187 | coerce 'GetValidationResultRequest', | ||
| 188 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Agent::GetValidationResultRequest'->new($_) }; | ||
| 189 | |||
| 190 | declare 'RepeatedGetValidationResultRequest', | ||
| 191 | as ArrayRef[GetValidationResultRequest()]; | ||
| 192 | |||
| 193 | coerce 'RepeatedGetValidationResultRequest', | ||
| 194 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Agent::GetValidationResultRequest'->new($_) } @$_ ] }; | ||
| 195 | |||
| 196 | declare 'MapStringGetValidationResultRequest', | ||
| 197 | as HashRef[GetValidationResultRequest()]; | ||
| 198 | |||
| 199 | 1; | ||
| 200 | |||
| 201 | __END__ |