« Devtools/Resultstore/V2/Invocation.pm
↑ Summary
Devtools/Resultstore/V2/ResultstoreDownload/Types.pm »
| 1 | package Google::Devtools::Resultstore::V2::Invocation::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 'Invocation', | ||
| 11 | as InstanceOf['Google::Devtools::Resultstore::V2::Invocation::Invocation']; | ||
| 12 | |||
| 13 | coerce 'Invocation', | ||
| 14 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Invocation::Invocation'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedInvocation', | ||
| 17 | as ArrayRef[Invocation()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedInvocation', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Invocation::Invocation'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringInvocation', | ||
| 23 | as HashRef[Invocation()]; | ||
| 24 | |||
| 25 | declare 'Id', | ||
| 26 | as InstanceOf['Google::Devtools::Resultstore::V2::Invocation::Invocation::Id']; | ||
| 27 | |||
| 28 | coerce 'Id', | ||
| 29 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Invocation::Invocation::Id'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedId', | ||
| 32 | as ArrayRef[Id()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedId', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Invocation::Invocation::Id'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringId', | ||
| 38 | as HashRef[Id()]; | ||
| 39 | |||
| 40 | declare 'WorkspaceContext', | ||
| 41 | as InstanceOf['Google::Devtools::Resultstore::V2::Invocation::WorkspaceContext']; | ||
| 42 | |||
| 43 | coerce 'WorkspaceContext', | ||
| 44 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Invocation::WorkspaceContext'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedWorkspaceContext', | ||
| 47 | as ArrayRef[WorkspaceContext()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedWorkspaceContext', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Invocation::WorkspaceContext'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringWorkspaceContext', | ||
| 53 | as HashRef[WorkspaceContext()]; | ||
| 54 | |||
| 55 | declare 'WorkspaceInfo', | ||
| 56 | as InstanceOf['Google::Devtools::Resultstore::V2::Invocation::WorkspaceInfo']; | ||
| 57 | |||
| 58 | coerce 'WorkspaceInfo', | ||
| 59 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Invocation::WorkspaceInfo'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedWorkspaceInfo', | ||
| 62 | as ArrayRef[WorkspaceInfo()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedWorkspaceInfo', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Invocation::WorkspaceInfo'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringWorkspaceInfo', | ||
| 68 | as HashRef[WorkspaceInfo()]; | ||
| 69 | |||
| 70 | declare 'CommandLine', | ||
| 71 | as InstanceOf['Google::Devtools::Resultstore::V2::Invocation::CommandLine']; | ||
| 72 | |||
| 73 | coerce 'CommandLine', | ||
| 74 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Invocation::CommandLine'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedCommandLine', | ||
| 77 | as ArrayRef[CommandLine()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedCommandLine', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Invocation::CommandLine'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringCommandLine', | ||
| 83 | as HashRef[CommandLine()]; | ||
| 84 | |||
| 85 | declare 'InvocationAttributes', | ||
| 86 | as InstanceOf['Google::Devtools::Resultstore::V2::Invocation::InvocationAttributes']; | ||
| 87 | |||
| 88 | coerce 'InvocationAttributes', | ||
| 89 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Invocation::InvocationAttributes'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedInvocationAttributes', | ||
| 92 | as ArrayRef[InvocationAttributes()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedInvocationAttributes', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Invocation::InvocationAttributes'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringInvocationAttributes', | ||
| 98 | as HashRef[InvocationAttributes()]; | ||
| 99 | |||
| 100 | declare 'InvocationContext', | ||
| 101 | as InstanceOf['Google::Devtools::Resultstore::V2::Invocation::InvocationContext']; | ||
| 102 | |||
| 103 | coerce 'InvocationContext', | ||
| 104 | from HashRef, via { 'Google::Devtools::Resultstore::V2::Invocation::InvocationContext'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedInvocationContext', | ||
| 107 | as ArrayRef[InvocationContext()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedInvocationContext', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Invocation::InvocationContext'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringInvocationContext', | ||
| 113 | as HashRef[InvocationContext()]; | ||
| 114 | |||
| 115 | 1; | ||
| 116 | |||
| 117 | __END__ |