| 1 | package Google::Cloud::Ces::V1::Common::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 'ExecutionType', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'Callback', | ||
| 14 | as InstanceOf['Google::Cloud::Ces::V1::Common::Callback']; | ||
| 15 | |||
| 16 | coerce 'Callback', | ||
| 17 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::Callback'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedCallback', | ||
| 20 | as ArrayRef[Callback()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedCallback', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::Callback'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringCallback', | ||
| 26 | as HashRef[Callback()]; | ||
| 27 | |||
| 28 | declare 'ModelSettings', | ||
| 29 | as InstanceOf['Google::Cloud::Ces::V1::Common::ModelSettings']; | ||
| 30 | |||
| 31 | coerce 'ModelSettings', | ||
| 32 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::ModelSettings'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedModelSettings', | ||
| 35 | as ArrayRef[ModelSettings()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedModelSettings', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::ModelSettings'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringModelSettings', | ||
| 41 | as HashRef[ModelSettings()]; | ||
| 42 | |||
| 43 | declare 'TriggerAction', | ||
| 44 | as InstanceOf['Google::Cloud::Ces::V1::Common::TriggerAction']; | ||
| 45 | |||
| 46 | coerce 'TriggerAction', | ||
| 47 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::TriggerAction'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedTriggerAction', | ||
| 50 | as ArrayRef[TriggerAction()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedTriggerAction', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::TriggerAction'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringTriggerAction', | ||
| 56 | as HashRef[TriggerAction()]; | ||
| 57 | |||
| 58 | declare 'Response', | ||
| 59 | as InstanceOf['Google::Cloud::Ces::V1::Common::TriggerAction::Response']; | ||
| 60 | |||
| 61 | coerce 'Response', | ||
| 62 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::TriggerAction::Response'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedResponse', | ||
| 65 | as ArrayRef[Response()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedResponse', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::TriggerAction::Response'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringResponse', | ||
| 71 | as HashRef[Response()]; | ||
| 72 | |||
| 73 | declare 'RespondImmediately', | ||
| 74 | as InstanceOf['Google::Cloud::Ces::V1::Common::TriggerAction::RespondImmediately']; | ||
| 75 | |||
| 76 | coerce 'RespondImmediately', | ||
| 77 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::TriggerAction::RespondImmediately'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedRespondImmediately', | ||
| 80 | as ArrayRef[RespondImmediately()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedRespondImmediately', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::TriggerAction::RespondImmediately'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringRespondImmediately', | ||
| 86 | as HashRef[RespondImmediately()]; | ||
| 87 | |||
| 88 | declare 'GenerativeAnswer', | ||
| 89 | as InstanceOf['Google::Cloud::Ces::V1::Common::TriggerAction::GenerativeAnswer']; | ||
| 90 | |||
| 91 | coerce 'GenerativeAnswer', | ||
| 92 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::TriggerAction::GenerativeAnswer'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedGenerativeAnswer', | ||
| 95 | as ArrayRef[GenerativeAnswer()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedGenerativeAnswer', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::TriggerAction::GenerativeAnswer'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringGenerativeAnswer', | ||
| 101 | as HashRef[GenerativeAnswer()]; | ||
| 102 | |||
| 103 | declare 'TransferAgent', | ||
| 104 | as InstanceOf['Google::Cloud::Ces::V1::Common::TriggerAction::TransferAgent']; | ||
| 105 | |||
| 106 | coerce 'TransferAgent', | ||
| 107 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::TriggerAction::TransferAgent'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedTransferAgent', | ||
| 110 | as ArrayRef[TransferAgent()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedTransferAgent', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::TriggerAction::TransferAgent'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringTransferAgent', | ||
| 116 | as HashRef[TransferAgent()]; | ||
| 117 | |||
| 118 | declare 'TlsConfig', | ||
| 119 | as InstanceOf['Google::Cloud::Ces::V1::Common::TlsConfig']; | ||
| 120 | |||
| 121 | coerce 'TlsConfig', | ||
| 122 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::TlsConfig'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedTlsConfig', | ||
| 125 | as ArrayRef[TlsConfig()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedTlsConfig', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::TlsConfig'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringTlsConfig', | ||
| 131 | as HashRef[TlsConfig()]; | ||
| 132 | |||
| 133 | declare 'CaCert', | ||
| 134 | as InstanceOf['Google::Cloud::Ces::V1::Common::TlsConfig::CaCert']; | ||
| 135 | |||
| 136 | coerce 'CaCert', | ||
| 137 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::TlsConfig::CaCert'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedCaCert', | ||
| 140 | as ArrayRef[CaCert()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedCaCert', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::TlsConfig::CaCert'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringCaCert', | ||
| 146 | as HashRef[CaCert()]; | ||
| 147 | |||
| 148 | declare 'ServiceDirectoryConfig', | ||
| 149 | as InstanceOf['Google::Cloud::Ces::V1::Common::ServiceDirectoryConfig']; | ||
| 150 | |||
| 151 | coerce 'ServiceDirectoryConfig', | ||
| 152 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::ServiceDirectoryConfig'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedServiceDirectoryConfig', | ||
| 155 | as ArrayRef[ServiceDirectoryConfig()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedServiceDirectoryConfig', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::ServiceDirectoryConfig'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringServiceDirectoryConfig', | ||
| 161 | as HashRef[ServiceDirectoryConfig()]; | ||
| 162 | |||
| 163 | declare 'ChannelProfile', | ||
| 164 | as InstanceOf['Google::Cloud::Ces::V1::Common::ChannelProfile']; | ||
| 165 | |||
| 166 | coerce 'ChannelProfile', | ||
| 167 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::ChannelProfile'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedChannelProfile', | ||
| 170 | as ArrayRef[ChannelProfile()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedChannelProfile', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::ChannelProfile'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringChannelProfile', | ||
| 176 | as HashRef[ChannelProfile()]; | ||
| 177 | |||
| 178 | declare 'ChannelType', | ||
| 179 | as (Int | Str); | ||
| 180 | |||
| 181 | declare 'PersonaProperty', | ||
| 182 | as InstanceOf['Google::Cloud::Ces::V1::Common::ChannelProfile::PersonaProperty']; | ||
| 183 | |||
| 184 | coerce 'PersonaProperty', | ||
| 185 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::ChannelProfile::PersonaProperty'->new($_) }; | ||
| 186 | |||
| 187 | declare 'RepeatedPersonaProperty', | ||
| 188 | as ArrayRef[PersonaProperty()]; | ||
| 189 | |||
| 190 | coerce 'RepeatedPersonaProperty', | ||
| 191 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::ChannelProfile::PersonaProperty'->new($_) } @$_ ] }; | ||
| 192 | |||
| 193 | declare 'MapStringPersonaProperty', | ||
| 194 | as HashRef[PersonaProperty()]; | ||
| 195 | |||
| 196 | declare 'Persona', | ||
| 197 | as (Int | Str); | ||
| 198 | |||
| 199 | declare 'WebWidgetConfig', | ||
| 200 | as InstanceOf['Google::Cloud::Ces::V1::Common::ChannelProfile::WebWidgetConfig']; | ||
| 201 | |||
| 202 | coerce 'WebWidgetConfig', | ||
| 203 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::ChannelProfile::WebWidgetConfig'->new($_) }; | ||
| 204 | |||
| 205 | declare 'RepeatedWebWidgetConfig', | ||
| 206 | as ArrayRef[WebWidgetConfig()]; | ||
| 207 | |||
| 208 | coerce 'RepeatedWebWidgetConfig', | ||
| 209 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::ChannelProfile::WebWidgetConfig'->new($_) } @$_ ] }; | ||
| 210 | |||
| 211 | declare 'MapStringWebWidgetConfig', | ||
| 212 | as HashRef[WebWidgetConfig()]; | ||
| 213 | |||
| 214 | declare 'Modality', | ||
| 215 | as (Int | Str); | ||
| 216 | |||
| 217 | declare 'Theme', | ||
| 218 | as (Int | Str); | ||
| 219 | |||
| 220 | declare 'SecuritySettings', | ||
| 221 | as InstanceOf['Google::Cloud::Ces::V1::Common::ChannelProfile::WebWidgetConfig::SecuritySettings']; | ||
| 222 | |||
| 223 | coerce 'SecuritySettings', | ||
| 224 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::ChannelProfile::WebWidgetConfig::SecuritySettings'->new($_) }; | ||
| 225 | |||
| 226 | declare 'RepeatedSecuritySettings', | ||
| 227 | as ArrayRef[SecuritySettings()]; | ||
| 228 | |||
| 229 | coerce 'RepeatedSecuritySettings', | ||
| 230 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::ChannelProfile::WebWidgetConfig::SecuritySettings'->new($_) } @$_ ] }; | ||
| 231 | |||
| 232 | declare 'MapStringSecuritySettings', | ||
| 233 | as HashRef[SecuritySettings()]; | ||
| 234 | |||
| 235 | declare 'WhatsAppConfig', | ||
| 236 | as InstanceOf['Google::Cloud::Ces::V1::Common::ChannelProfile::WhatsAppConfig']; | ||
| 237 | |||
| 238 | coerce 'WhatsAppConfig', | ||
| 239 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::ChannelProfile::WhatsAppConfig'->new($_) }; | ||
| 240 | |||
| 241 | declare 'RepeatedWhatsAppConfig', | ||
| 242 | as ArrayRef[WhatsAppConfig()]; | ||
| 243 | |||
| 244 | coerce 'RepeatedWhatsAppConfig', | ||
| 245 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::ChannelProfile::WhatsAppConfig'->new($_) } @$_ ] }; | ||
| 246 | |||
| 247 | declare 'MapStringWhatsAppConfig', | ||
| 248 | as HashRef[WhatsAppConfig()]; | ||
| 249 | |||
| 250 | declare 'InstagramConfig', | ||
| 251 | as InstanceOf['Google::Cloud::Ces::V1::Common::ChannelProfile::InstagramConfig']; | ||
| 252 | |||
| 253 | coerce 'InstagramConfig', | ||
| 254 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::ChannelProfile::InstagramConfig'->new($_) }; | ||
| 255 | |||
| 256 | declare 'RepeatedInstagramConfig', | ||
| 257 | as ArrayRef[InstagramConfig()]; | ||
| 258 | |||
| 259 | coerce 'RepeatedInstagramConfig', | ||
| 260 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::ChannelProfile::InstagramConfig'->new($_) } @$_ ] }; | ||
| 261 | |||
| 262 | declare 'MapStringInstagramConfig', | ||
| 263 | as HashRef[InstagramConfig()]; | ||
| 264 | |||
| 265 | declare 'Span', | ||
| 266 | as InstanceOf['Google::Cloud::Ces::V1::Common::Span']; | ||
| 267 | |||
| 268 | coerce 'Span', | ||
| 269 | from HashRef, via { 'Google::Cloud::Ces::V1::Common::Span'->new($_) }; | ||
| 270 | |||
| 271 | declare 'RepeatedSpan', | ||
| 272 | as ArrayRef[Span()]; | ||
| 273 | |||
| 274 | coerce 'RepeatedSpan', | ||
| 275 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Common::Span'->new($_) } @$_ ] }; | ||
| 276 | |||
| 277 | declare 'MapStringSpan', | ||
| 278 | as HashRef[Span()]; | ||
| 279 | |||
| 280 | 1; | ||
| 281 | |||
| 282 | __END__ |