| 1 | package Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::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 'ConverseConfig', | ||
| 11 | as InstanceOf['Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseConfig']; | ||
| 12 | |||
| 13 | coerce 'ConverseConfig', | ||
| 14 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseConfig'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedConverseConfig', | ||
| 17 | as ArrayRef[ConverseConfig()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedConverseConfig', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseConfig'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringConverseConfig', | ||
| 23 | as HashRef[ConverseConfig()]; | ||
| 24 | |||
| 25 | declare 'AudioInConfig', | ||
| 26 | as InstanceOf['Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioInConfig']; | ||
| 27 | |||
| 28 | coerce 'AudioInConfig', | ||
| 29 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioInConfig'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedAudioInConfig', | ||
| 32 | as ArrayRef[AudioInConfig()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedAudioInConfig', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioInConfig'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringAudioInConfig', | ||
| 38 | as HashRef[AudioInConfig()]; | ||
| 39 | |||
| 40 | declare 'Encoding', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'AudioOutConfig', | ||
| 44 | as InstanceOf['Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioOutConfig']; | ||
| 45 | |||
| 46 | coerce 'AudioOutConfig', | ||
| 47 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioOutConfig'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedAudioOutConfig', | ||
| 50 | as ArrayRef[AudioOutConfig()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedAudioOutConfig', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioOutConfig'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringAudioOutConfig', | ||
| 56 | as HashRef[AudioOutConfig()]; | ||
| 57 | |||
| 58 | declare 'Encoding', | ||
| 59 | as (Int | Str); | ||
| 60 | |||
| 61 | declare 'ConverseState', | ||
| 62 | as InstanceOf['Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseState']; | ||
| 63 | |||
| 64 | coerce 'ConverseState', | ||
| 65 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseState'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedConverseState', | ||
| 68 | as ArrayRef[ConverseState()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedConverseState', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseState'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringConverseState', | ||
| 74 | as HashRef[ConverseState()]; | ||
| 75 | |||
| 76 | declare 'AudioOut', | ||
| 77 | as InstanceOf['Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioOut']; | ||
| 78 | |||
| 79 | coerce 'AudioOut', | ||
| 80 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioOut'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedAudioOut', | ||
| 83 | as ArrayRef[AudioOut()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedAudioOut', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioOut'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringAudioOut', | ||
| 89 | as HashRef[AudioOut()]; | ||
| 90 | |||
| 91 | declare 'ConverseResult', | ||
| 92 | as InstanceOf['Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseResult']; | ||
| 93 | |||
| 94 | coerce 'ConverseResult', | ||
| 95 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseResult'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedConverseResult', | ||
| 98 | as ArrayRef[ConverseResult()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedConverseResult', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseResult'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringConverseResult', | ||
| 104 | as HashRef[ConverseResult()]; | ||
| 105 | |||
| 106 | declare 'MicrophoneMode', | ||
| 107 | as (Int | Str); | ||
| 108 | |||
| 109 | declare 'ConverseRequest', | ||
| 110 | as InstanceOf['Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseRequest']; | ||
| 111 | |||
| 112 | coerce 'ConverseRequest', | ||
| 113 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseRequest'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedConverseRequest', | ||
| 116 | as ArrayRef[ConverseRequest()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedConverseRequest', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseRequest'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringConverseRequest', | ||
| 122 | as HashRef[ConverseRequest()]; | ||
| 123 | |||
| 124 | declare 'ConverseResponse', | ||
| 125 | as InstanceOf['Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseResponse']; | ||
| 126 | |||
| 127 | coerce 'ConverseResponse', | ||
| 128 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseResponse'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedConverseResponse', | ||
| 131 | as ArrayRef[ConverseResponse()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedConverseResponse', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseResponse'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringConverseResponse', | ||
| 137 | as HashRef[ConverseResponse()]; | ||
| 138 | |||
| 139 | declare 'EventType', | ||
| 140 | as (Int | Str); | ||
| 141 | |||
| 142 | 1; | ||
| 143 | |||
| 144 | __END__ |