| 1 | package Google::Cloud::Dialogflow::V2beta1::CompanionAgent::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 'CreateCompanionAgentRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CreateCompanionAgentRequest']; | ||
| 12 | |||
| 13 | coerce 'CreateCompanionAgentRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CreateCompanionAgentRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedCreateCompanionAgentRequest', | ||
| 17 | as ArrayRef[CreateCompanionAgentRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedCreateCompanionAgentRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CreateCompanionAgentRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringCreateCompanionAgentRequest', | ||
| 23 | as HashRef[CreateCompanionAgentRequest()]; | ||
| 24 | |||
| 25 | declare 'GetCompanionAgentRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::GetCompanionAgentRequest']; | ||
| 27 | |||
| 28 | coerce 'GetCompanionAgentRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::GetCompanionAgentRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedGetCompanionAgentRequest', | ||
| 32 | as ArrayRef[GetCompanionAgentRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedGetCompanionAgentRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::GetCompanionAgentRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringGetCompanionAgentRequest', | ||
| 38 | as HashRef[GetCompanionAgentRequest()]; | ||
| 39 | |||
| 40 | declare 'ListCompanionAgentsRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::ListCompanionAgentsRequest']; | ||
| 42 | |||
| 43 | coerce 'ListCompanionAgentsRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::ListCompanionAgentsRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedListCompanionAgentsRequest', | ||
| 47 | as ArrayRef[ListCompanionAgentsRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedListCompanionAgentsRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::ListCompanionAgentsRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringListCompanionAgentsRequest', | ||
| 53 | as HashRef[ListCompanionAgentsRequest()]; | ||
| 54 | |||
| 55 | declare 'ListCompanionAgentsResponse', | ||
| 56 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::ListCompanionAgentsResponse']; | ||
| 57 | |||
| 58 | coerce 'ListCompanionAgentsResponse', | ||
| 59 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::ListCompanionAgentsResponse'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedListCompanionAgentsResponse', | ||
| 62 | as ArrayRef[ListCompanionAgentsResponse()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedListCompanionAgentsResponse', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::ListCompanionAgentsResponse'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringListCompanionAgentsResponse', | ||
| 68 | as HashRef[ListCompanionAgentsResponse()]; | ||
| 69 | |||
| 70 | declare 'UpdateCompanionAgentRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::UpdateCompanionAgentRequest']; | ||
| 72 | |||
| 73 | coerce 'UpdateCompanionAgentRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::UpdateCompanionAgentRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedUpdateCompanionAgentRequest', | ||
| 77 | as ArrayRef[UpdateCompanionAgentRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedUpdateCompanionAgentRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::UpdateCompanionAgentRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringUpdateCompanionAgentRequest', | ||
| 83 | as HashRef[UpdateCompanionAgentRequest()]; | ||
| 84 | |||
| 85 | declare 'DeleteCompanionAgentRequest', | ||
| 86 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::DeleteCompanionAgentRequest']; | ||
| 87 | |||
| 88 | coerce 'DeleteCompanionAgentRequest', | ||
| 89 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::DeleteCompanionAgentRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedDeleteCompanionAgentRequest', | ||
| 92 | as ArrayRef[DeleteCompanionAgentRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedDeleteCompanionAgentRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::DeleteCompanionAgentRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringDeleteCompanionAgentRequest', | ||
| 98 | as HashRef[DeleteCompanionAgentRequest()]; | ||
| 99 | |||
| 100 | declare 'GuidanceInstruction', | ||
| 101 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::GuidanceInstruction']; | ||
| 102 | |||
| 103 | coerce 'GuidanceInstruction', | ||
| 104 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::GuidanceInstruction'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedGuidanceInstruction', | ||
| 107 | as ArrayRef[GuidanceInstruction()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedGuidanceInstruction', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::GuidanceInstruction'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringGuidanceInstruction', | ||
| 113 | as HashRef[GuidanceInstruction()]; | ||
| 114 | |||
| 115 | declare 'Action', | ||
| 116 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::GuidanceInstruction::Action']; | ||
| 117 | |||
| 118 | coerce 'Action', | ||
| 119 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::GuidanceInstruction::Action'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedAction', | ||
| 122 | as ArrayRef[Action()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedAction', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::GuidanceInstruction::Action'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringAction', | ||
| 128 | as HashRef[Action()]; | ||
| 129 | |||
| 130 | declare 'CompanionAgent', | ||
| 131 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent']; | ||
| 132 | |||
| 133 | coerce 'CompanionAgent', | ||
| 134 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedCompanionAgent', | ||
| 137 | as ArrayRef[CompanionAgent()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedCompanionAgent', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringCompanionAgent', | ||
| 143 | as HashRef[CompanionAgent()]; | ||
| 144 | |||
| 145 | declare 'TriggerEvent', | ||
| 146 | as (Int | Str); | ||
| 147 | |||
| 148 | declare 'SkillConfig', | ||
| 149 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent::SkillConfig']; | ||
| 150 | |||
| 151 | coerce 'SkillConfig', | ||
| 152 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent::SkillConfig'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedSkillConfig', | ||
| 155 | as ArrayRef[SkillConfig()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedSkillConfig', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent::SkillConfig'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringSkillConfig', | ||
| 161 | as HashRef[SkillConfig()]; | ||
| 162 | |||
| 163 | declare 'SkillTriggerEvent', | ||
| 164 | as (Int | Str); | ||
| 165 | |||
| 166 | declare 'GuidanceSkillConfig', | ||
| 167 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent::GuidanceSkillConfig']; | ||
| 168 | |||
| 169 | coerce 'GuidanceSkillConfig', | ||
| 170 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent::GuidanceSkillConfig'->new($_) }; | ||
| 171 | |||
| 172 | declare 'RepeatedGuidanceSkillConfig', | ||
| 173 | as ArrayRef[GuidanceSkillConfig()]; | ||
| 174 | |||
| 175 | coerce 'RepeatedGuidanceSkillConfig', | ||
| 176 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent::GuidanceSkillConfig'->new($_) } @$_ ] }; | ||
| 177 | |||
| 178 | declare 'MapStringGuidanceSkillConfig', | ||
| 179 | as HashRef[GuidanceSkillConfig()]; | ||
| 180 | |||
| 181 | declare 'KnowledgeSource', | ||
| 182 | as InstanceOf['Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent::KnowledgeSource']; | ||
| 183 | |||
| 184 | coerce 'KnowledgeSource', | ||
| 185 | from HashRef, via { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent::KnowledgeSource'->new($_) }; | ||
| 186 | |||
| 187 | declare 'RepeatedKnowledgeSource', | ||
| 188 | as ArrayRef[KnowledgeSource()]; | ||
| 189 | |||
| 190 | coerce 'RepeatedKnowledgeSource', | ||
| 191 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2beta1::CompanionAgent::CompanionAgent::KnowledgeSource'->new($_) } @$_ ] }; | ||
| 192 | |||
| 193 | declare 'MapStringKnowledgeSource', | ||
| 194 | as HashRef[KnowledgeSource()]; | ||
| 195 | |||
| 196 | 1; | ||
| 197 | |||
| 198 | __END__ |