| 1 | package Google::Cloud::Devicestreaming::V1::Service::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 'CreateDeviceSessionRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Devicestreaming::V1::Service::CreateDeviceSessionRequest']; | ||
| 12 | |||
| 13 | coerce 'CreateDeviceSessionRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Devicestreaming::V1::Service::CreateDeviceSessionRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedCreateDeviceSessionRequest', | ||
| 17 | as ArrayRef[CreateDeviceSessionRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedCreateDeviceSessionRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Devicestreaming::V1::Service::CreateDeviceSessionRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringCreateDeviceSessionRequest', | ||
| 23 | as HashRef[CreateDeviceSessionRequest()]; | ||
| 24 | |||
| 25 | declare 'ListDeviceSessionsRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Devicestreaming::V1::Service::ListDeviceSessionsRequest']; | ||
| 27 | |||
| 28 | coerce 'ListDeviceSessionsRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Devicestreaming::V1::Service::ListDeviceSessionsRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedListDeviceSessionsRequest', | ||
| 32 | as ArrayRef[ListDeviceSessionsRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedListDeviceSessionsRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Devicestreaming::V1::Service::ListDeviceSessionsRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringListDeviceSessionsRequest', | ||
| 38 | as HashRef[ListDeviceSessionsRequest()]; | ||
| 39 | |||
| 40 | declare 'ListDeviceSessionsResponse', | ||
| 41 | as InstanceOf['Google::Cloud::Devicestreaming::V1::Service::ListDeviceSessionsResponse']; | ||
| 42 | |||
| 43 | coerce 'ListDeviceSessionsResponse', | ||
| 44 | from HashRef, via { 'Google::Cloud::Devicestreaming::V1::Service::ListDeviceSessionsResponse'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedListDeviceSessionsResponse', | ||
| 47 | as ArrayRef[ListDeviceSessionsResponse()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedListDeviceSessionsResponse', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Devicestreaming::V1::Service::ListDeviceSessionsResponse'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringListDeviceSessionsResponse', | ||
| 53 | as HashRef[ListDeviceSessionsResponse()]; | ||
| 54 | |||
| 55 | declare 'GetDeviceSessionRequest', | ||
| 56 | as InstanceOf['Google::Cloud::Devicestreaming::V1::Service::GetDeviceSessionRequest']; | ||
| 57 | |||
| 58 | coerce 'GetDeviceSessionRequest', | ||
| 59 | from HashRef, via { 'Google::Cloud::Devicestreaming::V1::Service::GetDeviceSessionRequest'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedGetDeviceSessionRequest', | ||
| 62 | as ArrayRef[GetDeviceSessionRequest()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedGetDeviceSessionRequest', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Devicestreaming::V1::Service::GetDeviceSessionRequest'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringGetDeviceSessionRequest', | ||
| 68 | as HashRef[GetDeviceSessionRequest()]; | ||
| 69 | |||
| 70 | declare 'CancelDeviceSessionRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Devicestreaming::V1::Service::CancelDeviceSessionRequest']; | ||
| 72 | |||
| 73 | coerce 'CancelDeviceSessionRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Devicestreaming::V1::Service::CancelDeviceSessionRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedCancelDeviceSessionRequest', | ||
| 77 | as ArrayRef[CancelDeviceSessionRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedCancelDeviceSessionRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Devicestreaming::V1::Service::CancelDeviceSessionRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringCancelDeviceSessionRequest', | ||
| 83 | as HashRef[CancelDeviceSessionRequest()]; | ||
| 84 | |||
| 85 | declare 'UpdateDeviceSessionRequest', | ||
| 86 | as InstanceOf['Google::Cloud::Devicestreaming::V1::Service::UpdateDeviceSessionRequest']; | ||
| 87 | |||
| 88 | coerce 'UpdateDeviceSessionRequest', | ||
| 89 | from HashRef, via { 'Google::Cloud::Devicestreaming::V1::Service::UpdateDeviceSessionRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedUpdateDeviceSessionRequest', | ||
| 92 | as ArrayRef[UpdateDeviceSessionRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedUpdateDeviceSessionRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Devicestreaming::V1::Service::UpdateDeviceSessionRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringUpdateDeviceSessionRequest', | ||
| 98 | as HashRef[UpdateDeviceSessionRequest()]; | ||
| 99 | |||
| 100 | declare 'DeviceSession', | ||
| 101 | as InstanceOf['Google::Cloud::Devicestreaming::V1::Service::DeviceSession']; | ||
| 102 | |||
| 103 | coerce 'DeviceSession', | ||
| 104 | from HashRef, via { 'Google::Cloud::Devicestreaming::V1::Service::DeviceSession'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedDeviceSession', | ||
| 107 | as ArrayRef[DeviceSession()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedDeviceSession', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Devicestreaming::V1::Service::DeviceSession'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringDeviceSession', | ||
| 113 | as HashRef[DeviceSession()]; | ||
| 114 | |||
| 115 | declare 'SessionState', | ||
| 116 | as (Int | Str); | ||
| 117 | |||
| 118 | declare 'SessionStateEvent', | ||
| 119 | as InstanceOf['Google::Cloud::Devicestreaming::V1::Service::DeviceSession::SessionStateEvent']; | ||
| 120 | |||
| 121 | coerce 'SessionStateEvent', | ||
| 122 | from HashRef, via { 'Google::Cloud::Devicestreaming::V1::Service::DeviceSession::SessionStateEvent'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedSessionStateEvent', | ||
| 125 | as ArrayRef[SessionStateEvent()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedSessionStateEvent', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Devicestreaming::V1::Service::DeviceSession::SessionStateEvent'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringSessionStateEvent', | ||
| 131 | as HashRef[SessionStateEvent()]; | ||
| 132 | |||
| 133 | declare 'ClientInfo', | ||
| 134 | as InstanceOf['Google::Cloud::Devicestreaming::V1::Service::ClientInfo']; | ||
| 135 | |||
| 136 | coerce 'ClientInfo', | ||
| 137 | from HashRef, via { 'Google::Cloud::Devicestreaming::V1::Service::ClientInfo'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedClientInfo', | ||
| 140 | as ArrayRef[ClientInfo()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedClientInfo', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Devicestreaming::V1::Service::ClientInfo'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringClientInfo', | ||
| 146 | as HashRef[ClientInfo()]; | ||
| 147 | |||
| 148 | declare 'AndroidDevice', | ||
| 149 | as InstanceOf['Google::Cloud::Devicestreaming::V1::Service::AndroidDevice']; | ||
| 150 | |||
| 151 | coerce 'AndroidDevice', | ||
| 152 | from HashRef, via { 'Google::Cloud::Devicestreaming::V1::Service::AndroidDevice'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedAndroidDevice', | ||
| 155 | as ArrayRef[AndroidDevice()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedAndroidDevice', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Devicestreaming::V1::Service::AndroidDevice'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringAndroidDevice', | ||
| 161 | as HashRef[AndroidDevice()]; | ||
| 162 | |||
| 163 | 1; | ||
| 164 | |||
| 165 | __END__ |