| 1 | package Google::Devtools::Build::V1::BuildEvents::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 'ConsoleOutputStream', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'BuildEvent', | ||
| 14 | as InstanceOf['Google::Devtools::Build::V1::BuildEvents::BuildEvent']; | ||
| 15 | |||
| 16 | coerce 'BuildEvent', | ||
| 17 | from HashRef, via { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedBuildEvent', | ||
| 20 | as ArrayRef[BuildEvent()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedBuildEvent', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringBuildEvent', | ||
| 26 | as HashRef[BuildEvent()]; | ||
| 27 | |||
| 28 | declare 'InvocationAttemptStarted', | ||
| 29 | as InstanceOf['Google::Devtools::Build::V1::BuildEvents::BuildEvent::InvocationAttemptStarted']; | ||
| 30 | |||
| 31 | coerce 'InvocationAttemptStarted', | ||
| 32 | from HashRef, via { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::InvocationAttemptStarted'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedInvocationAttemptStarted', | ||
| 35 | as ArrayRef[InvocationAttemptStarted()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedInvocationAttemptStarted', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::InvocationAttemptStarted'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringInvocationAttemptStarted', | ||
| 41 | as HashRef[InvocationAttemptStarted()]; | ||
| 42 | |||
| 43 | declare 'InvocationAttemptFinished', | ||
| 44 | as InstanceOf['Google::Devtools::Build::V1::BuildEvents::BuildEvent::InvocationAttemptFinished']; | ||
| 45 | |||
| 46 | coerce 'InvocationAttemptFinished', | ||
| 47 | from HashRef, via { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::InvocationAttemptFinished'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedInvocationAttemptFinished', | ||
| 50 | as ArrayRef[InvocationAttemptFinished()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedInvocationAttemptFinished', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::InvocationAttemptFinished'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringInvocationAttemptFinished', | ||
| 56 | as HashRef[InvocationAttemptFinished()]; | ||
| 57 | |||
| 58 | declare 'BuildEnqueued', | ||
| 59 | as InstanceOf['Google::Devtools::Build::V1::BuildEvents::BuildEvent::BuildEnqueued']; | ||
| 60 | |||
| 61 | coerce 'BuildEnqueued', | ||
| 62 | from HashRef, via { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::BuildEnqueued'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedBuildEnqueued', | ||
| 65 | as ArrayRef[BuildEnqueued()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedBuildEnqueued', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::BuildEnqueued'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringBuildEnqueued', | ||
| 71 | as HashRef[BuildEnqueued()]; | ||
| 72 | |||
| 73 | declare 'BuildFinished', | ||
| 74 | as InstanceOf['Google::Devtools::Build::V1::BuildEvents::BuildEvent::BuildFinished']; | ||
| 75 | |||
| 76 | coerce 'BuildFinished', | ||
| 77 | from HashRef, via { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::BuildFinished'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedBuildFinished', | ||
| 80 | as ArrayRef[BuildFinished()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedBuildFinished', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::BuildFinished'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringBuildFinished', | ||
| 86 | as HashRef[BuildFinished()]; | ||
| 87 | |||
| 88 | declare 'ConsoleOutput', | ||
| 89 | as InstanceOf['Google::Devtools::Build::V1::BuildEvents::BuildEvent::ConsoleOutput']; | ||
| 90 | |||
| 91 | coerce 'ConsoleOutput', | ||
| 92 | from HashRef, via { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::ConsoleOutput'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedConsoleOutput', | ||
| 95 | as ArrayRef[ConsoleOutput()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedConsoleOutput', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::ConsoleOutput'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringConsoleOutput', | ||
| 101 | as HashRef[ConsoleOutput()]; | ||
| 102 | |||
| 103 | declare 'BuildComponentStreamFinished', | ||
| 104 | as InstanceOf['Google::Devtools::Build::V1::BuildEvents::BuildEvent::BuildComponentStreamFinished']; | ||
| 105 | |||
| 106 | coerce 'BuildComponentStreamFinished', | ||
| 107 | from HashRef, via { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::BuildComponentStreamFinished'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedBuildComponentStreamFinished', | ||
| 110 | as ArrayRef[BuildComponentStreamFinished()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedBuildComponentStreamFinished', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Build::V1::BuildEvents::BuildEvent::BuildComponentStreamFinished'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringBuildComponentStreamFinished', | ||
| 116 | as HashRef[BuildComponentStreamFinished()]; | ||
| 117 | |||
| 118 | declare 'FinishType', | ||
| 119 | as (Int | Str); | ||
| 120 | |||
| 121 | declare 'StreamId', | ||
| 122 | as InstanceOf['Google::Devtools::Build::V1::BuildEvents::StreamId']; | ||
| 123 | |||
| 124 | coerce 'StreamId', | ||
| 125 | from HashRef, via { 'Google::Devtools::Build::V1::BuildEvents::StreamId'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedStreamId', | ||
| 128 | as ArrayRef[StreamId()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedStreamId', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Build::V1::BuildEvents::StreamId'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringStreamId', | ||
| 134 | as HashRef[StreamId()]; | ||
| 135 | |||
| 136 | declare 'BuildComponent', | ||
| 137 | as (Int | Str); | ||
| 138 | |||
| 139 | 1; | ||
| 140 | |||
| 141 | __END__ |