| 1 | package Google::Cloud::Dialogflow::V2::Environment::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 'Environment', | ||
| 11 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::Environment']; | ||
| 12 | |||
| 13 | coerce 'Environment', | ||
| 14 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::Environment'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedEnvironment', | ||
| 17 | as ArrayRef[Environment()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedEnvironment', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::Environment'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringEnvironment', | ||
| 23 | as HashRef[Environment()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'TextToSpeechSettings', | ||
| 29 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::TextToSpeechSettings']; | ||
| 30 | |||
| 31 | coerce 'TextToSpeechSettings', | ||
| 32 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::TextToSpeechSettings'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedTextToSpeechSettings', | ||
| 35 | as ArrayRef[TextToSpeechSettings()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedTextToSpeechSettings', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::TextToSpeechSettings'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringTextToSpeechSettings', | ||
| 41 | as HashRef[TextToSpeechSettings()]; | ||
| 42 | |||
| 43 | declare 'SynthesizeSpeechConfigsEntry', | ||
| 44 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::TextToSpeechSettings::SynthesizeSpeechConfigsEntry']; | ||
| 45 | |||
| 46 | coerce 'SynthesizeSpeechConfigsEntry', | ||
| 47 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::TextToSpeechSettings::SynthesizeSpeechConfigsEntry'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedSynthesizeSpeechConfigsEntry', | ||
| 50 | as ArrayRef[SynthesizeSpeechConfigsEntry()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedSynthesizeSpeechConfigsEntry', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::TextToSpeechSettings::SynthesizeSpeechConfigsEntry'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringSynthesizeSpeechConfigsEntry', | ||
| 56 | as HashRef[SynthesizeSpeechConfigsEntry()]; | ||
| 57 | |||
| 58 | declare 'ListEnvironmentsRequest', | ||
| 59 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::ListEnvironmentsRequest']; | ||
| 60 | |||
| 61 | coerce 'ListEnvironmentsRequest', | ||
| 62 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::ListEnvironmentsRequest'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedListEnvironmentsRequest', | ||
| 65 | as ArrayRef[ListEnvironmentsRequest()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedListEnvironmentsRequest', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::ListEnvironmentsRequest'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringListEnvironmentsRequest', | ||
| 71 | as HashRef[ListEnvironmentsRequest()]; | ||
| 72 | |||
| 73 | declare 'ListEnvironmentsResponse', | ||
| 74 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::ListEnvironmentsResponse']; | ||
| 75 | |||
| 76 | coerce 'ListEnvironmentsResponse', | ||
| 77 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::ListEnvironmentsResponse'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedListEnvironmentsResponse', | ||
| 80 | as ArrayRef[ListEnvironmentsResponse()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedListEnvironmentsResponse', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::ListEnvironmentsResponse'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringListEnvironmentsResponse', | ||
| 86 | as HashRef[ListEnvironmentsResponse()]; | ||
| 87 | |||
| 88 | declare 'GetEnvironmentRequest', | ||
| 89 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::GetEnvironmentRequest']; | ||
| 90 | |||
| 91 | coerce 'GetEnvironmentRequest', | ||
| 92 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::GetEnvironmentRequest'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedGetEnvironmentRequest', | ||
| 95 | as ArrayRef[GetEnvironmentRequest()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedGetEnvironmentRequest', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::GetEnvironmentRequest'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringGetEnvironmentRequest', | ||
| 101 | as HashRef[GetEnvironmentRequest()]; | ||
| 102 | |||
| 103 | declare 'CreateEnvironmentRequest', | ||
| 104 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::CreateEnvironmentRequest']; | ||
| 105 | |||
| 106 | coerce 'CreateEnvironmentRequest', | ||
| 107 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::CreateEnvironmentRequest'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedCreateEnvironmentRequest', | ||
| 110 | as ArrayRef[CreateEnvironmentRequest()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedCreateEnvironmentRequest', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::CreateEnvironmentRequest'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringCreateEnvironmentRequest', | ||
| 116 | as HashRef[CreateEnvironmentRequest()]; | ||
| 117 | |||
| 118 | declare 'UpdateEnvironmentRequest', | ||
| 119 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::UpdateEnvironmentRequest']; | ||
| 120 | |||
| 121 | coerce 'UpdateEnvironmentRequest', | ||
| 122 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::UpdateEnvironmentRequest'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedUpdateEnvironmentRequest', | ||
| 125 | as ArrayRef[UpdateEnvironmentRequest()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedUpdateEnvironmentRequest', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::UpdateEnvironmentRequest'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringUpdateEnvironmentRequest', | ||
| 131 | as HashRef[UpdateEnvironmentRequest()]; | ||
| 132 | |||
| 133 | declare 'DeleteEnvironmentRequest', | ||
| 134 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::DeleteEnvironmentRequest']; | ||
| 135 | |||
| 136 | coerce 'DeleteEnvironmentRequest', | ||
| 137 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::DeleteEnvironmentRequest'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedDeleteEnvironmentRequest', | ||
| 140 | as ArrayRef[DeleteEnvironmentRequest()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedDeleteEnvironmentRequest', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::DeleteEnvironmentRequest'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringDeleteEnvironmentRequest', | ||
| 146 | as HashRef[DeleteEnvironmentRequest()]; | ||
| 147 | |||
| 148 | declare 'GetEnvironmentHistoryRequest', | ||
| 149 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::GetEnvironmentHistoryRequest']; | ||
| 150 | |||
| 151 | coerce 'GetEnvironmentHistoryRequest', | ||
| 152 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::GetEnvironmentHistoryRequest'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedGetEnvironmentHistoryRequest', | ||
| 155 | as ArrayRef[GetEnvironmentHistoryRequest()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedGetEnvironmentHistoryRequest', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::GetEnvironmentHistoryRequest'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringGetEnvironmentHistoryRequest', | ||
| 161 | as HashRef[GetEnvironmentHistoryRequest()]; | ||
| 162 | |||
| 163 | declare 'EnvironmentHistory', | ||
| 164 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::EnvironmentHistory']; | ||
| 165 | |||
| 166 | coerce 'EnvironmentHistory', | ||
| 167 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::EnvironmentHistory'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedEnvironmentHistory', | ||
| 170 | as ArrayRef[EnvironmentHistory()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedEnvironmentHistory', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::EnvironmentHistory'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringEnvironmentHistory', | ||
| 176 | as HashRef[EnvironmentHistory()]; | ||
| 177 | |||
| 178 | declare 'Entry', | ||
| 179 | as InstanceOf['Google::Cloud::Dialogflow::V2::Environment::EnvironmentHistory::Entry']; | ||
| 180 | |||
| 181 | coerce 'Entry', | ||
| 182 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Environment::EnvironmentHistory::Entry'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedEntry', | ||
| 185 | as ArrayRef[Entry()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedEntry', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Environment::EnvironmentHistory::Entry'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringEntry', | ||
| 191 | as HashRef[Entry()]; | ||
| 192 | |||
| 193 | 1; | ||
| 194 | |||
| 195 | __END__ |