1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-20 10:40:28 +08:00

TUN-528: Move cloudflared into a separate repo

This commit is contained in:
Areg Harutyunyan
2018-05-01 18:45:06 -05:00
parent e8c621a648
commit d06fc520c7
4726 changed files with 1763680 additions and 0 deletions

View File

@@ -0,0 +1,993 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/build/v1/build_events.proto
package build // import "google.golang.org/genproto/googleapis/devtools/build/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import any "github.com/golang/protobuf/ptypes/any"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import wrappers "github.com/golang/protobuf/ptypes/wrappers"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import _ "google.golang.org/genproto/googleapis/rpc/status"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The type of console output stream.
type ConsoleOutputStream int32
const (
// Unspecified or unknown.
ConsoleOutputStream_UNKNOWN ConsoleOutputStream = 0
// Normal output stream.
ConsoleOutputStream_STDOUT ConsoleOutputStream = 1
// Error output stream.
ConsoleOutputStream_STDERR ConsoleOutputStream = 2
)
var ConsoleOutputStream_name = map[int32]string{
0: "UNKNOWN",
1: "STDOUT",
2: "STDERR",
}
var ConsoleOutputStream_value = map[string]int32{
"UNKNOWN": 0,
"STDOUT": 1,
"STDERR": 2,
}
func (x ConsoleOutputStream) String() string {
return proto.EnumName(ConsoleOutputStream_name, int32(x))
}
func (ConsoleOutputStream) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_build_events_cc132f62a908b693, []int{0}
}
// How did the event stream finish.
type BuildEvent_BuildComponentStreamFinished_FinishType int32
const (
// Unknown or unspecified; callers should never set this value.
BuildEvent_BuildComponentStreamFinished_FINISH_TYPE_UNSPECIFIED BuildEvent_BuildComponentStreamFinished_FinishType = 0
// Set by the event publisher to indicate a build event stream is
// finished.
BuildEvent_BuildComponentStreamFinished_FINISHED BuildEvent_BuildComponentStreamFinished_FinishType = 1
// Set by the WatchBuild RPC server when the publisher of a build event
// stream stops publishing events without publishing a
// BuildComponentStreamFinished event whose type equals FINISHED.
BuildEvent_BuildComponentStreamFinished_EXPIRED BuildEvent_BuildComponentStreamFinished_FinishType = 2
)
var BuildEvent_BuildComponentStreamFinished_FinishType_name = map[int32]string{
0: "FINISH_TYPE_UNSPECIFIED",
1: "FINISHED",
2: "EXPIRED",
}
var BuildEvent_BuildComponentStreamFinished_FinishType_value = map[string]int32{
"FINISH_TYPE_UNSPECIFIED": 0,
"FINISHED": 1,
"EXPIRED": 2,
}
func (x BuildEvent_BuildComponentStreamFinished_FinishType) String() string {
return proto.EnumName(BuildEvent_BuildComponentStreamFinished_FinishType_name, int32(x))
}
func (BuildEvent_BuildComponentStreamFinished_FinishType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_build_events_cc132f62a908b693, []int{0, 5, 0}
}
// Which build component generates this event stream. Each build component
// may generate one event stream.
type StreamId_BuildComponent int32
const (
// Unknown or unspecified; callers should never set this value.
StreamId_UNKNOWN_COMPONENT StreamId_BuildComponent = 0
// A component that coordinates builds.
StreamId_CONTROLLER StreamId_BuildComponent = 1
// A component that runs executables needed to complete a build.
StreamId_WORKER StreamId_BuildComponent = 2
// A component that builds something.
StreamId_TOOL StreamId_BuildComponent = 3
)
var StreamId_BuildComponent_name = map[int32]string{
0: "UNKNOWN_COMPONENT",
1: "CONTROLLER",
2: "WORKER",
3: "TOOL",
}
var StreamId_BuildComponent_value = map[string]int32{
"UNKNOWN_COMPONENT": 0,
"CONTROLLER": 1,
"WORKER": 2,
"TOOL": 3,
}
func (x StreamId_BuildComponent) String() string {
return proto.EnumName(StreamId_BuildComponent_name, int32(x))
}
func (StreamId_BuildComponent) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_build_events_cc132f62a908b693, []int{1, 0}
}
// An event representing some state change that occured in the build. This
// message does not include field for uniquely identifying an event.
type BuildEvent struct {
// The timestamp of this event.
EventTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
// //////////////////////////////////////////////////////////////////////////
// Events that indicate a state change of a build request in the build
// queue.
//
// Types that are valid to be assigned to Event:
// *BuildEvent_InvocationAttemptStarted_
// *BuildEvent_InvocationAttemptFinished_
// *BuildEvent_BuildEnqueued_
// *BuildEvent_BuildFinished_
// *BuildEvent_ConsoleOutput_
// *BuildEvent_ComponentStreamFinished
// *BuildEvent_BazelEvent
// *BuildEvent_BuildExecutionEvent
// *BuildEvent_SourceFetchEvent
Event isBuildEvent_Event `protobuf_oneof:"event"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildEvent) Reset() { *m = BuildEvent{} }
func (m *BuildEvent) String() string { return proto.CompactTextString(m) }
func (*BuildEvent) ProtoMessage() {}
func (*BuildEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_build_events_cc132f62a908b693, []int{0}
}
func (m *BuildEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildEvent.Unmarshal(m, b)
}
func (m *BuildEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildEvent.Marshal(b, m, deterministic)
}
func (dst *BuildEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildEvent.Merge(dst, src)
}
func (m *BuildEvent) XXX_Size() int {
return xxx_messageInfo_BuildEvent.Size(m)
}
func (m *BuildEvent) XXX_DiscardUnknown() {
xxx_messageInfo_BuildEvent.DiscardUnknown(m)
}
var xxx_messageInfo_BuildEvent proto.InternalMessageInfo
type isBuildEvent_Event interface {
isBuildEvent_Event()
}
type BuildEvent_InvocationAttemptStarted_ struct {
InvocationAttemptStarted *BuildEvent_InvocationAttemptStarted `protobuf:"bytes,51,opt,name=invocation_attempt_started,json=invocationAttemptStarted,proto3,oneof"`
}
type BuildEvent_InvocationAttemptFinished_ struct {
InvocationAttemptFinished *BuildEvent_InvocationAttemptFinished `protobuf:"bytes,52,opt,name=invocation_attempt_finished,json=invocationAttemptFinished,proto3,oneof"`
}
type BuildEvent_BuildEnqueued_ struct {
BuildEnqueued *BuildEvent_BuildEnqueued `protobuf:"bytes,53,opt,name=build_enqueued,json=buildEnqueued,proto3,oneof"`
}
type BuildEvent_BuildFinished_ struct {
BuildFinished *BuildEvent_BuildFinished `protobuf:"bytes,55,opt,name=build_finished,json=buildFinished,proto3,oneof"`
}
type BuildEvent_ConsoleOutput_ struct {
ConsoleOutput *BuildEvent_ConsoleOutput `protobuf:"bytes,56,opt,name=console_output,json=consoleOutput,proto3,oneof"`
}
type BuildEvent_ComponentStreamFinished struct {
ComponentStreamFinished *BuildEvent_BuildComponentStreamFinished `protobuf:"bytes,59,opt,name=component_stream_finished,json=componentStreamFinished,proto3,oneof"`
}
type BuildEvent_BazelEvent struct {
BazelEvent *any.Any `protobuf:"bytes,60,opt,name=bazel_event,json=bazelEvent,proto3,oneof"`
}
type BuildEvent_BuildExecutionEvent struct {
BuildExecutionEvent *any.Any `protobuf:"bytes,61,opt,name=build_execution_event,json=buildExecutionEvent,proto3,oneof"`
}
type BuildEvent_SourceFetchEvent struct {
SourceFetchEvent *any.Any `protobuf:"bytes,62,opt,name=source_fetch_event,json=sourceFetchEvent,proto3,oneof"`
}
func (*BuildEvent_InvocationAttemptStarted_) isBuildEvent_Event() {}
func (*BuildEvent_InvocationAttemptFinished_) isBuildEvent_Event() {}
func (*BuildEvent_BuildEnqueued_) isBuildEvent_Event() {}
func (*BuildEvent_BuildFinished_) isBuildEvent_Event() {}
func (*BuildEvent_ConsoleOutput_) isBuildEvent_Event() {}
func (*BuildEvent_ComponentStreamFinished) isBuildEvent_Event() {}
func (*BuildEvent_BazelEvent) isBuildEvent_Event() {}
func (*BuildEvent_BuildExecutionEvent) isBuildEvent_Event() {}
func (*BuildEvent_SourceFetchEvent) isBuildEvent_Event() {}
func (m *BuildEvent) GetEvent() isBuildEvent_Event {
if m != nil {
return m.Event
}
return nil
}
func (m *BuildEvent) GetEventTime() *timestamp.Timestamp {
if m != nil {
return m.EventTime
}
return nil
}
func (m *BuildEvent) GetInvocationAttemptStarted() *BuildEvent_InvocationAttemptStarted {
if x, ok := m.GetEvent().(*BuildEvent_InvocationAttemptStarted_); ok {
return x.InvocationAttemptStarted
}
return nil
}
func (m *BuildEvent) GetInvocationAttemptFinished() *BuildEvent_InvocationAttemptFinished {
if x, ok := m.GetEvent().(*BuildEvent_InvocationAttemptFinished_); ok {
return x.InvocationAttemptFinished
}
return nil
}
func (m *BuildEvent) GetBuildEnqueued() *BuildEvent_BuildEnqueued {
if x, ok := m.GetEvent().(*BuildEvent_BuildEnqueued_); ok {
return x.BuildEnqueued
}
return nil
}
func (m *BuildEvent) GetBuildFinished() *BuildEvent_BuildFinished {
if x, ok := m.GetEvent().(*BuildEvent_BuildFinished_); ok {
return x.BuildFinished
}
return nil
}
func (m *BuildEvent) GetConsoleOutput() *BuildEvent_ConsoleOutput {
if x, ok := m.GetEvent().(*BuildEvent_ConsoleOutput_); ok {
return x.ConsoleOutput
}
return nil
}
func (m *BuildEvent) GetComponentStreamFinished() *BuildEvent_BuildComponentStreamFinished {
if x, ok := m.GetEvent().(*BuildEvent_ComponentStreamFinished); ok {
return x.ComponentStreamFinished
}
return nil
}
func (m *BuildEvent) GetBazelEvent() *any.Any {
if x, ok := m.GetEvent().(*BuildEvent_BazelEvent); ok {
return x.BazelEvent
}
return nil
}
func (m *BuildEvent) GetBuildExecutionEvent() *any.Any {
if x, ok := m.GetEvent().(*BuildEvent_BuildExecutionEvent); ok {
return x.BuildExecutionEvent
}
return nil
}
func (m *BuildEvent) GetSourceFetchEvent() *any.Any {
if x, ok := m.GetEvent().(*BuildEvent_SourceFetchEvent); ok {
return x.SourceFetchEvent
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*BuildEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _BuildEvent_OneofMarshaler, _BuildEvent_OneofUnmarshaler, _BuildEvent_OneofSizer, []interface{}{
(*BuildEvent_InvocationAttemptStarted_)(nil),
(*BuildEvent_InvocationAttemptFinished_)(nil),
(*BuildEvent_BuildEnqueued_)(nil),
(*BuildEvent_BuildFinished_)(nil),
(*BuildEvent_ConsoleOutput_)(nil),
(*BuildEvent_ComponentStreamFinished)(nil),
(*BuildEvent_BazelEvent)(nil),
(*BuildEvent_BuildExecutionEvent)(nil),
(*BuildEvent_SourceFetchEvent)(nil),
}
}
func _BuildEvent_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*BuildEvent)
// event
switch x := m.Event.(type) {
case *BuildEvent_InvocationAttemptStarted_:
b.EncodeVarint(51<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.InvocationAttemptStarted); err != nil {
return err
}
case *BuildEvent_InvocationAttemptFinished_:
b.EncodeVarint(52<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.InvocationAttemptFinished); err != nil {
return err
}
case *BuildEvent_BuildEnqueued_:
b.EncodeVarint(53<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BuildEnqueued); err != nil {
return err
}
case *BuildEvent_BuildFinished_:
b.EncodeVarint(55<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BuildFinished); err != nil {
return err
}
case *BuildEvent_ConsoleOutput_:
b.EncodeVarint(56<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ConsoleOutput); err != nil {
return err
}
case *BuildEvent_ComponentStreamFinished:
b.EncodeVarint(59<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ComponentStreamFinished); err != nil {
return err
}
case *BuildEvent_BazelEvent:
b.EncodeVarint(60<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BazelEvent); err != nil {
return err
}
case *BuildEvent_BuildExecutionEvent:
b.EncodeVarint(61<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BuildExecutionEvent); err != nil {
return err
}
case *BuildEvent_SourceFetchEvent:
b.EncodeVarint(62<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.SourceFetchEvent); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("BuildEvent.Event has unexpected type %T", x)
}
return nil
}
func _BuildEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*BuildEvent)
switch tag {
case 51: // event.invocation_attempt_started
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_InvocationAttemptStarted)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_InvocationAttemptStarted_{msg}
return true, err
case 52: // event.invocation_attempt_finished
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_InvocationAttemptFinished)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_InvocationAttemptFinished_{msg}
return true, err
case 53: // event.build_enqueued
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_BuildEnqueued)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_BuildEnqueued_{msg}
return true, err
case 55: // event.build_finished
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_BuildFinished)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_BuildFinished_{msg}
return true, err
case 56: // event.console_output
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_ConsoleOutput)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_ConsoleOutput_{msg}
return true, err
case 59: // event.component_stream_finished
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_BuildComponentStreamFinished)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_ComponentStreamFinished{msg}
return true, err
case 60: // event.bazel_event
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(any.Any)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_BazelEvent{msg}
return true, err
case 61: // event.build_execution_event
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(any.Any)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_BuildExecutionEvent{msg}
return true, err
case 62: // event.source_fetch_event
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(any.Any)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_SourceFetchEvent{msg}
return true, err
default:
return false, nil
}
}
func _BuildEvent_OneofSizer(msg proto.Message) (n int) {
m := msg.(*BuildEvent)
// event
switch x := m.Event.(type) {
case *BuildEvent_InvocationAttemptStarted_:
s := proto.Size(x.InvocationAttemptStarted)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_InvocationAttemptFinished_:
s := proto.Size(x.InvocationAttemptFinished)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BuildEnqueued_:
s := proto.Size(x.BuildEnqueued)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BuildFinished_:
s := proto.Size(x.BuildFinished)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_ConsoleOutput_:
s := proto.Size(x.ConsoleOutput)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_ComponentStreamFinished:
s := proto.Size(x.ComponentStreamFinished)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BazelEvent:
s := proto.Size(x.BazelEvent)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BuildExecutionEvent:
s := proto.Size(x.BuildExecutionEvent)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_SourceFetchEvent:
s := proto.Size(x.SourceFetchEvent)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Notification that the build system has attempted to run the build tool.
type BuildEvent_InvocationAttemptStarted struct {
// The number of the invocation attempt, starting at 1 and increasing by 1
// for each new attempt. Can be used to determine if there is a later
// invocation attempt replacing the current one a client is processing.
AttemptNumber int64 `protobuf:"varint,1,opt,name=attempt_number,json=attemptNumber,proto3" json:"attempt_number,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildEvent_InvocationAttemptStarted) Reset() { *m = BuildEvent_InvocationAttemptStarted{} }
func (m *BuildEvent_InvocationAttemptStarted) String() string { return proto.CompactTextString(m) }
func (*BuildEvent_InvocationAttemptStarted) ProtoMessage() {}
func (*BuildEvent_InvocationAttemptStarted) Descriptor() ([]byte, []int) {
return fileDescriptor_build_events_cc132f62a908b693, []int{0, 0}
}
func (m *BuildEvent_InvocationAttemptStarted) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildEvent_InvocationAttemptStarted.Unmarshal(m, b)
}
func (m *BuildEvent_InvocationAttemptStarted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildEvent_InvocationAttemptStarted.Marshal(b, m, deterministic)
}
func (dst *BuildEvent_InvocationAttemptStarted) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildEvent_InvocationAttemptStarted.Merge(dst, src)
}
func (m *BuildEvent_InvocationAttemptStarted) XXX_Size() int {
return xxx_messageInfo_BuildEvent_InvocationAttemptStarted.Size(m)
}
func (m *BuildEvent_InvocationAttemptStarted) XXX_DiscardUnknown() {
xxx_messageInfo_BuildEvent_InvocationAttemptStarted.DiscardUnknown(m)
}
var xxx_messageInfo_BuildEvent_InvocationAttemptStarted proto.InternalMessageInfo
func (m *BuildEvent_InvocationAttemptStarted) GetAttemptNumber() int64 {
if m != nil {
return m.AttemptNumber
}
return 0
}
// Notification that an invocation attempt has finished.
type BuildEvent_InvocationAttemptFinished struct {
// The exit code of the build tool.
ExitCode *wrappers.Int32Value `protobuf:"bytes,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
// Final status of the invocation.
InvocationStatus *BuildStatus `protobuf:"bytes,3,opt,name=invocation_status,json=invocationStatus,proto3" json:"invocation_status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildEvent_InvocationAttemptFinished) Reset() { *m = BuildEvent_InvocationAttemptFinished{} }
func (m *BuildEvent_InvocationAttemptFinished) String() string { return proto.CompactTextString(m) }
func (*BuildEvent_InvocationAttemptFinished) ProtoMessage() {}
func (*BuildEvent_InvocationAttemptFinished) Descriptor() ([]byte, []int) {
return fileDescriptor_build_events_cc132f62a908b693, []int{0, 1}
}
func (m *BuildEvent_InvocationAttemptFinished) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildEvent_InvocationAttemptFinished.Unmarshal(m, b)
}
func (m *BuildEvent_InvocationAttemptFinished) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildEvent_InvocationAttemptFinished.Marshal(b, m, deterministic)
}
func (dst *BuildEvent_InvocationAttemptFinished) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildEvent_InvocationAttemptFinished.Merge(dst, src)
}
func (m *BuildEvent_InvocationAttemptFinished) XXX_Size() int {
return xxx_messageInfo_BuildEvent_InvocationAttemptFinished.Size(m)
}
func (m *BuildEvent_InvocationAttemptFinished) XXX_DiscardUnknown() {
xxx_messageInfo_BuildEvent_InvocationAttemptFinished.DiscardUnknown(m)
}
var xxx_messageInfo_BuildEvent_InvocationAttemptFinished proto.InternalMessageInfo
func (m *BuildEvent_InvocationAttemptFinished) GetExitCode() *wrappers.Int32Value {
if m != nil {
return m.ExitCode
}
return nil
}
func (m *BuildEvent_InvocationAttemptFinished) GetInvocationStatus() *BuildStatus {
if m != nil {
return m.InvocationStatus
}
return nil
}
// Notification that the build request is enqueued. It could happen when
// a new build request is inserted into the build queue, or when a
// build request is put back into the build queue due to a previous build
// failure.
type BuildEvent_BuildEnqueued struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildEvent_BuildEnqueued) Reset() { *m = BuildEvent_BuildEnqueued{} }
func (m *BuildEvent_BuildEnqueued) String() string { return proto.CompactTextString(m) }
func (*BuildEvent_BuildEnqueued) ProtoMessage() {}
func (*BuildEvent_BuildEnqueued) Descriptor() ([]byte, []int) {
return fileDescriptor_build_events_cc132f62a908b693, []int{0, 2}
}
func (m *BuildEvent_BuildEnqueued) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildEvent_BuildEnqueued.Unmarshal(m, b)
}
func (m *BuildEvent_BuildEnqueued) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildEvent_BuildEnqueued.Marshal(b, m, deterministic)
}
func (dst *BuildEvent_BuildEnqueued) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildEvent_BuildEnqueued.Merge(dst, src)
}
func (m *BuildEvent_BuildEnqueued) XXX_Size() int {
return xxx_messageInfo_BuildEvent_BuildEnqueued.Size(m)
}
func (m *BuildEvent_BuildEnqueued) XXX_DiscardUnknown() {
xxx_messageInfo_BuildEvent_BuildEnqueued.DiscardUnknown(m)
}
var xxx_messageInfo_BuildEvent_BuildEnqueued proto.InternalMessageInfo
// Notification that the build request has finished, and no further
// invocations will occur. Note that this applies to the entire Build.
// Individual invocations trigger InvocationFinished when they finish.
type BuildEvent_BuildFinished struct {
// Final status of the build.
Status *BuildStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildEvent_BuildFinished) Reset() { *m = BuildEvent_BuildFinished{} }
func (m *BuildEvent_BuildFinished) String() string { return proto.CompactTextString(m) }
func (*BuildEvent_BuildFinished) ProtoMessage() {}
func (*BuildEvent_BuildFinished) Descriptor() ([]byte, []int) {
return fileDescriptor_build_events_cc132f62a908b693, []int{0, 3}
}
func (m *BuildEvent_BuildFinished) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildEvent_BuildFinished.Unmarshal(m, b)
}
func (m *BuildEvent_BuildFinished) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildEvent_BuildFinished.Marshal(b, m, deterministic)
}
func (dst *BuildEvent_BuildFinished) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildEvent_BuildFinished.Merge(dst, src)
}
func (m *BuildEvent_BuildFinished) XXX_Size() int {
return xxx_messageInfo_BuildEvent_BuildFinished.Size(m)
}
func (m *BuildEvent_BuildFinished) XXX_DiscardUnknown() {
xxx_messageInfo_BuildEvent_BuildFinished.DiscardUnknown(m)
}
var xxx_messageInfo_BuildEvent_BuildFinished proto.InternalMessageInfo
func (m *BuildEvent_BuildFinished) GetStatus() *BuildStatus {
if m != nil {
return m.Status
}
return nil
}
// Textual output written to standard output or standard error.
type BuildEvent_ConsoleOutput struct {
// The output stream type.
Type ConsoleOutputStream `protobuf:"varint,1,opt,name=type,proto3,enum=google.devtools.build.v1.ConsoleOutputStream" json:"type,omitempty"`
// The output stream content.
//
// Types that are valid to be assigned to Output:
// *BuildEvent_ConsoleOutput_TextOutput
// *BuildEvent_ConsoleOutput_BinaryOutput
Output isBuildEvent_ConsoleOutput_Output `protobuf_oneof:"output"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildEvent_ConsoleOutput) Reset() { *m = BuildEvent_ConsoleOutput{} }
func (m *BuildEvent_ConsoleOutput) String() string { return proto.CompactTextString(m) }
func (*BuildEvent_ConsoleOutput) ProtoMessage() {}
func (*BuildEvent_ConsoleOutput) Descriptor() ([]byte, []int) {
return fileDescriptor_build_events_cc132f62a908b693, []int{0, 4}
}
func (m *BuildEvent_ConsoleOutput) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildEvent_ConsoleOutput.Unmarshal(m, b)
}
func (m *BuildEvent_ConsoleOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildEvent_ConsoleOutput.Marshal(b, m, deterministic)
}
func (dst *BuildEvent_ConsoleOutput) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildEvent_ConsoleOutput.Merge(dst, src)
}
func (m *BuildEvent_ConsoleOutput) XXX_Size() int {
return xxx_messageInfo_BuildEvent_ConsoleOutput.Size(m)
}
func (m *BuildEvent_ConsoleOutput) XXX_DiscardUnknown() {
xxx_messageInfo_BuildEvent_ConsoleOutput.DiscardUnknown(m)
}
var xxx_messageInfo_BuildEvent_ConsoleOutput proto.InternalMessageInfo
type isBuildEvent_ConsoleOutput_Output interface {
isBuildEvent_ConsoleOutput_Output()
}
type BuildEvent_ConsoleOutput_TextOutput struct {
TextOutput string `protobuf:"bytes,2,opt,name=text_output,json=textOutput,proto3,oneof"`
}
type BuildEvent_ConsoleOutput_BinaryOutput struct {
BinaryOutput []byte `protobuf:"bytes,3,opt,name=binary_output,json=binaryOutput,proto3,oneof"`
}
func (*BuildEvent_ConsoleOutput_TextOutput) isBuildEvent_ConsoleOutput_Output() {}
func (*BuildEvent_ConsoleOutput_BinaryOutput) isBuildEvent_ConsoleOutput_Output() {}
func (m *BuildEvent_ConsoleOutput) GetOutput() isBuildEvent_ConsoleOutput_Output {
if m != nil {
return m.Output
}
return nil
}
func (m *BuildEvent_ConsoleOutput) GetType() ConsoleOutputStream {
if m != nil {
return m.Type
}
return ConsoleOutputStream_UNKNOWN
}
func (m *BuildEvent_ConsoleOutput) GetTextOutput() string {
if x, ok := m.GetOutput().(*BuildEvent_ConsoleOutput_TextOutput); ok {
return x.TextOutput
}
return ""
}
func (m *BuildEvent_ConsoleOutput) GetBinaryOutput() []byte {
if x, ok := m.GetOutput().(*BuildEvent_ConsoleOutput_BinaryOutput); ok {
return x.BinaryOutput
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*BuildEvent_ConsoleOutput) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _BuildEvent_ConsoleOutput_OneofMarshaler, _BuildEvent_ConsoleOutput_OneofUnmarshaler, _BuildEvent_ConsoleOutput_OneofSizer, []interface{}{
(*BuildEvent_ConsoleOutput_TextOutput)(nil),
(*BuildEvent_ConsoleOutput_BinaryOutput)(nil),
}
}
func _BuildEvent_ConsoleOutput_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*BuildEvent_ConsoleOutput)
// output
switch x := m.Output.(type) {
case *BuildEvent_ConsoleOutput_TextOutput:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeStringBytes(x.TextOutput)
case *BuildEvent_ConsoleOutput_BinaryOutput:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeRawBytes(x.BinaryOutput)
case nil:
default:
return fmt.Errorf("BuildEvent_ConsoleOutput.Output has unexpected type %T", x)
}
return nil
}
func _BuildEvent_ConsoleOutput_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*BuildEvent_ConsoleOutput)
switch tag {
case 2: // output.text_output
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Output = &BuildEvent_ConsoleOutput_TextOutput{x}
return true, err
case 3: // output.binary_output
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.Output = &BuildEvent_ConsoleOutput_BinaryOutput{x}
return true, err
default:
return false, nil
}
}
func _BuildEvent_ConsoleOutput_OneofSizer(msg proto.Message) (n int) {
m := msg.(*BuildEvent_ConsoleOutput)
// output
switch x := m.Output.(type) {
case *BuildEvent_ConsoleOutput_TextOutput:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.TextOutput)))
n += len(x.TextOutput)
case *BuildEvent_ConsoleOutput_BinaryOutput:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.BinaryOutput)))
n += len(x.BinaryOutput)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Notification of the end of a build event stream published by a build
// component other than CONTROLLER (See StreamId.BuildComponents).
type BuildEvent_BuildComponentStreamFinished struct {
// How the event stream finished.
Type BuildEvent_BuildComponentStreamFinished_FinishType `protobuf:"varint,1,opt,name=type,proto3,enum=google.devtools.build.v1.BuildEvent_BuildComponentStreamFinished_FinishType" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildEvent_BuildComponentStreamFinished) Reset() {
*m = BuildEvent_BuildComponentStreamFinished{}
}
func (m *BuildEvent_BuildComponentStreamFinished) String() string { return proto.CompactTextString(m) }
func (*BuildEvent_BuildComponentStreamFinished) ProtoMessage() {}
func (*BuildEvent_BuildComponentStreamFinished) Descriptor() ([]byte, []int) {
return fileDescriptor_build_events_cc132f62a908b693, []int{0, 5}
}
func (m *BuildEvent_BuildComponentStreamFinished) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildEvent_BuildComponentStreamFinished.Unmarshal(m, b)
}
func (m *BuildEvent_BuildComponentStreamFinished) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildEvent_BuildComponentStreamFinished.Marshal(b, m, deterministic)
}
func (dst *BuildEvent_BuildComponentStreamFinished) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildEvent_BuildComponentStreamFinished.Merge(dst, src)
}
func (m *BuildEvent_BuildComponentStreamFinished) XXX_Size() int {
return xxx_messageInfo_BuildEvent_BuildComponentStreamFinished.Size(m)
}
func (m *BuildEvent_BuildComponentStreamFinished) XXX_DiscardUnknown() {
xxx_messageInfo_BuildEvent_BuildComponentStreamFinished.DiscardUnknown(m)
}
var xxx_messageInfo_BuildEvent_BuildComponentStreamFinished proto.InternalMessageInfo
func (m *BuildEvent_BuildComponentStreamFinished) GetType() BuildEvent_BuildComponentStreamFinished_FinishType {
if m != nil {
return m.Type
}
return BuildEvent_BuildComponentStreamFinished_FINISH_TYPE_UNSPECIFIED
}
// Unique identifier for a build event stream.
type StreamId struct {
// The id of a Build message.
BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
// The unique invocation ID within this build.
// It should be the same as {invocation} (below) during the migration.
InvocationId string `protobuf:"bytes,6,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
// The component that emitted this event.
Component StreamId_BuildComponent `protobuf:"varint,3,opt,name=component,proto3,enum=google.devtools.build.v1.StreamId_BuildComponent" json:"component,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StreamId) Reset() { *m = StreamId{} }
func (m *StreamId) String() string { return proto.CompactTextString(m) }
func (*StreamId) ProtoMessage() {}
func (*StreamId) Descriptor() ([]byte, []int) {
return fileDescriptor_build_events_cc132f62a908b693, []int{1}
}
func (m *StreamId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StreamId.Unmarshal(m, b)
}
func (m *StreamId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StreamId.Marshal(b, m, deterministic)
}
func (dst *StreamId) XXX_Merge(src proto.Message) {
xxx_messageInfo_StreamId.Merge(dst, src)
}
func (m *StreamId) XXX_Size() int {
return xxx_messageInfo_StreamId.Size(m)
}
func (m *StreamId) XXX_DiscardUnknown() {
xxx_messageInfo_StreamId.DiscardUnknown(m)
}
var xxx_messageInfo_StreamId proto.InternalMessageInfo
func (m *StreamId) GetBuildId() string {
if m != nil {
return m.BuildId
}
return ""
}
func (m *StreamId) GetInvocationId() string {
if m != nil {
return m.InvocationId
}
return ""
}
func (m *StreamId) GetComponent() StreamId_BuildComponent {
if m != nil {
return m.Component
}
return StreamId_UNKNOWN_COMPONENT
}
func init() {
proto.RegisterType((*BuildEvent)(nil), "google.devtools.build.v1.BuildEvent")
proto.RegisterType((*BuildEvent_InvocationAttemptStarted)(nil), "google.devtools.build.v1.BuildEvent.InvocationAttemptStarted")
proto.RegisterType((*BuildEvent_InvocationAttemptFinished)(nil), "google.devtools.build.v1.BuildEvent.InvocationAttemptFinished")
proto.RegisterType((*BuildEvent_BuildEnqueued)(nil), "google.devtools.build.v1.BuildEvent.BuildEnqueued")
proto.RegisterType((*BuildEvent_BuildFinished)(nil), "google.devtools.build.v1.BuildEvent.BuildFinished")
proto.RegisterType((*BuildEvent_ConsoleOutput)(nil), "google.devtools.build.v1.BuildEvent.ConsoleOutput")
proto.RegisterType((*BuildEvent_BuildComponentStreamFinished)(nil), "google.devtools.build.v1.BuildEvent.BuildComponentStreamFinished")
proto.RegisterType((*StreamId)(nil), "google.devtools.build.v1.StreamId")
proto.RegisterEnum("google.devtools.build.v1.ConsoleOutputStream", ConsoleOutputStream_name, ConsoleOutputStream_value)
proto.RegisterEnum("google.devtools.build.v1.BuildEvent_BuildComponentStreamFinished_FinishType", BuildEvent_BuildComponentStreamFinished_FinishType_name, BuildEvent_BuildComponentStreamFinished_FinishType_value)
proto.RegisterEnum("google.devtools.build.v1.StreamId_BuildComponent", StreamId_BuildComponent_name, StreamId_BuildComponent_value)
}
func init() {
proto.RegisterFile("google/devtools/build/v1/build_events.proto", fileDescriptor_build_events_cc132f62a908b693)
}
var fileDescriptor_build_events_cc132f62a908b693 = []byte{
// 927 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x6d, 0x6f, 0xe3, 0x44,
0x10, 0x8e, 0xdb, 0xa3, 0x4d, 0xa7, 0x49, 0xce, 0xb7, 0xc7, 0xa9, 0x8e, 0x5b, 0xf1, 0x52, 0x54,
0x09, 0x81, 0x70, 0xd4, 0x14, 0x74, 0x07, 0x47, 0x4f, 0xca, 0x8b, 0xab, 0x98, 0xeb, 0xd9, 0xd1,
0x26, 0xe5, 0x78, 0xf9, 0x10, 0x1c, 0x7b, 0x9b, 0xb3, 0x94, 0x78, 0x8d, 0xbd, 0x0e, 0x0d, 0x12,
0x82, 0x5f, 0x83, 0xc4, 0x1f, 0xe1, 0xc7, 0xf0, 0x07, 0xe0, 0x23, 0xf2, 0xee, 0xba, 0x49, 0xda,
0xa6, 0x77, 0x85, 0x6f, 0xbb, 0x33, 0xcf, 0x3c, 0xcf, 0xcc, 0xec, 0x8c, 0x65, 0xf8, 0x78, 0x44,
0xe9, 0x68, 0x4c, 0x6a, 0x3e, 0x99, 0x32, 0x4a, 0xc7, 0x49, 0x6d, 0x98, 0x06, 0x63, 0xbf, 0x36,
0x3d, 0x14, 0x87, 0x01, 0x99, 0x92, 0x90, 0x25, 0x46, 0x14, 0x53, 0x46, 0x91, 0x26, 0xc0, 0x46,
0x0e, 0x36, 0x38, 0xc6, 0x98, 0x1e, 0xea, 0x7b, 0x92, 0xc6, 0x8d, 0x82, 0x9a, 0x1b, 0x86, 0x94,
0xb9, 0x2c, 0xa0, 0xa1, 0x8c, 0xd3, 0x5f, 0x27, 0x92, 0x30, 0x97, 0xa5, 0x39, 0xb8, 0x2a, 0xc1,
0xfc, 0x36, 0x4c, 0xcf, 0x6b, 0x6e, 0x38, 0x93, 0xae, 0x77, 0xaf, 0xba, 0x58, 0x30, 0x21, 0x09,
0x73, 0x27, 0x91, 0x04, 0xbc,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ff, 0x84, 0x0f, 0x0f, 0xdf, 0x27, 0x09, 0x00, 0x00,
}

View File

@@ -0,0 +1,162 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/build/v1/build_status.proto
package build // import "google.golang.org/genproto/googleapis/devtools/build/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import any "github.com/golang/protobuf/ptypes/any"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The end result of the Build.
type BuildStatus_Result int32
const (
// Unspecified or unknown.
BuildStatus_UNKNOWN_STATUS BuildStatus_Result = 0
// Build was successful and tests (if requested) all pass.
BuildStatus_COMMAND_SUCCEEDED BuildStatus_Result = 1
// Build error and/or test failure.
BuildStatus_COMMAND_FAILED BuildStatus_Result = 2
// Unable to obtain a result due to input provided by the user.
BuildStatus_USER_ERROR BuildStatus_Result = 3
// Unable to obtain a result due to a failure within the build system.
BuildStatus_SYSTEM_ERROR BuildStatus_Result = 4
// Build required too many resources, such as build tool RAM.
BuildStatus_RESOURCE_EXHAUSTED BuildStatus_Result = 5
// An invocation attempt time exceeded its deadline.
BuildStatus_INVOCATION_DEADLINE_EXCEEDED BuildStatus_Result = 6
// Build request time exceeded the request_deadline
BuildStatus_REQUEST_DEADLINE_EXCEEDED BuildStatus_Result = 8
// The build was cancelled by a call to CancelBuild.
BuildStatus_CANCELLED BuildStatus_Result = 7
)
var BuildStatus_Result_name = map[int32]string{
0: "UNKNOWN_STATUS",
1: "COMMAND_SUCCEEDED",
2: "COMMAND_FAILED",
3: "USER_ERROR",
4: "SYSTEM_ERROR",
5: "RESOURCE_EXHAUSTED",
6: "INVOCATION_DEADLINE_EXCEEDED",
8: "REQUEST_DEADLINE_EXCEEDED",
7: "CANCELLED",
}
var BuildStatus_Result_value = map[string]int32{
"UNKNOWN_STATUS": 0,
"COMMAND_SUCCEEDED": 1,
"COMMAND_FAILED": 2,
"USER_ERROR": 3,
"SYSTEM_ERROR": 4,
"RESOURCE_EXHAUSTED": 5,
"INVOCATION_DEADLINE_EXCEEDED": 6,
"REQUEST_DEADLINE_EXCEEDED": 8,
"CANCELLED": 7,
}
func (x BuildStatus_Result) String() string {
return proto.EnumName(BuildStatus_Result_name, int32(x))
}
func (BuildStatus_Result) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_build_status_72c860664f7eaf4b, []int{0, 0}
}
// Status used for both invocation attempt and overall build completion.
type BuildStatus struct {
// The end result.
Result BuildStatus_Result `protobuf:"varint,1,opt,name=result,proto3,enum=google.devtools.build.v1.BuildStatus_Result" json:"result,omitempty"`
// Fine-grained diagnostic information to complement the status.
Details *any.Any `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildStatus) Reset() { *m = BuildStatus{} }
func (m *BuildStatus) String() string { return proto.CompactTextString(m) }
func (*BuildStatus) ProtoMessage() {}
func (*BuildStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_build_status_72c860664f7eaf4b, []int{0}
}
func (m *BuildStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildStatus.Unmarshal(m, b)
}
func (m *BuildStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildStatus.Marshal(b, m, deterministic)
}
func (dst *BuildStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildStatus.Merge(dst, src)
}
func (m *BuildStatus) XXX_Size() int {
return xxx_messageInfo_BuildStatus.Size(m)
}
func (m *BuildStatus) XXX_DiscardUnknown() {
xxx_messageInfo_BuildStatus.DiscardUnknown(m)
}
var xxx_messageInfo_BuildStatus proto.InternalMessageInfo
func (m *BuildStatus) GetResult() BuildStatus_Result {
if m != nil {
return m.Result
}
return BuildStatus_UNKNOWN_STATUS
}
func (m *BuildStatus) GetDetails() *any.Any {
if m != nil {
return m.Details
}
return nil
}
func init() {
proto.RegisterType((*BuildStatus)(nil), "google.devtools.build.v1.BuildStatus")
proto.RegisterEnum("google.devtools.build.v1.BuildStatus_Result", BuildStatus_Result_name, BuildStatus_Result_value)
}
func init() {
proto.RegisterFile("google/devtools/build/v1/build_status.proto", fileDescriptor_build_status_72c860664f7eaf4b)
}
var fileDescriptor_build_status_72c860664f7eaf4b = []byte{
// 390 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x4f, 0x0b, 0xd3, 0x30,
0x18, 0xc6, 0xcd, 0xd4, 0x4e, 0x33, 0x1d, 0x35, 0xa8, 0x6c, 0x63, 0xc2, 0xd8, 0x69, 0xa0, 0xa4,
0x6c, 0x1e, 0xc5, 0x43, 0xd6, 0x44, 0x2c, 0x6e, 0xe9, 0x4c, 0x5a, 0xff, 0x5d, 0x4a, 0xe6, 0x6a,
0x29, 0xd4, 0x66, 0xac, 0xe9, 0x60, 0x1f, 0xd3, 0x93, 0x5f, 0xc5, 0xa3, 0xf4, 0x1f, 0x0c, 0x74,
0xb7, 0xf4, 0x7d, 0x7e, 0xcf, 0xf3, 0xbe, 0x3c, 0x14, 0xbe, 0x4c, 0xb4, 0x4e, 0xb2, 0xd8, 0x39,
0xc4, 0x67, 0xa3, 0x75, 0x56, 0x38, 0xfb, 0x32, 0xcd, 0x0e, 0xce, 0x79, 0xd9, 0x3c, 0xa2, 0xc2,
0x28, 0x53, 0x16, 0xf8, 0x78, 0xd2, 0x46, 0xa3, 0x51, 0x03, 0xe3, 0x0e, 0xc6, 0x35, 0x83, 0xcf,
0xcb, 0xc9, 0xb4, 0x8d, 0x51, 0xc7, 0xd4,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xa1, 0x17, 0x70, 0x2c, 0xd8, 0xc7, 0x90, 0xc9, 0xe0, 0x3f, 0xf2, 0x03, 0xf4, 0x18, 0x3e, 0x74,
0x09, 0x77, 0xd9, 0xa6, 0xba, 0xa4, 0xbf, 0x36, 0x70, 0xfa, 0x5d, 0xff, 0xbc, 0x59, 0xdf, 0xda,
0xbe, 0xea, 0x6f, 0x57, 0xb5, 0xb2, 0x03, 0xdf, 0xde, 0xb6, 0x74, 0xa2, 0x33, 0x95, 0x27, 0x58,
0x9f, 0x12, 0x27, 0x89, 0xf3, 0xba, 0x33, 0xa7, 0x91, 0xd4, 0x31, 0x2d, 0xfe, 0xfd, 0x59, 0xde,
0xd4, 0x8f, 0x3f, 0x00, 0xec, 0xad, 0x1a, 0x7e, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x3d,
0xf5, 0x87, 0x58, 0x02, 0x00, 0x00,
}

View File

@@ -0,0 +1,560 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/build/v1/publish_build_event.proto
package build // import "google.golang.org/genproto/googleapis/devtools/build/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import duration "github.com/golang/protobuf/ptypes/duration"
import empty "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The service level of the build request. Backends only uses this value when
// the BuildEnqueued event is published to determine what level of service
// this build should receive.
type PublishLifecycleEventRequest_ServiceLevel int32
const (
// Non-interactive builds can tolerate longer event latencies. This is the
// default ServiceLevel if callers do not specify one.
PublishLifecycleEventRequest_NONINTERACTIVE PublishLifecycleEventRequest_ServiceLevel = 0
// The events of an interactive build should be delivered with low latency.
PublishLifecycleEventRequest_INTERACTIVE PublishLifecycleEventRequest_ServiceLevel = 1
)
var PublishLifecycleEventRequest_ServiceLevel_name = map[int32]string{
0: "NONINTERACTIVE",
1: "INTERACTIVE",
}
var PublishLifecycleEventRequest_ServiceLevel_value = map[string]int32{
"NONINTERACTIVE": 0,
"INTERACTIVE": 1,
}
func (x PublishLifecycleEventRequest_ServiceLevel) String() string {
return proto.EnumName(PublishLifecycleEventRequest_ServiceLevel_name, int32(x))
}
func (PublishLifecycleEventRequest_ServiceLevel) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_publish_build_event_392a703d66bd0f43, []int{0, 0}
}
// Publishes 'lifecycle events' that update the high-level state of a build:
// - BuildEnqueued: When a build is scheduled.
// - InvocationAttemptStarted: When work for a build starts; there can be
// multiple invocations for a build (e.g. retries).
// - InvocationAttemptCompleted: When work for a build finishes.
// - BuildFinished: When a build is finished.
type PublishLifecycleEventRequest struct {
// The interactivity of this build.
ServiceLevel PublishLifecycleEventRequest_ServiceLevel `protobuf:"varint,1,opt,name=service_level,json=serviceLevel,proto3,enum=google.devtools.build.v1.PublishLifecycleEventRequest_ServiceLevel" json:"service_level,omitempty"`
// The lifecycle build event. If this is a build tool event, the RPC will fail
// with INVALID_REQUEST.
BuildEvent *OrderedBuildEvent `protobuf:"bytes,2,opt,name=build_event,json=buildEvent,proto3" json:"build_event,omitempty"`
// If the next event for this build or invocation (depending on the event
// type) hasn't been published after this duration from when {build_event}
// is written to BES, consider this stream expired. If this field is not set,
// BES backend will use its own default value.
StreamTimeout *duration.Duration `protobuf:"bytes,3,opt,name=stream_timeout,json=streamTimeout,proto3" json:"stream_timeout,omitempty"`
// Additional information about a build request. These are define by the event
// publishers, and the Build Event Service does not validate or interpret
// them. They are used while notifying internal systems of new builds and
// invocations if the OrderedBuildEvent.event type is
// BuildEnqueued/InvocationAttemptStarted.
NotificationKeywords []string `protobuf:"bytes,4,rep,name=notification_keywords,json=notificationKeywords,proto3" json:"notification_keywords,omitempty"`
// This field identifies which project (if any) the build is associated with.
ProjectId string `protobuf:"bytes,6,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PublishLifecycleEventRequest) Reset() { *m = PublishLifecycleEventRequest{} }
func (m *PublishLifecycleEventRequest) String() string { return proto.CompactTextString(m) }
func (*PublishLifecycleEventRequest) ProtoMessage() {}
func (*PublishLifecycleEventRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_publish_build_event_392a703d66bd0f43, []int{0}
}
func (m *PublishLifecycleEventRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PublishLifecycleEventRequest.Unmarshal(m, b)
}
func (m *PublishLifecycleEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PublishLifecycleEventRequest.Marshal(b, m, deterministic)
}
func (dst *PublishLifecycleEventRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishLifecycleEventRequest.Merge(dst, src)
}
func (m *PublishLifecycleEventRequest) XXX_Size() int {
return xxx_messageInfo_PublishLifecycleEventRequest.Size(m)
}
func (m *PublishLifecycleEventRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PublishLifecycleEventRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PublishLifecycleEventRequest proto.InternalMessageInfo
func (m *PublishLifecycleEventRequest) GetServiceLevel() PublishLifecycleEventRequest_ServiceLevel {
if m != nil {
return m.ServiceLevel
}
return PublishLifecycleEventRequest_NONINTERACTIVE
}
func (m *PublishLifecycleEventRequest) GetBuildEvent() *OrderedBuildEvent {
if m != nil {
return m.BuildEvent
}
return nil
}
func (m *PublishLifecycleEventRequest) GetStreamTimeout() *duration.Duration {
if m != nil {
return m.StreamTimeout
}
return nil
}
func (m *PublishLifecycleEventRequest) GetNotificationKeywords() []string {
if m != nil {
return m.NotificationKeywords
}
return nil
}
func (m *PublishLifecycleEventRequest) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
// States which event has been committed. Any failure to commit will cause
// RPC errors, hence not recorded by this proto.
type PublishBuildToolEventStreamResponse struct {
// The stream that contains this event.
StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
// The sequence number of this event that has been committed.
SequenceNumber int64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PublishBuildToolEventStreamResponse) Reset() { *m = PublishBuildToolEventStreamResponse{} }
func (m *PublishBuildToolEventStreamResponse) String() string { return proto.CompactTextString(m) }
func (*PublishBuildToolEventStreamResponse) ProtoMessage() {}
func (*PublishBuildToolEventStreamResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_publish_build_event_392a703d66bd0f43, []int{1}
}
func (m *PublishBuildToolEventStreamResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PublishBuildToolEventStreamResponse.Unmarshal(m, b)
}
func (m *PublishBuildToolEventStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PublishBuildToolEventStreamResponse.Marshal(b, m, deterministic)
}
func (dst *PublishBuildToolEventStreamResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishBuildToolEventStreamResponse.Merge(dst, src)
}
func (m *PublishBuildToolEventStreamResponse) XXX_Size() int {
return xxx_messageInfo_PublishBuildToolEventStreamResponse.Size(m)
}
func (m *PublishBuildToolEventStreamResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PublishBuildToolEventStreamResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PublishBuildToolEventStreamResponse proto.InternalMessageInfo
func (m *PublishBuildToolEventStreamResponse) GetStreamId() *StreamId {
if m != nil {
return m.StreamId
}
return nil
}
func (m *PublishBuildToolEventStreamResponse) GetSequenceNumber() int64 {
if m != nil {
return m.SequenceNumber
}
return 0
}
// Build event with contextual information about the stream it belongs to and
// its position in that stream.
type OrderedBuildEvent struct {
// Which build event stream this event belongs to.
StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
// The position of this event in the stream. The sequence numbers for a build
// event stream should be a sequence of consecutive natural numbers starting
// from one. (1, 2, 3, ...)
SequenceNumber int64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
// The actual event.
Event *BuildEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrderedBuildEvent) Reset() { *m = OrderedBuildEvent{} }
func (m *OrderedBuildEvent) String() string { return proto.CompactTextString(m) }
func (*OrderedBuildEvent) ProtoMessage() {}
func (*OrderedBuildEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_publish_build_event_392a703d66bd0f43, []int{2}
}
func (m *OrderedBuildEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrderedBuildEvent.Unmarshal(m, b)
}
func (m *OrderedBuildEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrderedBuildEvent.Marshal(b, m, deterministic)
}
func (dst *OrderedBuildEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrderedBuildEvent.Merge(dst, src)
}
func (m *OrderedBuildEvent) XXX_Size() int {
return xxx_messageInfo_OrderedBuildEvent.Size(m)
}
func (m *OrderedBuildEvent) XXX_DiscardUnknown() {
xxx_messageInfo_OrderedBuildEvent.DiscardUnknown(m)
}
var xxx_messageInfo_OrderedBuildEvent proto.InternalMessageInfo
func (m *OrderedBuildEvent) GetStreamId() *StreamId {
if m != nil {
return m.StreamId
}
return nil
}
func (m *OrderedBuildEvent) GetSequenceNumber() int64 {
if m != nil {
return m.SequenceNumber
}
return 0
}
func (m *OrderedBuildEvent) GetEvent() *BuildEvent {
if m != nil {
return m.Event
}
return nil
}
type PublishBuildToolEventStreamRequest struct {
// Which build event stream this event belongs to.
StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` // Deprecated: Do not use.
// The position of this event in the stream. The sequence numbers for a build
// event stream should be a sequence of consecutive natural numbers starting
// from one. (1, 2, 3, ...)
SequenceNumber int64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` // Deprecated: Do not use.
// The actual event.
Event *BuildEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` // Deprecated: Do not use.
// The build event with position info.
// New publishing clients should use this field rather than the 3 above.
OrderedBuildEvent *OrderedBuildEvent `protobuf:"bytes,4,opt,name=ordered_build_event,json=orderedBuildEvent,proto3" json:"ordered_build_event,omitempty"`
// The keywords to be attached to the notification which notifies the start
// of a new build event stream. BES only reads this field when sequence_number
// or ordered_build_event.sequence_number is 1 in this message. If this field
// is empty, BES will not publish notification messages for this stream.
NotificationKeywords []string `protobuf:"bytes,5,rep,name=notification_keywords,json=notificationKeywords,proto3" json:"notification_keywords,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PublishBuildToolEventStreamRequest) Reset() { *m = PublishBuildToolEventStreamRequest{} }
func (m *PublishBuildToolEventStreamRequest) String() string { return proto.CompactTextString(m) }
func (*PublishBuildToolEventStreamRequest) ProtoMessage() {}
func (*PublishBuildToolEventStreamRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_publish_build_event_392a703d66bd0f43, []int{3}
}
func (m *PublishBuildToolEventStreamRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PublishBuildToolEventStreamRequest.Unmarshal(m, b)
}
func (m *PublishBuildToolEventStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PublishBuildToolEventStreamRequest.Marshal(b, m, deterministic)
}
func (dst *PublishBuildToolEventStreamRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishBuildToolEventStreamRequest.Merge(dst, src)
}
func (m *PublishBuildToolEventStreamRequest) XXX_Size() int {
return xxx_messageInfo_PublishBuildToolEventStreamRequest.Size(m)
}
func (m *PublishBuildToolEventStreamRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PublishBuildToolEventStreamRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PublishBuildToolEventStreamRequest proto.InternalMessageInfo
// Deprecated: Do not use.
func (m *PublishBuildToolEventStreamRequest) GetStreamId() *StreamId {
if m != nil {
return m.StreamId
}
return nil
}
// Deprecated: Do not use.
func (m *PublishBuildToolEventStreamRequest) GetSequenceNumber() int64 {
if m != nil {
return m.SequenceNumber
}
return 0
}
// Deprecated: Do not use.
func (m *PublishBuildToolEventStreamRequest) GetEvent() *BuildEvent {
if m != nil {
return m.Event
}
return nil
}
func (m *PublishBuildToolEventStreamRequest) GetOrderedBuildEvent() *OrderedBuildEvent {
if m != nil {
return m.OrderedBuildEvent
}
return nil
}
func (m *PublishBuildToolEventStreamRequest) GetNotificationKeywords() []string {
if m != nil {
return m.NotificationKeywords
}
return nil
}
func init() {
proto.RegisterType((*PublishLifecycleEventRequest)(nil), "google.devtools.build.v1.PublishLifecycleEventRequest")
proto.RegisterType((*PublishBuildToolEventStreamResponse)(nil), "google.devtools.build.v1.PublishBuildToolEventStreamResponse")
proto.RegisterType((*OrderedBuildEvent)(nil), "google.devtools.build.v1.OrderedBuildEvent")
proto.RegisterType((*PublishBuildToolEventStreamRequest)(nil), "google.devtools.build.v1.PublishBuildToolEventStreamRequest")
proto.RegisterEnum("google.devtools.build.v1.PublishLifecycleEventRequest_ServiceLevel", PublishLifecycleEventRequest_ServiceLevel_name, PublishLifecycleEventRequest_ServiceLevel_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// PublishBuildEventClient is the client API for PublishBuildEvent service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type PublishBuildEventClient interface {
// Publish a build event stating the new state of a build (typically from the
// build queue). If the event is a BuildEnqueued event, also register the new
// build request ID and its build type to BES.
//
// The backend will persist the event and deliver it to registered frontend
// jobs immediately without batching.
//
// The commit status of the request is reported by the RPC's util_status()
// function. The error code is the canoncial error code defined in
// //util/task/codes.proto.
PublishLifecycleEvent(ctx context.Context, in *PublishLifecycleEventRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Publish build tool events belonging to the same stream to a backend job
// using bidirectional streaming.
PublishBuildToolEventStream(ctx context.Context, opts ...grpc.CallOption) (PublishBuildEvent_PublishBuildToolEventStreamClient, error)
}
type publishBuildEventClient struct {
cc *grpc.ClientConn
}
func NewPublishBuildEventClient(cc *grpc.ClientConn) PublishBuildEventClient {
return &publishBuildEventClient{cc}
}
func (c *publishBuildEventClient) PublishLifecycleEvent(ctx context.Context, in *PublishLifecycleEventRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.devtools.build.v1.PublishBuildEvent/PublishLifecycleEvent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *publishBuildEventClient) PublishBuildToolEventStream(ctx context.Context, opts ...grpc.CallOption) (PublishBuildEvent_PublishBuildToolEventStreamClient, error) {
stream, err := c.cc.NewStream(ctx, &_PublishBuildEvent_serviceDesc.Streams[0], "/google.devtools.build.v1.PublishBuildEvent/PublishBuildToolEventStream", opts...)
if err != nil {
return nil, err
}
x := &publishBuildEventPublishBuildToolEventStreamClient{stream}
return x, nil
}
type PublishBuildEvent_PublishBuildToolEventStreamClient interface {
Send(*PublishBuildToolEventStreamRequest) error
Recv() (*PublishBuildToolEventStreamResponse, error)
grpc.ClientStream
}
type publishBuildEventPublishBuildToolEventStreamClient struct {
grpc.ClientStream
}
func (x *publishBuildEventPublishBuildToolEventStreamClient) Send(m *PublishBuildToolEventStreamRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *publishBuildEventPublishBuildToolEventStreamClient) Recv() (*PublishBuildToolEventStreamResponse, error) {
m := new(PublishBuildToolEventStreamResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// PublishBuildEventServer is the server API for PublishBuildEvent service.
type PublishBuildEventServer interface {
// Publish a build event stating the new state of a build (typically from the
// build queue). If the event is a BuildEnqueued event, also register the new
// build request ID and its build type to BES.
//
// The backend will persist the event and deliver it to registered frontend
// jobs immediately without batching.
//
// The commit status of the request is reported by the RPC's util_status()
// function. The error code is the canoncial error code defined in
// //util/task/codes.proto.
PublishLifecycleEvent(context.Context, *PublishLifecycleEventRequest) (*empty.Empty, error)
// Publish build tool events belonging to the same stream to a backend job
// using bidirectional streaming.
PublishBuildToolEventStream(PublishBuildEvent_PublishBuildToolEventStreamServer) error
}
func RegisterPublishBuildEventServer(s *grpc.Server, srv PublishBuildEventServer) {
s.RegisterService(&_PublishBuildEvent_serviceDesc, srv)
}
func _PublishBuildEvent_PublishLifecycleEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PublishLifecycleEventRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PublishBuildEventServer).PublishLifecycleEvent(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.build.v1.PublishBuildEvent/PublishLifecycleEvent",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PublishBuildEventServer).PublishLifecycleEvent(ctx, req.(*PublishLifecycleEventRequest))
}
return interceptor(ctx, in, info, handler)
}
func _PublishBuildEvent_PublishBuildToolEventStream_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(PublishBuildEventServer).PublishBuildToolEventStream(&publishBuildEventPublishBuildToolEventStreamServer{stream})
}
type PublishBuildEvent_PublishBuildToolEventStreamServer interface {
Send(*PublishBuildToolEventStreamResponse) error
Recv() (*PublishBuildToolEventStreamRequest, error)
grpc.ServerStream
}
type publishBuildEventPublishBuildToolEventStreamServer struct {
grpc.ServerStream
}
func (x *publishBuildEventPublishBuildToolEventStreamServer) Send(m *PublishBuildToolEventStreamResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *publishBuildEventPublishBuildToolEventStreamServer) Recv() (*PublishBuildToolEventStreamRequest, error) {
m := new(PublishBuildToolEventStreamRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _PublishBuildEvent_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.build.v1.PublishBuildEvent",
HandlerType: (*PublishBuildEventServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "PublishLifecycleEvent",
Handler: _PublishBuildEvent_PublishLifecycleEvent_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "PublishBuildToolEventStream",
Handler: _PublishBuildEvent_PublishBuildToolEventStream_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "google/devtools/build/v1/publish_build_event.proto",
}
func init() {
proto.RegisterFile("google/devtools/build/v1/publish_build_event.proto", fileDescriptor_publish_build_event_392a703d66bd0f43)
}
var fileDescriptor_publish_build_event_392a703d66bd0f43 = []byte{
// 668 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x6e, 0xd3, 0x4c,
0x14, 0xfd, 0x26, 0x69, 0xab, 0x2f, 0x93, 0x36, 0xa5, 0x03, 0x05, 0x93, 0xb6, 0x28, 0x32, 0x08,
0x22, 0x2a, 0xd9, 0x34, 0x95, 0x58, 0x14, 0xca, 0x4f, 0x4a, 0x16, 0x11, 0x55, 0x5a, 0xb9, 0x11,
0x0b, 0x58, 0x58, 0x8e, 0x7d, 0x9b, 0x0e, 0x75, 0x3c, 0xc6, 0x33, 0x36, 0xea, 0x96, 0x17, 0xe8,
0x82, 0x27, 0xe0, 0x31, 0x58, 0xf0, 0x14, 0xbc, 0x02, 0x48, 0x3c, 0x02, 0x4b, 0xe4, 0x19, 0x07,
0x99, 0x06, 0x07, 0x91, 0x05, 0x3b, 0xcf, 0xdc, 0x7b, 0xcf, 0x9d, 0x73, 0xee, 0x8f, 0x71, 0x6b,
0xc8, 0xd8, 0xd0, 0x07, 0xd3, 0x83, 0x44, 0x30, 0xe6, 0x73, 0x73, 0x10, 0x53, 0xdf, 0x33, 0x93,
0x2d, 0x33, 0x8c, 0x07, 0x3e, 0xe5, 0x27, 0xb6, 0xbc, 0xb0, 0x21, 0x81, 0x40, 0x18, 0x61, 0xc4,
0x04, 0x23, 0x9a, 0x8a, 0x31, 0xc6, 0x31, 0x86, 0x74, 0x31, 0x92, 0xad, 0xfa, 0x7a, 0x86, 0xe6,
0x84, 0xd4, 0x74, 0x82, 0x80, 0x09, 0x47, 0x50, 0x16, 0x70, 0x15, 0x57, 0xdf, 0x2c, 0xcc, 0x95,
0xcb, 0x31, 0x76, 0xbe, 0x91, 0x39, 0xcb, 0xd3, 0x20, 0x3e, 0x36, 0xbd, 0x38, 0x92, 0x68, 0x99,
0x7d, 0xed, 0xa2, 0x1d, 0x46, 0xa1, 0x38, 0x53, 0x46, 0xfd, 0x43, 0x19, 0xaf, 0x1f, 0xaa, 0xf7,
0xef, 0xd3, 0x63, 0x70, 0xcf, 0x5c, 0x1f, 0x3a, 0x29, 0xba, 0x05, 0x6f, 0x62, 0xe0, 0x82, 0x9c,
0xe0, 0x25, 0x0e, 0x51, 0x42, 0x5d, 0xb0, 0x7d, 0x48, 0xc0,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