| 1 | package Google::Cloud::Ces::V1::AgentCard::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 'AgentCard', | ||
| 11 | as InstanceOf['Google::Cloud::Ces::V1::AgentCard::AgentCard']; | ||
| 12 | |||
| 13 | coerce 'AgentCard', | ||
| 14 | from HashRef, via { 'Google::Cloud::Ces::V1::AgentCard::AgentCard'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedAgentCard', | ||
| 17 | as ArrayRef[AgentCard()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedAgentCard', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::AgentCard::AgentCard'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringAgentCard', | ||
| 23 | as HashRef[AgentCard()]; | ||
| 24 | |||
| 25 | declare 'AgentInterface', | ||
| 26 | as InstanceOf['Google::Cloud::Ces::V1::AgentCard::AgentInterface']; | ||
| 27 | |||
| 28 | coerce 'AgentInterface', | ||
| 29 | from HashRef, via { 'Google::Cloud::Ces::V1::AgentCard::AgentInterface'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedAgentInterface', | ||
| 32 | as ArrayRef[AgentInterface()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedAgentInterface', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::AgentCard::AgentInterface'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringAgentInterface', | ||
| 38 | as HashRef[AgentInterface()]; | ||
| 39 | |||
| 40 | declare 'AgentSkill', | ||
| 41 | as InstanceOf['Google::Cloud::Ces::V1::AgentCard::AgentSkill']; | ||
| 42 | |||
| 43 | coerce 'AgentSkill', | ||
| 44 | from HashRef, via { 'Google::Cloud::Ces::V1::AgentCard::AgentSkill'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedAgentSkill', | ||
| 47 | as ArrayRef[AgentSkill()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedAgentSkill', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::AgentCard::AgentSkill'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringAgentSkill', | ||
| 53 | as HashRef[AgentSkill()]; | ||
| 54 | |||
| 55 | declare 'RemoteAgentTool', | ||
| 56 | as InstanceOf['Google::Cloud::Ces::V1::AgentCard::RemoteAgentTool']; | ||
| 57 | |||
| 58 | coerce 'RemoteAgentTool', | ||
| 59 | from HashRef, via { 'Google::Cloud::Ces::V1::AgentCard::RemoteAgentTool'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedRemoteAgentTool', | ||
| 62 | as ArrayRef[RemoteAgentTool()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedRemoteAgentTool', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::AgentCard::RemoteAgentTool'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringRemoteAgentTool', | ||
| 68 | as HashRef[RemoteAgentTool()]; | ||
| 69 | |||
| 70 | declare 'InputVariableMappingEntry', | ||
| 71 | as InstanceOf['Google::Cloud::Ces::V1::AgentCard::RemoteAgentTool::InputVariableMappingEntry']; | ||
| 72 | |||
| 73 | coerce 'InputVariableMappingEntry', | ||
| 74 | from HashRef, via { 'Google::Cloud::Ces::V1::AgentCard::RemoteAgentTool::InputVariableMappingEntry'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedInputVariableMappingEntry', | ||
| 77 | as ArrayRef[InputVariableMappingEntry()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedInputVariableMappingEntry', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::AgentCard::RemoteAgentTool::InputVariableMappingEntry'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringInputVariableMappingEntry', | ||
| 83 | as HashRef[InputVariableMappingEntry()]; | ||
| 84 | |||
| 85 | declare 'OutputVariableMappingEntry', | ||
| 86 | as InstanceOf['Google::Cloud::Ces::V1::AgentCard::RemoteAgentTool::OutputVariableMappingEntry']; | ||
| 87 | |||
| 88 | coerce 'OutputVariableMappingEntry', | ||
| 89 | from HashRef, via { 'Google::Cloud::Ces::V1::AgentCard::RemoteAgentTool::OutputVariableMappingEntry'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedOutputVariableMappingEntry', | ||
| 92 | as ArrayRef[OutputVariableMappingEntry()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedOutputVariableMappingEntry', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::AgentCard::RemoteAgentTool::OutputVariableMappingEntry'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringOutputVariableMappingEntry', | ||
| 98 | as HashRef[OutputVariableMappingEntry()]; | ||
| 99 | |||
| 100 | 1; | ||
| 101 | |||
| 102 | __END__ |