| 1 | package Google::Devtools::Resultstore::V2::Action::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 'ExecutionStrategy', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'TestCaching', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'Action', | ||
| 17 | as InstanceOf['Google::Devtools::Resultstore::V2::Action::Action']; | ||
| 18 | |||
| 19 | coerce 'Action', | ||
| 20 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Action::Action'->new($_) }; | ||
| 21 | |||
| 22 | declare 'RepeatedAction', | ||
| 23 | as ArrayRef[Action()]; | ||
| 24 | |||
| 25 | coerce 'RepeatedAction', | ||
| 26 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Action::Action'->new($_) } @$_ ] }; | ||
| 27 | |||
| 28 | declare 'MapStringAction', | ||
| 29 | as HashRef[Action()]; | ||
| 30 | |||
| 31 | declare 'Id', | ||
| 32 | as InstanceOf['Google::Devtools::Resultstore::V2::Action::Action::Id']; | ||
| 33 | |||
| 34 | coerce 'Id', | ||
| 35 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Action::Action::Id'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedId', | ||
| 38 | as ArrayRef[Id()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedId', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Action::Action::Id'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringId', | ||
| 44 | as HashRef[Id()]; | ||
| 45 | |||
| 46 | declare 'BuildAction', | ||
| 47 | as InstanceOf['Google::Devtools::Resultstore::V2::Action::BuildAction']; | ||
| 48 | |||
| 49 | coerce 'BuildAction', | ||
| 50 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Action::BuildAction'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedBuildAction', | ||
| 53 | as ArrayRef[BuildAction()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedBuildAction', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Action::BuildAction'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringBuildAction', | ||
| 59 | as HashRef[BuildAction()]; | ||
| 60 | |||
| 61 | declare 'TestAction', | ||
| 62 | as InstanceOf['Google::Devtools::Resultstore::V2::Action::TestAction']; | ||
| 63 | |||
| 64 | coerce 'TestAction', | ||
| 65 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Action::TestAction'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedTestAction', | ||
| 68 | as ArrayRef[TestAction()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedTestAction', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Action::TestAction'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringTestAction', | ||
| 74 | as HashRef[TestAction()]; | ||
| 75 | |||
| 76 | declare 'ActionAttributes', | ||
| 77 | as InstanceOf['Google::Devtools::Resultstore::V2::Action::ActionAttributes']; | ||
| 78 | |||
| 79 | coerce 'ActionAttributes', | ||
| 80 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Action::ActionAttributes'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedActionAttributes', | ||
| 83 | as ArrayRef[ActionAttributes()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedActionAttributes', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Action::ActionAttributes'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringActionAttributes', | ||
| 89 | as HashRef[ActionAttributes()]; | ||
| 90 | |||
| 91 | declare 'InputFileInfo', | ||
| 92 | as InstanceOf['Google::Devtools::Resultstore::V2::Action::InputFileInfo']; | ||
| 93 | |||
| 94 | coerce 'InputFileInfo', | ||
| 95 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Action::InputFileInfo'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedInputFileInfo', | ||
| 98 | as ArrayRef[InputFileInfo()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedInputFileInfo', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Action::InputFileInfo'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringInputFileInfo', | ||
| 104 | as HashRef[InputFileInfo()]; | ||
| 105 | |||
| 106 | declare 'LocalTestTiming', | ||
| 107 | as InstanceOf['Google::Devtools::Resultstore::V2::Action::LocalTestTiming']; | ||
| 108 | |||
| 109 | coerce 'LocalTestTiming', | ||
| 110 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Action::LocalTestTiming'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedLocalTestTiming', | ||
| 113 | as ArrayRef[LocalTestTiming()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedLocalTestTiming', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Action::LocalTestTiming'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringLocalTestTiming', | ||
| 119 | as HashRef[LocalTestTiming()]; | ||
| 120 | |||
| 121 | declare 'RemoteTestAttemptTiming', | ||
| 122 | as InstanceOf['Google::Devtools::Resultstore::V2::Action::RemoteTestAttemptTiming']; | ||
| 123 | |||
| 124 | coerce 'RemoteTestAttemptTiming', | ||
| 125 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Action::RemoteTestAttemptTiming'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedRemoteTestAttemptTiming', | ||
| 128 | as ArrayRef[RemoteTestAttemptTiming()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedRemoteTestAttemptTiming', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Action::RemoteTestAttemptTiming'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringRemoteTestAttemptTiming', | ||
| 134 | as HashRef[RemoteTestAttemptTiming()]; | ||
| 135 | |||
| 136 | declare 'RemoteTestTiming', | ||
| 137 | as InstanceOf['Google::Devtools::Resultstore::V2::Action::RemoteTestTiming']; | ||
| 138 | |||
| 139 | coerce 'RemoteTestTiming', | ||
| 140 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Action::RemoteTestTiming'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedRemoteTestTiming', | ||
| 143 | as ArrayRef[RemoteTestTiming()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedRemoteTestTiming', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Action::RemoteTestTiming'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringRemoteTestTiming', | ||
| 149 | as HashRef[RemoteTestTiming()]; | ||
| 150 | |||
| 151 | declare 'TestTiming', | ||
| 152 | as InstanceOf['Google::Devtools::Resultstore::V2::Action::TestTiming']; | ||
| 153 | |||
| 154 | coerce 'TestTiming', | ||
| 155 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Action::TestTiming'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedTestTiming', | ||
| 158 | as ArrayRef[TestTiming()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedTestTiming', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Action::TestTiming'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringTestTiming', | ||
| 164 | as HashRef[TestTiming()]; | ||
| 165 | |||
| 166 | declare 'TestWarning', | ||
| 167 | as InstanceOf['Google::Devtools::Resultstore::V2::Action::TestWarning']; | ||
| 168 | |||
| 169 | coerce 'TestWarning', | ||
| 170 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Action::TestWarning'->new($_) }; | ||
| 171 | |||
| 172 | declare 'RepeatedTestWarning', | ||
| 173 | as ArrayRef[TestWarning()]; | ||
| 174 | |||
| 175 | coerce 'RepeatedTestWarning', | ||
| 176 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Action::TestWarning'->new($_) } @$_ ] }; | ||
| 177 | |||
| 178 | declare 'MapStringTestWarning', | ||
| 179 | as HashRef[TestWarning()]; | ||
| 180 | |||
| 181 | 1; | ||
| 182 | |||
| 183 | __END__ |