vendor update for CSI 0.3.0

This commit is contained in:
gman
2018-07-18 16:47:22 +02:00
parent 6f484f92fc
commit 8ea659f0d5
6810 changed files with 438061 additions and 193861 deletions

View File

@ -1,32 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/build/v1/build_events.proto
/*
Package build is a generated protocol buffer package.
It is generated from these files:
google/devtools/build/v1/build_events.proto
google/devtools/build/v1/build_status.proto
google/devtools/build/v1/publish_build_event.proto
It has these top-level messages:
BuildEvent
StreamId
BuildStatus
PublishLifecycleEventRequest
PublishBuildToolEventStreamResponse
OrderedBuildEvent
PublishBuildToolEventStreamRequest
*/
package build
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_protobuf1 "github.com/golang/protobuf/ptypes/any"
import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
import google_protobuf3 "github.com/golang/protobuf/ptypes/wrappers"
import _ "google.golang.org/genproto/googleapis/rpc/status"
// Reference imports to suppress errors if they are not otherwise used.
@ -66,7 +49,9 @@ var ConsoleOutputStream_value = map[string]int32{
func (x ConsoleOutputStream) String() string {
return proto.EnumName(ConsoleOutputStream_name, int32(x))
}
func (ConsoleOutputStream) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (ConsoleOutputStream) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_build_events_e8fab93011e40aeb, []int{0}
}
// How did the event stream finish.
type BuildEvent_BuildComponentStreamFinished_FinishType int32
@ -98,7 +83,7 @@ func (x BuildEvent_BuildComponentStreamFinished_FinishType) String() string {
return proto.EnumName(BuildEvent_BuildComponentStreamFinished_FinishType_name, int32(x))
}
func (BuildEvent_BuildComponentStreamFinished_FinishType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 5, 0}
return fileDescriptor_build_events_e8fab93011e40aeb, []int{0, 5, 0}
}
// Which build component generates this event stream. Each build component
@ -132,13 +117,15 @@ var StreamId_BuildComponent_value = map[string]int32{
func (x StreamId_BuildComponent) String() string {
return proto.EnumName(StreamId_BuildComponent_name, int32(x))
}
func (StreamId_BuildComponent) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
func (StreamId_BuildComponent) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_build_events_e8fab93011e40aeb, []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 *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime" json:"event_time,omitempty"`
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.
@ -153,55 +140,100 @@ type BuildEvent struct {
// *BuildEvent_BazelEvent
// *BuildEvent_BuildExecutionEvent
// *BuildEvent_SourceFetchEvent
Event isBuildEvent_Event `protobuf_oneof:"event"`
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 fileDescriptor0, []int{0} }
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_e8fab93011e40aeb, []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
func (m *BuildEvent) GetEventTime() *timestamp.Timestamp {
if m != nil {
return m.EventTime
}
return nil
}
type isBuildEvent_Event interface {
isBuildEvent_Event()
}
type BuildEvent_InvocationAttemptStarted_ struct {
InvocationAttemptStarted *BuildEvent_InvocationAttemptStarted `protobuf:"bytes,51,opt,name=invocation_attempt_started,json=invocationAttemptStarted,oneof"`
}
type BuildEvent_InvocationAttemptFinished_ struct {
InvocationAttemptFinished *BuildEvent_InvocationAttemptFinished `protobuf:"bytes,52,opt,name=invocation_attempt_finished,json=invocationAttemptFinished,oneof"`
}
type BuildEvent_BuildEnqueued_ struct {
BuildEnqueued *BuildEvent_BuildEnqueued `protobuf:"bytes,53,opt,name=build_enqueued,json=buildEnqueued,oneof"`
}
type BuildEvent_BuildFinished_ struct {
BuildFinished *BuildEvent_BuildFinished `protobuf:"bytes,55,opt,name=build_finished,json=buildFinished,oneof"`
}
type BuildEvent_ConsoleOutput_ struct {
ConsoleOutput *BuildEvent_ConsoleOutput `protobuf:"bytes,56,opt,name=console_output,json=consoleOutput,oneof"`
}
type BuildEvent_ComponentStreamFinished struct {
ComponentStreamFinished *BuildEvent_BuildComponentStreamFinished `protobuf:"bytes,59,opt,name=component_stream_finished,json=componentStreamFinished,oneof"`
}
type BuildEvent_BazelEvent struct {
BazelEvent *google_protobuf1.Any `protobuf:"bytes,60,opt,name=bazel_event,json=bazelEvent,oneof"`
}
type BuildEvent_BuildExecutionEvent struct {
BuildExecutionEvent *google_protobuf1.Any `protobuf:"bytes,61,opt,name=build_execution_event,json=buildExecutionEvent,oneof"`
}
type BuildEvent_SourceFetchEvent struct {
SourceFetchEvent *google_protobuf1.Any `protobuf:"bytes,62,opt,name=source_fetch_event,json=sourceFetchEvent,oneof"`
InvocationAttemptStarted *BuildEvent_InvocationAttemptStarted `protobuf:"bytes,51,opt,name=invocation_attempt_started,json=invocationAttemptStarted,proto3,oneof"`
}
func (*BuildEvent_InvocationAttemptStarted_) isBuildEvent_Event() {}
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 (*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 {
@ -210,13 +242,6 @@ func (m *BuildEvent) GetEvent() isBuildEvent_Event {
return nil
}
func (m *BuildEvent) GetEventTime() *google_protobuf2.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
@ -259,21 +284,21 @@ func (m *BuildEvent) GetComponentStreamFinished() *BuildEvent_BuildComponentStre
return nil
}
func (m *BuildEvent) GetBazelEvent() *google_protobuf1.Any {
func (m *BuildEvent) GetBazelEvent() *any.Any {
if x, ok := m.GetEvent().(*BuildEvent_BazelEvent); ok {
return x.BazelEvent
}
return nil
}
func (m *BuildEvent) GetBuildExecutionEvent() *google_protobuf1.Any {
func (m *BuildEvent) GetBuildExecutionEvent() *any.Any {
if x, ok := m.GetEvent().(*BuildEvent_BuildExecutionEvent); ok {
return x.BuildExecutionEvent
}
return nil
}
func (m *BuildEvent) GetSourceFetchEvent() *google_protobuf1.Any {
func (m *BuildEvent) GetSourceFetchEvent() *any.Any {
if x, ok := m.GetEvent().(*BuildEvent_SourceFetchEvent); ok {
return x.SourceFetchEvent
}
@ -406,7 +431,7 @@ func _BuildEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buf
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(google_protobuf1.Any)
msg := new(any.Any)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_BazelEvent{msg}
return true, err
@ -414,7 +439,7 @@ func _BuildEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buf
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(google_protobuf1.Any)
msg := new(any.Any)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_BuildExecutionEvent{msg}
return true, err
@ -422,7 +447,7 @@ func _BuildEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buf
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(google_protobuf1.Any)
msg := new(any.Any)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_SourceFetchEvent{msg}
return true, err
@ -437,47 +462,47 @@ func _BuildEvent_OneofSizer(msg proto.Message) (n int) {
switch x := m.Event.(type) {
case *BuildEvent_InvocationAttemptStarted_:
s := proto.Size(x.InvocationAttemptStarted)
n += proto.SizeVarint(51<<3 | proto.WireBytes)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_InvocationAttemptFinished_:
s := proto.Size(x.InvocationAttemptFinished)
n += proto.SizeVarint(52<<3 | proto.WireBytes)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BuildEnqueued_:
s := proto.Size(x.BuildEnqueued)
n += proto.SizeVarint(53<<3 | proto.WireBytes)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BuildFinished_:
s := proto.Size(x.BuildFinished)
n += proto.SizeVarint(55<<3 | proto.WireBytes)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_ConsoleOutput_:
s := proto.Size(x.ConsoleOutput)
n += proto.SizeVarint(56<<3 | proto.WireBytes)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_ComponentStreamFinished:
s := proto.Size(x.ComponentStreamFinished)
n += proto.SizeVarint(59<<3 | proto.WireBytes)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BazelEvent:
s := proto.Size(x.BazelEvent)
n += proto.SizeVarint(60<<3 | proto.WireBytes)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BuildExecutionEvent:
s := proto.Size(x.BuildExecutionEvent)
n += proto.SizeVarint(61<<3 | proto.WireBytes)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_SourceFetchEvent:
s := proto.Size(x.SourceFetchEvent)
n += proto.SizeVarint(62<<3 | proto.WireBytes)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -492,15 +517,35 @@ 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" json:"attempt_number,omitempty"`
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 fileDescriptor0, []int{0, 0}
return fileDescriptor_build_events_e8fab93011e40aeb, []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 {
@ -512,19 +557,39 @@ func (m *BuildEvent_InvocationAttemptStarted) GetAttemptNumber() int64 {
// Notification that an invocation attempt has finished.
type BuildEvent_InvocationAttemptFinished struct {
// The exit code of the build tool.
ExitCode *google_protobuf3.Int32Value `protobuf:"bytes,2,opt,name=exit_code,json=exitCode" json:"exit_code,omitempty"`
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" json:"invocation_status,omitempty"`
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 fileDescriptor0, []int{0, 1}
return fileDescriptor_build_events_e8fab93011e40aeb, []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)
}
func (m *BuildEvent_InvocationAttemptFinished) GetExitCode() *google_protobuf3.Int32Value {
var xxx_messageInfo_BuildEvent_InvocationAttemptFinished proto.InternalMessageInfo
func (m *BuildEvent_InvocationAttemptFinished) GetExitCode() *wrappers.Int32Value {
if m != nil {
return m.ExitCode
}
@ -543,25 +608,69 @@ func (m *BuildEvent_InvocationAttemptFinished) GetInvocationStatus() *BuildStatu
// 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 fileDescriptor0, []int{0, 2} }
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_e8fab93011e40aeb, []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" json:"status,omitempty"`
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 fileDescriptor0, []int{0, 3} }
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_e8fab93011e40aeb, []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 {
@ -573,32 +682,63 @@ func (m *BuildEvent_BuildFinished) GetStatus() *BuildStatus {
// 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,enum=google.devtools.build.v1.ConsoleOutputStream" json:"type,omitempty"`
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"`
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 fileDescriptor0, []int{0, 4} }
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_e8fab93011e40aeb, []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
func (m *BuildEvent_ConsoleOutput) GetType() ConsoleOutputStream {
if m != nil {
return m.Type
}
return ConsoleOutputStream_UNKNOWN
}
type isBuildEvent_ConsoleOutput_Output interface {
isBuildEvent_ConsoleOutput_Output()
}
type BuildEvent_ConsoleOutput_TextOutput struct {
TextOutput string `protobuf:"bytes,2,opt,name=text_output,json=textOutput,oneof"`
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_TextOutput) isBuildEvent_ConsoleOutput_Output() {}
func (*BuildEvent_ConsoleOutput_BinaryOutput) isBuildEvent_ConsoleOutput_Output() {}
func (m *BuildEvent_ConsoleOutput) GetOutput() isBuildEvent_ConsoleOutput_Output {
@ -608,13 +748,6 @@ func (m *BuildEvent_ConsoleOutput) GetOutput() isBuildEvent_ConsoleOutput_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
@ -681,11 +814,11 @@ func _BuildEvent_ConsoleOutput_OneofSizer(msg proto.Message) (n int) {
// output
switch x := m.Output.(type) {
case *BuildEvent_ConsoleOutput_TextOutput:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.TextOutput)))
n += len(x.TextOutput)
case *BuildEvent_ConsoleOutput_BinaryOutput:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.BinaryOutput)))
n += len(x.BinaryOutput)
case nil:
@ -699,7 +832,10 @@ func _BuildEvent_ConsoleOutput_OneofSizer(msg proto.Message) (n int) {
// 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,enum=google.devtools.build.v1.BuildEvent_BuildComponentStreamFinished_FinishType" json:"type,omitempty"`
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() {
@ -708,8 +844,25 @@ func (m *BuildEvent_BuildComponentStreamFinished) Reset() {
func (m *BuildEvent_BuildComponentStreamFinished) String() string { return proto.CompactTextString(m) }
func (*BuildEvent_BuildComponentStreamFinished) ProtoMessage() {}
func (*BuildEvent_BuildComponentStreamFinished) Descriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 5}
return fileDescriptor_build_events_e8fab93011e40aeb, []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 {
@ -721,18 +874,40 @@ func (m *BuildEvent_BuildComponentStreamFinished) GetType() BuildEvent_BuildComp
// 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" json:"build_id,omitempty"`
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" json:"invocation_id,omitempty"`
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,enum=google.devtools.build.v1.StreamId_BuildComponent" json:"component,omitempty"`
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 fileDescriptor0, []int{1} }
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_e8fab93011e40aeb, []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 {
@ -769,9 +944,11 @@ func init() {
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", fileDescriptor0) }
func init() {
proto.RegisterFile("google/devtools/build/v1/build_events.proto", fileDescriptor_build_events_e8fab93011e40aeb)
}
var fileDescriptor0 = []byte{
var fileDescriptor_build_events_e8fab93011e40aeb = []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,

View File

@ -1,19 +1,25 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/build/v1/build_status.proto
package build
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"
import google_protobuf1 "github.com/golang/protobuf/ptypes/any"
// 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
@ -64,20 +70,44 @@ var BuildStatus_Result_value = map[string]int32{
func (x BuildStatus_Result) String() string {
return proto.EnumName(BuildStatus_Result_name, int32(x))
}
func (BuildStatus_Result) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
func (BuildStatus_Result) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_build_status_062894fe191e028f, []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,enum=google.devtools.build.v1.BuildStatus_Result" json:"result,omitempty"`
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 *google_protobuf1.Any `protobuf:"bytes,2,opt,name=details" json:"details,omitempty"`
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 fileDescriptor1, []int{0} }
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_062894fe191e028f, []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 {
@ -86,7 +116,7 @@ func (m *BuildStatus) GetResult() BuildStatus_Result {
return BuildStatus_UNKNOWN_STATUS
}
func (m *BuildStatus) GetDetails() *google_protobuf1.Any {
func (m *BuildStatus) GetDetails() *any.Any {
if m != nil {
return m.Details
}
@ -98,9 +128,11 @@ func init() {
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", fileDescriptor1) }
func init() {
proto.RegisterFile("google/devtools/build/v1/build_status.proto", fileDescriptor_build_status_062894fe191e028f)
}
var fileDescriptor1 = []byte{
var fileDescriptor_build_status_062894fe191e028f = []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,

View File

@ -1,14 +1,14 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/build/v1/publish_build_event.proto
package build
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 google_protobuf4 "github.com/golang/protobuf/ptypes/duration"
import google_protobuf5 "github.com/golang/protobuf/ptypes/empty"
import (
context "golang.org/x/net/context"
@ -20,6 +20,12 @@ 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.
@ -46,7 +52,7 @@ func (x PublishLifecycleEventRequest_ServiceLevel) String() string {
return proto.EnumName(PublishLifecycleEventRequest_ServiceLevel_name, int32(x))
}
func (PublishLifecycleEventRequest_ServiceLevel) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 0}
return fileDescriptor_publish_build_event_3702c05a2ef5b2cf, []int{0, 0}
}
// Publishes 'lifecycle events' that update the high-level state of a build:
@ -57,29 +63,51 @@ func (PublishLifecycleEventRequest_ServiceLevel) EnumDescriptor() ([]byte, []int
// - 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,enum=google.devtools.build.v1.PublishLifecycleEventRequest_ServiceLevel" json:"service_level,omitempty"`
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" json:"build_event,omitempty"`
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 *google_protobuf4.Duration `protobuf:"bytes,3,opt,name=stream_timeout,json=streamTimeout" json:"stream_timeout,omitempty"`
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" json:"notification_keywords,omitempty"`
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" json:"project_id,omitempty"`
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 fileDescriptor2, []int{0} }
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_3702c05a2ef5b2cf, []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 {
@ -95,7 +123,7 @@ func (m *PublishLifecycleEventRequest) GetBuildEvent() *OrderedBuildEvent {
return nil
}
func (m *PublishLifecycleEventRequest) GetStreamTimeout() *google_protobuf4.Duration {
func (m *PublishLifecycleEventRequest) GetStreamTimeout() *duration.Duration {
if m != nil {
return m.StreamTimeout
}
@ -120,17 +148,37 @@ func (m *PublishLifecycleEventRequest) GetProjectId() string {
// 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" json:"stream_id,omitempty"`
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" json:"sequence_number,omitempty"`
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 fileDescriptor2, []int{1}
return fileDescriptor_publish_build_event_3702c05a2ef5b2cf, []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 {
@ -150,19 +198,41 @@ func (m *PublishBuildToolEventStreamResponse) GetSequenceNumber() int64 {
// 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" json:"stream_id,omitempty"`
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" json:"sequence_number,omitempty"`
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" json:"event,omitempty"`
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 fileDescriptor2, []int{2} }
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_3702c05a2ef5b2cf, []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 {
@ -187,30 +257,51 @@ func (m *OrderedBuildEvent) GetEvent() *BuildEvent {
type PublishBuildToolEventStreamRequest struct {
// Which build event stream this event belongs to.
StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId" json:"stream_id,omitempty"`
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" json:"sequence_number,omitempty"`
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" json:"event,omitempty"`
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" json:"ordered_build_event,omitempty"`
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" json:"notification_keywords,omitempty"`
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 fileDescriptor2, []int{3}
return fileDescriptor_publish_build_event_3702c05a2ef5b2cf, []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
@ -218,6 +309,7 @@ func (m *PublishBuildToolEventStreamRequest) GetStreamId() *StreamId {
return nil
}
// Deprecated: Do not use.
func (m *PublishBuildToolEventStreamRequest) GetSequenceNumber() int64 {
if m != nil {
return m.SequenceNumber
@ -225,6 +317,7 @@ func (m *PublishBuildToolEventStreamRequest) GetSequenceNumber() int64 {
return 0
}
// Deprecated: Do not use.
func (m *PublishBuildToolEventStreamRequest) GetEvent() *BuildEvent {
if m != nil {
return m.Event
@ -262,8 +355,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for PublishBuildEvent service
// 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
@ -275,7 +369,7 @@ type PublishBuildEventClient interface {
// 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) (*google_protobuf5.Empty, error)
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)
@ -289,9 +383,9 @@ func NewPublishBuildEventClient(cc *grpc.ClientConn) PublishBuildEventClient {
return &publishBuildEventClient{cc}
}
func (c *publishBuildEventClient) PublishLifecycleEvent(ctx context.Context, in *PublishLifecycleEventRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error) {
out := new(google_protobuf5.Empty)
err := grpc.Invoke(ctx, "/google.devtools.build.v1.PublishBuildEvent/PublishLifecycleEvent", in, out, c.cc, opts...)
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
}
@ -299,7 +393,7 @@ func (c *publishBuildEventClient) PublishLifecycleEvent(ctx context.Context, in
}
func (c *publishBuildEventClient) PublishBuildToolEventStream(ctx context.Context, opts ...grpc.CallOption) (PublishBuildEvent_PublishBuildToolEventStreamClient, error) {
stream, err := grpc.NewClientStream(ctx, &_PublishBuildEvent_serviceDesc.Streams[0], c.cc, "/google.devtools.build.v1.PublishBuildEvent/PublishBuildToolEventStream", opts...)
stream, err := c.cc.NewStream(ctx, &_PublishBuildEvent_serviceDesc.Streams[0], "/google.devtools.build.v1.PublishBuildEvent/PublishBuildToolEventStream", opts...)
if err != nil {
return nil, err
}
@ -308,7 +402,7 @@ func (c *publishBuildEventClient) PublishBuildToolEventStream(ctx context.Contex
}
type PublishBuildEvent_PublishBuildToolEventStreamClient interface {
Send(*OrderedBuildEvent) error
Send(*PublishBuildToolEventStreamRequest) error
Recv() (*PublishBuildToolEventStreamResponse, error)
grpc.ClientStream
}
@ -317,7 +411,7 @@ type publishBuildEventPublishBuildToolEventStreamClient struct {
grpc.ClientStream
}
func (x *publishBuildEventPublishBuildToolEventStreamClient) Send(m *OrderedBuildEvent) error {
func (x *publishBuildEventPublishBuildToolEventStreamClient) Send(m *PublishBuildToolEventStreamRequest) error {
return x.ClientStream.SendMsg(m)
}
@ -329,8 +423,7 @@ func (x *publishBuildEventPublishBuildToolEventStreamClient) Recv() (*PublishBui
return m, nil
}
// Server API for PublishBuildEvent service
// 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
@ -342,7 +435,7 @@ type PublishBuildEventServer interface {
// 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) (*google_protobuf5.Empty, error)
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
@ -376,7 +469,7 @@ func _PublishBuildEvent_PublishBuildToolEventStream_Handler(srv interface{}, str
type PublishBuildEvent_PublishBuildToolEventStreamServer interface {
Send(*PublishBuildToolEventStreamResponse) error
Recv() (*OrderedBuildEvent, error)
Recv() (*PublishBuildToolEventStreamRequest, error)
grpc.ServerStream
}
@ -388,8 +481,8 @@ func (x *publishBuildEventPublishBuildToolEventStreamServer) Send(m *PublishBuil
return x.ServerStream.SendMsg(m)
}
func (x *publishBuildEventPublishBuildToolEventStreamServer) Recv() (*OrderedBuildEvent, error) {
m := new(OrderedBuildEvent)
func (x *publishBuildEventPublishBuildToolEventStreamServer) Recv() (*PublishBuildToolEventStreamRequest, error) {
m := new(PublishBuildToolEventStreamRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
@ -416,50 +509,52 @@ var _PublishBuildEvent_serviceDesc = grpc.ServiceDesc{
Metadata: "google/devtools/build/v1/publish_build_event.proto",
}
func init() { proto.RegisterFile("google/devtools/build/v1/publish_build_event.proto", fileDescriptor2) }
var fileDescriptor2 = []byte{
// 666 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcf, 0x6e, 0xd3, 0x4e,
0x10, 0xfe, 0x6d, 0xd2, 0x56, 0xbf, 0x6c, 0xda, 0x94, 0x2e, 0x14, 0x4c, 0xda, 0xa2, 0xc8, 0x20,
0x88, 0xa8, 0x64, 0xd3, 0x54, 0xe2, 0x50, 0x54, 0xfe, 0xa4, 0xe4, 0x10, 0x51, 0xa5, 0x95, 0x1b,
0x71, 0x80, 0x83, 0xe5, 0xd8, 0xd3, 0x74, 0xa9, 0xe3, 0x35, 0xde, 0xb5, 0x51, 0xaf, 0xbc, 0x40,
0x0f, 0x3c, 0x01, 0x77, 0x5e, 0x80, 0xe7, 0x80, 0x47, 0xe0, 0xc0, 0x23, 0x70, 0x44, 0xde, 0x75,
0x90, 0x69, 0x70, 0x50, 0x73, 0xe0, 0xe6, 0xdd, 0x99, 0xf9, 0x66, 0xbe, 0x6f, 0x76, 0xc6, 0xb8,
0x35, 0x64, 0x6c, 0xe8, 0x83, 0xe9, 0x41, 0x22, 0x18, 0xf3, 0xb9, 0x39, 0x88, 0xa9, 0xef, 0x99,
0xc9, 0x96, 0x19, 0xc6, 0x03, 0x9f, 0xf2, 0x13, 0x5b, 0x5e, 0xd8, 0x90, 0x40, 0x20, 0x8c, 0x30,
0x62, 0x82, 0x11, 0x4d, 0xc5, 0x18, 0xe3, 0x18, 0x43, 0xba, 0x18, 0xc9, 0x56, 0x7d, 0x3d, 0x43,
0x73, 0x42, 0x6a, 0x3a, 0x41, 0xc0, 0x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0xad, 0xaf, 0x25, 0xbc, 0x92, 0x97, 0x5a, 0x41, 0x9d,
0x23, 0xbc, 0xfa, 0xc7, 0x1d, 0x41, 0x1e, 0xce, 0xb6, 0x54, 0xea, 0xd7, 0x27, 0x66, 0xba, 0x93,
0xae, 0x38, 0xfd, 0xee, 0xfb, 0x2f, 0xdf, 0x3e, 0x94, 0x1a, 0xfa, 0x5a, 0xba, 0x39, 0xfd, 0xdf,
0x42, 0xf9, 0x4e, 0xb6, 0xb5, 0x77, 0xd0, 0x7d, 0xf2, 0x09, 0xe1, 0xb5, 0x29, 0x4f, 0x82, 0x5c,
0x46, 0xbc, 0xfa, 0xee, 0x5f, 0x49, 0x4c, 0x1b, 0x62, 0x7d, 0x43, 0xd6, 0x7c, 0x43, 0x27, 0x69,
0xcd, 0x70, 0xb1, 0xd4, 0x26, 0x7a, 0x80, 0xda, 0x21, 0x5e, 0x77, 0xd9, 0xa8, 0x30, 0x4d, 0x7b,
0xb1, 0xed, 0xb8, 0xa7, 0x10, 0x78, 0x87, 0xa9, 0x1a, 0x87, 0xe8, 0xd5, 0x6e, 0xe6, 0x39, 0x64,
0xbe, 0x13, 0x0c, 0x0d, 0x16, 0x0d, 0xcd, 0x21, 0x04, 0x52, 0x2b, 0x53, 0x99, 0x9c, 0x90, 0xf2,
0xc9, 0x9f, 0xcd, 0x23, 0xf9, 0xf1, 0x03, 0xa1, 0xc1, 0x82, 0x74, 0xde, 0xfe, 0x19, 0x00, 0x00,
0xff, 0xff, 0x85, 0x4c, 0x16, 0x72, 0x04, 0x07, 0x00, 0x00,
func init() {
proto.RegisterFile("google/devtools/build/v1/publish_build_event.proto", fileDescriptor_publish_build_event_3702c05a2ef5b2cf)
}
var fileDescriptor_publish_build_event_3702c05a2ef5b2cf = []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, 0xe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0x3c, 0xfc,
0xe3, 0xbb, 0xa6, 0x74, 0x52, 0x7d, 0x77, 0xc6, 0x68, 0x35, 0xd5, 0xfa, 0x86, 0x24, 0x71, 0x4d,
0x27, 0x29, 0x09, 0xb8, 0xf8, 0xf6, 0x26, 0xba, 0x87, 0xda, 0x21, 0x5e, 0x77, 0xd9, 0xa8, 0x30,
0x4d, 0x7b, 0xb1, 0xed, 0xb8, 0xa7, 0x10, 0x78, 0x87, 0xa9, 0x3c, 0x87, 0xe8, 0xe5, 0x6e, 0xe6,
0x39, 0x64, 0xbe, 0x13, 0x0c, 0x0d, 0x16, 0x0d, 0xcd, 0x21, 0x04, 0x52, 0x3c, 0x53, 0x99, 0x9c,
0x90, 0xf2, 0xc9, 0xbf, 0xcf, 0x03, 0xf9, 0xf1, 0x1d, 0xa1, 0xc1, 0x82, 0x74, 0xde, 0xfe, 0x11,
0x00, 0x00, 0xff, 0xff, 0xf0, 0x9d, 0x50, 0x3a, 0x15, 0x07, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -1,45 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouddebugger/v2/controller.proto
/*
Package clouddebugger is a generated protocol buffer package.
It is generated from these files:
google/devtools/clouddebugger/v2/controller.proto
google/devtools/clouddebugger/v2/data.proto
google/devtools/clouddebugger/v2/debugger.proto
It has these top-level messages:
RegisterDebuggeeRequest
RegisterDebuggeeResponse
ListActiveBreakpointsRequest
ListActiveBreakpointsResponse
UpdateActiveBreakpointRequest
UpdateActiveBreakpointResponse
FormatMessage
StatusMessage
SourceLocation
Variable
StackFrame
Breakpoint
Debuggee
SetBreakpointRequest
SetBreakpointResponse
GetBreakpointRequest
GetBreakpointResponse
DeleteBreakpointRequest
ListBreakpointsRequest
ListBreakpointsResponse
ListDebuggeesRequest
ListDebuggeesResponse
*/
package clouddebugger
package clouddebugger // import "google.golang.org/genproto/googleapis/devtools/clouddebugger/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import _ "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import (
context "golang.org/x/net/context"
@ -62,13 +30,35 @@ type RegisterDebuggeeRequest struct {
// Debuggee information to register.
// The fields `project`, `uniquifier`, `description` and `agent_version`
// of the debuggee must be set.
Debuggee *Debuggee `protobuf:"bytes,1,opt,name=debuggee" json:"debuggee,omitempty"`
Debuggee *Debuggee `protobuf:"bytes,1,opt,name=debuggee,proto3" json:"debuggee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterDebuggeeRequest) Reset() { *m = RegisterDebuggeeRequest{} }
func (m *RegisterDebuggeeRequest) String() string { return proto.CompactTextString(m) }
func (*RegisterDebuggeeRequest) ProtoMessage() {}
func (*RegisterDebuggeeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *RegisterDebuggeeRequest) Reset() { *m = RegisterDebuggeeRequest{} }
func (m *RegisterDebuggeeRequest) String() string { return proto.CompactTextString(m) }
func (*RegisterDebuggeeRequest) ProtoMessage() {}
func (*RegisterDebuggeeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_controller_ba9f5f8b4f070828, []int{0}
}
func (m *RegisterDebuggeeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RegisterDebuggeeRequest.Unmarshal(m, b)
}
func (m *RegisterDebuggeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RegisterDebuggeeRequest.Marshal(b, m, deterministic)
}
func (dst *RegisterDebuggeeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterDebuggeeRequest.Merge(dst, src)
}
func (m *RegisterDebuggeeRequest) XXX_Size() int {
return xxx_messageInfo_RegisterDebuggeeRequest.Size(m)
}
func (m *RegisterDebuggeeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterDebuggeeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterDebuggeeRequest proto.InternalMessageInfo
func (m *RegisterDebuggeeRequest) GetDebuggee() *Debuggee {
if m != nil {
@ -84,13 +74,35 @@ type RegisterDebuggeeResponse struct {
// If the field `is_disabled` is set to `true`, the agent should disable
// itself by removing all breakpoints and detaching from the application.
// It should however continue to poll `RegisterDebuggee` until reenabled.
Debuggee *Debuggee `protobuf:"bytes,1,opt,name=debuggee" json:"debuggee,omitempty"`
Debuggee *Debuggee `protobuf:"bytes,1,opt,name=debuggee,proto3" json:"debuggee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterDebuggeeResponse) Reset() { *m = RegisterDebuggeeResponse{} }
func (m *RegisterDebuggeeResponse) String() string { return proto.CompactTextString(m) }
func (*RegisterDebuggeeResponse) ProtoMessage() {}
func (*RegisterDebuggeeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *RegisterDebuggeeResponse) Reset() { *m = RegisterDebuggeeResponse{} }
func (m *RegisterDebuggeeResponse) String() string { return proto.CompactTextString(m) }
func (*RegisterDebuggeeResponse) ProtoMessage() {}
func (*RegisterDebuggeeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_controller_ba9f5f8b4f070828, []int{1}
}
func (m *RegisterDebuggeeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RegisterDebuggeeResponse.Unmarshal(m, b)
}
func (m *RegisterDebuggeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RegisterDebuggeeResponse.Marshal(b, m, deterministic)
}
func (dst *RegisterDebuggeeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterDebuggeeResponse.Merge(dst, src)
}
func (m *RegisterDebuggeeResponse) XXX_Size() int {
return xxx_messageInfo_RegisterDebuggeeResponse.Size(m)
}
func (m *RegisterDebuggeeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterDebuggeeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterDebuggeeResponse proto.InternalMessageInfo
func (m *RegisterDebuggeeResponse) GetDebuggee() *Debuggee {
if m != nil {
@ -102,25 +114,47 @@ func (m *RegisterDebuggeeResponse) GetDebuggee() *Debuggee {
// Request to list active breakpoints.
type ListActiveBreakpointsRequest struct {
// Identifies the debuggee.
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId" json:"debuggee_id,omitempty"`
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId,proto3" json:"debuggee_id,omitempty"`
// A token that, if specified, blocks the method call until the list
// of active breakpoints has changed, or a server-selected timeout has
// expired. The value should be set from the `next_wait_token` field in
// the last response. The initial value should be set to `"init"`.
WaitToken string `protobuf:"bytes,2,opt,name=wait_token,json=waitToken" json:"wait_token,omitempty"`
WaitToken string `protobuf:"bytes,2,opt,name=wait_token,json=waitToken,proto3" json:"wait_token,omitempty"`
// If set to `true` (recommended), returns `google.rpc.Code.OK` status and
// sets the `wait_expired` response field to `true` when the server-selected
// timeout has expired.
//
// If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status
// when the server-selected timeout has expired.
SuccessOnTimeout bool `protobuf:"varint,3,opt,name=success_on_timeout,json=successOnTimeout" json:"success_on_timeout,omitempty"`
SuccessOnTimeout bool `protobuf:"varint,3,opt,name=success_on_timeout,json=successOnTimeout,proto3" json:"success_on_timeout,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListActiveBreakpointsRequest) Reset() { *m = ListActiveBreakpointsRequest{} }
func (m *ListActiveBreakpointsRequest) String() string { return proto.CompactTextString(m) }
func (*ListActiveBreakpointsRequest) ProtoMessage() {}
func (*ListActiveBreakpointsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *ListActiveBreakpointsRequest) Reset() { *m = ListActiveBreakpointsRequest{} }
func (m *ListActiveBreakpointsRequest) String() string { return proto.CompactTextString(m) }
func (*ListActiveBreakpointsRequest) ProtoMessage() {}
func (*ListActiveBreakpointsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_controller_ba9f5f8b4f070828, []int{2}
}
func (m *ListActiveBreakpointsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListActiveBreakpointsRequest.Unmarshal(m, b)
}
func (m *ListActiveBreakpointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListActiveBreakpointsRequest.Marshal(b, m, deterministic)
}
func (dst *ListActiveBreakpointsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListActiveBreakpointsRequest.Merge(dst, src)
}
func (m *ListActiveBreakpointsRequest) XXX_Size() int {
return xxx_messageInfo_ListActiveBreakpointsRequest.Size(m)
}
func (m *ListActiveBreakpointsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListActiveBreakpointsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListActiveBreakpointsRequest proto.InternalMessageInfo
func (m *ListActiveBreakpointsRequest) GetDebuggeeId() string {
if m != nil {
@ -147,20 +181,42 @@ func (m *ListActiveBreakpointsRequest) GetSuccessOnTimeout() bool {
type ListActiveBreakpointsResponse struct {
// List of all active breakpoints.
// The fields `id` and `location` are guaranteed to be set on each breakpoint.
Breakpoints []*Breakpoint `protobuf:"bytes,1,rep,name=breakpoints" json:"breakpoints,omitempty"`
Breakpoints []*Breakpoint `protobuf:"bytes,1,rep,name=breakpoints,proto3" json:"breakpoints,omitempty"`
// A token that can be used in the next method call to block until
// the list of breakpoints changes.
NextWaitToken string `protobuf:"bytes,2,opt,name=next_wait_token,json=nextWaitToken" json:"next_wait_token,omitempty"`
NextWaitToken string `protobuf:"bytes,2,opt,name=next_wait_token,json=nextWaitToken,proto3" json:"next_wait_token,omitempty"`
// If set to `true`, indicates that there is no change to the
// list of active breakpoints and the server-selected timeout has expired.
// The `breakpoints` field would be empty and should be ignored.
WaitExpired bool `protobuf:"varint,3,opt,name=wait_expired,json=waitExpired" json:"wait_expired,omitempty"`
WaitExpired bool `protobuf:"varint,3,opt,name=wait_expired,json=waitExpired,proto3" json:"wait_expired,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListActiveBreakpointsResponse) Reset() { *m = ListActiveBreakpointsResponse{} }
func (m *ListActiveBreakpointsResponse) String() string { return proto.CompactTextString(m) }
func (*ListActiveBreakpointsResponse) ProtoMessage() {}
func (*ListActiveBreakpointsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *ListActiveBreakpointsResponse) Reset() { *m = ListActiveBreakpointsResponse{} }
func (m *ListActiveBreakpointsResponse) String() string { return proto.CompactTextString(m) }
func (*ListActiveBreakpointsResponse) ProtoMessage() {}
func (*ListActiveBreakpointsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_controller_ba9f5f8b4f070828, []int{3}
}
func (m *ListActiveBreakpointsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListActiveBreakpointsResponse.Unmarshal(m, b)
}
func (m *ListActiveBreakpointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListActiveBreakpointsResponse.Marshal(b, m, deterministic)
}
func (dst *ListActiveBreakpointsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListActiveBreakpointsResponse.Merge(dst, src)
}
func (m *ListActiveBreakpointsResponse) XXX_Size() int {
return xxx_messageInfo_ListActiveBreakpointsResponse.Size(m)
}
func (m *ListActiveBreakpointsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListActiveBreakpointsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListActiveBreakpointsResponse proto.InternalMessageInfo
func (m *ListActiveBreakpointsResponse) GetBreakpoints() []*Breakpoint {
if m != nil {
@ -186,17 +242,39 @@ func (m *ListActiveBreakpointsResponse) GetWaitExpired() bool {
// Request to update an active breakpoint.
type UpdateActiveBreakpointRequest struct {
// Identifies the debuggee being debugged.
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId" json:"debuggee_id,omitempty"`
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId,proto3" json:"debuggee_id,omitempty"`
// Updated breakpoint information.
// The field `id` must be set.
// The agent must echo all Breakpoint specification fields in the update.
Breakpoint *Breakpoint `protobuf:"bytes,2,opt,name=breakpoint" json:"breakpoint,omitempty"`
Breakpoint *Breakpoint `protobuf:"bytes,2,opt,name=breakpoint,proto3" json:"breakpoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateActiveBreakpointRequest) Reset() { *m = UpdateActiveBreakpointRequest{} }
func (m *UpdateActiveBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateActiveBreakpointRequest) ProtoMessage() {}
func (*UpdateActiveBreakpointRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *UpdateActiveBreakpointRequest) Reset() { *m = UpdateActiveBreakpointRequest{} }
func (m *UpdateActiveBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateActiveBreakpointRequest) ProtoMessage() {}
func (*UpdateActiveBreakpointRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_controller_ba9f5f8b4f070828, []int{4}
}
func (m *UpdateActiveBreakpointRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateActiveBreakpointRequest.Unmarshal(m, b)
}
func (m *UpdateActiveBreakpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateActiveBreakpointRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateActiveBreakpointRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateActiveBreakpointRequest.Merge(dst, src)
}
func (m *UpdateActiveBreakpointRequest) XXX_Size() int {
return xxx_messageInfo_UpdateActiveBreakpointRequest.Size(m)
}
func (m *UpdateActiveBreakpointRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateActiveBreakpointRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateActiveBreakpointRequest proto.InternalMessageInfo
func (m *UpdateActiveBreakpointRequest) GetDebuggeeId() string {
if m != nil {
@ -215,12 +293,34 @@ func (m *UpdateActiveBreakpointRequest) GetBreakpoint() *Breakpoint {
// Response for updating an active breakpoint.
// The message is defined to allow future extensions.
type UpdateActiveBreakpointResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateActiveBreakpointResponse) Reset() { *m = UpdateActiveBreakpointResponse{} }
func (m *UpdateActiveBreakpointResponse) String() string { return proto.CompactTextString(m) }
func (*UpdateActiveBreakpointResponse) ProtoMessage() {}
func (*UpdateActiveBreakpointResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *UpdateActiveBreakpointResponse) Reset() { *m = UpdateActiveBreakpointResponse{} }
func (m *UpdateActiveBreakpointResponse) String() string { return proto.CompactTextString(m) }
func (*UpdateActiveBreakpointResponse) ProtoMessage() {}
func (*UpdateActiveBreakpointResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_controller_ba9f5f8b4f070828, []int{5}
}
func (m *UpdateActiveBreakpointResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateActiveBreakpointResponse.Unmarshal(m, b)
}
func (m *UpdateActiveBreakpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateActiveBreakpointResponse.Marshal(b, m, deterministic)
}
func (dst *UpdateActiveBreakpointResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateActiveBreakpointResponse.Merge(dst, src)
}
func (m *UpdateActiveBreakpointResponse) XXX_Size() int {
return xxx_messageInfo_UpdateActiveBreakpointResponse.Size(m)
}
func (m *UpdateActiveBreakpointResponse) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateActiveBreakpointResponse.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateActiveBreakpointResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*RegisterDebuggeeRequest)(nil), "google.devtools.clouddebugger.v2.RegisterDebuggeeRequest")
@ -239,8 +339,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Controller2 service
// Controller2Client is the client API for Controller2 service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type Controller2Client interface {
// Registers the debuggee with the controller service.
//
@ -288,7 +389,7 @@ func NewController2Client(cc *grpc.ClientConn) Controller2Client {
func (c *controller2Client) RegisterDebuggee(ctx context.Context, in *RegisterDebuggeeRequest, opts ...grpc.CallOption) (*RegisterDebuggeeResponse, error) {
out := new(RegisterDebuggeeResponse)
err := grpc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Controller2/RegisterDebuggee", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Controller2/RegisterDebuggee", in, out, opts...)
if err != nil {
return nil, err
}
@ -297,7 +398,7 @@ func (c *controller2Client) RegisterDebuggee(ctx context.Context, in *RegisterDe
func (c *controller2Client) ListActiveBreakpoints(ctx context.Context, in *ListActiveBreakpointsRequest, opts ...grpc.CallOption) (*ListActiveBreakpointsResponse, error) {
out := new(ListActiveBreakpointsResponse)
err := grpc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Controller2/ListActiveBreakpoints", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Controller2/ListActiveBreakpoints", in, out, opts...)
if err != nil {
return nil, err
}
@ -306,15 +407,14 @@ func (c *controller2Client) ListActiveBreakpoints(ctx context.Context, in *ListA
func (c *controller2Client) UpdateActiveBreakpoint(ctx context.Context, in *UpdateActiveBreakpointRequest, opts ...grpc.CallOption) (*UpdateActiveBreakpointResponse, error) {
out := new(UpdateActiveBreakpointResponse)
err := grpc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Controller2/UpdateActiveBreakpoint", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Controller2/UpdateActiveBreakpoint", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Controller2 service
// Controller2Server is the server API for Controller2 service.
type Controller2Server interface {
// Registers the debuggee with the controller service.
//
@ -431,9 +531,11 @@ var _Controller2_serviceDesc = grpc.ServiceDesc{
Metadata: "google/devtools/clouddebugger/v2/controller.proto",
}
func init() { proto.RegisterFile("google/devtools/clouddebugger/v2/controller.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/devtools/clouddebugger/v2/controller.proto", fileDescriptor_controller_ba9f5f8b4f070828)
}
var fileDescriptor0 = []byte{
var fileDescriptor_controller_ba9f5f8b4f070828 = []byte{
// 602 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xdd, 0x6a, 0xd4, 0x40,
0x14, 0x66, 0x5a, 0x94, 0x76, 0xa2, 0xb4, 0x0c, 0xa8, 0x21, 0xb6, 0xba, 0x0d, 0x52, 0x96, 0x75,

View File

@ -1,21 +1,27 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouddebugger/v2/data.proto
package clouddebugger
package clouddebugger // import "google.golang.org/genproto/googleapis/devtools/clouddebugger/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
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_devtools_source_v1 "google.golang.org/genproto/googleapis/devtools/source/v1"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
import google_protobuf2 "github.com/golang/protobuf/ptypes/wrappers"
import v1 "google.golang.org/genproto/googleapis/devtools/source/v1"
// 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
// Enumerates references to which the message applies.
type StatusMessage_Reference int32
@ -58,7 +64,9 @@ var StatusMessage_Reference_value = map[string]int32{
func (x StatusMessage_Reference) String() string {
return proto.EnumName(StatusMessage_Reference_name, int32(x))
}
func (StatusMessage_Reference) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{1, 0} }
func (StatusMessage_Reference) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_data_03347f8b18bb29e5, []int{1, 0}
}
// Actions that can be taken when a breakpoint hits.
// Agents should reject breakpoints with unsupported or unknown action values.
@ -86,7 +94,9 @@ var Breakpoint_Action_value = map[string]int32{
func (x Breakpoint_Action) String() string {
return proto.EnumName(Breakpoint_Action_name, int32(x))
}
func (Breakpoint_Action) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{5, 0} }
func (Breakpoint_Action) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_data_03347f8b18bb29e5, []int{5, 0}
}
// Log severity levels.
type Breakpoint_LogLevel int32
@ -114,7 +124,9 @@ var Breakpoint_LogLevel_value = map[string]int32{
func (x Breakpoint_LogLevel) String() string {
return proto.EnumName(Breakpoint_LogLevel_name, int32(x))
}
func (Breakpoint_LogLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{5, 1} }
func (Breakpoint_LogLevel) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_data_03347f8b18bb29e5, []int{5, 1}
}
// Represents a message with parameters.
type FormatMessage struct {
@ -127,15 +139,37 @@ type FormatMessage struct {
// * `Failed to load '$0' which helps debug $1 the first time it
// is loaded. Again, $0 is very important.`
// * `Please pay $$10 to use $0 instead of $1.`
Format string `protobuf:"bytes,1,opt,name=format" json:"format,omitempty"`
Format string `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"`
// Optional parameters to be embedded into the message.
Parameters []string `protobuf:"bytes,2,rep,name=parameters" json:"parameters,omitempty"`
Parameters []string `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FormatMessage) Reset() { *m = FormatMessage{} }
func (m *FormatMessage) String() string { return proto.CompactTextString(m) }
func (*FormatMessage) ProtoMessage() {}
func (*FormatMessage) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *FormatMessage) Reset() { *m = FormatMessage{} }
func (m *FormatMessage) String() string { return proto.CompactTextString(m) }
func (*FormatMessage) ProtoMessage() {}
func (*FormatMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_data_03347f8b18bb29e5, []int{0}
}
func (m *FormatMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FormatMessage.Unmarshal(m, b)
}
func (m *FormatMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FormatMessage.Marshal(b, m, deterministic)
}
func (dst *FormatMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_FormatMessage.Merge(dst, src)
}
func (m *FormatMessage) XXX_Size() int {
return xxx_messageInfo_FormatMessage.Size(m)
}
func (m *FormatMessage) XXX_DiscardUnknown() {
xxx_messageInfo_FormatMessage.DiscardUnknown(m)
}
var xxx_messageInfo_FormatMessage proto.InternalMessageInfo
func (m *FormatMessage) GetFormat() string {
if m != nil {
@ -158,17 +192,39 @@ func (m *FormatMessage) GetParameters() []string {
// to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
type StatusMessage struct {
// Distinguishes errors from informational messages.
IsError bool `protobuf:"varint,1,opt,name=is_error,json=isError" json:"is_error,omitempty"`
IsError bool `protobuf:"varint,1,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"`
// Reference to which the message applies.
RefersTo StatusMessage_Reference `protobuf:"varint,2,opt,name=refers_to,json=refersTo,enum=google.devtools.clouddebugger.v2.StatusMessage_Reference" json:"refers_to,omitempty"`
RefersTo StatusMessage_Reference `protobuf:"varint,2,opt,name=refers_to,json=refersTo,proto3,enum=google.devtools.clouddebugger.v2.StatusMessage_Reference" json:"refers_to,omitempty"`
// Status message text.
Description *FormatMessage `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
Description *FormatMessage `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StatusMessage) Reset() { *m = StatusMessage{} }
func (m *StatusMessage) String() string { return proto.CompactTextString(m) }
func (*StatusMessage) ProtoMessage() {}
func (*StatusMessage) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *StatusMessage) Reset() { *m = StatusMessage{} }
func (m *StatusMessage) String() string { return proto.CompactTextString(m) }
func (*StatusMessage) ProtoMessage() {}
func (*StatusMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_data_03347f8b18bb29e5, []int{1}
}
func (m *StatusMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StatusMessage.Unmarshal(m, b)
}
func (m *StatusMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StatusMessage.Marshal(b, m, deterministic)
}
func (dst *StatusMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_StatusMessage.Merge(dst, src)
}
func (m *StatusMessage) XXX_Size() int {
return xxx_messageInfo_StatusMessage.Size(m)
}
func (m *StatusMessage) XXX_DiscardUnknown() {
xxx_messageInfo_StatusMessage.DiscardUnknown(m)
}
var xxx_messageInfo_StatusMessage proto.InternalMessageInfo
func (m *StatusMessage) GetIsError() bool {
if m != nil {
@ -194,15 +250,37 @@ func (m *StatusMessage) GetDescription() *FormatMessage {
// Represents a location in the source code.
type SourceLocation struct {
// Path to the source file within the source context of the target binary.
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// Line inside the file. The first line in the file has the value `1`.
Line int32 `protobuf:"varint,2,opt,name=line" json:"line,omitempty"`
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SourceLocation) Reset() { *m = SourceLocation{} }
func (m *SourceLocation) String() string { return proto.CompactTextString(m) }
func (*SourceLocation) ProtoMessage() {}
func (*SourceLocation) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *SourceLocation) Reset() { *m = SourceLocation{} }
func (m *SourceLocation) String() string { return proto.CompactTextString(m) }
func (*SourceLocation) ProtoMessage() {}
func (*SourceLocation) Descriptor() ([]byte, []int) {
return fileDescriptor_data_03347f8b18bb29e5, []int{2}
}
func (m *SourceLocation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SourceLocation.Unmarshal(m, b)
}
func (m *SourceLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SourceLocation.Marshal(b, m, deterministic)
}
func (dst *SourceLocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_SourceLocation.Merge(dst, src)
}
func (m *SourceLocation) XXX_Size() int {
return xxx_messageInfo_SourceLocation.Size(m)
}
func (m *SourceLocation) XXX_DiscardUnknown() {
xxx_messageInfo_SourceLocation.DiscardUnknown(m)
}
var xxx_messageInfo_SourceLocation proto.InternalMessageInfo
func (m *SourceLocation) GetPath() string {
if m != nil {
@ -329,20 +407,20 @@ func (m *SourceLocation) GetLine() int32 {
// The type field is optional. The debugger agent may or may not support it.
type Variable struct {
// Name of the variable, if any.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Simple value of the variable.
Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// Variable type (e.g. `MyClass`). If the variable is split with
// `var_table_index`, `type` goes next to `value`. The interpretation of
// a type is agent specific. It is recommended to include the dynamic type
// rather than a static type of an object.
Type string `protobuf:"bytes,6,opt,name=type" json:"type,omitempty"`
Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
// Members contained or pointed to by the variable.
Members []*Variable `protobuf:"bytes,3,rep,name=members" json:"members,omitempty"`
Members []*Variable `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
// Reference to a variable in the shared variable table. More than
// one variable can reference the same variable in the table. The
// `var_table_index` field is an index into `variable_table` in Breakpoint.
VarTableIndex *google_protobuf2.Int32Value `protobuf:"bytes,4,opt,name=var_table_index,json=varTableIndex" json:"var_table_index,omitempty"`
VarTableIndex *wrappers.Int32Value `protobuf:"bytes,4,opt,name=var_table_index,json=varTableIndex,proto3" json:"var_table_index,omitempty"`
// Status associated with the variable. This field will usually stay
// unset. A status of a single variable only applies to that variable or
// expression. The rest of breakpoint data still remains valid. Variables
@ -362,13 +440,35 @@ type Variable struct {
// * `Malformed string`,
// * `Field f not found in class C`
// * `Null pointer dereference`
Status *StatusMessage `protobuf:"bytes,5,opt,name=status" json:"status,omitempty"`
Status *StatusMessage `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Variable) Reset() { *m = Variable{} }
func (m *Variable) String() string { return proto.CompactTextString(m) }
func (*Variable) ProtoMessage() {}
func (*Variable) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
func (m *Variable) Reset() { *m = Variable{} }
func (m *Variable) String() string { return proto.CompactTextString(m) }
func (*Variable) ProtoMessage() {}
func (*Variable) Descriptor() ([]byte, []int) {
return fileDescriptor_data_03347f8b18bb29e5, []int{3}
}
func (m *Variable) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Variable.Unmarshal(m, b)
}
func (m *Variable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Variable.Marshal(b, m, deterministic)
}
func (dst *Variable) XXX_Merge(src proto.Message) {
xxx_messageInfo_Variable.Merge(dst, src)
}
func (m *Variable) XXX_Size() int {
return xxx_messageInfo_Variable.Size(m)
}
func (m *Variable) XXX_DiscardUnknown() {
xxx_messageInfo_Variable.DiscardUnknown(m)
}
var xxx_messageInfo_Variable proto.InternalMessageInfo
func (m *Variable) GetName() string {
if m != nil {
@ -398,7 +498,7 @@ func (m *Variable) GetMembers() []*Variable {
return nil
}
func (m *Variable) GetVarTableIndex() *google_protobuf2.Int32Value {
func (m *Variable) GetVarTableIndex() *wrappers.Int32Value {
if m != nil {
return m.VarTableIndex
}
@ -415,21 +515,43 @@ func (m *Variable) GetStatus() *StatusMessage {
// Represents a stack frame context.
type StackFrame struct {
// Demangled function name at the call site.
Function string `protobuf:"bytes,1,opt,name=function" json:"function,omitempty"`
Function string `protobuf:"bytes,1,opt,name=function,proto3" json:"function,omitempty"`
// Source location of the call site.
Location *SourceLocation `protobuf:"bytes,2,opt,name=location" json:"location,omitempty"`
Location *SourceLocation `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
// Set of arguments passed to this function.
// Note that this might not be populated for all stack frames.
Arguments []*Variable `protobuf:"bytes,3,rep,name=arguments" json:"arguments,omitempty"`
Arguments []*Variable `protobuf:"bytes,3,rep,name=arguments,proto3" json:"arguments,omitempty"`
// Set of local variables at the stack frame location.
// Note that this might not be populated for all stack frames.
Locals []*Variable `protobuf:"bytes,4,rep,name=locals" json:"locals,omitempty"`
Locals []*Variable `protobuf:"bytes,4,rep,name=locals,proto3" json:"locals,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StackFrame) Reset() { *m = StackFrame{} }
func (m *StackFrame) String() string { return proto.CompactTextString(m) }
func (*StackFrame) ProtoMessage() {}
func (*StackFrame) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
func (m *StackFrame) Reset() { *m = StackFrame{} }
func (m *StackFrame) String() string { return proto.CompactTextString(m) }
func (*StackFrame) ProtoMessage() {}
func (*StackFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_data_03347f8b18bb29e5, []int{4}
}
func (m *StackFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StackFrame.Unmarshal(m, b)
}
func (m *StackFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StackFrame.Marshal(b, m, deterministic)
}
func (dst *StackFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_StackFrame.Merge(dst, src)
}
func (m *StackFrame) XXX_Size() int {
return xxx_messageInfo_StackFrame.Size(m)
}
func (m *StackFrame) XXX_DiscardUnknown() {
xxx_messageInfo_StackFrame.DiscardUnknown(m)
}
var xxx_messageInfo_StackFrame proto.InternalMessageInfo
func (m *StackFrame) GetFunction() string {
if m != nil {
@ -462,21 +584,21 @@ func (m *StackFrame) GetLocals() []*Variable {
// Represents the breakpoint specification, status and results.
type Breakpoint struct {
// Breakpoint identifier, unique in the scope of the debuggee.
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Action that the agent should perform when the code at the
// breakpoint location is hit.
Action Breakpoint_Action `protobuf:"varint,13,opt,name=action,enum=google.devtools.clouddebugger.v2.Breakpoint_Action" json:"action,omitempty"`
Action Breakpoint_Action `protobuf:"varint,13,opt,name=action,proto3,enum=google.devtools.clouddebugger.v2.Breakpoint_Action" json:"action,omitempty"`
// Breakpoint source location.
Location *SourceLocation `protobuf:"bytes,2,opt,name=location" json:"location,omitempty"`
Location *SourceLocation `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
// Condition that triggers the breakpoint.
// The condition is a compound boolean expression composed using expressions
// in a programming language at the source location.
Condition string `protobuf:"bytes,3,opt,name=condition" json:"condition,omitempty"`
Condition string `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"`
// List of read-only expressions to evaluate at the breakpoint location.
// The expressions are composed using expressions in the programming language
// at the source location. If the breakpoint action is `LOG`, the evaluated
// expressions are included in log statements.
Expressions []string `protobuf:"bytes,4,rep,name=expressions" json:"expressions,omitempty"`
Expressions []string `protobuf:"bytes,4,rep,name=expressions,proto3" json:"expressions,omitempty"`
// Only relevant when action is `LOG`. Defines the message to log when
// the breakpoint hits. The message may include parameter placeholders `$0`,
// `$1`, etc. These placeholders are replaced with the evaluated value
@ -485,19 +607,19 @@ type Breakpoint struct {
//
// Example: `Message received, id = $0, count = $1` with
// `expressions` = `[ message.id, message.count ]`.
LogMessageFormat string `protobuf:"bytes,14,opt,name=log_message_format,json=logMessageFormat" json:"log_message_format,omitempty"`
LogMessageFormat string `protobuf:"bytes,14,opt,name=log_message_format,json=logMessageFormat,proto3" json:"log_message_format,omitempty"`
// Indicates the severity of the log. Only relevant when action is `LOG`.
LogLevel Breakpoint_LogLevel `protobuf:"varint,15,opt,name=log_level,json=logLevel,enum=google.devtools.clouddebugger.v2.Breakpoint_LogLevel" json:"log_level,omitempty"`
LogLevel Breakpoint_LogLevel `protobuf:"varint,15,opt,name=log_level,json=logLevel,proto3,enum=google.devtools.clouddebugger.v2.Breakpoint_LogLevel" json:"log_level,omitempty"`
// When true, indicates that this is a final result and the
// breakpoint state will not change from here on.
IsFinalState bool `protobuf:"varint,5,opt,name=is_final_state,json=isFinalState" json:"is_final_state,omitempty"`
IsFinalState bool `protobuf:"varint,5,opt,name=is_final_state,json=isFinalState,proto3" json:"is_final_state,omitempty"`
// Time this breakpoint was created by the server in seconds resolution.
CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Time this breakpoint was finalized as seen by the server in seconds
// resolution.
FinalTime *google_protobuf1.Timestamp `protobuf:"bytes,12,opt,name=final_time,json=finalTime" json:"final_time,omitempty"`
FinalTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=final_time,json=finalTime,proto3" json:"final_time,omitempty"`
// E-mail address of the user that created this breakpoint
UserEmail string `protobuf:"bytes,16,opt,name=user_email,json=userEmail" json:"user_email,omitempty"`
UserEmail string `protobuf:"bytes,16,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
// Breakpoint status.
//
// The status includes an error flag and a human readable message.
@ -513,9 +635,9 @@ type Breakpoint struct {
//
// * `Invalid line number` referring to location
// * `Field f not found in class C` referring to condition
Status *StatusMessage `protobuf:"bytes,10,opt,name=status" json:"status,omitempty"`
Status *StatusMessage `protobuf:"bytes,10,opt,name=status,proto3" json:"status,omitempty"`
// The stack at breakpoint time.
StackFrames []*StackFrame `protobuf:"bytes,7,rep,name=stack_frames,json=stackFrames" json:"stack_frames,omitempty"`
StackFrames []*StackFrame `protobuf:"bytes,7,rep,name=stack_frames,json=stackFrames,proto3" json:"stack_frames,omitempty"`
// Values of evaluated expressions at breakpoint time.
// The evaluated expressions appear in exactly the same order they
// are listed in the `expressions` field.
@ -523,7 +645,7 @@ type Breakpoint struct {
// `members` field holds the result of the evaluated expression.
// If the expression cannot be evaluated, the `status` inside the `Variable`
// will indicate an error and contain the error text.
EvaluatedExpressions []*Variable `protobuf:"bytes,8,rep,name=evaluated_expressions,json=evaluatedExpressions" json:"evaluated_expressions,omitempty"`
EvaluatedExpressions []*Variable `protobuf:"bytes,8,rep,name=evaluated_expressions,json=evaluatedExpressions,proto3" json:"evaluated_expressions,omitempty"`
// The `variable_table` exists to aid with computation, memory and network
// traffic optimization. It enables storing a variable once and reference
// it from multiple variables, including variables stored in the
@ -536,16 +658,38 @@ type Breakpoint struct {
// The stored objects are nameless and get their name from the referencing
// variable. The effective variable is a merge of the referencing variable
// and the referenced variable.
VariableTable []*Variable `protobuf:"bytes,9,rep,name=variable_table,json=variableTable" json:"variable_table,omitempty"`
VariableTable []*Variable `protobuf:"bytes,9,rep,name=variable_table,json=variableTable,proto3" json:"variable_table,omitempty"`
// A set of custom breakpoint properties, populated by the agent, to be
// displayed to the user.
Labels map[string]string `protobuf:"bytes,17,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Labels map[string]string `protobuf:"bytes,17,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Breakpoint) Reset() { *m = Breakpoint{} }
func (m *Breakpoint) String() string { return proto.CompactTextString(m) }
func (*Breakpoint) ProtoMessage() {}
func (*Breakpoint) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
func (m *Breakpoint) Reset() { *m = Breakpoint{} }
func (m *Breakpoint) String() string { return proto.CompactTextString(m) }
func (*Breakpoint) ProtoMessage() {}
func (*Breakpoint) Descriptor() ([]byte, []int) {
return fileDescriptor_data_03347f8b18bb29e5, []int{5}
}
func (m *Breakpoint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Breakpoint.Unmarshal(m, b)
}
func (m *Breakpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Breakpoint.Marshal(b, m, deterministic)
}
func (dst *Breakpoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_Breakpoint.Merge(dst, src)
}
func (m *Breakpoint) XXX_Size() int {
return xxx_messageInfo_Breakpoint.Size(m)
}
func (m *Breakpoint) XXX_DiscardUnknown() {
xxx_messageInfo_Breakpoint.DiscardUnknown(m)
}
var xxx_messageInfo_Breakpoint proto.InternalMessageInfo
func (m *Breakpoint) GetId() string {
if m != nil {
@ -603,14 +747,14 @@ func (m *Breakpoint) GetIsFinalState() bool {
return false
}
func (m *Breakpoint) GetCreateTime() *google_protobuf1.Timestamp {
func (m *Breakpoint) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Breakpoint) GetFinalTime() *google_protobuf1.Timestamp {
func (m *Breakpoint) GetFinalTime() *timestamp.Timestamp {
if m != nil {
return m.FinalTime
}
@ -666,52 +810,74 @@ func (m *Breakpoint) GetLabels() map[string]string {
// exactly the same Debuggee message value when registering.
type Debuggee struct {
// Unique identifier for the debuggee generated by the controller service.
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Project the debuggee is associated with.
// Use project number or id when registering a Google Cloud Platform project.
Project string `protobuf:"bytes,2,opt,name=project" json:"project,omitempty"`
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
// Uniquifier to further distiguish the application.
// It is possible that different applications might have identical values in
// the debuggee message, thus, incorrectly identified as a single application
// by the Controller service. This field adds salt to further distiguish the
// application. Agents should consider seeding this field with value that
// identifies the code, binary, configuration and environment.
Uniquifier string `protobuf:"bytes,3,opt,name=uniquifier" json:"uniquifier,omitempty"`
Uniquifier string `protobuf:"bytes,3,opt,name=uniquifier,proto3" json:"uniquifier,omitempty"`
// Human readable description of the debuggee.
// Including a human-readable project name, environment name and version
// information is recommended.
Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// If set to `true`, indicates that Controller service does not detect any
// activity from the debuggee agents and the application is possibly stopped.
IsInactive bool `protobuf:"varint,5,opt,name=is_inactive,json=isInactive" json:"is_inactive,omitempty"`
IsInactive bool `protobuf:"varint,5,opt,name=is_inactive,json=isInactive,proto3" json:"is_inactive,omitempty"`
// Version ID of the agent.
// Schema: `domain/language-platform/vmajor.minor` (for example
// `google.com/java-gcp/v1.1`).
AgentVersion string `protobuf:"bytes,6,opt,name=agent_version,json=agentVersion" json:"agent_version,omitempty"`
AgentVersion string `protobuf:"bytes,6,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
// If set to `true`, indicates that the agent should disable itself and
// detach from the debuggee.
IsDisabled bool `protobuf:"varint,7,opt,name=is_disabled,json=isDisabled" json:"is_disabled,omitempty"`
IsDisabled bool `protobuf:"varint,7,opt,name=is_disabled,json=isDisabled,proto3" json:"is_disabled,omitempty"`
// Human readable message to be displayed to the user about this debuggee.
// Absence of this field indicates no status. The message can be either
// informational or an error status.
Status *StatusMessage `protobuf:"bytes,8,opt,name=status" json:"status,omitempty"`
Status *StatusMessage `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
// References to the locations and revisions of the source code used in the
// deployed application.
SourceContexts []*google_devtools_source_v1.SourceContext `protobuf:"bytes,9,rep,name=source_contexts,json=sourceContexts" json:"source_contexts,omitempty"`
SourceContexts []*v1.SourceContext `protobuf:"bytes,9,rep,name=source_contexts,json=sourceContexts,proto3" json:"source_contexts,omitempty"`
// References to the locations and revisions of the source code used in the
// deployed application.
//
// NOTE: this field is experimental and can be ignored.
ExtSourceContexts []*google_devtools_source_v1.ExtendedSourceContext `protobuf:"bytes,13,rep,name=ext_source_contexts,json=extSourceContexts" json:"ext_source_contexts,omitempty"`
ExtSourceContexts []*v1.ExtendedSourceContext `protobuf:"bytes,13,rep,name=ext_source_contexts,json=extSourceContexts,proto3" json:"ext_source_contexts,omitempty"`
// A set of custom debuggee properties, populated by the agent, to be
// displayed to the user.
Labels map[string]string `protobuf:"bytes,11,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Labels map[string]string `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Debuggee) Reset() { *m = Debuggee{} }
func (m *Debuggee) String() string { return proto.CompactTextString(m) }
func (*Debuggee) ProtoMessage() {}
func (*Debuggee) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
func (m *Debuggee) Reset() { *m = Debuggee{} }
func (m *Debuggee) String() string { return proto.CompactTextString(m) }
func (*Debuggee) ProtoMessage() {}
func (*Debuggee) Descriptor() ([]byte, []int) {
return fileDescriptor_data_03347f8b18bb29e5, []int{6}
}
func (m *Debuggee) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Debuggee.Unmarshal(m, b)
}
func (m *Debuggee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Debuggee.Marshal(b, m, deterministic)
}
func (dst *Debuggee) XXX_Merge(src proto.Message) {
xxx_messageInfo_Debuggee.Merge(dst, src)
}
func (m *Debuggee) XXX_Size() int {
return xxx_messageInfo_Debuggee.Size(m)
}
func (m *Debuggee) XXX_DiscardUnknown() {
xxx_messageInfo_Debuggee.DiscardUnknown(m)
}
var xxx_messageInfo_Debuggee proto.InternalMessageInfo
func (m *Debuggee) GetId() string {
if m != nil {
@ -769,14 +935,14 @@ func (m *Debuggee) GetStatus() *StatusMessage {
return nil
}
func (m *Debuggee) GetSourceContexts() []*google_devtools_source_v1.SourceContext {
func (m *Debuggee) GetSourceContexts() []*v1.SourceContext {
if m != nil {
return m.SourceContexts
}
return nil
}
func (m *Debuggee) GetExtSourceContexts() []*google_devtools_source_v1.ExtendedSourceContext {
func (m *Debuggee) GetExtSourceContexts() []*v1.ExtendedSourceContext {
if m != nil {
return m.ExtSourceContexts
}
@ -797,15 +963,19 @@ func init() {
proto.RegisterType((*Variable)(nil), "google.devtools.clouddebugger.v2.Variable")
proto.RegisterType((*StackFrame)(nil), "google.devtools.clouddebugger.v2.StackFrame")
proto.RegisterType((*Breakpoint)(nil), "google.devtools.clouddebugger.v2.Breakpoint")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.clouddebugger.v2.Breakpoint.LabelsEntry")
proto.RegisterType((*Debuggee)(nil), "google.devtools.clouddebugger.v2.Debuggee")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.clouddebugger.v2.Debuggee.LabelsEntry")
proto.RegisterEnum("google.devtools.clouddebugger.v2.StatusMessage_Reference", StatusMessage_Reference_name, StatusMessage_Reference_value)
proto.RegisterEnum("google.devtools.clouddebugger.v2.Breakpoint_Action", Breakpoint_Action_name, Breakpoint_Action_value)
proto.RegisterEnum("google.devtools.clouddebugger.v2.Breakpoint_LogLevel", Breakpoint_LogLevel_name, Breakpoint_LogLevel_value)
}
func init() { proto.RegisterFile("google/devtools/clouddebugger/v2/data.proto", fileDescriptor1) }
func init() {
proto.RegisterFile("google/devtools/clouddebugger/v2/data.proto", fileDescriptor_data_03347f8b18bb29e5)
}
var fileDescriptor1 = []byte{
var fileDescriptor_data_03347f8b18bb29e5 = []byte{
// 1270 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x5d, 0x92, 0xda, 0xc6,
0x16, 0x36, 0x3f, 0x03, 0xd2, 0x61, 0x60, 0x70, 0x5f, 0xfb, 0x96, 0x3c, 0xd7, 0x77, 0x4c, 0x71,

View File

@ -1,13 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouddebugger/v2/debugger.proto
package clouddebugger
package clouddebugger // import "google.golang.org/genproto/googleapis/devtools/clouddebugger/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf3 "github.com/golang/protobuf/ptypes/empty"
import (
context "golang.org/x/net/context"
@ -19,22 +19,50 @@ 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
// Request to set a breakpoint
type SetBreakpointRequest struct {
// ID of the debuggee where the breakpoint is to be set.
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId" json:"debuggee_id,omitempty"`
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId,proto3" json:"debuggee_id,omitempty"`
// Breakpoint specification to set.
// The field `location` of the breakpoint must be set.
Breakpoint *Breakpoint `protobuf:"bytes,2,opt,name=breakpoint" json:"breakpoint,omitempty"`
Breakpoint *Breakpoint `protobuf:"bytes,2,opt,name=breakpoint,proto3" json:"breakpoint,omitempty"`
// The client version making the call.
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
ClientVersion string `protobuf:"bytes,4,opt,name=client_version,json=clientVersion" json:"client_version,omitempty"`
ClientVersion string `protobuf:"bytes,4,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetBreakpointRequest) Reset() { *m = SetBreakpointRequest{} }
func (m *SetBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*SetBreakpointRequest) ProtoMessage() {}
func (*SetBreakpointRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *SetBreakpointRequest) Reset() { *m = SetBreakpointRequest{} }
func (m *SetBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*SetBreakpointRequest) ProtoMessage() {}
func (*SetBreakpointRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_debugger_04096ebac35efe72, []int{0}
}
func (m *SetBreakpointRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetBreakpointRequest.Unmarshal(m, b)
}
func (m *SetBreakpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetBreakpointRequest.Marshal(b, m, deterministic)
}
func (dst *SetBreakpointRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetBreakpointRequest.Merge(dst, src)
}
func (m *SetBreakpointRequest) XXX_Size() int {
return xxx_messageInfo_SetBreakpointRequest.Size(m)
}
func (m *SetBreakpointRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetBreakpointRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetBreakpointRequest proto.InternalMessageInfo
func (m *SetBreakpointRequest) GetDebuggeeId() string {
if m != nil {
@ -61,13 +89,35 @@ func (m *SetBreakpointRequest) GetClientVersion() string {
type SetBreakpointResponse struct {
// Breakpoint resource.
// The field `id` is guaranteed to be set (in addition to the echoed fileds).
Breakpoint *Breakpoint `protobuf:"bytes,1,opt,name=breakpoint" json:"breakpoint,omitempty"`
Breakpoint *Breakpoint `protobuf:"bytes,1,opt,name=breakpoint,proto3" json:"breakpoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetBreakpointResponse) Reset() { *m = SetBreakpointResponse{} }
func (m *SetBreakpointResponse) String() string { return proto.CompactTextString(m) }
func (*SetBreakpointResponse) ProtoMessage() {}
func (*SetBreakpointResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *SetBreakpointResponse) Reset() { *m = SetBreakpointResponse{} }
func (m *SetBreakpointResponse) String() string { return proto.CompactTextString(m) }
func (*SetBreakpointResponse) ProtoMessage() {}
func (*SetBreakpointResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_debugger_04096ebac35efe72, []int{1}
}
func (m *SetBreakpointResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetBreakpointResponse.Unmarshal(m, b)
}
func (m *SetBreakpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetBreakpointResponse.Marshal(b, m, deterministic)
}
func (dst *SetBreakpointResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetBreakpointResponse.Merge(dst, src)
}
func (m *SetBreakpointResponse) XXX_Size() int {
return xxx_messageInfo_SetBreakpointResponse.Size(m)
}
func (m *SetBreakpointResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SetBreakpointResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SetBreakpointResponse proto.InternalMessageInfo
func (m *SetBreakpointResponse) GetBreakpoint() *Breakpoint {
if m != nil {
@ -79,18 +129,40 @@ func (m *SetBreakpointResponse) GetBreakpoint() *Breakpoint {
// Request to get breakpoint information.
type GetBreakpointRequest struct {
// ID of the debuggee whose breakpoint to get.
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId" json:"debuggee_id,omitempty"`
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId,proto3" json:"debuggee_id,omitempty"`
// ID of the breakpoint to get.
BreakpointId string `protobuf:"bytes,2,opt,name=breakpoint_id,json=breakpointId" json:"breakpoint_id,omitempty"`
BreakpointId string `protobuf:"bytes,2,opt,name=breakpoint_id,json=breakpointId,proto3" json:"breakpoint_id,omitempty"`
// The client version making the call.
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
ClientVersion string `protobuf:"bytes,4,opt,name=client_version,json=clientVersion" json:"client_version,omitempty"`
ClientVersion string `protobuf:"bytes,4,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBreakpointRequest) Reset() { *m = GetBreakpointRequest{} }
func (m *GetBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*GetBreakpointRequest) ProtoMessage() {}
func (*GetBreakpointRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
func (m *GetBreakpointRequest) Reset() { *m = GetBreakpointRequest{} }
func (m *GetBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*GetBreakpointRequest) ProtoMessage() {}
func (*GetBreakpointRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_debugger_04096ebac35efe72, []int{2}
}
func (m *GetBreakpointRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBreakpointRequest.Unmarshal(m, b)
}
func (m *GetBreakpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBreakpointRequest.Marshal(b, m, deterministic)
}
func (dst *GetBreakpointRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBreakpointRequest.Merge(dst, src)
}
func (m *GetBreakpointRequest) XXX_Size() int {
return xxx_messageInfo_GetBreakpointRequest.Size(m)
}
func (m *GetBreakpointRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetBreakpointRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetBreakpointRequest proto.InternalMessageInfo
func (m *GetBreakpointRequest) GetDebuggeeId() string {
if m != nil {
@ -117,13 +189,35 @@ func (m *GetBreakpointRequest) GetClientVersion() string {
type GetBreakpointResponse struct {
// Complete breakpoint state.
// The fields `id` and `location` are guaranteed to be set.
Breakpoint *Breakpoint `protobuf:"bytes,1,opt,name=breakpoint" json:"breakpoint,omitempty"`
Breakpoint *Breakpoint `protobuf:"bytes,1,opt,name=breakpoint,proto3" json:"breakpoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBreakpointResponse) Reset() { *m = GetBreakpointResponse{} }
func (m *GetBreakpointResponse) String() string { return proto.CompactTextString(m) }
func (*GetBreakpointResponse) ProtoMessage() {}
func (*GetBreakpointResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
func (m *GetBreakpointResponse) Reset() { *m = GetBreakpointResponse{} }
func (m *GetBreakpointResponse) String() string { return proto.CompactTextString(m) }
func (*GetBreakpointResponse) ProtoMessage() {}
func (*GetBreakpointResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_debugger_04096ebac35efe72, []int{3}
}
func (m *GetBreakpointResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBreakpointResponse.Unmarshal(m, b)
}
func (m *GetBreakpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBreakpointResponse.Marshal(b, m, deterministic)
}
func (dst *GetBreakpointResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBreakpointResponse.Merge(dst, src)
}
func (m *GetBreakpointResponse) XXX_Size() int {
return xxx_messageInfo_GetBreakpointResponse.Size(m)
}
func (m *GetBreakpointResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetBreakpointResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetBreakpointResponse proto.InternalMessageInfo
func (m *GetBreakpointResponse) GetBreakpoint() *Breakpoint {
if m != nil {
@ -135,18 +229,40 @@ func (m *GetBreakpointResponse) GetBreakpoint() *Breakpoint {
// Request to delete a breakpoint.
type DeleteBreakpointRequest struct {
// ID of the debuggee whose breakpoint to delete.
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId" json:"debuggee_id,omitempty"`
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId,proto3" json:"debuggee_id,omitempty"`
// ID of the breakpoint to delete.
BreakpointId string `protobuf:"bytes,2,opt,name=breakpoint_id,json=breakpointId" json:"breakpoint_id,omitempty"`
BreakpointId string `protobuf:"bytes,2,opt,name=breakpoint_id,json=breakpointId,proto3" json:"breakpoint_id,omitempty"`
// The client version making the call.
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
ClientVersion string `protobuf:"bytes,3,opt,name=client_version,json=clientVersion" json:"client_version,omitempty"`
ClientVersion string `protobuf:"bytes,3,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteBreakpointRequest) Reset() { *m = DeleteBreakpointRequest{} }
func (m *DeleteBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteBreakpointRequest) ProtoMessage() {}
func (*DeleteBreakpointRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
func (m *DeleteBreakpointRequest) Reset() { *m = DeleteBreakpointRequest{} }
func (m *DeleteBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteBreakpointRequest) ProtoMessage() {}
func (*DeleteBreakpointRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_debugger_04096ebac35efe72, []int{4}
}
func (m *DeleteBreakpointRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteBreakpointRequest.Unmarshal(m, b)
}
func (m *DeleteBreakpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteBreakpointRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteBreakpointRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteBreakpointRequest.Merge(dst, src)
}
func (m *DeleteBreakpointRequest) XXX_Size() int {
return xxx_messageInfo_DeleteBreakpointRequest.Size(m)
}
func (m *DeleteBreakpointRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteBreakpointRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteBreakpointRequest proto.InternalMessageInfo
func (m *DeleteBreakpointRequest) GetDebuggeeId() string {
if m != nil {
@ -172,33 +288,55 @@ func (m *DeleteBreakpointRequest) GetClientVersion() string {
// Request to list breakpoints.
type ListBreakpointsRequest struct {
// ID of the debuggee whose breakpoints to list.
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId" json:"debuggee_id,omitempty"`
DebuggeeId string `protobuf:"bytes,1,opt,name=debuggee_id,json=debuggeeId,proto3" json:"debuggee_id,omitempty"`
// When set to `true`, the response includes the list of breakpoints set by
// any user. Otherwise, it includes only breakpoints set by the caller.
IncludeAllUsers bool `protobuf:"varint,2,opt,name=include_all_users,json=includeAllUsers" json:"include_all_users,omitempty"`
IncludeAllUsers bool `protobuf:"varint,2,opt,name=include_all_users,json=includeAllUsers,proto3" json:"include_all_users,omitempty"`
// When set to `true`, the response includes active and inactive
// breakpoints. Otherwise, it includes only active breakpoints.
IncludeInactive bool `protobuf:"varint,3,opt,name=include_inactive,json=includeInactive" json:"include_inactive,omitempty"`
IncludeInactive bool `protobuf:"varint,3,opt,name=include_inactive,json=includeInactive,proto3" json:"include_inactive,omitempty"`
// When set, the response includes only breakpoints with the specified action.
Action *ListBreakpointsRequest_BreakpointActionValue `protobuf:"bytes,4,opt,name=action" json:"action,omitempty"`
Action *ListBreakpointsRequest_BreakpointActionValue `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"`
// This field is deprecated. The following fields are always stripped out of
// the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
StripResults bool `protobuf:"varint,5,opt,name=strip_results,json=stripResults" json:"strip_results,omitempty"`
StripResults bool `protobuf:"varint,5,opt,name=strip_results,json=stripResults,proto3" json:"strip_results,omitempty"`
// A wait token that, if specified, blocks the call until the breakpoints
// list has changed, or a server selected timeout has expired. The value
// should be set from the last response. The error code
// `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
// should be called again with the same `wait_token`.
WaitToken string `protobuf:"bytes,6,opt,name=wait_token,json=waitToken" json:"wait_token,omitempty"`
WaitToken string `protobuf:"bytes,6,opt,name=wait_token,json=waitToken,proto3" json:"wait_token,omitempty"`
// The client version making the call.
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
ClientVersion string `protobuf:"bytes,8,opt,name=client_version,json=clientVersion" json:"client_version,omitempty"`
ClientVersion string `protobuf:"bytes,8,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListBreakpointsRequest) Reset() { *m = ListBreakpointsRequest{} }
func (m *ListBreakpointsRequest) String() string { return proto.CompactTextString(m) }
func (*ListBreakpointsRequest) ProtoMessage() {}
func (*ListBreakpointsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
func (m *ListBreakpointsRequest) Reset() { *m = ListBreakpointsRequest{} }
func (m *ListBreakpointsRequest) String() string { return proto.CompactTextString(m) }
func (*ListBreakpointsRequest) ProtoMessage() {}
func (*ListBreakpointsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_debugger_04096ebac35efe72, []int{5}
}
func (m *ListBreakpointsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListBreakpointsRequest.Unmarshal(m, b)
}
func (m *ListBreakpointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListBreakpointsRequest.Marshal(b, m, deterministic)
}
func (dst *ListBreakpointsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListBreakpointsRequest.Merge(dst, src)
}
func (m *ListBreakpointsRequest) XXX_Size() int {
return xxx_messageInfo_ListBreakpointsRequest.Size(m)
}
func (m *ListBreakpointsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListBreakpointsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListBreakpointsRequest proto.InternalMessageInfo
func (m *ListBreakpointsRequest) GetDebuggeeId() string {
if m != nil {
@ -253,7 +391,10 @@ func (m *ListBreakpointsRequest) GetClientVersion() string {
// field of breakpoints.
type ListBreakpointsRequest_BreakpointActionValue struct {
// Only breakpoints with the specified action will pass the filter.
Value Breakpoint_Action `protobuf:"varint,1,opt,name=value,enum=google.devtools.clouddebugger.v2.Breakpoint_Action" json:"value,omitempty"`
Value Breakpoint_Action `protobuf:"varint,1,opt,name=value,proto3,enum=google.devtools.clouddebugger.v2.Breakpoint_Action" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListBreakpointsRequest_BreakpointActionValue) Reset() {
@ -264,8 +405,25 @@ func (m *ListBreakpointsRequest_BreakpointActionValue) String() string {
}
func (*ListBreakpointsRequest_BreakpointActionValue) ProtoMessage() {}
func (*ListBreakpointsRequest_BreakpointActionValue) Descriptor() ([]byte, []int) {
return fileDescriptor2, []int{5, 0}
return fileDescriptor_debugger_04096ebac35efe72, []int{5, 0}
}
func (m *ListBreakpointsRequest_BreakpointActionValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue.Unmarshal(m, b)
}
func (m *ListBreakpointsRequest_BreakpointActionValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue.Marshal(b, m, deterministic)
}
func (dst *ListBreakpointsRequest_BreakpointActionValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue.Merge(dst, src)
}
func (m *ListBreakpointsRequest_BreakpointActionValue) XXX_Size() int {
return xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue.Size(m)
}
func (m *ListBreakpointsRequest_BreakpointActionValue) XXX_DiscardUnknown() {
xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue.DiscardUnknown(m)
}
var xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue proto.InternalMessageInfo
func (m *ListBreakpointsRequest_BreakpointActionValue) GetValue() Breakpoint_Action {
if m != nil {
@ -280,16 +438,38 @@ type ListBreakpointsResponse struct {
// The fields `id` and `location` are guaranteed to be set on each breakpoint.
// The fields: `stack_frames`, `evaluated_expressions` and `variable_table`
// are cleared on each breakpoint regardless of its status.
Breakpoints []*Breakpoint `protobuf:"bytes,1,rep,name=breakpoints" json:"breakpoints,omitempty"`
Breakpoints []*Breakpoint `protobuf:"bytes,1,rep,name=breakpoints,proto3" json:"breakpoints,omitempty"`
// A wait token that can be used in the next call to `list` (REST) or
// `ListBreakpoints` (RPC) to block until the list of breakpoints has changes.
NextWaitToken string `protobuf:"bytes,2,opt,name=next_wait_token,json=nextWaitToken" json:"next_wait_token,omitempty"`
NextWaitToken string `protobuf:"bytes,2,opt,name=next_wait_token,json=nextWaitToken,proto3" json:"next_wait_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListBreakpointsResponse) Reset() { *m = ListBreakpointsResponse{} }
func (m *ListBreakpointsResponse) String() string { return proto.CompactTextString(m) }
func (*ListBreakpointsResponse) ProtoMessage() {}
func (*ListBreakpointsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} }
func (m *ListBreakpointsResponse) Reset() { *m = ListBreakpointsResponse{} }
func (m *ListBreakpointsResponse) String() string { return proto.CompactTextString(m) }
func (*ListBreakpointsResponse) ProtoMessage() {}
func (*ListBreakpointsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_debugger_04096ebac35efe72, []int{6}
}
func (m *ListBreakpointsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListBreakpointsResponse.Unmarshal(m, b)
}
func (m *ListBreakpointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListBreakpointsResponse.Marshal(b, m, deterministic)
}
func (dst *ListBreakpointsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListBreakpointsResponse.Merge(dst, src)
}
func (m *ListBreakpointsResponse) XXX_Size() int {
return xxx_messageInfo_ListBreakpointsResponse.Size(m)
}
func (m *ListBreakpointsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListBreakpointsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListBreakpointsResponse proto.InternalMessageInfo
func (m *ListBreakpointsResponse) GetBreakpoints() []*Breakpoint {
if m != nil {
@ -308,19 +488,41 @@ func (m *ListBreakpointsResponse) GetNextWaitToken() string {
// Request to list debuggees.
type ListDebuggeesRequest struct {
// Project number of a Google Cloud project whose debuggees to list.
Project string `protobuf:"bytes,2,opt,name=project" json:"project,omitempty"`
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
// When set to `true`, the result includes all debuggees. Otherwise, the
// result includes only debuggees that are active.
IncludeInactive bool `protobuf:"varint,3,opt,name=include_inactive,json=includeInactive" json:"include_inactive,omitempty"`
IncludeInactive bool `protobuf:"varint,3,opt,name=include_inactive,json=includeInactive,proto3" json:"include_inactive,omitempty"`
// The client version making the call.
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
ClientVersion string `protobuf:"bytes,4,opt,name=client_version,json=clientVersion" json:"client_version,omitempty"`
ClientVersion string `protobuf:"bytes,4,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListDebuggeesRequest) Reset() { *m = ListDebuggeesRequest{} }
func (m *ListDebuggeesRequest) String() string { return proto.CompactTextString(m) }
func (*ListDebuggeesRequest) ProtoMessage() {}
func (*ListDebuggeesRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} }
func (m *ListDebuggeesRequest) Reset() { *m = ListDebuggeesRequest{} }
func (m *ListDebuggeesRequest) String() string { return proto.CompactTextString(m) }
func (*ListDebuggeesRequest) ProtoMessage() {}
func (*ListDebuggeesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_debugger_04096ebac35efe72, []int{7}
}
func (m *ListDebuggeesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDebuggeesRequest.Unmarshal(m, b)
}
func (m *ListDebuggeesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDebuggeesRequest.Marshal(b, m, deterministic)
}
func (dst *ListDebuggeesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDebuggeesRequest.Merge(dst, src)
}
func (m *ListDebuggeesRequest) XXX_Size() int {
return xxx_messageInfo_ListDebuggeesRequest.Size(m)
}
func (m *ListDebuggeesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListDebuggeesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListDebuggeesRequest proto.InternalMessageInfo
func (m *ListDebuggeesRequest) GetProject() string {
if m != nil {
@ -349,13 +551,35 @@ type ListDebuggeesResponse struct {
// The fields `debuggee.id` and `description` are guaranteed to be set.
// The `description` field is a human readable field provided by agents and
// can be displayed to users.
Debuggees []*Debuggee `protobuf:"bytes,1,rep,name=debuggees" json:"debuggees,omitempty"`
Debuggees []*Debuggee `protobuf:"bytes,1,rep,name=debuggees,proto3" json:"debuggees,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListDebuggeesResponse) Reset() { *m = ListDebuggeesResponse{} }
func (m *ListDebuggeesResponse) String() string { return proto.CompactTextString(m) }
func (*ListDebuggeesResponse) ProtoMessage() {}
func (*ListDebuggeesResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} }
func (m *ListDebuggeesResponse) Reset() { *m = ListDebuggeesResponse{} }
func (m *ListDebuggeesResponse) String() string { return proto.CompactTextString(m) }
func (*ListDebuggeesResponse) ProtoMessage() {}
func (*ListDebuggeesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_debugger_04096ebac35efe72, []int{8}
}
func (m *ListDebuggeesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDebuggeesResponse.Unmarshal(m, b)
}
func (m *ListDebuggeesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDebuggeesResponse.Marshal(b, m, deterministic)
}
func (dst *ListDebuggeesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDebuggeesResponse.Merge(dst, src)
}
func (m *ListDebuggeesResponse) XXX_Size() int {
return xxx_messageInfo_ListDebuggeesResponse.Size(m)
}
func (m *ListDebuggeesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListDebuggeesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListDebuggeesResponse proto.InternalMessageInfo
func (m *ListDebuggeesResponse) GetDebuggees() []*Debuggee {
if m != nil {
@ -385,15 +609,16 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Debugger2 service
// Debugger2Client is the client API for Debugger2 service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type Debugger2Client interface {
// Sets the breakpoint to the debuggee.
SetBreakpoint(ctx context.Context, in *SetBreakpointRequest, opts ...grpc.CallOption) (*SetBreakpointResponse, error)
// Gets breakpoint information.
GetBreakpoint(ctx context.Context, in *GetBreakpointRequest, opts ...grpc.CallOption) (*GetBreakpointResponse, error)
// Deletes the breakpoint from the debuggee.
DeleteBreakpoint(ctx context.Context, in *DeleteBreakpointRequest, opts ...grpc.CallOption) (*google_protobuf3.Empty, error)
DeleteBreakpoint(ctx context.Context, in *DeleteBreakpointRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Lists all breakpoints for the debuggee.
ListBreakpoints(ctx context.Context, in *ListBreakpointsRequest, opts ...grpc.CallOption) (*ListBreakpointsResponse, error)
// Lists all the debuggees that the user has access to.
@ -410,7 +635,7 @@ func NewDebugger2Client(cc *grpc.ClientConn) Debugger2Client {
func (c *debugger2Client) SetBreakpoint(ctx context.Context, in *SetBreakpointRequest, opts ...grpc.CallOption) (*SetBreakpointResponse, error) {
out := new(SetBreakpointResponse)
err := grpc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/SetBreakpoint", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/SetBreakpoint", in, out, opts...)
if err != nil {
return nil, err
}
@ -419,16 +644,16 @@ func (c *debugger2Client) SetBreakpoint(ctx context.Context, in *SetBreakpointRe
func (c *debugger2Client) GetBreakpoint(ctx context.Context, in *GetBreakpointRequest, opts ...grpc.CallOption) (*GetBreakpointResponse, error) {
out := new(GetBreakpointResponse)
err := grpc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/GetBreakpoint", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/GetBreakpoint", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *debugger2Client) DeleteBreakpoint(ctx context.Context, in *DeleteBreakpointRequest, opts ...grpc.CallOption) (*google_protobuf3.Empty, error) {
out := new(google_protobuf3.Empty)
err := grpc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/DeleteBreakpoint", in, out, c.cc, opts...)
func (c *debugger2Client) DeleteBreakpoint(ctx context.Context, in *DeleteBreakpointRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/DeleteBreakpoint", in, out, opts...)
if err != nil {
return nil, err
}
@ -437,7 +662,7 @@ func (c *debugger2Client) DeleteBreakpoint(ctx context.Context, in *DeleteBreakp
func (c *debugger2Client) ListBreakpoints(ctx context.Context, in *ListBreakpointsRequest, opts ...grpc.CallOption) (*ListBreakpointsResponse, error) {
out := new(ListBreakpointsResponse)
err := grpc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/ListBreakpoints", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/ListBreakpoints", in, out, opts...)
if err != nil {
return nil, err
}
@ -446,22 +671,21 @@ func (c *debugger2Client) ListBreakpoints(ctx context.Context, in *ListBreakpoin
func (c *debugger2Client) ListDebuggees(ctx context.Context, in *ListDebuggeesRequest, opts ...grpc.CallOption) (*ListDebuggeesResponse, error) {
out := new(ListDebuggeesResponse)
err := grpc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/ListDebuggees", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/ListDebuggees", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Debugger2 service
// Debugger2Server is the server API for Debugger2 service.
type Debugger2Server interface {
// Sets the breakpoint to the debuggee.
SetBreakpoint(context.Context, *SetBreakpointRequest) (*SetBreakpointResponse, error)
// Gets breakpoint information.
GetBreakpoint(context.Context, *GetBreakpointRequest) (*GetBreakpointResponse, error)
// Deletes the breakpoint from the debuggee.
DeleteBreakpoint(context.Context, *DeleteBreakpointRequest) (*google_protobuf3.Empty, error)
DeleteBreakpoint(context.Context, *DeleteBreakpointRequest) (*empty.Empty, error)
// Lists all breakpoints for the debuggee.
ListBreakpoints(context.Context, *ListBreakpointsRequest) (*ListBreakpointsResponse, error)
// Lists all the debuggees that the user has access to.
@ -591,9 +815,11 @@ var _Debugger2_serviceDesc = grpc.ServiceDesc{
Metadata: "google/devtools/clouddebugger/v2/debugger.proto",
}
func init() { proto.RegisterFile("google/devtools/clouddebugger/v2/debugger.proto", fileDescriptor2) }
func init() {
proto.RegisterFile("google/devtools/clouddebugger/v2/debugger.proto", fileDescriptor_debugger_04096ebac35efe72)
}
var fileDescriptor2 = []byte{
var fileDescriptor_debugger_04096ebac35efe72 = []byte{
// 797 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xdd, 0x6a, 0xdb, 0x48,
0x14, 0x66, 0x9c, 0xcd, 0x8f, 0x8f, 0xe3, 0x24, 0x3b, 0xe4, 0x47, 0x78, 0xff, 0x8c, 0xf6, 0x87,

View File

@ -1,47 +1,14 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/common.proto
/*
Package clouderrorreporting is a generated protocol buffer package.
It is generated from these files:
google/devtools/clouderrorreporting/v1beta1/common.proto
google/devtools/clouderrorreporting/v1beta1/error_group_service.proto
google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto
google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
It has these top-level messages:
ErrorGroup
TrackingIssue
ErrorEvent
ServiceContext
ErrorContext
HttpRequestContext
SourceLocation
GetGroupRequest
UpdateGroupRequest
ListGroupStatsRequest
ListGroupStatsResponse
ErrorGroupStats
TimedCount
ListEventsRequest
ListEventsResponse
QueryTimeRange
ServiceContextFilter
DeleteEventsRequest
DeleteEventsResponse
ReportErrorEventRequest
ReportErrorEventResponse
ReportedErrorEvent
*/
package clouderrorreporting
package clouderrorreporting // import "google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import _ "google.golang.org/genproto/googleapis/api/monitoredres"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
@ -58,18 +25,40 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ErrorGroup struct {
// The group resource name.
// Example: <code>projects/my-project-123/groups/my-groupid</code>
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Group IDs are unique for a given project. If the same kind of error
// occurs in different service contexts, it will receive the same group ID.
GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
// Associated tracking issues.
TrackingIssues []*TrackingIssue `protobuf:"bytes,3,rep,name=tracking_issues,json=trackingIssues" json:"tracking_issues,omitempty"`
TrackingIssues []*TrackingIssue `protobuf:"bytes,3,rep,name=tracking_issues,json=trackingIssues,proto3" json:"tracking_issues,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ErrorGroup) Reset() { *m = ErrorGroup{} }
func (m *ErrorGroup) String() string { return proto.CompactTextString(m) }
func (*ErrorGroup) ProtoMessage() {}
func (*ErrorGroup) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *ErrorGroup) Reset() { *m = ErrorGroup{} }
func (m *ErrorGroup) String() string { return proto.CompactTextString(m) }
func (*ErrorGroup) ProtoMessage() {}
func (*ErrorGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_common_dcadb19d8ee67f84, []int{0}
}
func (m *ErrorGroup) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ErrorGroup.Unmarshal(m, b)
}
func (m *ErrorGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ErrorGroup.Marshal(b, m, deterministic)
}
func (dst *ErrorGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_ErrorGroup.Merge(dst, src)
}
func (m *ErrorGroup) XXX_Size() int {
return xxx_messageInfo_ErrorGroup.Size(m)
}
func (m *ErrorGroup) XXX_DiscardUnknown() {
xxx_messageInfo_ErrorGroup.DiscardUnknown(m)
}
var xxx_messageInfo_ErrorGroup proto.InternalMessageInfo
func (m *ErrorGroup) GetName() string {
if m != nil {
@ -96,13 +85,35 @@ func (m *ErrorGroup) GetTrackingIssues() []*TrackingIssue {
type TrackingIssue struct {
// A URL pointing to a related entry in an issue tracking system.
// Example: https://github.com/user/project/issues/4
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TrackingIssue) Reset() { *m = TrackingIssue{} }
func (m *TrackingIssue) String() string { return proto.CompactTextString(m) }
func (*TrackingIssue) ProtoMessage() {}
func (*TrackingIssue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *TrackingIssue) Reset() { *m = TrackingIssue{} }
func (m *TrackingIssue) String() string { return proto.CompactTextString(m) }
func (*TrackingIssue) ProtoMessage() {}
func (*TrackingIssue) Descriptor() ([]byte, []int) {
return fileDescriptor_common_dcadb19d8ee67f84, []int{1}
}
func (m *TrackingIssue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TrackingIssue.Unmarshal(m, b)
}
func (m *TrackingIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TrackingIssue.Marshal(b, m, deterministic)
}
func (dst *TrackingIssue) XXX_Merge(src proto.Message) {
xxx_messageInfo_TrackingIssue.Merge(dst, src)
}
func (m *TrackingIssue) XXX_Size() int {
return xxx_messageInfo_TrackingIssue.Size(m)
}
func (m *TrackingIssue) XXX_DiscardUnknown() {
xxx_messageInfo_TrackingIssue.DiscardUnknown(m)
}
var xxx_messageInfo_TrackingIssue proto.InternalMessageInfo
func (m *TrackingIssue) GetUrl() string {
if m != nil {
@ -116,21 +127,43 @@ type ErrorEvent struct {
// Time when the event occurred as provided in the error report.
// If the report did not contain a timestamp, the time the error was received
// by the Error Reporting system is used.
EventTime *google_protobuf1.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime" json:"event_time,omitempty"`
EventTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
// The `ServiceContext` for which this error was reported.
ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext" json:"service_context,omitempty"`
ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
// The stack trace that was reported or logged by the service.
Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// Data about the context in which the error occurred.
Context *ErrorContext `protobuf:"bytes,5,opt,name=context" json:"context,omitempty"`
Context *ErrorContext `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ErrorEvent) Reset() { *m = ErrorEvent{} }
func (m *ErrorEvent) String() string { return proto.CompactTextString(m) }
func (*ErrorEvent) ProtoMessage() {}
func (*ErrorEvent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *ErrorEvent) Reset() { *m = ErrorEvent{} }
func (m *ErrorEvent) String() string { return proto.CompactTextString(m) }
func (*ErrorEvent) ProtoMessage() {}
func (*ErrorEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_common_dcadb19d8ee67f84, []int{2}
}
func (m *ErrorEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ErrorEvent.Unmarshal(m, b)
}
func (m *ErrorEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ErrorEvent.Marshal(b, m, deterministic)
}
func (dst *ErrorEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ErrorEvent.Merge(dst, src)
}
func (m *ErrorEvent) XXX_Size() int {
return xxx_messageInfo_ErrorEvent.Size(m)
}
func (m *ErrorEvent) XXX_DiscardUnknown() {
xxx_messageInfo_ErrorEvent.DiscardUnknown(m)
}
func (m *ErrorEvent) GetEventTime() *google_protobuf1.Timestamp {
var xxx_messageInfo_ErrorEvent proto.InternalMessageInfo
func (m *ErrorEvent) GetEventTime() *timestamp.Timestamp {
if m != nil {
return m.EventTime
}
@ -168,22 +201,44 @@ type ServiceContext struct {
//
// Contains the service name for error reports extracted from Google
// App Engine logs or `default` if the App Engine default service is used.
Service string `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"`
Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
// Represents the source code version that the developer provided,
// which could represent a version label or a Git SHA-1 hash, for example.
Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// Type of the MonitoredResource. List of possible values:
// https://cloud.google.com/monitoring/api/resources
//
// Value is set automatically for incoming errors and must not be set when
// reporting errors.
ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType" json:"resource_type,omitempty"`
ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServiceContext) Reset() { *m = ServiceContext{} }
func (m *ServiceContext) String() string { return proto.CompactTextString(m) }
func (*ServiceContext) ProtoMessage() {}
func (*ServiceContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *ServiceContext) Reset() { *m = ServiceContext{} }
func (m *ServiceContext) String() string { return proto.CompactTextString(m) }
func (*ServiceContext) ProtoMessage() {}
func (*ServiceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_common_dcadb19d8ee67f84, []int{3}
}
func (m *ServiceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceContext.Unmarshal(m, b)
}
func (m *ServiceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceContext.Marshal(b, m, deterministic)
}
func (dst *ServiceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceContext.Merge(dst, src)
}
func (m *ServiceContext) XXX_Size() int {
return xxx_messageInfo_ServiceContext.Size(m)
}
func (m *ServiceContext) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceContext.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceContext proto.InternalMessageInfo
func (m *ServiceContext) GetService() string {
if m != nil {
@ -213,7 +268,7 @@ func (m *ServiceContext) GetResourceType() string {
type ErrorContext struct {
// The HTTP request which was processed when the error was
// triggered.
HttpRequest *HttpRequestContext `protobuf:"bytes,1,opt,name=http_request,json=httpRequest" json:"http_request,omitempty"`
HttpRequest *HttpRequestContext `protobuf:"bytes,1,opt,name=http_request,json=httpRequest,proto3" json:"http_request,omitempty"`
// The user who caused or was affected by the crash.
// This can be a user ID, an email address, or an arbitrary token that
// uniquely identifies the user.
@ -222,20 +277,42 @@ type ErrorContext struct {
// Error Reporting system will use other data, such as remote IP address, to
// distinguish affected users. See `affected_users_count` in
// `ErrorGroupStats`.
User string `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"`
User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
// The location in the source code where the decision was made to
// report the error, usually the place where it was logged.
// For a logged exception this would be the source line where the
// exception is logged, usually close to the place where it was
// caught. This value is in contrast to `Exception.cause_location`,
// which describes the source line where the exception was thrown.
ReportLocation *SourceLocation `protobuf:"bytes,3,opt,name=report_location,json=reportLocation" json:"report_location,omitempty"`
ReportLocation *SourceLocation `protobuf:"bytes,3,opt,name=report_location,json=reportLocation,proto3" json:"report_location,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ErrorContext) Reset() { *m = ErrorContext{} }
func (m *ErrorContext) String() string { return proto.CompactTextString(m) }
func (*ErrorContext) ProtoMessage() {}
func (*ErrorContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *ErrorContext) Reset() { *m = ErrorContext{} }
func (m *ErrorContext) String() string { return proto.CompactTextString(m) }
func (*ErrorContext) ProtoMessage() {}
func (*ErrorContext) Descriptor() ([]byte, []int) {
return fileDescriptor_common_dcadb19d8ee67f84, []int{4}
}
func (m *ErrorContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ErrorContext.Unmarshal(m, b)
}
func (m *ErrorContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ErrorContext.Marshal(b, m, deterministic)
}
func (dst *ErrorContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_ErrorContext.Merge(dst, src)
}
func (m *ErrorContext) XXX_Size() int {
return xxx_messageInfo_ErrorContext.Size(m)
}
func (m *ErrorContext) XXX_DiscardUnknown() {
xxx_messageInfo_ErrorContext.DiscardUnknown(m)
}
var xxx_messageInfo_ErrorContext proto.InternalMessageInfo
func (m *ErrorContext) GetHttpRequest() *HttpRequestContext {
if m != nil {
@ -264,26 +341,48 @@ func (m *ErrorContext) GetReportLocation() *SourceLocation {
// error report has been generated automatically from Google App Engine logs.
type HttpRequestContext struct {
// The type of HTTP request, such as `GET`, `POST`, etc.
Method string `protobuf:"bytes,1,opt,name=method" json:"method,omitempty"`
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
// The URL of the request.
Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// The user agent information that is provided with the request.
UserAgent string `protobuf:"bytes,3,opt,name=user_agent,json=userAgent" json:"user_agent,omitempty"`
UserAgent string `protobuf:"bytes,3,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
// The referrer information that is provided with the request.
Referrer string `protobuf:"bytes,4,opt,name=referrer" json:"referrer,omitempty"`
Referrer string `protobuf:"bytes,4,opt,name=referrer,proto3" json:"referrer,omitempty"`
// The HTTP response status code for the request.
ResponseStatusCode int32 `protobuf:"varint,5,opt,name=response_status_code,json=responseStatusCode" json:"response_status_code,omitempty"`
ResponseStatusCode int32 `protobuf:"varint,5,opt,name=response_status_code,json=responseStatusCode,proto3" json:"response_status_code,omitempty"`
// The IP address from which the request originated.
// This can be IPv4, IPv6, or a token which is derived from the
// IP address, depending on the data that has been provided
// in the error report.
RemoteIp string `protobuf:"bytes,6,opt,name=remote_ip,json=remoteIp" json:"remote_ip,omitempty"`
RemoteIp string `protobuf:"bytes,6,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HttpRequestContext) Reset() { *m = HttpRequestContext{} }
func (m *HttpRequestContext) String() string { return proto.CompactTextString(m) }
func (*HttpRequestContext) ProtoMessage() {}
func (*HttpRequestContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *HttpRequestContext) Reset() { *m = HttpRequestContext{} }
func (m *HttpRequestContext) String() string { return proto.CompactTextString(m) }
func (*HttpRequestContext) ProtoMessage() {}
func (*HttpRequestContext) Descriptor() ([]byte, []int) {
return fileDescriptor_common_dcadb19d8ee67f84, []int{5}
}
func (m *HttpRequestContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HttpRequestContext.Unmarshal(m, b)
}
func (m *HttpRequestContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HttpRequestContext.Marshal(b, m, deterministic)
}
func (dst *HttpRequestContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_HttpRequestContext.Merge(dst, src)
}
func (m *HttpRequestContext) XXX_Size() int {
return xxx_messageInfo_HttpRequestContext.Size(m)
}
func (m *HttpRequestContext) XXX_DiscardUnknown() {
xxx_messageInfo_HttpRequestContext.DiscardUnknown(m)
}
var xxx_messageInfo_HttpRequestContext proto.InternalMessageInfo
func (m *HttpRequestContext) GetMethod() string {
if m != nil {
@ -335,19 +434,41 @@ func (m *HttpRequestContext) GetRemoteIp() string {
type SourceLocation struct {
// The source code filename, which can include a truncated relative
// path, or a full path from a production machine.
FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath" json:"file_path,omitempty"`
FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
// 1-based. 0 indicates that the line number is unknown.
LineNumber int32 `protobuf:"varint,2,opt,name=line_number,json=lineNumber" json:"line_number,omitempty"`
LineNumber int32 `protobuf:"varint,2,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
// Human-readable name of a function or method.
// The value can include optional context like the class or package name.
// For example, `my.package.MyClass.method` in case of Java.
FunctionName string `protobuf:"bytes,4,opt,name=function_name,json=functionName" json:"function_name,omitempty"`
FunctionName string `protobuf:"bytes,4,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SourceLocation) Reset() { *m = SourceLocation{} }
func (m *SourceLocation) String() string { return proto.CompactTextString(m) }
func (*SourceLocation) ProtoMessage() {}
func (*SourceLocation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *SourceLocation) Reset() { *m = SourceLocation{} }
func (m *SourceLocation) String() string { return proto.CompactTextString(m) }
func (*SourceLocation) ProtoMessage() {}
func (*SourceLocation) Descriptor() ([]byte, []int) {
return fileDescriptor_common_dcadb19d8ee67f84, []int{6}
}
func (m *SourceLocation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SourceLocation.Unmarshal(m, b)
}
func (m *SourceLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SourceLocation.Marshal(b, m, deterministic)
}
func (dst *SourceLocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_SourceLocation.Merge(dst, src)
}
func (m *SourceLocation) XXX_Size() int {
return xxx_messageInfo_SourceLocation.Size(m)
}
func (m *SourceLocation) XXX_DiscardUnknown() {
xxx_messageInfo_SourceLocation.DiscardUnknown(m)
}
var xxx_messageInfo_SourceLocation proto.InternalMessageInfo
func (m *SourceLocation) GetFilePath() string {
if m != nil {
@ -381,10 +502,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/common.proto", fileDescriptor0)
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/common.proto", fileDescriptor_common_dcadb19d8ee67f84)
}
var fileDescriptor0 = []byte{
var fileDescriptor_common_dcadb19d8ee67f84 = []byte{
// 705 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x6e, 0x13, 0x31,
0x10, 0x56, 0x92, 0xfe, 0xc5, 0x69, 0x53, 0x64, 0x21, 0x14, 0x02, 0xa8, 0x25, 0xbd, 0x54, 0x42,

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto
package clouderrorreporting
package clouderrorreporting // import "google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -18,6 +18,12 @@ 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
// A request to return an individual group.
type GetGroupRequest struct {
// [Required] The group resource name. Written as
@ -28,13 +34,35 @@ type GetGroupRequest struct {
// this project.
//
// Example: <code>projects/my-project-123/groups/my-group</code>
GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName" json:"group_name,omitempty"`
GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetGroupRequest) Reset() { *m = GetGroupRequest{} }
func (m *GetGroupRequest) String() string { return proto.CompactTextString(m) }
func (*GetGroupRequest) ProtoMessage() {}
func (*GetGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *GetGroupRequest) Reset() { *m = GetGroupRequest{} }
func (m *GetGroupRequest) String() string { return proto.CompactTextString(m) }
func (*GetGroupRequest) ProtoMessage() {}
func (*GetGroupRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_error_group_service_bac55f35b4462f66, []int{0}
}
func (m *GetGroupRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetGroupRequest.Unmarshal(m, b)
}
func (m *GetGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetGroupRequest.Marshal(b, m, deterministic)
}
func (dst *GetGroupRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetGroupRequest.Merge(dst, src)
}
func (m *GetGroupRequest) XXX_Size() int {
return xxx_messageInfo_GetGroupRequest.Size(m)
}
func (m *GetGroupRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetGroupRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetGroupRequest proto.InternalMessageInfo
func (m *GetGroupRequest) GetGroupName() string {
if m != nil {
@ -46,13 +74,35 @@ func (m *GetGroupRequest) GetGroupName() string {
// A request to replace the existing data for the given group.
type UpdateGroupRequest struct {
// [Required] The group which replaces the resource on the server.
Group *ErrorGroup `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
Group *ErrorGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateGroupRequest) Reset() { *m = UpdateGroupRequest{} }
func (m *UpdateGroupRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateGroupRequest) ProtoMessage() {}
func (*UpdateGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *UpdateGroupRequest) Reset() { *m = UpdateGroupRequest{} }
func (m *UpdateGroupRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateGroupRequest) ProtoMessage() {}
func (*UpdateGroupRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_error_group_service_bac55f35b4462f66, []int{1}
}
func (m *UpdateGroupRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateGroupRequest.Unmarshal(m, b)
}
func (m *UpdateGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateGroupRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateGroupRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateGroupRequest.Merge(dst, src)
}
func (m *UpdateGroupRequest) XXX_Size() int {
return xxx_messageInfo_UpdateGroupRequest.Size(m)
}
func (m *UpdateGroupRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateGroupRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateGroupRequest proto.InternalMessageInfo
func (m *UpdateGroupRequest) GetGroup() *ErrorGroup {
if m != nil {
@ -74,8 +124,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for ErrorGroupService service
// ErrorGroupServiceClient is the client API for ErrorGroupService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ErrorGroupServiceClient interface {
// Get the specified group.
GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error)
@ -94,7 +145,7 @@ func NewErrorGroupServiceClient(cc *grpc.ClientConn) ErrorGroupServiceClient {
func (c *errorGroupServiceClient) GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) {
out := new(ErrorGroup)
err := grpc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup", in, out, opts...)
if err != nil {
return nil, err
}
@ -103,15 +154,14 @@ func (c *errorGroupServiceClient) GetGroup(ctx context.Context, in *GetGroupRequ
func (c *errorGroupServiceClient) UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error) {
out := new(ErrorGroup)
err := grpc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ErrorGroupService service
// ErrorGroupServiceServer is the server API for ErrorGroupService service.
type ErrorGroupServiceServer interface {
// Get the specified group.
GetGroup(context.Context, *GetGroupRequest) (*ErrorGroup, error)
@ -178,10 +228,10 @@ var _ErrorGroupService_serviceDesc = grpc.ServiceDesc{
}
func init() {
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/error_group_service.proto", fileDescriptor1)
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/error_group_service.proto", fileDescriptor_error_group_service_bac55f35b4462f66)
}
var fileDescriptor1 = []byte{
var fileDescriptor_error_group_service_bac55f35b4462f66 = []byte{
// 398 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xcb, 0x4a, 0x23, 0x41,
0x14, 0x86, 0xe9, 0x0c, 0x33, 0x4c, 0x2a, 0x8b, 0x61, 0x6a, 0x31, 0x0c, 0xcd, 0x0c, 0x48, 0xdc,

View File

@ -1,14 +1,14 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto
package clouderrorreporting
package clouderrorreporting // import "google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import duration "github.com/golang/protobuf/ptypes/duration"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf2 "github.com/golang/protobuf/ptypes/duration"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
import (
context "golang.org/x/net/context"
@ -20,6 +20,12 @@ 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
// Specifies how the time periods of error group counts are aligned.
type TimedCountAlignment int32
@ -56,7 +62,9 @@ var TimedCountAlignment_value = map[string]int32{
func (x TimedCountAlignment) String() string {
return proto.EnumName(TimedCountAlignment_name, int32(x))
}
func (TimedCountAlignment) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (TimedCountAlignment) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{0}
}
// A sorting order of error groups.
type ErrorGroupOrder int32
@ -93,7 +101,9 @@ var ErrorGroupOrder_value = map[string]int32{
func (x ErrorGroupOrder) String() string {
return proto.EnumName(ErrorGroupOrder_name, int32(x))
}
func (ErrorGroupOrder) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (ErrorGroupOrder) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{1}
}
// The supported time ranges.
type QueryTimeRange_Period int32
@ -138,7 +148,9 @@ var QueryTimeRange_Period_value = map[string]int32{
func (x QueryTimeRange_Period) String() string {
return proto.EnumName(QueryTimeRange_Period_name, int32(x))
}
func (QueryTimeRange_Period) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{6, 0} }
func (QueryTimeRange_Period) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{6, 0}
}
// Specifies a set of `ErrorGroupStats` to return.
type ListGroupStatsRequest struct {
@ -148,13 +160,13 @@ type ListGroupStatsRequest struct {
// Platform project ID</a>.
//
// Example: <code>projects/my-project-123</code>.
ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName" json:"project_name,omitempty"`
ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
// [Optional] List all <code>ErrorGroupStats</code> with these IDs.
GroupId []string `protobuf:"bytes,2,rep,name=group_id,json=groupId" json:"group_id,omitempty"`
GroupId []string `protobuf:"bytes,2,rep,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
// [Optional] List only <code>ErrorGroupStats</code> which belong to a service
// context that matches the filter.
// Data for all service contexts is returned if this field is not specified.
ServiceFilter *ServiceContextFilter `protobuf:"bytes,3,opt,name=service_filter,json=serviceFilter" json:"service_filter,omitempty"`
ServiceFilter *ServiceContextFilter `protobuf:"bytes,3,opt,name=service_filter,json=serviceFilter,proto3" json:"service_filter,omitempty"`
// [Optional] List data for the given time range.
// If not set a default time range is used. The field time_range_begin
// in the response will specify the beginning of this time range.
@ -162,32 +174,54 @@ type ListGroupStatsRequest struct {
// range are returned, unless the request contains an explicit group_id list.
// If a group_id list is given, also <code>ErrorGroupStats</code> with zero
// occurrences are returned.
TimeRange *QueryTimeRange `protobuf:"bytes,5,opt,name=time_range,json=timeRange" json:"time_range,omitempty"`
TimeRange *QueryTimeRange `protobuf:"bytes,5,opt,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"`
// [Optional] The preferred duration for a single returned `TimedCount`.
// If not set, no timed counts are returned.
TimedCountDuration *google_protobuf2.Duration `protobuf:"bytes,6,opt,name=timed_count_duration,json=timedCountDuration" json:"timed_count_duration,omitempty"`
TimedCountDuration *duration.Duration `protobuf:"bytes,6,opt,name=timed_count_duration,json=timedCountDuration,proto3" json:"timed_count_duration,omitempty"`
// [Optional] The alignment of the timed counts to be returned.
// Default is `ALIGNMENT_EQUAL_AT_END`.
Alignment TimedCountAlignment `protobuf:"varint,7,opt,name=alignment,enum=google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment" json:"alignment,omitempty"`
Alignment TimedCountAlignment `protobuf:"varint,7,opt,name=alignment,proto3,enum=google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment" json:"alignment,omitempty"`
// [Optional] Time where the timed counts shall be aligned if rounded
// alignment is chosen. Default is 00:00 UTC.
AlignmentTime *google_protobuf1.Timestamp `protobuf:"bytes,8,opt,name=alignment_time,json=alignmentTime" json:"alignment_time,omitempty"`
AlignmentTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=alignment_time,json=alignmentTime,proto3" json:"alignment_time,omitempty"`
// [Optional] The sort order in which the results are returned.
// Default is `COUNT_DESC`.
Order ErrorGroupOrder `protobuf:"varint,9,opt,name=order,enum=google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder" json:"order,omitempty"`
Order ErrorGroupOrder `protobuf:"varint,9,opt,name=order,proto3,enum=google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder" json:"order,omitempty"`
// [Optional] The maximum number of results to return per response.
// Default is 20.
PageSize int32 `protobuf:"varint,11,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,11,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// [Optional] A `next_page_token` provided by a previous response. To view
// additional results, pass this token along with the identical query
// parameters as the first request.
PageToken string `protobuf:"bytes,12,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,12,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListGroupStatsRequest) Reset() { *m = ListGroupStatsRequest{} }
func (m *ListGroupStatsRequest) String() string { return proto.CompactTextString(m) }
func (*ListGroupStatsRequest) ProtoMessage() {}
func (*ListGroupStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *ListGroupStatsRequest) Reset() { *m = ListGroupStatsRequest{} }
func (m *ListGroupStatsRequest) String() string { return proto.CompactTextString(m) }
func (*ListGroupStatsRequest) ProtoMessage() {}
func (*ListGroupStatsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{0}
}
func (m *ListGroupStatsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListGroupStatsRequest.Unmarshal(m, b)
}
func (m *ListGroupStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListGroupStatsRequest.Marshal(b, m, deterministic)
}
func (dst *ListGroupStatsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListGroupStatsRequest.Merge(dst, src)
}
func (m *ListGroupStatsRequest) XXX_Size() int {
return xxx_messageInfo_ListGroupStatsRequest.Size(m)
}
func (m *ListGroupStatsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListGroupStatsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListGroupStatsRequest proto.InternalMessageInfo
func (m *ListGroupStatsRequest) GetProjectName() string {
if m != nil {
@ -217,7 +251,7 @@ func (m *ListGroupStatsRequest) GetTimeRange() *QueryTimeRange {
return nil
}
func (m *ListGroupStatsRequest) GetTimedCountDuration() *google_protobuf2.Duration {
func (m *ListGroupStatsRequest) GetTimedCountDuration() *duration.Duration {
if m != nil {
return m.TimedCountDuration
}
@ -231,7 +265,7 @@ func (m *ListGroupStatsRequest) GetAlignment() TimedCountAlignment {
return TimedCountAlignment_ERROR_COUNT_ALIGNMENT_UNSPECIFIED
}
func (m *ListGroupStatsRequest) GetAlignmentTime() *google_protobuf1.Timestamp {
func (m *ListGroupStatsRequest) GetAlignmentTime() *timestamp.Timestamp {
if m != nil {
return m.AlignmentTime
}
@ -262,22 +296,44 @@ func (m *ListGroupStatsRequest) GetPageToken() string {
// Contains a set of requested error group stats.
type ListGroupStatsResponse struct {
// The error group stats which match the given request.
ErrorGroupStats []*ErrorGroupStats `protobuf:"bytes,1,rep,name=error_group_stats,json=errorGroupStats" json:"error_group_stats,omitempty"`
ErrorGroupStats []*ErrorGroupStats `protobuf:"bytes,1,rep,name=error_group_stats,json=errorGroupStats,proto3" json:"error_group_stats,omitempty"`
// If non-empty, more results are available.
// Pass this token, along with the same query parameters as the first
// request, to view the next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// The timestamp specifies the start time to which the request was restricted.
// The start time is set based on the requested time range. It may be adjusted
// to a later time if a project has exceeded the storage quota and older data
// has been deleted.
TimeRangeBegin *google_protobuf1.Timestamp `protobuf:"bytes,4,opt,name=time_range_begin,json=timeRangeBegin" json:"time_range_begin,omitempty"`
TimeRangeBegin *timestamp.Timestamp `protobuf:"bytes,4,opt,name=time_range_begin,json=timeRangeBegin,proto3" json:"time_range_begin,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListGroupStatsResponse) Reset() { *m = ListGroupStatsResponse{} }
func (m *ListGroupStatsResponse) String() string { return proto.CompactTextString(m) }
func (*ListGroupStatsResponse) ProtoMessage() {}
func (*ListGroupStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *ListGroupStatsResponse) Reset() { *m = ListGroupStatsResponse{} }
func (m *ListGroupStatsResponse) String() string { return proto.CompactTextString(m) }
func (*ListGroupStatsResponse) ProtoMessage() {}
func (*ListGroupStatsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{1}
}
func (m *ListGroupStatsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListGroupStatsResponse.Unmarshal(m, b)
}
func (m *ListGroupStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListGroupStatsResponse.Marshal(b, m, deterministic)
}
func (dst *ListGroupStatsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListGroupStatsResponse.Merge(dst, src)
}
func (m *ListGroupStatsResponse) XXX_Size() int {
return xxx_messageInfo_ListGroupStatsResponse.Size(m)
}
func (m *ListGroupStatsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListGroupStatsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListGroupStatsResponse proto.InternalMessageInfo
func (m *ListGroupStatsResponse) GetErrorGroupStats() []*ErrorGroupStats {
if m != nil {
@ -293,7 +349,7 @@ func (m *ListGroupStatsResponse) GetNextPageToken() string {
return ""
}
func (m *ListGroupStatsResponse) GetTimeRangeBegin() *google_protobuf1.Timestamp {
func (m *ListGroupStatsResponse) GetTimeRangeBegin() *timestamp.Timestamp {
if m != nil {
return m.TimeRangeBegin
}
@ -304,10 +360,10 @@ func (m *ListGroupStatsResponse) GetTimeRangeBegin() *google_protobuf1.Timestamp
// such as a given time period and/or service filter.
type ErrorGroupStats struct {
// Group data that is independent of the filter criteria.
Group *ErrorGroup `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
Group *ErrorGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
// Approximate total number of events in the given group that match
// the filter criteria.
Count int64 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"`
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// Approximate number of affected users in the given group that
// match the filter criteria.
// Users are distinguished by data in the `ErrorContext` of the
@ -320,41 +376,63 @@ type ErrorGroupStats struct {
// context that was provided in the error report. If more users are
// implicitly affected, such as due to a crash of the whole service,
// this is not reflected here.
AffectedUsersCount int64 `protobuf:"varint,3,opt,name=affected_users_count,json=affectedUsersCount" json:"affected_users_count,omitempty"`
AffectedUsersCount int64 `protobuf:"varint,3,opt,name=affected_users_count,json=affectedUsersCount,proto3" json:"affected_users_count,omitempty"`
// Approximate number of occurrences over time.
// Timed counts returned by ListGroups are guaranteed to be:
//
// - Inside the requested time interval
// - Non-overlapping, and
// - Ordered by ascending time.
TimedCounts []*TimedCount `protobuf:"bytes,4,rep,name=timed_counts,json=timedCounts" json:"timed_counts,omitempty"`
TimedCounts []*TimedCount `protobuf:"bytes,4,rep,name=timed_counts,json=timedCounts,proto3" json:"timed_counts,omitempty"`
// Approximate first occurrence that was ever seen for this group
// and which matches the given filter criteria, ignoring the
// time_range that was specified in the request.
FirstSeenTime *google_protobuf1.Timestamp `protobuf:"bytes,5,opt,name=first_seen_time,json=firstSeenTime" json:"first_seen_time,omitempty"`
FirstSeenTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=first_seen_time,json=firstSeenTime,proto3" json:"first_seen_time,omitempty"`
// Approximate last occurrence that was ever seen for this group and
// which matches the given filter criteria, ignoring the time_range
// that was specified in the request.
LastSeenTime *google_protobuf1.Timestamp `protobuf:"bytes,6,opt,name=last_seen_time,json=lastSeenTime" json:"last_seen_time,omitempty"`
LastSeenTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=last_seen_time,json=lastSeenTime,proto3" json:"last_seen_time,omitempty"`
// Service contexts with a non-zero error count for the given filter
// criteria. This list can be truncated if multiple services are affected.
// Refer to `num_affected_services` for the total count.
AffectedServices []*ServiceContext `protobuf:"bytes,7,rep,name=affected_services,json=affectedServices" json:"affected_services,omitempty"`
AffectedServices []*ServiceContext `protobuf:"bytes,7,rep,name=affected_services,json=affectedServices,proto3" json:"affected_services,omitempty"`
// The total number of services with a non-zero error count for the given
// filter criteria.
NumAffectedServices int32 `protobuf:"varint,8,opt,name=num_affected_services,json=numAffectedServices" json:"num_affected_services,omitempty"`
NumAffectedServices int32 `protobuf:"varint,8,opt,name=num_affected_services,json=numAffectedServices,proto3" json:"num_affected_services,omitempty"`
// An arbitrary event that is chosen as representative for the whole group.
// The representative event is intended to be used as a quick preview for
// the whole group. Events in the group are usually sufficiently similar
// to each other such that showing an arbitrary representative provides
// insight into the characteristics of the group as a whole.
Representative *ErrorEvent `protobuf:"bytes,9,opt,name=representative" json:"representative,omitempty"`
Representative *ErrorEvent `protobuf:"bytes,9,opt,name=representative,proto3" json:"representative,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ErrorGroupStats) Reset() { *m = ErrorGroupStats{} }
func (m *ErrorGroupStats) String() string { return proto.CompactTextString(m) }
func (*ErrorGroupStats) ProtoMessage() {}
func (*ErrorGroupStats) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
func (m *ErrorGroupStats) Reset() { *m = ErrorGroupStats{} }
func (m *ErrorGroupStats) String() string { return proto.CompactTextString(m) }
func (*ErrorGroupStats) ProtoMessage() {}
func (*ErrorGroupStats) Descriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{2}
}
func (m *ErrorGroupStats) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ErrorGroupStats.Unmarshal(m, b)
}
func (m *ErrorGroupStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ErrorGroupStats.Marshal(b, m, deterministic)
}
func (dst *ErrorGroupStats) XXX_Merge(src proto.Message) {
xxx_messageInfo_ErrorGroupStats.Merge(dst, src)
}
func (m *ErrorGroupStats) XXX_Size() int {
return xxx_messageInfo_ErrorGroupStats.Size(m)
}
func (m *ErrorGroupStats) XXX_DiscardUnknown() {
xxx_messageInfo_ErrorGroupStats.DiscardUnknown(m)
}
var xxx_messageInfo_ErrorGroupStats proto.InternalMessageInfo
func (m *ErrorGroupStats) GetGroup() *ErrorGroup {
if m != nil {
@ -384,14 +462,14 @@ func (m *ErrorGroupStats) GetTimedCounts() []*TimedCount {
return nil
}
func (m *ErrorGroupStats) GetFirstSeenTime() *google_protobuf1.Timestamp {
func (m *ErrorGroupStats) GetFirstSeenTime() *timestamp.Timestamp {
if m != nil {
return m.FirstSeenTime
}
return nil
}
func (m *ErrorGroupStats) GetLastSeenTime() *google_protobuf1.Timestamp {
func (m *ErrorGroupStats) GetLastSeenTime() *timestamp.Timestamp {
if m != nil {
return m.LastSeenTime
}
@ -424,17 +502,39 @@ func (m *ErrorGroupStats) GetRepresentative() *ErrorEvent {
// before counting them.
type TimedCount struct {
// Approximate number of occurrences in the given time period.
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
// Start of the time period to which `count` refers (included).
StartTime *google_protobuf1.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// End of the time period to which `count` refers (excluded).
EndTime *google_protobuf1.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TimedCount) Reset() { *m = TimedCount{} }
func (m *TimedCount) String() string { return proto.CompactTextString(m) }
func (*TimedCount) ProtoMessage() {}
func (*TimedCount) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
func (m *TimedCount) Reset() { *m = TimedCount{} }
func (m *TimedCount) String() string { return proto.CompactTextString(m) }
func (*TimedCount) ProtoMessage() {}
func (*TimedCount) Descriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{3}
}
func (m *TimedCount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TimedCount.Unmarshal(m, b)
}
func (m *TimedCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TimedCount.Marshal(b, m, deterministic)
}
func (dst *TimedCount) XXX_Merge(src proto.Message) {
xxx_messageInfo_TimedCount.Merge(dst, src)
}
func (m *TimedCount) XXX_Size() int {
return xxx_messageInfo_TimedCount.Size(m)
}
func (m *TimedCount) XXX_DiscardUnknown() {
xxx_messageInfo_TimedCount.DiscardUnknown(m)
}
var xxx_messageInfo_TimedCount proto.InternalMessageInfo
func (m *TimedCount) GetCount() int64 {
if m != nil {
@ -443,14 +543,14 @@ func (m *TimedCount) GetCount() int64 {
return 0
}
func (m *TimedCount) GetStartTime() *google_protobuf1.Timestamp {
func (m *TimedCount) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *TimedCount) GetEndTime() *google_protobuf1.Timestamp {
func (m *TimedCount) GetEndTime() *timestamp.Timestamp {
if m != nil {
return m.EndTime
}
@ -464,27 +564,49 @@ type ListEventsRequest struct {
// [Google Cloud Platform project
// ID](https://support.google.com/cloud/answer/6158840).
// Example: `projects/my-project-123`.
ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName" json:"project_name,omitempty"`
ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
// [Required] The group for which events shall be returned.
GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
// [Optional] List only ErrorGroups which belong to a service context that
// matches the filter.
// Data for all service contexts is returned if this field is not specified.
ServiceFilter *ServiceContextFilter `protobuf:"bytes,3,opt,name=service_filter,json=serviceFilter" json:"service_filter,omitempty"`
ServiceFilter *ServiceContextFilter `protobuf:"bytes,3,opt,name=service_filter,json=serviceFilter,proto3" json:"service_filter,omitempty"`
// [Optional] List only data for the given time range.
// If not set a default time range is used. The field time_range_begin
// in the response will specify the beginning of this time range.
TimeRange *QueryTimeRange `protobuf:"bytes,4,opt,name=time_range,json=timeRange" json:"time_range,omitempty"`
TimeRange *QueryTimeRange `protobuf:"bytes,4,opt,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"`
// [Optional] The maximum number of results to return per response.
PageSize int32 `protobuf:"varint,6,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// [Optional] A `next_page_token` provided by a previous response.
PageToken string `protobuf:"bytes,7,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,7,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListEventsRequest) Reset() { *m = ListEventsRequest{} }
func (m *ListEventsRequest) String() string { return proto.CompactTextString(m) }
func (*ListEventsRequest) ProtoMessage() {}
func (*ListEventsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
func (m *ListEventsRequest) Reset() { *m = ListEventsRequest{} }
func (m *ListEventsRequest) String() string { return proto.CompactTextString(m) }
func (*ListEventsRequest) ProtoMessage() {}
func (*ListEventsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{4}
}
func (m *ListEventsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListEventsRequest.Unmarshal(m, b)
}
func (m *ListEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListEventsRequest.Marshal(b, m, deterministic)
}
func (dst *ListEventsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListEventsRequest.Merge(dst, src)
}
func (m *ListEventsRequest) XXX_Size() int {
return xxx_messageInfo_ListEventsRequest.Size(m)
}
func (m *ListEventsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListEventsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListEventsRequest proto.InternalMessageInfo
func (m *ListEventsRequest) GetProjectName() string {
if m != nil {
@ -531,19 +653,41 @@ func (m *ListEventsRequest) GetPageToken() string {
// Contains a set of requested error events.
type ListEventsResponse struct {
// The error events which match the given request.
ErrorEvents []*ErrorEvent `protobuf:"bytes,1,rep,name=error_events,json=errorEvents" json:"error_events,omitempty"`
ErrorEvents []*ErrorEvent `protobuf:"bytes,1,rep,name=error_events,json=errorEvents,proto3" json:"error_events,omitempty"`
// If non-empty, more results are available.
// Pass this token, along with the same query parameters as the first
// request, to view the next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// The timestamp specifies the start time to which the request was restricted.
TimeRangeBegin *google_protobuf1.Timestamp `protobuf:"bytes,4,opt,name=time_range_begin,json=timeRangeBegin" json:"time_range_begin,omitempty"`
TimeRangeBegin *timestamp.Timestamp `protobuf:"bytes,4,opt,name=time_range_begin,json=timeRangeBegin,proto3" json:"time_range_begin,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} }
func (m *ListEventsResponse) String() string { return proto.CompactTextString(m) }
func (*ListEventsResponse) ProtoMessage() {}
func (*ListEventsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} }
func (m *ListEventsResponse) String() string { return proto.CompactTextString(m) }
func (*ListEventsResponse) ProtoMessage() {}
func (*ListEventsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{5}
}
func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListEventsResponse.Unmarshal(m, b)
}
func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListEventsResponse.Marshal(b, m, deterministic)
}
func (dst *ListEventsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListEventsResponse.Merge(dst, src)
}
func (m *ListEventsResponse) XXX_Size() int {
return xxx_messageInfo_ListEventsResponse.Size(m)
}
func (m *ListEventsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListEventsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListEventsResponse proto.InternalMessageInfo
func (m *ListEventsResponse) GetErrorEvents() []*ErrorEvent {
if m != nil {
@ -559,7 +703,7 @@ func (m *ListEventsResponse) GetNextPageToken() string {
return ""
}
func (m *ListEventsResponse) GetTimeRangeBegin() *google_protobuf1.Timestamp {
func (m *ListEventsResponse) GetTimeRangeBegin() *timestamp.Timestamp {
if m != nil {
return m.TimeRangeBegin
}
@ -570,13 +714,35 @@ func (m *ListEventsResponse) GetTimeRangeBegin() *google_protobuf1.Timestamp {
// adjusted for lower durations.
type QueryTimeRange struct {
// Restricts the query to the specified time range.
Period QueryTimeRange_Period `protobuf:"varint,1,opt,name=period,enum=google.devtools.clouderrorreporting.v1beta1.QueryTimeRange_Period" json:"period,omitempty"`
Period QueryTimeRange_Period `protobuf:"varint,1,opt,name=period,proto3,enum=google.devtools.clouderrorreporting.v1beta1.QueryTimeRange_Period" json:"period,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryTimeRange) Reset() { *m = QueryTimeRange{} }
func (m *QueryTimeRange) String() string { return proto.CompactTextString(m) }
func (*QueryTimeRange) ProtoMessage() {}
func (*QueryTimeRange) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} }
func (m *QueryTimeRange) Reset() { *m = QueryTimeRange{} }
func (m *QueryTimeRange) String() string { return proto.CompactTextString(m) }
func (*QueryTimeRange) ProtoMessage() {}
func (*QueryTimeRange) Descriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{6}
}
func (m *QueryTimeRange) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryTimeRange.Unmarshal(m, b)
}
func (m *QueryTimeRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryTimeRange.Marshal(b, m, deterministic)
}
func (dst *QueryTimeRange) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryTimeRange.Merge(dst, src)
}
func (m *QueryTimeRange) XXX_Size() int {
return xxx_messageInfo_QueryTimeRange.Size(m)
}
func (m *QueryTimeRange) XXX_DiscardUnknown() {
xxx_messageInfo_QueryTimeRange.DiscardUnknown(m)
}
var xxx_messageInfo_QueryTimeRange proto.InternalMessageInfo
func (m *QueryTimeRange) GetPeriod() QueryTimeRange_Period {
if m != nil {
@ -592,19 +758,41 @@ func (m *QueryTimeRange) GetPeriod() QueryTimeRange_Period {
type ServiceContextFilter struct {
// [Optional] The exact value to match against
// [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
Service string `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"`
Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
// [Optional] The exact value to match against
// [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// [Optional] The exact value to match against
// [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType" json:"resource_type,omitempty"`
ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServiceContextFilter) Reset() { *m = ServiceContextFilter{} }
func (m *ServiceContextFilter) String() string { return proto.CompactTextString(m) }
func (*ServiceContextFilter) ProtoMessage() {}
func (*ServiceContextFilter) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} }
func (m *ServiceContextFilter) Reset() { *m = ServiceContextFilter{} }
func (m *ServiceContextFilter) String() string { return proto.CompactTextString(m) }
func (*ServiceContextFilter) ProtoMessage() {}
func (*ServiceContextFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{7}
}
func (m *ServiceContextFilter) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceContextFilter.Unmarshal(m, b)
}
func (m *ServiceContextFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceContextFilter.Marshal(b, m, deterministic)
}
func (dst *ServiceContextFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceContextFilter.Merge(dst, src)
}
func (m *ServiceContextFilter) XXX_Size() int {
return xxx_messageInfo_ServiceContextFilter.Size(m)
}
func (m *ServiceContextFilter) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceContextFilter.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceContextFilter proto.InternalMessageInfo
func (m *ServiceContextFilter) GetService() string {
if m != nil {
@ -634,13 +822,35 @@ type DeleteEventsRequest struct {
// [Google Cloud Platform project
// ID](https://support.google.com/cloud/answer/6158840).
// Example: `projects/my-project-123`.
ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName" json:"project_name,omitempty"`
ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteEventsRequest) Reset() { *m = DeleteEventsRequest{} }
func (m *DeleteEventsRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteEventsRequest) ProtoMessage() {}
func (*DeleteEventsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} }
func (m *DeleteEventsRequest) Reset() { *m = DeleteEventsRequest{} }
func (m *DeleteEventsRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteEventsRequest) ProtoMessage() {}
func (*DeleteEventsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{8}
}
func (m *DeleteEventsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteEventsRequest.Unmarshal(m, b)
}
func (m *DeleteEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteEventsRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteEventsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteEventsRequest.Merge(dst, src)
}
func (m *DeleteEventsRequest) XXX_Size() int {
return xxx_messageInfo_DeleteEventsRequest.Size(m)
}
func (m *DeleteEventsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteEventsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteEventsRequest proto.InternalMessageInfo
func (m *DeleteEventsRequest) GetProjectName() string {
if m != nil {
@ -651,12 +861,34 @@ func (m *DeleteEventsRequest) GetProjectName() string {
// Response message for deleting error events.
type DeleteEventsResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteEventsResponse) Reset() { *m = DeleteEventsResponse{} }
func (m *DeleteEventsResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteEventsResponse) ProtoMessage() {}
func (*DeleteEventsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{9} }
func (m *DeleteEventsResponse) Reset() { *m = DeleteEventsResponse{} }
func (m *DeleteEventsResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteEventsResponse) ProtoMessage() {}
func (*DeleteEventsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_error_stats_service_e8c4e88969c09e61, []int{9}
}
func (m *DeleteEventsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteEventsResponse.Unmarshal(m, b)
}
func (m *DeleteEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteEventsResponse.Marshal(b, m, deterministic)
}
func (dst *DeleteEventsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteEventsResponse.Merge(dst, src)
}
func (m *DeleteEventsResponse) XXX_Size() int {
return xxx_messageInfo_DeleteEventsResponse.Size(m)
}
func (m *DeleteEventsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteEventsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteEventsResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*ListGroupStatsRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest")
@ -682,8 +914,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for ErrorStatsService service
// ErrorStatsServiceClient is the client API for ErrorStatsService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ErrorStatsServiceClient interface {
// Lists the specified groups.
ListGroupStats(ctx context.Context, in *ListGroupStatsRequest, opts ...grpc.CallOption) (*ListGroupStatsResponse, error)
@ -703,7 +936,7 @@ func NewErrorStatsServiceClient(cc *grpc.ClientConn) ErrorStatsServiceClient {
func (c *errorStatsServiceClient) ListGroupStats(ctx context.Context, in *ListGroupStatsRequest, opts ...grpc.CallOption) (*ListGroupStatsResponse, error) {
out := new(ListGroupStatsResponse)
err := grpc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListGroupStats", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListGroupStats", in, out, opts...)
if err != nil {
return nil, err
}
@ -712,7 +945,7 @@ func (c *errorStatsServiceClient) ListGroupStats(ctx context.Context, in *ListGr
func (c *errorStatsServiceClient) ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) {
out := new(ListEventsResponse)
err := grpc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListEvents", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListEvents", in, out, opts...)
if err != nil {
return nil, err
}
@ -721,15 +954,14 @@ func (c *errorStatsServiceClient) ListEvents(ctx context.Context, in *ListEvents
func (c *errorStatsServiceClient) DeleteEvents(ctx context.Context, in *DeleteEventsRequest, opts ...grpc.CallOption) (*DeleteEventsResponse, error) {
out := new(DeleteEventsResponse)
err := grpc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/DeleteEvents", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/DeleteEvents", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ErrorStatsService service
// ErrorStatsServiceServer is the server API for ErrorStatsService service.
type ErrorStatsServiceServer interface {
// Lists the specified groups.
ListGroupStats(context.Context, *ListGroupStatsRequest) (*ListGroupStatsResponse, error)
@ -819,10 +1051,10 @@ var _ErrorStatsService_serviceDesc = grpc.ServiceDesc{
}
func init() {
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto", fileDescriptor2)
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto", fileDescriptor_error_stats_service_e8c4e88969c09e61)
}
var fileDescriptor2 = []byte{
var fileDescriptor_error_stats_service_e8c4e88969c09e61 = []byte{
// 1328 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcd, 0x6f, 0x1b, 0x45,
0x14, 0x67, 0xed, 0x38, 0x89, 0x9f, 0x1d, 0xc7, 0x99, 0xa4, 0xe9, 0xd6, 0xe5, 0x23, 0x75, 0x05,

View File

@ -1,13 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
package clouderrorreporting
package clouderrorreporting // import "google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
import (
context "golang.org/x/net/context"
@ -19,21 +19,49 @@ 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
// A request for reporting an individual error event.
type ReportErrorEventRequest struct {
// [Required] The resource name of the Google Cloud Platform project. Written
// as `projects/` plus the
// [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840).
// Example: `projects/my-project-123`.
ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName" json:"project_name,omitempty"`
ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
// [Required] The error event to be reported.
Event *ReportedErrorEvent `protobuf:"bytes,2,opt,name=event" json:"event,omitempty"`
Event *ReportedErrorEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReportErrorEventRequest) Reset() { *m = ReportErrorEventRequest{} }
func (m *ReportErrorEventRequest) String() string { return proto.CompactTextString(m) }
func (*ReportErrorEventRequest) ProtoMessage() {}
func (*ReportErrorEventRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *ReportErrorEventRequest) Reset() { *m = ReportErrorEventRequest{} }
func (m *ReportErrorEventRequest) String() string { return proto.CompactTextString(m) }
func (*ReportErrorEventRequest) ProtoMessage() {}
func (*ReportErrorEventRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_report_errors_service_7b4a77afec65ac92, []int{0}
}
func (m *ReportErrorEventRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReportErrorEventRequest.Unmarshal(m, b)
}
func (m *ReportErrorEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReportErrorEventRequest.Marshal(b, m, deterministic)
}
func (dst *ReportErrorEventRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReportErrorEventRequest.Merge(dst, src)
}
func (m *ReportErrorEventRequest) XXX_Size() int {
return xxx_messageInfo_ReportErrorEventRequest.Size(m)
}
func (m *ReportErrorEventRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ReportErrorEventRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ReportErrorEventRequest proto.InternalMessageInfo
func (m *ReportErrorEventRequest) GetProjectName() string {
if m != nil {
@ -52,36 +80,80 @@ func (m *ReportErrorEventRequest) GetEvent() *ReportedErrorEvent {
// Response for reporting an individual error event.
// Data may be added to this message in the future.
type ReportErrorEventResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReportErrorEventResponse) Reset() { *m = ReportErrorEventResponse{} }
func (m *ReportErrorEventResponse) String() string { return proto.CompactTextString(m) }
func (*ReportErrorEventResponse) ProtoMessage() {}
func (*ReportErrorEventResponse) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }
func (m *ReportErrorEventResponse) Reset() { *m = ReportErrorEventResponse{} }
func (m *ReportErrorEventResponse) String() string { return proto.CompactTextString(m) }
func (*ReportErrorEventResponse) ProtoMessage() {}
func (*ReportErrorEventResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_report_errors_service_7b4a77afec65ac92, []int{1}
}
func (m *ReportErrorEventResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReportErrorEventResponse.Unmarshal(m, b)
}
func (m *ReportErrorEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReportErrorEventResponse.Marshal(b, m, deterministic)
}
func (dst *ReportErrorEventResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReportErrorEventResponse.Merge(dst, src)
}
func (m *ReportErrorEventResponse) XXX_Size() int {
return xxx_messageInfo_ReportErrorEventResponse.Size(m)
}
func (m *ReportErrorEventResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ReportErrorEventResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ReportErrorEventResponse proto.InternalMessageInfo
// An error event which is reported to the Error Reporting system.
type ReportedErrorEvent struct {
// [Optional] Time when the event occurred.
// If not provided, the time when the event was received by the
// Error Reporting system will be used.
EventTime *google_protobuf1.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime" json:"event_time,omitempty"`
EventTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
// [Required] The service context in which this error has occurred.
ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext" json:"service_context,omitempty"`
ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
// [Required] A message describing the error. The message can contain an
// exception stack in one of the supported programming languages and formats.
// In that case, the message is parsed and detailed exception information
// is returned when retrieving the error event again.
Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// [Optional] A description of the context in which the error occurred.
Context *ErrorContext `protobuf:"bytes,4,opt,name=context" json:"context,omitempty"`
Context *ErrorContext `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReportedErrorEvent) Reset() { *m = ReportedErrorEvent{} }
func (m *ReportedErrorEvent) String() string { return proto.CompactTextString(m) }
func (*ReportedErrorEvent) ProtoMessage() {}
func (*ReportedErrorEvent) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{2} }
func (m *ReportedErrorEvent) Reset() { *m = ReportedErrorEvent{} }
func (m *ReportedErrorEvent) String() string { return proto.CompactTextString(m) }
func (*ReportedErrorEvent) ProtoMessage() {}
func (*ReportedErrorEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_report_errors_service_7b4a77afec65ac92, []int{2}
}
func (m *ReportedErrorEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReportedErrorEvent.Unmarshal(m, b)
}
func (m *ReportedErrorEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReportedErrorEvent.Marshal(b, m, deterministic)
}
func (dst *ReportedErrorEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReportedErrorEvent.Merge(dst, src)
}
func (m *ReportedErrorEvent) XXX_Size() int {
return xxx_messageInfo_ReportedErrorEvent.Size(m)
}
func (m *ReportedErrorEvent) XXX_DiscardUnknown() {
xxx_messageInfo_ReportedErrorEvent.DiscardUnknown(m)
}
func (m *ReportedErrorEvent) GetEventTime() *google_protobuf1.Timestamp {
var xxx_messageInfo_ReportedErrorEvent proto.InternalMessageInfo
func (m *ReportedErrorEvent) GetEventTime() *timestamp.Timestamp {
if m != nil {
return m.EventTime
}
@ -123,8 +195,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for ReportErrorsService service
// ReportErrorsServiceClient is the client API for ReportErrorsService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ReportErrorsServiceClient interface {
// Report an individual error event.
//
@ -147,15 +220,14 @@ func NewReportErrorsServiceClient(cc *grpc.ClientConn) ReportErrorsServiceClient
func (c *reportErrorsServiceClient) ReportErrorEvent(ctx context.Context, in *ReportErrorEventRequest, opts ...grpc.CallOption) (*ReportErrorEventResponse, error) {
out := new(ReportErrorEventResponse)
err := grpc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ReportErrorsService/ReportErrorEvent", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ReportErrorsService/ReportErrorEvent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ReportErrorsService service
// ReportErrorsServiceServer is the server API for ReportErrorsService service.
type ReportErrorsServiceServer interface {
// Report an individual error event.
//
@ -204,10 +276,10 @@ var _ReportErrorsService_serviceDesc = grpc.ServiceDesc{
}
func init() {
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto", fileDescriptor3)
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto", fileDescriptor_report_errors_service_7b4a77afec65ac92)
}
var fileDescriptor3 = []byte{
var fileDescriptor_report_errors_service_7b4a77afec65ac92 = []byte{
// 490 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xcd, 0x8a, 0x13, 0x41,
0x10, 0xc7, 0x99, 0xf8, 0xb1, 0x6c, 0x47, 0x54, 0xda, 0x83, 0xc3, 0x20, 0xb8, 0xc6, 0xcb, 0xa2,

View File

@ -1,26 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/cloudprofiler/v2/profiler.proto
/*
Package cloudprofiler is a generated protocol buffer package.
It is generated from these files:
google/devtools/cloudprofiler/v2/profiler.proto
It has these top-level messages:
CreateProfileRequest
UpdateProfileRequest
Profile
Deployment
*/
package cloudprofiler
package cloudprofiler // import "google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/duration"
import duration "github.com/golang/protobuf/ptypes/duration"
import _ "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
@ -50,12 +39,22 @@ const (
ProfileType_CPU ProfileType = 1
// Wallclock time sampling. More expensive as stops all threads.
ProfileType_WALL ProfileType = 2
// Heap allocation sampling.
// In-use heap profile. Represents a snapshot of the allocations that are
// live at the time of the profiling.
ProfileType_HEAP ProfileType = 3
// Single-shot collection of all thread stacks.
ProfileType_THREADS ProfileType = 4
// Synchronization contention profile.
ProfileType_CONTENTION ProfileType = 5
// Peak heap profile.
ProfileType_PEAK_HEAP ProfileType = 6
// Heap allocation profile. It represents the aggregation of all allocations
// made over the duration of the profile. All allocations are included,
// including those that might have been freed by the end of the profiling
// interval. The profile is in particular useful for garbage collecting
// languages to understand which parts of the code create most of the garbage
// collection pressure to see if those can be optimized.
ProfileType_HEAP_ALLOC ProfileType = 7
)
var ProfileType_name = map[int32]string{
@ -65,42 +64,73 @@ var ProfileType_name = map[int32]string{
3: "HEAP",
4: "THREADS",
5: "CONTENTION",
6: "PEAK_HEAP",
7: "HEAP_ALLOC",
}
var ProfileType_value = map[string]int32{
"PROFILE_TYPE_UNSPECIFIED": 0,
"CPU": 1,
"WALL": 2,
"HEAP": 3,
"THREADS": 4,
"CONTENTION": 5,
"CPU": 1,
"WALL": 2,
"HEAP": 3,
"THREADS": 4,
"CONTENTION": 5,
"PEAK_HEAP": 6,
"HEAP_ALLOC": 7,
}
func (x ProfileType) String() string {
return proto.EnumName(ProfileType_name, int32(x))
}
func (ProfileType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
// CreateProfileRequest describes a profile resource creation request.
// Deployment field must be populated for both online and offline modes.
// For the online mode, profile field is not set and the profile_type specifies
// the list of profile types supported by the agent. The creation call will hang
// until a profile of one of these types needs to be collected. For offline
// mode, profile field must be set, profile_type must be empty, and deployment
// field must be identical to the deployment in the profile.
type CreateProfileRequest struct {
// Deployment details.
Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment" json:"deployment,omitempty"`
// Online mode: One or more profile types that the agent is capable of
// providing.
ProfileType []ProfileType `protobuf:"varint,2,rep,packed,name=profile_type,json=profileType,enum=google.devtools.cloudprofiler.v2.ProfileType" json:"profile_type,omitempty"`
// Offline mode: Contents of the profile to create.
Profile *Profile `protobuf:"bytes,3,opt,name=profile" json:"profile,omitempty"`
func (ProfileType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_profiler_24c6f5803c16363e, []int{0}
}
func (m *CreateProfileRequest) Reset() { *m = CreateProfileRequest{} }
func (m *CreateProfileRequest) String() string { return proto.CompactTextString(m) }
func (*CreateProfileRequest) ProtoMessage() {}
func (*CreateProfileRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
// CreateProfileRequest describes a profile resource online creation request.
// The deployment field must be populated. The profile_type specifies the list
// of profile types supported by the agent. The creation call will hang until a
// profile of one of these types needs to be collected.
type CreateProfileRequest struct {
// Parent project to create the profile in.
Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
// Deployment details.
Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
// One or more profile types that the agent is capable of providing.
ProfileType []ProfileType `protobuf:"varint,2,rep,packed,name=profile_type,json=profileType,proto3,enum=google.devtools.cloudprofiler.v2.ProfileType" json:"profile_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateProfileRequest) Reset() { *m = CreateProfileRequest{} }
func (m *CreateProfileRequest) String() string { return proto.CompactTextString(m) }
func (*CreateProfileRequest) ProtoMessage() {}
func (*CreateProfileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_profiler_24c6f5803c16363e, []int{0}
}
func (m *CreateProfileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateProfileRequest.Unmarshal(m, b)
}
func (m *CreateProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateProfileRequest.Marshal(b, m, deterministic)
}
func (dst *CreateProfileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateProfileRequest.Merge(dst, src)
}
func (m *CreateProfileRequest) XXX_Size() int {
return xxx_messageInfo_CreateProfileRequest.Size(m)
}
func (m *CreateProfileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateProfileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateProfileRequest proto.InternalMessageInfo
func (m *CreateProfileRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateProfileRequest) GetDeployment() *Deployment {
if m != nil {
@ -116,7 +146,50 @@ func (m *CreateProfileRequest) GetProfileType() []ProfileType {
return nil
}
func (m *CreateProfileRequest) GetProfile() *Profile {
// CreateOfflineProfileRequest describes a profile resource offline creation
// request. Profile field must be set.
type CreateOfflineProfileRequest struct {
// Parent project to create the profile in.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Contents of the profile to create.
Profile *Profile `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateOfflineProfileRequest) Reset() { *m = CreateOfflineProfileRequest{} }
func (m *CreateOfflineProfileRequest) String() string { return proto.CompactTextString(m) }
func (*CreateOfflineProfileRequest) ProtoMessage() {}
func (*CreateOfflineProfileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_profiler_24c6f5803c16363e, []int{1}
}
func (m *CreateOfflineProfileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateOfflineProfileRequest.Unmarshal(m, b)
}
func (m *CreateOfflineProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateOfflineProfileRequest.Marshal(b, m, deterministic)
}
func (dst *CreateOfflineProfileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateOfflineProfileRequest.Merge(dst, src)
}
func (m *CreateOfflineProfileRequest) XXX_Size() int {
return xxx_messageInfo_CreateOfflineProfileRequest.Size(m)
}
func (m *CreateOfflineProfileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateOfflineProfileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateOfflineProfileRequest proto.InternalMessageInfo
func (m *CreateOfflineProfileRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateOfflineProfileRequest) GetProfile() *Profile {
if m != nil {
return m.Profile
}
@ -126,13 +199,40 @@ func (m *CreateProfileRequest) GetProfile() *Profile {
// UpdateProfileRequest contains the profile to update.
type UpdateProfileRequest struct {
// Profile to update
Profile *Profile `protobuf:"bytes,1,opt,name=profile" json:"profile,omitempty"`
Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
// Field mask used to specify the fields to be overwritten. Currently only
// profile_bytes and labels fields are supported by UpdateProfile, so only
// those fields can be specified in the mask. When no mask is provided, all
// fields are overwritten.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateProfileRequest) Reset() { *m = UpdateProfileRequest{} }
func (m *UpdateProfileRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateProfileRequest) ProtoMessage() {}
func (*UpdateProfileRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *UpdateProfileRequest) Reset() { *m = UpdateProfileRequest{} }
func (m *UpdateProfileRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateProfileRequest) ProtoMessage() {}
func (*UpdateProfileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_profiler_24c6f5803c16363e, []int{2}
}
func (m *UpdateProfileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateProfileRequest.Unmarshal(m, b)
}
func (m *UpdateProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateProfileRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateProfileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateProfileRequest.Merge(dst, src)
}
func (m *UpdateProfileRequest) XXX_Size() int {
return xxx_messageInfo_UpdateProfileRequest.Size(m)
}
func (m *UpdateProfileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateProfileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateProfileRequest proto.InternalMessageInfo
func (m *UpdateProfileRequest) GetProfile() *Profile {
if m != nil {
@ -141,37 +241,65 @@ func (m *UpdateProfileRequest) GetProfile() *Profile {
return nil
}
func (m *UpdateProfileRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// Profile resource.
type Profile struct {
// Opaque, server-assigned, unique ID for this profile.
// Output only.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Output only. Opaque, server-assigned, unique ID for this profile.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Type of profile.
// Input (for the offline mode) or output (for the online mode).
ProfileType ProfileType `protobuf:"varint,2,opt,name=profile_type,json=profileType,enum=google.devtools.cloudprofiler.v2.ProfileType" json:"profile_type,omitempty"`
// For offline mode, this must be specified when creating the profile. For
// online mode it is assigned and returned by the server.
ProfileType ProfileType `protobuf:"varint,2,opt,name=profile_type,json=profileType,proto3,enum=google.devtools.cloudprofiler.v2.ProfileType" json:"profile_type,omitempty"`
// Deployment this profile corresponds to.
Deployment *Deployment `protobuf:"bytes,3,opt,name=deployment" json:"deployment,omitempty"`
Deployment *Deployment `protobuf:"bytes,3,opt,name=deployment,proto3" json:"deployment,omitempty"`
// Duration of the profiling session.
// Input (for the offline mode) or output (for the online mode).
// The field represents requested profiling duration. It may slightly differ
// from the effective profiling duration, which is recorded in the profile
// data, in case the profiling can't be stopped immediately (e.g. in case
// stopping the profiling is handled asynchronously).
Duration *google_protobuf1.Duration `protobuf:"bytes,4,opt,name=duration" json:"duration,omitempty"`
// Profile bytes, as a gzip compressed serialized proto, the format is
// https://github.com/google/pprof/blob/master/proto/profile.proto.
Duration *duration.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"`
// Input only. Profile bytes, as a gzip compressed serialized proto, the
// format is https://github.com/google/pprof/blob/master/proto/profile.proto.
ProfileBytes []byte `protobuf:"bytes,5,opt,name=profile_bytes,json=profileBytes,proto3" json:"profile_bytes,omitempty"`
// Labels associated to this specific profile. These labels will get merged
// with the deployment labels for the final data set.
// See documentation on deployment labels for validation rules and limits.
// Input only, will not be populated on responses.
Labels map[string]string `protobuf:"bytes,6,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Input only. Labels associated to this specific profile. These labels will
// get merged with the deployment labels for the final data set. See
// documentation on deployment labels for validation rules and limits.
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Profile) Reset() { *m = Profile{} }
func (m *Profile) String() string { return proto.CompactTextString(m) }
func (*Profile) ProtoMessage() {}
func (*Profile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Profile) Reset() { *m = Profile{} }
func (m *Profile) String() string { return proto.CompactTextString(m) }
func (*Profile) ProtoMessage() {}
func (*Profile) Descriptor() ([]byte, []int) {
return fileDescriptor_profiler_24c6f5803c16363e, []int{3}
}
func (m *Profile) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Profile.Unmarshal(m, b)
}
func (m *Profile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Profile.Marshal(b, m, deterministic)
}
func (dst *Profile) XXX_Merge(src proto.Message) {
xxx_messageInfo_Profile.Merge(dst, src)
}
func (m *Profile) XXX_Size() int {
return xxx_messageInfo_Profile.Size(m)
}
func (m *Profile) XXX_DiscardUnknown() {
xxx_messageInfo_Profile.DiscardUnknown(m)
}
var xxx_messageInfo_Profile proto.InternalMessageInfo
func (m *Profile) GetName() string {
if m != nil {
@ -194,7 +322,7 @@ func (m *Profile) GetDeployment() *Deployment {
return nil
}
func (m *Profile) GetDuration() *google_protobuf1.Duration {
func (m *Profile) GetDuration() *duration.Duration {
if m != nil {
return m.Duration
}
@ -219,14 +347,14 @@ func (m *Profile) GetLabels() map[string]string {
type Deployment struct {
// Project ID is the ID of a cloud project.
// Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Target is the service name used to group related deployments:
// * Service name for GAE Flex / Standard.
// * Cluster and container name for GKE.
// * User-specified string for direct GCE profiling (e.g. Java).
// * Job name for Dataflow.
// Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
Target string `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"`
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
// Labels identify the deployment within the user universe and same target.
// Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
// Value for an individual label must be <= 512 bytes, the total
@ -240,13 +368,35 @@ type Deployment struct {
// should be present describing the deployment location. An example of a zone
// is "us-central1-a", an example of a region is "us-central1" or
// "us-central".
Labels map[string]string `protobuf:"bytes,3,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Deployment) Reset() { *m = Deployment{} }
func (m *Deployment) String() string { return proto.CompactTextString(m) }
func (*Deployment) ProtoMessage() {}
func (*Deployment) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *Deployment) Reset() { *m = Deployment{} }
func (m *Deployment) String() string { return proto.CompactTextString(m) }
func (*Deployment) ProtoMessage() {}
func (*Deployment) Descriptor() ([]byte, []int) {
return fileDescriptor_profiler_24c6f5803c16363e, []int{4}
}
func (m *Deployment) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Deployment.Unmarshal(m, b)
}
func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Deployment.Marshal(b, m, deterministic)
}
func (dst *Deployment) XXX_Merge(src proto.Message) {
xxx_messageInfo_Deployment.Merge(dst, src)
}
func (m *Deployment) XXX_Size() int {
return xxx_messageInfo_Deployment.Size(m)
}
func (m *Deployment) XXX_DiscardUnknown() {
xxx_messageInfo_Deployment.DiscardUnknown(m)
}
var xxx_messageInfo_Deployment proto.InternalMessageInfo
func (m *Deployment) GetProjectId() string {
if m != nil {
@ -271,9 +421,12 @@ func (m *Deployment) GetLabels() map[string]string {
func init() {
proto.RegisterType((*CreateProfileRequest)(nil), "google.devtools.cloudprofiler.v2.CreateProfileRequest")
proto.RegisterType((*CreateOfflineProfileRequest)(nil), "google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest")
proto.RegisterType((*UpdateProfileRequest)(nil), "google.devtools.cloudprofiler.v2.UpdateProfileRequest")
proto.RegisterType((*Profile)(nil), "google.devtools.cloudprofiler.v2.Profile")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.cloudprofiler.v2.Profile.LabelsEntry")
proto.RegisterType((*Deployment)(nil), "google.devtools.cloudprofiler.v2.Deployment")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.cloudprofiler.v2.Deployment.LabelsEntry")
proto.RegisterEnum("google.devtools.cloudprofiler.v2.ProfileType", ProfileType_name, ProfileType_value)
}
@ -285,29 +438,32 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for ProfilerService service
// ProfilerServiceClient is the client API for ProfilerService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ProfilerServiceClient interface {
// CreateProfile creates a new profile resource.
// CreateProfile creates a new profile resource in the online mode.
//
// In the online creation mode:
// * The server ensures that the new profiles are created at a constant rate
// per deployment, so the creation request may hang for some time until the
// next profile session is available.
// * The request may fail with ABORTED error if the creation is not
// available within ~1m, the response will indicate the duration of the
// backoff the client should take before attempting creating a profile
// again. The backoff duration is returned in google.rpc.RetryInfo extension
// on the response status. To a gRPC client, the extension will be return as
// a binary-serialized proto in the trailing metadata item named
// "google.rpc.retryinfo-bin".
// The server ensures that the new profiles are created at a constant rate per
// deployment, so the creation request may hang for some time until the next
// profile session is available.
//
// In the offline creation mode:
// * The client provides the profile to create along with the profile bytes,
// the server records it.
// The request may fail with ABORTED error if the creation is not available
// within ~1m, the response will indicate the duration of the backoff the
// client should take before attempting creating a profile again. The backoff
// duration is returned in google.rpc.RetryInfo extension on the response
// status. To a gRPC client, the extension will be return as a
// binary-serialized proto in the trailing metadata item named
// "google.rpc.retryinfo-bin".
CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*Profile, error)
// CreateOfflineProfile creates a new profile resource in the offline mode.
// The client provides the profile to create along with the profile bytes, the
// server records it.
CreateOfflineProfile(ctx context.Context, in *CreateOfflineProfileRequest, opts ...grpc.CallOption) (*Profile, error)
// UpdateProfile updates the profile bytes and labels on the profile resource
// created in the online mode.
// created in the online mode. Updating the bytes for profiles created in the
// offline mode is currently not supported: the profile content must be
// provided at the time of the profile creation.
UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*Profile, error)
}
@ -321,7 +477,16 @@ func NewProfilerServiceClient(cc *grpc.ClientConn) ProfilerServiceClient {
func (c *profilerServiceClient) CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*Profile, error) {
out := new(Profile)
err := grpc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/CreateProfile", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/CreateProfile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *profilerServiceClient) CreateOfflineProfile(ctx context.Context, in *CreateOfflineProfileRequest, opts ...grpc.CallOption) (*Profile, error) {
out := new(Profile)
err := c.cc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/CreateOfflineProfile", in, out, opts...)
if err != nil {
return nil, err
}
@ -330,36 +495,37 @@ func (c *profilerServiceClient) CreateProfile(ctx context.Context, in *CreatePro
func (c *profilerServiceClient) UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*Profile, error) {
out := new(Profile)
err := grpc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/UpdateProfile", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/UpdateProfile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ProfilerService service
// ProfilerServiceServer is the server API for ProfilerService service.
type ProfilerServiceServer interface {
// CreateProfile creates a new profile resource.
// CreateProfile creates a new profile resource in the online mode.
//
// In the online creation mode:
// * The server ensures that the new profiles are created at a constant rate
// per deployment, so the creation request may hang for some time until the
// next profile session is available.
// * The request may fail with ABORTED error if the creation is not
// available within ~1m, the response will indicate the duration of the
// backoff the client should take before attempting creating a profile
// again. The backoff duration is returned in google.rpc.RetryInfo extension
// on the response status. To a gRPC client, the extension will be return as
// a binary-serialized proto in the trailing metadata item named
// "google.rpc.retryinfo-bin".
// The server ensures that the new profiles are created at a constant rate per
// deployment, so the creation request may hang for some time until the next
// profile session is available.
//
// In the offline creation mode:
// * The client provides the profile to create along with the profile bytes,
// the server records it.
// The request may fail with ABORTED error if the creation is not available
// within ~1m, the response will indicate the duration of the backoff the
// client should take before attempting creating a profile again. The backoff
// duration is returned in google.rpc.RetryInfo extension on the response
// status. To a gRPC client, the extension will be return as a
// binary-serialized proto in the trailing metadata item named
// "google.rpc.retryinfo-bin".
CreateProfile(context.Context, *CreateProfileRequest) (*Profile, error)
// CreateOfflineProfile creates a new profile resource in the offline mode.
// The client provides the profile to create along with the profile bytes, the
// server records it.
CreateOfflineProfile(context.Context, *CreateOfflineProfileRequest) (*Profile, error)
// UpdateProfile updates the profile bytes and labels on the profile resource
// created in the online mode.
// created in the online mode. Updating the bytes for profiles created in the
// offline mode is currently not supported: the profile content must be
// provided at the time of the profile creation.
UpdateProfile(context.Context, *UpdateProfileRequest) (*Profile, error)
}
@ -385,6 +551,24 @@ func _ProfilerService_CreateProfile_Handler(srv interface{}, ctx context.Context
return interceptor(ctx, in, info, handler)
}
func _ProfilerService_CreateOfflineProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateOfflineProfileRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProfilerServiceServer).CreateOfflineProfile(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.cloudprofiler.v2.ProfilerService/CreateOfflineProfile",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProfilerServiceServer).CreateOfflineProfile(ctx, req.(*CreateOfflineProfileRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ProfilerService_UpdateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateProfileRequest)
if err := dec(in); err != nil {
@ -411,6 +595,10 @@ var _ProfilerService_serviceDesc = grpc.ServiceDesc{
MethodName: "CreateProfile",
Handler: _ProfilerService_CreateProfile_Handler,
},
{
MethodName: "CreateOfflineProfile",
Handler: _ProfilerService_CreateOfflineProfile_Handler,
},
{
MethodName: "UpdateProfile",
Handler: _ProfilerService_UpdateProfile_Handler,
@ -420,50 +608,60 @@ var _ProfilerService_serviceDesc = grpc.ServiceDesc{
Metadata: "google/devtools/cloudprofiler/v2/profiler.proto",
}
func init() { proto.RegisterFile("google/devtools/cloudprofiler/v2/profiler.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 661 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0x66, 0xe3, 0x34, 0x69, 0x27, 0x6d, 0xb1, 0x56, 0x15, 0x32, 0x51, 0x81, 0x28, 0x5c, 0x42,
0x44, 0x6d, 0xc9, 0x55, 0x51, 0x5b, 0xc4, 0xa1, 0x4d, 0x5c, 0x35, 0x52, 0x9a, 0x58, 0x6e, 0x2a,
0x04, 0x1c, 0x22, 0xa7, 0xde, 0x5a, 0x06, 0xc7, 0x6b, 0xec, 0x4d, 0xa4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f, 0x5a, 0xca, 0x61, 0xfb, 0xf5, 0x09, 0x3f, 0xc6, 0xa6, 0xae, 0xe9, 0xd9, 0x32,
0x0d, 0x6c, 0xc5, 0x26, 0x5e, 0xfc, 0x3d, 0xf2, 0x9f, 0x8f, 0xe9, 0x3b, 0xe1, 0xdf, 0x7f, 0x40,
0xcf, 0x67, 0x12, 0xbd, 0x5c, 0x8c, 0xdc, 0xfe, 0x15, 0x00, 0x00, 0xff, 0xff, 0x83, 0x3f, 0xa6,
0xd9, 0xb9, 0x06, 0x00, 0x00,
func init() {
proto.RegisterFile("google/devtools/cloudprofiler/v2/profiler.proto", fileDescriptor_profiler_24c6f5803c16363e)
}
var fileDescriptor_profiler_24c6f5803c16363e = []byte{
// 786 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5f, 0x6f, 0xda, 0x56,
0x14, 0xdf, 0xc5, 0x04, 0xc2, 0x71, 0xc8, 0xac, 0xab, 0x68, 0x62, 0x2c, 0xdb, 0x2c, 0x4f, 0x93,
0x18, 0xdb, 0x6c, 0xc9, 0x51, 0xa6, 0xfc, 0x51, 0x34, 0x11, 0x70, 0x14, 0x34, 0x02, 0x96, 0x43,
0x34, 0x6d, 0x2f, 0xc8, 0xe0, 0x0b, 0x72, 0x63, 0x6c, 0xd7, 0x36, 0x48, 0xb4, 0xca, 0x4b, 0xd5,
0x6f, 0xd0, 0x97, 0xbe, 0xf5, 0xa1, 0x0f, 0x7d, 0xea, 0x87, 0xe8, 0x17, 0xa8, 0x2a, 0xf5, 0x2b,
0xf4, 0x83, 0x54, 0xb6, 0xaf, 0x09, 0x24, 0x44, 0x90, 0xa6, 0x6f, 0xe7, 0xde, 0x7b, 0xce, 0xcf,
0xbf, 0xdf, 0xb9, 0xc7, 0x3f, 0x1b, 0xa4, 0x81, 0xe3, 0x0c, 0x2c, 0x22, 0x19, 0x64, 0x1c, 0x38,
0x8e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, 0x32,
0x7e, 0x37, 0x75, 0xe7, 0x79, 0x37, 0xc3, 0x47, 0xab, 0x12, 0x5d, 0xe8, 0x82, 0xf7, 0xe1, 0xfb,
0x77, 0xc4, 0x77, 0x5f, 0x10, 0x97, 0xf2, 0xed, 0xcd, 0x3e, 0xf0, 0x60, 0x6a, 0x5b, 0x6f, 0x11,
0xe4, 0xe7, 0x4c, 0x71, 0x95, 0x2e, 0x2f, 0x72, 0xd1, 0xfb, 0xb0, 0xde, 0x8f, 0x58, 0xef, 0xc8,
0xa5, 0x98, 0x35, 0x7d, 0x5b, 0x43, 0xa7, 0x9b, 0xe1, 0x3e, 0xa5, 0x2e, 0x95, 0xaf, 0xa6, 0x7c,
0x8f, 0x5b, 0xff, 0x9f, 0xd1, 0xc7, 0x0c, 0x1c, 0x4b, 0xb7, 0x07, 0xa2, 0xe3, 0x0d, 0xa4, 0x01,
0xb1, 0x23, 0x9b, 0xa1, 0xbf, 0x00, 0xba, 0x6b, 0xfa, 0x77, 0xff, 0x06, 0x1c, 0xce, 0x6d, 0x74,
0x33, 0x51, 0xe5, 0xce, 0xe7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0c, 0x08, 0x2b, 0x60, 0x3f, 0x08,
0x00, 0x00,
}

View File

@ -1,29 +1,14 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/cloudtrace/v1/trace.proto
/*
Package cloudtrace is a generated protocol buffer package.
It is generated from these files:
google/devtools/cloudtrace/v1/trace.proto
It has these top-level messages:
Trace
Traces
TraceSpan
ListTracesRequest
ListTracesResponse
GetTraceRequest
PatchTracesRequest
*/
package cloudtrace
package cloudtrace // import "google.golang.org/genproto/googleapis/devtools/cloudtrace/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/empty"
import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
import (
context "golang.org/x/net/context"
@ -70,7 +55,9 @@ var TraceSpan_SpanKind_value = map[string]int32{
func (x TraceSpan_SpanKind) String() string {
return proto.EnumName(TraceSpan_SpanKind_name, int32(x))
}
func (TraceSpan_SpanKind) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
func (TraceSpan_SpanKind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_trace_98dc85cc2ea3983c, []int{2, 0}
}
// Type of data returned for traces in the list.
type ListTracesRequest_ViewType int32
@ -107,7 +94,7 @@ func (x ListTracesRequest_ViewType) String() string {
return proto.EnumName(ListTracesRequest_ViewType_name, int32(x))
}
func (ListTracesRequest_ViewType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{3, 0}
return fileDescriptor_trace_98dc85cc2ea3983c, []int{3, 0}
}
// A trace describes how long it takes for an application to perform an
@ -115,18 +102,40 @@ func (ListTracesRequest_ViewType) EnumDescriptor() ([]byte, []int) {
// timed event within the operation.
type Trace struct {
// Project ID of the Cloud project where the trace data is stored.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Globally unique identifier for the trace. This identifier is a 128-bit
// numeric value formatted as a 32-byte hex string.
TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
// Collection of spans in the trace.
Spans []*TraceSpan `protobuf:"bytes,3,rep,name=spans" json:"spans,omitempty"`
Spans []*TraceSpan `protobuf:"bytes,3,rep,name=spans,proto3" json:"spans,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Trace) Reset() { *m = Trace{} }
func (m *Trace) String() string { return proto.CompactTextString(m) }
func (*Trace) ProtoMessage() {}
func (*Trace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Trace) Reset() { *m = Trace{} }
func (m *Trace) String() string { return proto.CompactTextString(m) }
func (*Trace) ProtoMessage() {}
func (*Trace) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_98dc85cc2ea3983c, []int{0}
}
func (m *Trace) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Trace.Unmarshal(m, b)
}
func (m *Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Trace.Marshal(b, m, deterministic)
}
func (dst *Trace) XXX_Merge(src proto.Message) {
xxx_messageInfo_Trace.Merge(dst, src)
}
func (m *Trace) XXX_Size() int {
return xxx_messageInfo_Trace.Size(m)
}
func (m *Trace) XXX_DiscardUnknown() {
xxx_messageInfo_Trace.DiscardUnknown(m)
}
var xxx_messageInfo_Trace proto.InternalMessageInfo
func (m *Trace) GetProjectId() string {
if m != nil {
@ -152,13 +161,35 @@ func (m *Trace) GetSpans() []*TraceSpan {
// List of new or updated traces.
type Traces struct {
// List of traces.
Traces []*Trace `protobuf:"bytes,1,rep,name=traces" json:"traces,omitempty"`
Traces []*Trace `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Traces) Reset() { *m = Traces{} }
func (m *Traces) String() string { return proto.CompactTextString(m) }
func (*Traces) ProtoMessage() {}
func (*Traces) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Traces) Reset() { *m = Traces{} }
func (m *Traces) String() string { return proto.CompactTextString(m) }
func (*Traces) ProtoMessage() {}
func (*Traces) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_98dc85cc2ea3983c, []int{1}
}
func (m *Traces) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Traces.Unmarshal(m, b)
}
func (m *Traces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Traces.Marshal(b, m, deterministic)
}
func (dst *Traces) XXX_Merge(src proto.Message) {
xxx_messageInfo_Traces.Merge(dst, src)
}
func (m *Traces) XXX_Size() int {
return xxx_messageInfo_Traces.Size(m)
}
func (m *Traces) XXX_DiscardUnknown() {
xxx_messageInfo_Traces.DiscardUnknown(m)
}
var xxx_messageInfo_Traces proto.InternalMessageInfo
func (m *Traces) GetTraces() []*Trace {
if m != nil {
@ -175,11 +206,11 @@ func (m *Traces) GetTraces() []*Trace {
type TraceSpan struct {
// Identifier for the span. Must be a 64-bit integer other than 0 and
// unique within a trace.
SpanId uint64 `protobuf:"fixed64,1,opt,name=span_id,json=spanId" json:"span_id,omitempty"`
SpanId uint64 `protobuf:"fixed64,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
// Distinguishes between spans generated in a particular context. For example,
// two spans with the same name may be distinguished using `RPC_CLIENT`
// and `RPC_SERVER` to identify queueing latency associated with the span.
Kind TraceSpan_SpanKind `protobuf:"varint,2,opt,name=kind,enum=google.devtools.cloudtrace.v1.TraceSpan_SpanKind" json:"kind,omitempty"`
Kind TraceSpan_SpanKind `protobuf:"varint,2,opt,name=kind,proto3,enum=google.devtools.cloudtrace.v1.TraceSpan_SpanKind" json:"kind,omitempty"`
// Name of the span. Must be less than 128 bytes. The span name is sanitized
// and displayed in the Stackdriver Trace tool in the
// {% dynamic print site_values.console_name %}.
@ -187,13 +218,13 @@ type TraceSpan struct {
// For the same executable and the same call point, a best practice is
// to use a consistent name, which makes it easier to correlate
// cross-trace spans.
Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Start time of the span in nanoseconds from the UNIX epoch.
StartTime *google_protobuf2.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// End time of the span in nanoseconds from the UNIX epoch.
EndTime *google_protobuf2.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// ID of the parent span, if any. Optional.
ParentSpanId uint64 `protobuf:"fixed64,6,opt,name=parent_span_id,json=parentSpanId" json:"parent_span_id,omitempty"`
ParentSpanId uint64 `protobuf:"fixed64,6,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"`
// Collection of labels associated with the span. Label keys must be less than
// 128 bytes. Label values must be less than 16 kilobytes (10MB for
// `/stacktrace` values).
@ -218,22 +249,46 @@ type TraceSpan struct {
// * `/http/client_region`
// * `/http/host`
// * `/http/method`
// * `/http/path`
// * `/http/redirected_url`
// * `/http/request/size`
// * `/http/response/size`
// * `/http/route`
// * `/http/status_code`
// * `/http/url`
// * `/http/user_agent`
// * `/pid`
// * `/stacktrace`
// * `/tid`
Labels map[string]string `protobuf:"bytes,7,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TraceSpan) Reset() { *m = TraceSpan{} }
func (m *TraceSpan) String() string { return proto.CompactTextString(m) }
func (*TraceSpan) ProtoMessage() {}
func (*TraceSpan) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *TraceSpan) Reset() { *m = TraceSpan{} }
func (m *TraceSpan) String() string { return proto.CompactTextString(m) }
func (*TraceSpan) ProtoMessage() {}
func (*TraceSpan) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_98dc85cc2ea3983c, []int{2}
}
func (m *TraceSpan) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TraceSpan.Unmarshal(m, b)
}
func (m *TraceSpan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TraceSpan.Marshal(b, m, deterministic)
}
func (dst *TraceSpan) XXX_Merge(src proto.Message) {
xxx_messageInfo_TraceSpan.Merge(dst, src)
}
func (m *TraceSpan) XXX_Size() int {
return xxx_messageInfo_TraceSpan.Size(m)
}
func (m *TraceSpan) XXX_DiscardUnknown() {
xxx_messageInfo_TraceSpan.DiscardUnknown(m)
}
var xxx_messageInfo_TraceSpan proto.InternalMessageInfo
func (m *TraceSpan) GetSpanId() uint64 {
if m != nil {
@ -256,14 +311,14 @@ func (m *TraceSpan) GetName() string {
return ""
}
func (m *TraceSpan) GetStartTime() *google_protobuf2.Timestamp {
func (m *TraceSpan) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *TraceSpan) GetEndTime() *google_protobuf2.Timestamp {
func (m *TraceSpan) GetEndTime() *timestamp.Timestamp {
if m != nil {
return m.EndTime
}
@ -288,23 +343,23 @@ func (m *TraceSpan) GetLabels() map[string]string {
// unless specified.
type ListTracesRequest struct {
// ID of the Cloud project where the trace data is stored.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Type of data returned for traces in the list. Optional. Default is
// `MINIMAL`.
View ListTracesRequest_ViewType `protobuf:"varint,2,opt,name=view,enum=google.devtools.cloudtrace.v1.ListTracesRequest_ViewType" json:"view,omitempty"`
View ListTracesRequest_ViewType `protobuf:"varint,2,opt,name=view,proto3,enum=google.devtools.cloudtrace.v1.ListTracesRequest_ViewType" json:"view,omitempty"`
// Maximum number of traces to return. If not specified or <= 0, the
// implementation selects a reasonable value. The implementation may
// return fewer traces than the requested page size. Optional.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Token identifying the page of results to return. If provided, use the
// value of the `next_page_token` field from a previous request. Optional.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Start of the time interval (inclusive) during which the trace data was
// collected from the application.
StartTime *google_protobuf2.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// End of the time interval (inclusive) during which the trace data was
// collected from the application.
EndTime *google_protobuf2.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// An optional filter against labels for the request.
//
// By default, searches use prefix matching. To specify exact match, prepend
@ -335,7 +390,7 @@ type ListTracesRequest struct {
// specified.
// * `method:VALUE`: Equivalent to `/http/method:VALUE`.
// * `url:VALUE`: Equivalent to `/http/url:VALUE`.
Filter string `protobuf:"bytes,7,opt,name=filter" json:"filter,omitempty"`
Filter string `protobuf:"bytes,7,opt,name=filter,proto3" json:"filter,omitempty"`
// Field used to sort the returned traces. Optional.
// Can be one of the following:
//
@ -349,13 +404,35 @@ type ListTracesRequest struct {
// (for example, `name desc`).
//
// Only one sort field is permitted.
OrderBy string `protobuf:"bytes,8,opt,name=order_by,json=orderBy" json:"order_by,omitempty"`
OrderBy string `protobuf:"bytes,8,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListTracesRequest) Reset() { *m = ListTracesRequest{} }
func (m *ListTracesRequest) String() string { return proto.CompactTextString(m) }
func (*ListTracesRequest) ProtoMessage() {}
func (*ListTracesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *ListTracesRequest) Reset() { *m = ListTracesRequest{} }
func (m *ListTracesRequest) String() string { return proto.CompactTextString(m) }
func (*ListTracesRequest) ProtoMessage() {}
func (*ListTracesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_98dc85cc2ea3983c, []int{3}
}
func (m *ListTracesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListTracesRequest.Unmarshal(m, b)
}
func (m *ListTracesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListTracesRequest.Marshal(b, m, deterministic)
}
func (dst *ListTracesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListTracesRequest.Merge(dst, src)
}
func (m *ListTracesRequest) XXX_Size() int {
return xxx_messageInfo_ListTracesRequest.Size(m)
}
func (m *ListTracesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListTracesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListTracesRequest proto.InternalMessageInfo
func (m *ListTracesRequest) GetProjectId() string {
if m != nil {
@ -385,14 +462,14 @@ func (m *ListTracesRequest) GetPageToken() string {
return ""
}
func (m *ListTracesRequest) GetStartTime() *google_protobuf2.Timestamp {
func (m *ListTracesRequest) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *ListTracesRequest) GetEndTime() *google_protobuf2.Timestamp {
func (m *ListTracesRequest) GetEndTime() *timestamp.Timestamp {
if m != nil {
return m.EndTime
}
@ -416,17 +493,39 @@ func (m *ListTracesRequest) GetOrderBy() string {
// The response message for the `ListTraces` method.
type ListTracesResponse struct {
// List of trace records returned.
Traces []*Trace `protobuf:"bytes,1,rep,name=traces" json:"traces,omitempty"`
Traces []*Trace `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"`
// If defined, indicates that there are more traces that match the request
// and that this value should be passed to the next request to continue
// retrieving additional traces.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListTracesResponse) Reset() { *m = ListTracesResponse{} }
func (m *ListTracesResponse) String() string { return proto.CompactTextString(m) }
func (*ListTracesResponse) ProtoMessage() {}
func (*ListTracesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *ListTracesResponse) Reset() { *m = ListTracesResponse{} }
func (m *ListTracesResponse) String() string { return proto.CompactTextString(m) }
func (*ListTracesResponse) ProtoMessage() {}
func (*ListTracesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_98dc85cc2ea3983c, []int{4}
}
func (m *ListTracesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListTracesResponse.Unmarshal(m, b)
}
func (m *ListTracesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListTracesResponse.Marshal(b, m, deterministic)
}
func (dst *ListTracesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListTracesResponse.Merge(dst, src)
}
func (m *ListTracesResponse) XXX_Size() int {
return xxx_messageInfo_ListTracesResponse.Size(m)
}
func (m *ListTracesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListTracesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListTracesResponse proto.InternalMessageInfo
func (m *ListTracesResponse) GetTraces() []*Trace {
if m != nil {
@ -445,15 +544,37 @@ func (m *ListTracesResponse) GetNextPageToken() string {
// The request message for the `GetTrace` method.
type GetTraceRequest struct {
// ID of the Cloud project where the trace data is stored.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// ID of the trace to return.
TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetTraceRequest) Reset() { *m = GetTraceRequest{} }
func (m *GetTraceRequest) String() string { return proto.CompactTextString(m) }
func (*GetTraceRequest) ProtoMessage() {}
func (*GetTraceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *GetTraceRequest) Reset() { *m = GetTraceRequest{} }
func (m *GetTraceRequest) String() string { return proto.CompactTextString(m) }
func (*GetTraceRequest) ProtoMessage() {}
func (*GetTraceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_98dc85cc2ea3983c, []int{5}
}
func (m *GetTraceRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetTraceRequest.Unmarshal(m, b)
}
func (m *GetTraceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetTraceRequest.Marshal(b, m, deterministic)
}
func (dst *GetTraceRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetTraceRequest.Merge(dst, src)
}
func (m *GetTraceRequest) XXX_Size() int {
return xxx_messageInfo_GetTraceRequest.Size(m)
}
func (m *GetTraceRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetTraceRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetTraceRequest proto.InternalMessageInfo
func (m *GetTraceRequest) GetProjectId() string {
if m != nil {
@ -472,15 +593,37 @@ func (m *GetTraceRequest) GetTraceId() string {
// The request message for the `PatchTraces` method.
type PatchTracesRequest struct {
// ID of the Cloud project where the trace data is stored.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// The body of the message.
Traces *Traces `protobuf:"bytes,2,opt,name=traces" json:"traces,omitempty"`
Traces *Traces `protobuf:"bytes,2,opt,name=traces,proto3" json:"traces,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PatchTracesRequest) Reset() { *m = PatchTracesRequest{} }
func (m *PatchTracesRequest) String() string { return proto.CompactTextString(m) }
func (*PatchTracesRequest) ProtoMessage() {}
func (*PatchTracesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *PatchTracesRequest) Reset() { *m = PatchTracesRequest{} }
func (m *PatchTracesRequest) String() string { return proto.CompactTextString(m) }
func (*PatchTracesRequest) ProtoMessage() {}
func (*PatchTracesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_98dc85cc2ea3983c, []int{6}
}
func (m *PatchTracesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PatchTracesRequest.Unmarshal(m, b)
}
func (m *PatchTracesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PatchTracesRequest.Marshal(b, m, deterministic)
}
func (dst *PatchTracesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PatchTracesRequest.Merge(dst, src)
}
func (m *PatchTracesRequest) XXX_Size() int {
return xxx_messageInfo_PatchTracesRequest.Size(m)
}
func (m *PatchTracesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PatchTracesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PatchTracesRequest proto.InternalMessageInfo
func (m *PatchTracesRequest) GetProjectId() string {
if m != nil {
@ -500,6 +643,7 @@ func init() {
proto.RegisterType((*Trace)(nil), "google.devtools.cloudtrace.v1.Trace")
proto.RegisterType((*Traces)(nil), "google.devtools.cloudtrace.v1.Traces")
proto.RegisterType((*TraceSpan)(nil), "google.devtools.cloudtrace.v1.TraceSpan")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry")
proto.RegisterType((*ListTracesRequest)(nil), "google.devtools.cloudtrace.v1.ListTracesRequest")
proto.RegisterType((*ListTracesResponse)(nil), "google.devtools.cloudtrace.v1.ListTracesResponse")
proto.RegisterType((*GetTraceRequest)(nil), "google.devtools.cloudtrace.v1.GetTraceRequest")
@ -516,8 +660,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for TraceService service
// TraceServiceClient is the client API for TraceService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TraceServiceClient interface {
// Returns of a list of traces that match the specified filter conditions.
ListTraces(ctx context.Context, in *ListTracesRequest, opts ...grpc.CallOption) (*ListTracesResponse, error)
@ -528,7 +673,7 @@ type TraceServiceClient interface {
// in the existing trace and its spans are overwritten by the provided values,
// and any new fields provided are merged with the existing trace data. If the
// ID does not match, a new trace is created.
PatchTraces(ctx context.Context, in *PatchTracesRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
PatchTraces(ctx context.Context, in *PatchTracesRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type traceServiceClient struct {
@ -541,7 +686,7 @@ func NewTraceServiceClient(cc *grpc.ClientConn) TraceServiceClient {
func (c *traceServiceClient) ListTraces(ctx context.Context, in *ListTracesRequest, opts ...grpc.CallOption) (*ListTracesResponse, error) {
out := new(ListTracesResponse)
err := grpc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/ListTraces", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/ListTraces", in, out, opts...)
if err != nil {
return nil, err
}
@ -550,24 +695,23 @@ func (c *traceServiceClient) ListTraces(ctx context.Context, in *ListTracesReque
func (c *traceServiceClient) GetTrace(ctx context.Context, in *GetTraceRequest, opts ...grpc.CallOption) (*Trace, error) {
out := new(Trace)
err := grpc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/GetTrace", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/GetTrace", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *traceServiceClient) PatchTraces(ctx context.Context, in *PatchTracesRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) {
out := new(google_protobuf1.Empty)
err := grpc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/PatchTraces", in, out, c.cc, opts...)
func (c *traceServiceClient) PatchTraces(ctx context.Context, in *PatchTracesRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/PatchTraces", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for TraceService service
// TraceServiceServer is the server API for TraceService service.
type TraceServiceServer interface {
// Returns of a list of traces that match the specified filter conditions.
ListTraces(context.Context, *ListTracesRequest) (*ListTracesResponse, error)
@ -578,7 +722,7 @@ type TraceServiceServer interface {
// in the existing trace and its spans are overwritten by the provided values,
// and any new fields provided are merged with the existing trace data. If the
// ID does not match, a new trace is created.
PatchTraces(context.Context, *PatchTracesRequest) (*google_protobuf1.Empty, error)
PatchTraces(context.Context, *PatchTracesRequest) (*empty.Empty, error)
}
func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer) {
@ -660,9 +804,11 @@ var _TraceService_serviceDesc = grpc.ServiceDesc{
Metadata: "google/devtools/cloudtrace/v1/trace.proto",
}
func init() { proto.RegisterFile("google/devtools/cloudtrace/v1/trace.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/devtools/cloudtrace/v1/trace.proto", fileDescriptor_trace_98dc85cc2ea3983c)
}
var fileDescriptor0 = []byte{
var fileDescriptor_trace_98dc85cc2ea3983c = []byte{
// 898 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x6e, 0x1b, 0x45,
0x14, 0x66, 0xed, 0x78, 0x6d, 0x1f, 0x87, 0xd4, 0x8c, 0x68, 0x71, 0x5d, 0x2a, 0xc2, 0xaa, 0x20,

View File

@ -1,30 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/cloudtrace/v2/trace.proto
/*
Package cloudtrace is a generated protocol buffer package.
It is generated from these files:
google/devtools/cloudtrace/v2/trace.proto
google/devtools/cloudtrace/v2/tracing.proto
It has these top-level messages:
Span
AttributeValue
StackTrace
Module
TruncatableString
BatchWriteSpansRequest
*/
package cloudtrace
package cloudtrace // import "google.golang.org/genproto/googleapis/devtools/cloudtrace/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
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_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
import google_protobuf2 "github.com/golang/protobuf/ptypes/wrappers"
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
import status "google.golang.org/genproto/googleapis/rpc/status"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
@ -64,7 +49,7 @@ func (x Span_TimeEvent_MessageEvent_Type) String() string {
return proto.EnumName(Span_TimeEvent_MessageEvent_Type_name, int32(x))
}
func (Span_TimeEvent_MessageEvent_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 1, 1, 0}
return fileDescriptor_trace_fa9cb54dc45915f9, []int{0, 1, 1, 0}
}
// The relationship of the current span relative to the linked span: child,
@ -94,7 +79,9 @@ var Span_Link_Type_value = map[string]int32{
func (x Span_Link_Type) String() string {
return proto.EnumName(Span_Link_Type_name, int32(x))
}
func (Span_Link_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 3, 0} }
func (Span_Link_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{0, 3, 0}
}
// A span represents a single operation within a trace. Spans can be
// nested to form a trace tree. Often, a trace contains a root span
@ -112,12 +99,12 @@ type Span struct {
//
// [SPAN_ID] is a unique identifier for a span within a trace; it
// is a 16-character hexadecimal encoding of an 8-byte array.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The [SPAN_ID] portion of the span's resource name.
SpanId string `protobuf:"bytes,2,opt,name=span_id,json=spanId" json:"span_id,omitempty"`
SpanId string `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
// The [SPAN_ID] of this span's parent span. If this is a root span,
// then this field must be empty.
ParentSpanId string `protobuf:"bytes,3,opt,name=parent_span_id,json=parentSpanId" json:"parent_span_id,omitempty"`
ParentSpanId string `protobuf:"bytes,3,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"`
// A description of the span's operation (up to 128 bytes).
// Stackdriver Trace displays the description in the
// {% dynamic print site_values.console_name %}.
@ -125,41 +112,63 @@ type Span struct {
// and a line number where the operation is called. A best practice is to use
// the same display name within an application and at the same call point.
// This makes it easier to correlate spans in different traces.
DisplayName *TruncatableString `protobuf:"bytes,4,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
DisplayName *TruncatableString `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The start time of the span. On the client side, this is the time kept by
// the local machine where the span execution starts. On the server side, this
// is the time when the server's application handler starts running.
StartTime *google_protobuf1.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// The end time of the span. On the client side, this is the time kept by
// the local machine where the span execution ends. On the server side, this
// is the time when the server application handler stops running.
EndTime *google_protobuf1.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// A set of attributes on the span. You can have up to 32 attributes per
// span.
Attributes *Span_Attributes `protobuf:"bytes,7,opt,name=attributes" json:"attributes,omitempty"`
Attributes *Span_Attributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"`
// Stack trace captured at the start of the span.
StackTrace *StackTrace `protobuf:"bytes,8,opt,name=stack_trace,json=stackTrace" json:"stack_trace,omitempty"`
StackTrace *StackTrace `protobuf:"bytes,8,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
// A set of time events. You can have up to 32 annotations and 128 message
// events per span.
TimeEvents *Span_TimeEvents `protobuf:"bytes,9,opt,name=time_events,json=timeEvents" json:"time_events,omitempty"`
TimeEvents *Span_TimeEvents `protobuf:"bytes,9,opt,name=time_events,json=timeEvents,proto3" json:"time_events,omitempty"`
// Links associated with the span. You can have up to 128 links per Span.
Links *Span_Links `protobuf:"bytes,10,opt,name=links" json:"links,omitempty"`
Links *Span_Links `protobuf:"bytes,10,opt,name=links,proto3" json:"links,omitempty"`
// An optional final status for this span.
Status *google_rpc.Status `protobuf:"bytes,11,opt,name=status" json:"status,omitempty"`
Status *status.Status `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"`
// (Optional) Set this parameter to indicate whether this span is in
// the same process as its parent. If you do not set this parameter,
// Stackdriver Trace is unable to take advantage of this helpful
// information.
SameProcessAsParentSpan *google_protobuf2.BoolValue `protobuf:"bytes,12,opt,name=same_process_as_parent_span,json=sameProcessAsParentSpan" json:"same_process_as_parent_span,omitempty"`
SameProcessAsParentSpan *wrappers.BoolValue `protobuf:"bytes,12,opt,name=same_process_as_parent_span,json=sameProcessAsParentSpan,proto3" json:"same_process_as_parent_span,omitempty"`
// An optional number of child spans that were generated while this span
// was active. If set, allows implementation to detect missing child spans.
ChildSpanCount *google_protobuf2.Int32Value `protobuf:"bytes,13,opt,name=child_span_count,json=childSpanCount" json:"child_span_count,omitempty"`
ChildSpanCount *wrappers.Int32Value `protobuf:"bytes,13,opt,name=child_span_count,json=childSpanCount,proto3" json:"child_span_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span) Reset() { *m = Span{} }
func (m *Span) String() string { return proto.CompactTextString(m) }
func (*Span) ProtoMessage() {}
func (*Span) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Span) Reset() { *m = Span{} }
func (m *Span) String() string { return proto.CompactTextString(m) }
func (*Span) ProtoMessage() {}
func (*Span) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{0}
}
func (m *Span) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span.Unmarshal(m, b)
}
func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span.Marshal(b, m, deterministic)
}
func (dst *Span) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span.Merge(dst, src)
}
func (m *Span) XXX_Size() int {
return xxx_messageInfo_Span.Size(m)
}
func (m *Span) XXX_DiscardUnknown() {
xxx_messageInfo_Span.DiscardUnknown(m)
}
var xxx_messageInfo_Span proto.InternalMessageInfo
func (m *Span) GetName() string {
if m != nil {
@ -189,14 +198,14 @@ func (m *Span) GetDisplayName() *TruncatableString {
return nil
}
func (m *Span) GetStartTime() *google_protobuf1.Timestamp {
func (m *Span) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *Span) GetEndTime() *google_protobuf1.Timestamp {
func (m *Span) GetEndTime() *timestamp.Timestamp {
if m != nil {
return m.EndTime
}
@ -231,21 +240,21 @@ func (m *Span) GetLinks() *Span_Links {
return nil
}
func (m *Span) GetStatus() *google_rpc.Status {
func (m *Span) GetStatus() *status.Status {
if m != nil {
return m.Status
}
return nil
}
func (m *Span) GetSameProcessAsParentSpan() *google_protobuf2.BoolValue {
func (m *Span) GetSameProcessAsParentSpan() *wrappers.BoolValue {
if m != nil {
return m.SameProcessAsParentSpan
}
return nil
}
func (m *Span) GetChildSpanCount() *google_protobuf2.Int32Value {
func (m *Span) GetChildSpanCount() *wrappers.Int32Value {
if m != nil {
return m.ChildSpanCount
}
@ -262,17 +271,39 @@ type Span_Attributes struct {
// "/http/user_agent": ""
// "/http/request_bytes": 300
// "abc.com/myattribute": true
AttributeMap map[string]*AttributeValue `protobuf:"bytes,1,rep,name=attribute_map,json=attributeMap" json:"attribute_map,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
AttributeMap map[string]*AttributeValue `protobuf:"bytes,1,rep,name=attribute_map,json=attributeMap,proto3" json:"attribute_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// The number of attributes that were discarded. Attributes can be discarded
// because their keys are too long or because there are too many attributes.
// If this value is 0 then all attributes are valid.
DroppedAttributesCount int32 `protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount" json:"dropped_attributes_count,omitempty"`
DroppedAttributesCount int32 `protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_Attributes) Reset() { *m = Span_Attributes{} }
func (m *Span_Attributes) String() string { return proto.CompactTextString(m) }
func (*Span_Attributes) ProtoMessage() {}
func (*Span_Attributes) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
func (m *Span_Attributes) Reset() { *m = Span_Attributes{} }
func (m *Span_Attributes) String() string { return proto.CompactTextString(m) }
func (*Span_Attributes) ProtoMessage() {}
func (*Span_Attributes) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{0, 0}
}
func (m *Span_Attributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_Attributes.Unmarshal(m, b)
}
func (m *Span_Attributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_Attributes.Marshal(b, m, deterministic)
}
func (dst *Span_Attributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_Attributes.Merge(dst, src)
}
func (m *Span_Attributes) XXX_Size() int {
return xxx_messageInfo_Span_Attributes.Size(m)
}
func (m *Span_Attributes) XXX_DiscardUnknown() {
xxx_messageInfo_Span_Attributes.DiscardUnknown(m)
}
var xxx_messageInfo_Span_Attributes proto.InternalMessageInfo
func (m *Span_Attributes) GetAttributeMap() map[string]*AttributeValue {
if m != nil {
@ -291,33 +322,64 @@ func (m *Span_Attributes) GetDroppedAttributesCount() int32 {
// A time-stamped annotation or message event in the Span.
type Span_TimeEvent struct {
// The timestamp indicating the time the event occurred.
Time *google_protobuf1.Timestamp `protobuf:"bytes,1,opt,name=time" json:"time,omitempty"`
Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
// A `TimeEvent` can contain either an `Annotation` object or a
// `MessageEvent` object, but not both.
//
// Types that are valid to be assigned to Value:
// *Span_TimeEvent_Annotation_
// *Span_TimeEvent_MessageEvent_
Value isSpan_TimeEvent_Value `protobuf_oneof:"value"`
Value isSpan_TimeEvent_Value `protobuf_oneof:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_TimeEvent) Reset() { *m = Span_TimeEvent{} }
func (m *Span_TimeEvent) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent) ProtoMessage() {}
func (*Span_TimeEvent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} }
func (m *Span_TimeEvent) Reset() { *m = Span_TimeEvent{} }
func (m *Span_TimeEvent) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent) ProtoMessage() {}
func (*Span_TimeEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{0, 1}
}
func (m *Span_TimeEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_TimeEvent.Unmarshal(m, b)
}
func (m *Span_TimeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_TimeEvent.Marshal(b, m, deterministic)
}
func (dst *Span_TimeEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_TimeEvent.Merge(dst, src)
}
func (m *Span_TimeEvent) XXX_Size() int {
return xxx_messageInfo_Span_TimeEvent.Size(m)
}
func (m *Span_TimeEvent) XXX_DiscardUnknown() {
xxx_messageInfo_Span_TimeEvent.DiscardUnknown(m)
}
var xxx_messageInfo_Span_TimeEvent proto.InternalMessageInfo
func (m *Span_TimeEvent) GetTime() *timestamp.Timestamp {
if m != nil {
return m.Time
}
return nil
}
type isSpan_TimeEvent_Value interface {
isSpan_TimeEvent_Value()
}
type Span_TimeEvent_Annotation_ struct {
Annotation *Span_TimeEvent_Annotation `protobuf:"bytes,2,opt,name=annotation,oneof"`
}
type Span_TimeEvent_MessageEvent_ struct {
MessageEvent *Span_TimeEvent_MessageEvent `protobuf:"bytes,3,opt,name=message_event,json=messageEvent,oneof"`
Annotation *Span_TimeEvent_Annotation `protobuf:"bytes,2,opt,name=annotation,proto3,oneof"`
}
func (*Span_TimeEvent_Annotation_) isSpan_TimeEvent_Value() {}
type Span_TimeEvent_MessageEvent_ struct {
MessageEvent *Span_TimeEvent_MessageEvent `protobuf:"bytes,3,opt,name=message_event,json=messageEvent,proto3,oneof"`
}
func (*Span_TimeEvent_Annotation_) isSpan_TimeEvent_Value() {}
func (*Span_TimeEvent_MessageEvent_) isSpan_TimeEvent_Value() {}
func (m *Span_TimeEvent) GetValue() isSpan_TimeEvent_Value {
@ -327,13 +389,6 @@ func (m *Span_TimeEvent) GetValue() isSpan_TimeEvent_Value {
return nil
}
func (m *Span_TimeEvent) GetTime() *google_protobuf1.Timestamp {
if m != nil {
return m.Time
}
return nil
}
func (m *Span_TimeEvent) GetAnnotation() *Span_TimeEvent_Annotation {
if x, ok := m.GetValue().(*Span_TimeEvent_Annotation_); ok {
return x.Annotation
@ -407,12 +462,12 @@ func _Span_TimeEvent_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) {
case *Span_TimeEvent_Annotation_:
s := proto.Size(x.Annotation)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Span_TimeEvent_MessageEvent_:
s := proto.Size(x.MessageEvent)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -426,16 +481,38 @@ func _Span_TimeEvent_OneofSizer(msg proto.Message) (n int) {
type Span_TimeEvent_Annotation struct {
// A user-supplied message describing the event. The maximum length for
// the description is 256 bytes.
Description *TruncatableString `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
Description *TruncatableString `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// A set of attributes on the annotation. You can have up to 4 attributes
// per Annotation.
Attributes *Span_Attributes `protobuf:"bytes,2,opt,name=attributes" json:"attributes,omitempty"`
Attributes *Span_Attributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_TimeEvent_Annotation) Reset() { *m = Span_TimeEvent_Annotation{} }
func (m *Span_TimeEvent_Annotation) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent_Annotation) ProtoMessage() {}
func (*Span_TimeEvent_Annotation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1, 0} }
func (m *Span_TimeEvent_Annotation) Reset() { *m = Span_TimeEvent_Annotation{} }
func (m *Span_TimeEvent_Annotation) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent_Annotation) ProtoMessage() {}
func (*Span_TimeEvent_Annotation) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{0, 1, 0}
}
func (m *Span_TimeEvent_Annotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_TimeEvent_Annotation.Unmarshal(m, b)
}
func (m *Span_TimeEvent_Annotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_TimeEvent_Annotation.Marshal(b, m, deterministic)
}
func (dst *Span_TimeEvent_Annotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_TimeEvent_Annotation.Merge(dst, src)
}
func (m *Span_TimeEvent_Annotation) XXX_Size() int {
return xxx_messageInfo_Span_TimeEvent_Annotation.Size(m)
}
func (m *Span_TimeEvent_Annotation) XXX_DiscardUnknown() {
xxx_messageInfo_Span_TimeEvent_Annotation.DiscardUnknown(m)
}
var xxx_messageInfo_Span_TimeEvent_Annotation proto.InternalMessageInfo
func (m *Span_TimeEvent_Annotation) GetDescription() *TruncatableString {
if m != nil {
@ -455,24 +532,44 @@ func (m *Span_TimeEvent_Annotation) GetAttributes() *Span_Attributes {
type Span_TimeEvent_MessageEvent struct {
// Type of MessageEvent. Indicates whether the message was sent or
// received.
Type Span_TimeEvent_MessageEvent_Type `protobuf:"varint,1,opt,name=type,enum=google.devtools.cloudtrace.v2.Span_TimeEvent_MessageEvent_Type" json:"type,omitempty"`
Type Span_TimeEvent_MessageEvent_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.devtools.cloudtrace.v2.Span_TimeEvent_MessageEvent_Type" json:"type,omitempty"`
// An identifier for the MessageEvent's message that can be used to match
// SENT and RECEIVED MessageEvents. It is recommended to be unique within
// a Span.
Id int64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// The number of uncompressed bytes sent or received.
UncompressedSizeBytes int64 `protobuf:"varint,3,opt,name=uncompressed_size_bytes,json=uncompressedSizeBytes" json:"uncompressed_size_bytes,omitempty"`
UncompressedSizeBytes int64 `protobuf:"varint,3,opt,name=uncompressed_size_bytes,json=uncompressedSizeBytes,proto3" json:"uncompressed_size_bytes,omitempty"`
// The number of compressed bytes sent or received. If missing assumed to
// be the same size as uncompressed.
CompressedSizeBytes int64 `protobuf:"varint,4,opt,name=compressed_size_bytes,json=compressedSizeBytes" json:"compressed_size_bytes,omitempty"`
CompressedSizeBytes int64 `protobuf:"varint,4,opt,name=compressed_size_bytes,json=compressedSizeBytes,proto3" json:"compressed_size_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_TimeEvent_MessageEvent) Reset() { *m = Span_TimeEvent_MessageEvent{} }
func (m *Span_TimeEvent_MessageEvent) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent_MessageEvent) ProtoMessage() {}
func (*Span_TimeEvent_MessageEvent) Descriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 1, 1}
return fileDescriptor_trace_fa9cb54dc45915f9, []int{0, 1, 1}
}
func (m *Span_TimeEvent_MessageEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_TimeEvent_MessageEvent.Unmarshal(m, b)
}
func (m *Span_TimeEvent_MessageEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_TimeEvent_MessageEvent.Marshal(b, m, deterministic)
}
func (dst *Span_TimeEvent_MessageEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_TimeEvent_MessageEvent.Merge(dst, src)
}
func (m *Span_TimeEvent_MessageEvent) XXX_Size() int {
return xxx_messageInfo_Span_TimeEvent_MessageEvent.Size(m)
}
func (m *Span_TimeEvent_MessageEvent) XXX_DiscardUnknown() {
xxx_messageInfo_Span_TimeEvent_MessageEvent.DiscardUnknown(m)
}
var xxx_messageInfo_Span_TimeEvent_MessageEvent proto.InternalMessageInfo
func (m *Span_TimeEvent_MessageEvent) GetType() Span_TimeEvent_MessageEvent_Type {
if m != nil {
@ -507,19 +604,41 @@ func (m *Span_TimeEvent_MessageEvent) GetCompressedSizeBytes() int64 {
// details of a message sent/received between Spans.
type Span_TimeEvents struct {
// A collection of `TimeEvent`s.
TimeEvent []*Span_TimeEvent `protobuf:"bytes,1,rep,name=time_event,json=timeEvent" json:"time_event,omitempty"`
TimeEvent []*Span_TimeEvent `protobuf:"bytes,1,rep,name=time_event,json=timeEvent,proto3" json:"time_event,omitempty"`
// The number of dropped annotations in all the included time events.
// If the value is 0, then no annotations were dropped.
DroppedAnnotationsCount int32 `protobuf:"varint,2,opt,name=dropped_annotations_count,json=droppedAnnotationsCount" json:"dropped_annotations_count,omitempty"`
DroppedAnnotationsCount int32 `protobuf:"varint,2,opt,name=dropped_annotations_count,json=droppedAnnotationsCount,proto3" json:"dropped_annotations_count,omitempty"`
// The number of dropped message events in all the included time events.
// If the value is 0, then no message events were dropped.
DroppedMessageEventsCount int32 `protobuf:"varint,3,opt,name=dropped_message_events_count,json=droppedMessageEventsCount" json:"dropped_message_events_count,omitempty"`
DroppedMessageEventsCount int32 `protobuf:"varint,3,opt,name=dropped_message_events_count,json=droppedMessageEventsCount,proto3" json:"dropped_message_events_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_TimeEvents) Reset() { *m = Span_TimeEvents{} }
func (m *Span_TimeEvents) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvents) ProtoMessage() {}
func (*Span_TimeEvents) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 2} }
func (m *Span_TimeEvents) Reset() { *m = Span_TimeEvents{} }
func (m *Span_TimeEvents) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvents) ProtoMessage() {}
func (*Span_TimeEvents) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{0, 2}
}
func (m *Span_TimeEvents) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_TimeEvents.Unmarshal(m, b)
}
func (m *Span_TimeEvents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_TimeEvents.Marshal(b, m, deterministic)
}
func (dst *Span_TimeEvents) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_TimeEvents.Merge(dst, src)
}
func (m *Span_TimeEvents) XXX_Size() int {
return xxx_messageInfo_Span_TimeEvents.Size(m)
}
func (m *Span_TimeEvents) XXX_DiscardUnknown() {
xxx_messageInfo_Span_TimeEvents.DiscardUnknown(m)
}
var xxx_messageInfo_Span_TimeEvents proto.InternalMessageInfo
func (m *Span_TimeEvents) GetTimeEvent() []*Span_TimeEvent {
if m != nil {
@ -548,20 +667,42 @@ func (m *Span_TimeEvents) GetDroppedMessageEventsCount() int32 {
// traces or when the handler receives a request from a different project.
type Span_Link struct {
// The [TRACE_ID] for a trace within a project.
TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
// The [SPAN_ID] for a span within a trace.
SpanId string `protobuf:"bytes,2,opt,name=span_id,json=spanId" json:"span_id,omitempty"`
SpanId string `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
// The relationship of the current span relative to the linked span.
Type Span_Link_Type `protobuf:"varint,3,opt,name=type,enum=google.devtools.cloudtrace.v2.Span_Link_Type" json:"type,omitempty"`
Type Span_Link_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.devtools.cloudtrace.v2.Span_Link_Type" json:"type,omitempty"`
// A set of attributes on the link. You have have up to 32 attributes per
// link.
Attributes *Span_Attributes `protobuf:"bytes,4,opt,name=attributes" json:"attributes,omitempty"`
Attributes *Span_Attributes `protobuf:"bytes,4,opt,name=attributes,proto3" json:"attributes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_Link) Reset() { *m = Span_Link{} }
func (m *Span_Link) String() string { return proto.CompactTextString(m) }
func (*Span_Link) ProtoMessage() {}
func (*Span_Link) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 3} }
func (m *Span_Link) Reset() { *m = Span_Link{} }
func (m *Span_Link) String() string { return proto.CompactTextString(m) }
func (*Span_Link) ProtoMessage() {}
func (*Span_Link) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{0, 3}
}
func (m *Span_Link) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_Link.Unmarshal(m, b)
}
func (m *Span_Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_Link.Marshal(b, m, deterministic)
}
func (dst *Span_Link) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_Link.Merge(dst, src)
}
func (m *Span_Link) XXX_Size() int {
return xxx_messageInfo_Span_Link.Size(m)
}
func (m *Span_Link) XXX_DiscardUnknown() {
xxx_messageInfo_Span_Link.DiscardUnknown(m)
}
var xxx_messageInfo_Span_Link proto.InternalMessageInfo
func (m *Span_Link) GetTraceId() string {
if m != nil {
@ -595,16 +736,38 @@ func (m *Span_Link) GetAttributes() *Span_Attributes {
// in the same or different trace.
type Span_Links struct {
// A collection of links.
Link []*Span_Link `protobuf:"bytes,1,rep,name=link" json:"link,omitempty"`
Link []*Span_Link `protobuf:"bytes,1,rep,name=link,proto3" json:"link,omitempty"`
// The number of dropped links after the maximum size was enforced. If
// this value is 0, then no links were dropped.
DroppedLinksCount int32 `protobuf:"varint,2,opt,name=dropped_links_count,json=droppedLinksCount" json:"dropped_links_count,omitempty"`
DroppedLinksCount int32 `protobuf:"varint,2,opt,name=dropped_links_count,json=droppedLinksCount,proto3" json:"dropped_links_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_Links) Reset() { *m = Span_Links{} }
func (m *Span_Links) String() string { return proto.CompactTextString(m) }
func (*Span_Links) ProtoMessage() {}
func (*Span_Links) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 4} }
func (m *Span_Links) Reset() { *m = Span_Links{} }
func (m *Span_Links) String() string { return proto.CompactTextString(m) }
func (*Span_Links) ProtoMessage() {}
func (*Span_Links) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{0, 4}
}
func (m *Span_Links) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_Links.Unmarshal(m, b)
}
func (m *Span_Links) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_Links.Marshal(b, m, deterministic)
}
func (dst *Span_Links) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_Links.Merge(dst, src)
}
func (m *Span_Links) XXX_Size() int {
return xxx_messageInfo_Span_Links.Size(m)
}
func (m *Span_Links) XXX_DiscardUnknown() {
xxx_messageInfo_Span_Links.DiscardUnknown(m)
}
var xxx_messageInfo_Span_Links proto.InternalMessageInfo
func (m *Span_Links) GetLink() []*Span_Link {
if m != nil {
@ -628,31 +791,57 @@ type AttributeValue struct {
// *AttributeValue_StringValue
// *AttributeValue_IntValue
// *AttributeValue_BoolValue
Value isAttributeValue_Value `protobuf_oneof:"value"`
Value isAttributeValue_Value `protobuf_oneof:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AttributeValue) Reset() { *m = AttributeValue{} }
func (m *AttributeValue) String() string { return proto.CompactTextString(m) }
func (*AttributeValue) ProtoMessage() {}
func (*AttributeValue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *AttributeValue) Reset() { *m = AttributeValue{} }
func (m *AttributeValue) String() string { return proto.CompactTextString(m) }
func (*AttributeValue) ProtoMessage() {}
func (*AttributeValue) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{1}
}
func (m *AttributeValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AttributeValue.Unmarshal(m, b)
}
func (m *AttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AttributeValue.Marshal(b, m, deterministic)
}
func (dst *AttributeValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_AttributeValue.Merge(dst, src)
}
func (m *AttributeValue) XXX_Size() int {
return xxx_messageInfo_AttributeValue.Size(m)
}
func (m *AttributeValue) XXX_DiscardUnknown() {
xxx_messageInfo_AttributeValue.DiscardUnknown(m)
}
var xxx_messageInfo_AttributeValue proto.InternalMessageInfo
type isAttributeValue_Value interface {
isAttributeValue_Value()
}
type AttributeValue_StringValue struct {
StringValue *TruncatableString `protobuf:"bytes,1,opt,name=string_value,json=stringValue,oneof"`
StringValue *TruncatableString `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type AttributeValue_IntValue struct {
IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,oneof"`
IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}
type AttributeValue_BoolValue struct {
BoolValue bool `protobuf:"varint,3,opt,name=bool_value,json=boolValue,oneof"`
BoolValue bool `protobuf:"varint,3,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
func (*AttributeValue_StringValue) isAttributeValue_Value() {}
func (*AttributeValue_IntValue) isAttributeValue_Value() {}
func (*AttributeValue_BoolValue) isAttributeValue_Value() {}
func (*AttributeValue_IntValue) isAttributeValue_Value() {}
func (*AttributeValue_BoolValue) isAttributeValue_Value() {}
func (m *AttributeValue) GetValue() isAttributeValue_Value {
if m != nil {
@ -753,14 +942,14 @@ func _AttributeValue_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) {
case *AttributeValue_StringValue:
s := proto.Size(x.StringValue)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AttributeValue_IntValue:
n += proto.SizeVarint(2<<3 | proto.WireVarint)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(x.IntValue))
case *AttributeValue_BoolValue:
n += proto.SizeVarint(3<<3 | proto.WireVarint)
n += 1 // tag and wire
n += 1
case nil:
default:
@ -772,7 +961,7 @@ func _AttributeValue_OneofSizer(msg proto.Message) (n int) {
// A call stack appearing in a trace.
type StackTrace struct {
// Stack frames in this stack trace. A maximum of 128 frames are allowed.
StackFrames *StackTrace_StackFrames `protobuf:"bytes,1,opt,name=stack_frames,json=stackFrames" json:"stack_frames,omitempty"`
StackFrames *StackTrace_StackFrames `protobuf:"bytes,1,opt,name=stack_frames,json=stackFrames,proto3" json:"stack_frames,omitempty"`
// The hash ID is used to conserve network bandwidth for duplicate
// stack traces within a single trace.
//
@ -782,13 +971,35 @@ type StackTrace struct {
//
// Subsequent spans within the same request can refer
// to that stack trace by only setting `stackTraceHashId`.
StackTraceHashId int64 `protobuf:"varint,2,opt,name=stack_trace_hash_id,json=stackTraceHashId" json:"stack_trace_hash_id,omitempty"`
StackTraceHashId int64 `protobuf:"varint,2,opt,name=stack_trace_hash_id,json=stackTraceHashId,proto3" json:"stack_trace_hash_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StackTrace) Reset() { *m = StackTrace{} }
func (m *StackTrace) String() string { return proto.CompactTextString(m) }
func (*StackTrace) ProtoMessage() {}
func (*StackTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *StackTrace) Reset() { *m = StackTrace{} }
func (m *StackTrace) String() string { return proto.CompactTextString(m) }
func (*StackTrace) ProtoMessage() {}
func (*StackTrace) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{2}
}
func (m *StackTrace) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StackTrace.Unmarshal(m, b)
}
func (m *StackTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StackTrace.Marshal(b, m, deterministic)
}
func (dst *StackTrace) XXX_Merge(src proto.Message) {
xxx_messageInfo_StackTrace.Merge(dst, src)
}
func (m *StackTrace) XXX_Size() int {
return xxx_messageInfo_StackTrace.Size(m)
}
func (m *StackTrace) XXX_DiscardUnknown() {
xxx_messageInfo_StackTrace.DiscardUnknown(m)
}
var xxx_messageInfo_StackTrace proto.InternalMessageInfo
func (m *StackTrace) GetStackFrames() *StackTrace_StackFrames {
if m != nil {
@ -808,29 +1019,51 @@ func (m *StackTrace) GetStackTraceHashId() int64 {
type StackTrace_StackFrame struct {
// The fully-qualified name that uniquely identifies the function or
// method that is active in this frame (up to 1024 bytes).
FunctionName *TruncatableString `protobuf:"bytes,1,opt,name=function_name,json=functionName" json:"function_name,omitempty"`
FunctionName *TruncatableString `protobuf:"bytes,1,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"`
// An un-mangled function name, if `function_name` is
// [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
// be fully-qualified (up to 1024 bytes).
OriginalFunctionName *TruncatableString `protobuf:"bytes,2,opt,name=original_function_name,json=originalFunctionName" json:"original_function_name,omitempty"`
OriginalFunctionName *TruncatableString `protobuf:"bytes,2,opt,name=original_function_name,json=originalFunctionName,proto3" json:"original_function_name,omitempty"`
// The name of the source file where the function call appears (up to 256
// bytes).
FileName *TruncatableString `protobuf:"bytes,3,opt,name=file_name,json=fileName" json:"file_name,omitempty"`
FileName *TruncatableString `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
// The line number in `file_name` where the function call appears.
LineNumber int64 `protobuf:"varint,4,opt,name=line_number,json=lineNumber" json:"line_number,omitempty"`
LineNumber int64 `protobuf:"varint,4,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
// The column number where the function call appears, if available.
// This is important in JavaScript because of its anonymous functions.
ColumnNumber int64 `protobuf:"varint,5,opt,name=column_number,json=columnNumber" json:"column_number,omitempty"`
ColumnNumber int64 `protobuf:"varint,5,opt,name=column_number,json=columnNumber,proto3" json:"column_number,omitempty"`
// The binary module from where the code was loaded.
LoadModule *Module `protobuf:"bytes,6,opt,name=load_module,json=loadModule" json:"load_module,omitempty"`
LoadModule *Module `protobuf:"bytes,6,opt,name=load_module,json=loadModule,proto3" json:"load_module,omitempty"`
// The version of the deployed source code (up to 128 bytes).
SourceVersion *TruncatableString `protobuf:"bytes,7,opt,name=source_version,json=sourceVersion" json:"source_version,omitempty"`
SourceVersion *TruncatableString `protobuf:"bytes,7,opt,name=source_version,json=sourceVersion,proto3" json:"source_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StackTrace_StackFrame) Reset() { *m = StackTrace_StackFrame{} }
func (m *StackTrace_StackFrame) String() string { return proto.CompactTextString(m) }
func (*StackTrace_StackFrame) ProtoMessage() {}
func (*StackTrace_StackFrame) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
func (m *StackTrace_StackFrame) Reset() { *m = StackTrace_StackFrame{} }
func (m *StackTrace_StackFrame) String() string { return proto.CompactTextString(m) }
func (*StackTrace_StackFrame) ProtoMessage() {}
func (*StackTrace_StackFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{2, 0}
}
func (m *StackTrace_StackFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StackTrace_StackFrame.Unmarshal(m, b)
}
func (m *StackTrace_StackFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StackTrace_StackFrame.Marshal(b, m, deterministic)
}
func (dst *StackTrace_StackFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_StackTrace_StackFrame.Merge(dst, src)
}
func (m *StackTrace_StackFrame) XXX_Size() int {
return xxx_messageInfo_StackTrace_StackFrame.Size(m)
}
func (m *StackTrace_StackFrame) XXX_DiscardUnknown() {
xxx_messageInfo_StackTrace_StackFrame.DiscardUnknown(m)
}
var xxx_messageInfo_StackTrace_StackFrame proto.InternalMessageInfo
func (m *StackTrace_StackFrame) GetFunctionName() *TruncatableString {
if m != nil {
@ -884,17 +1117,39 @@ func (m *StackTrace_StackFrame) GetSourceVersion() *TruncatableString {
// A collection of stack frames, which can be truncated.
type StackTrace_StackFrames struct {
// Stack frames in this call stack.
Frame []*StackTrace_StackFrame `protobuf:"bytes,1,rep,name=frame" json:"frame,omitempty"`
Frame []*StackTrace_StackFrame `protobuf:"bytes,1,rep,name=frame,proto3" json:"frame,omitempty"`
// The number of stack frames that were dropped because there
// were too many stack frames.
// If this value is 0, then no stack frames were dropped.
DroppedFramesCount int32 `protobuf:"varint,2,opt,name=dropped_frames_count,json=droppedFramesCount" json:"dropped_frames_count,omitempty"`
DroppedFramesCount int32 `protobuf:"varint,2,opt,name=dropped_frames_count,json=droppedFramesCount,proto3" json:"dropped_frames_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StackTrace_StackFrames) Reset() { *m = StackTrace_StackFrames{} }
func (m *StackTrace_StackFrames) String() string { return proto.CompactTextString(m) }
func (*StackTrace_StackFrames) ProtoMessage() {}
func (*StackTrace_StackFrames) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 1} }
func (m *StackTrace_StackFrames) Reset() { *m = StackTrace_StackFrames{} }
func (m *StackTrace_StackFrames) String() string { return proto.CompactTextString(m) }
func (*StackTrace_StackFrames) ProtoMessage() {}
func (*StackTrace_StackFrames) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{2, 1}
}
func (m *StackTrace_StackFrames) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StackTrace_StackFrames.Unmarshal(m, b)
}
func (m *StackTrace_StackFrames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StackTrace_StackFrames.Marshal(b, m, deterministic)
}
func (dst *StackTrace_StackFrames) XXX_Merge(src proto.Message) {
xxx_messageInfo_StackTrace_StackFrames.Merge(dst, src)
}
func (m *StackTrace_StackFrames) XXX_Size() int {
return xxx_messageInfo_StackTrace_StackFrames.Size(m)
}
func (m *StackTrace_StackFrames) XXX_DiscardUnknown() {
xxx_messageInfo_StackTrace_StackFrames.DiscardUnknown(m)
}
var xxx_messageInfo_StackTrace_StackFrames proto.InternalMessageInfo
func (m *StackTrace_StackFrames) GetFrame() []*StackTrace_StackFrame {
if m != nil {
@ -914,16 +1169,38 @@ func (m *StackTrace_StackFrames) GetDroppedFramesCount() int32 {
type Module struct {
// For example: main binary, kernel modules, and dynamic libraries
// such as libc.so, sharedlib.so (up to 256 bytes).
Module *TruncatableString `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
Module *TruncatableString `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
// A unique identifier for the module, usually a hash of its
// contents (up to 128 bytes).
BuildId *TruncatableString `protobuf:"bytes,2,opt,name=build_id,json=buildId" json:"build_id,omitempty"`
BuildId *TruncatableString `protobuf:"bytes,2,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Module) Reset() { *m = Module{} }
func (m *Module) String() string { return proto.CompactTextString(m) }
func (*Module) ProtoMessage() {}
func (*Module) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *Module) Reset() { *m = Module{} }
func (m *Module) String() string { return proto.CompactTextString(m) }
func (*Module) ProtoMessage() {}
func (*Module) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{3}
}
func (m *Module) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Module.Unmarshal(m, b)
}
func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Module.Marshal(b, m, deterministic)
}
func (dst *Module) XXX_Merge(src proto.Message) {
xxx_messageInfo_Module.Merge(dst, src)
}
func (m *Module) XXX_Size() int {
return xxx_messageInfo_Module.Size(m)
}
func (m *Module) XXX_DiscardUnknown() {
xxx_messageInfo_Module.DiscardUnknown(m)
}
var xxx_messageInfo_Module proto.InternalMessageInfo
func (m *Module) GetModule() *TruncatableString {
if m != nil {
@ -948,16 +1225,38 @@ type TruncatableString struct {
// Truncation always happens on a UTF8 character boundary. If there
// are multi-byte characters in the string, then the length of the
// shortened string might be less than the size limit.
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// The number of bytes removed from the original string. If this
// value is 0, then the string was not shortened.
TruncatedByteCount int32 `protobuf:"varint,2,opt,name=truncated_byte_count,json=truncatedByteCount" json:"truncated_byte_count,omitempty"`
TruncatedByteCount int32 `protobuf:"varint,2,opt,name=truncated_byte_count,json=truncatedByteCount,proto3" json:"truncated_byte_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TruncatableString) Reset() { *m = TruncatableString{} }
func (m *TruncatableString) String() string { return proto.CompactTextString(m) }
func (*TruncatableString) ProtoMessage() {}
func (*TruncatableString) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *TruncatableString) Reset() { *m = TruncatableString{} }
func (m *TruncatableString) String() string { return proto.CompactTextString(m) }
func (*TruncatableString) ProtoMessage() {}
func (*TruncatableString) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_fa9cb54dc45915f9, []int{4}
}
func (m *TruncatableString) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TruncatableString.Unmarshal(m, b)
}
func (m *TruncatableString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TruncatableString.Marshal(b, m, deterministic)
}
func (dst *TruncatableString) XXX_Merge(src proto.Message) {
xxx_messageInfo_TruncatableString.Merge(dst, src)
}
func (m *TruncatableString) XXX_Size() int {
return xxx_messageInfo_TruncatableString.Size(m)
}
func (m *TruncatableString) XXX_DiscardUnknown() {
xxx_messageInfo_TruncatableString.DiscardUnknown(m)
}
var xxx_messageInfo_TruncatableString proto.InternalMessageInfo
func (m *TruncatableString) GetValue() string {
if m != nil {
@ -976,6 +1275,7 @@ func (m *TruncatableString) GetTruncatedByteCount() int32 {
func init() {
proto.RegisterType((*Span)(nil), "google.devtools.cloudtrace.v2.Span")
proto.RegisterType((*Span_Attributes)(nil), "google.devtools.cloudtrace.v2.Span.Attributes")
proto.RegisterMapType((map[string]*AttributeValue)(nil), "google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry")
proto.RegisterType((*Span_TimeEvent)(nil), "google.devtools.cloudtrace.v2.Span.TimeEvent")
proto.RegisterType((*Span_TimeEvent_Annotation)(nil), "google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation")
proto.RegisterType((*Span_TimeEvent_MessageEvent)(nil), "google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent")
@ -992,9 +1292,11 @@ func init() {
proto.RegisterEnum("google.devtools.cloudtrace.v2.Span_Link_Type", Span_Link_Type_name, Span_Link_Type_value)
}
func init() { proto.RegisterFile("google/devtools/cloudtrace/v2/trace.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/devtools/cloudtrace/v2/trace.proto", fileDescriptor_trace_fa9cb54dc45915f9)
}
var fileDescriptor0 = []byte{
var fileDescriptor_trace_fa9cb54dc45915f9 = []byte{
// 1425 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0x4b, 0x6f, 0xdb, 0xc6,
0x16, 0x36, 0xf5, 0xd6, 0x91, 0x6c, 0xc8, 0x13, 0x3b, 0x56, 0x94, 0xe4, 0x26, 0xd7, 0xf7, 0x16,

View File

@ -1,14 +1,14 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/cloudtrace/v2/tracing.proto
package cloudtrace
package cloudtrace // import "google.golang.org/genproto/googleapis/devtools/cloudtrace/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf4 "github.com/golang/protobuf/ptypes/empty"
import empty "github.com/golang/protobuf/ptypes/empty"
import _ "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import (
context "golang.org/x/net/context"
@ -20,20 +20,48 @@ 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 request message for the `BatchWriteSpans` method.
type BatchWriteSpansRequest struct {
// Required. The name of the project where the spans belong. The format is
// `projects/[PROJECT_ID]`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A list of new spans. The span names must not match existing
// spans, or the results are undefined.
Spans []*Span `protobuf:"bytes,2,rep,name=spans" json:"spans,omitempty"`
Spans []*Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchWriteSpansRequest) Reset() { *m = BatchWriteSpansRequest{} }
func (m *BatchWriteSpansRequest) String() string { return proto.CompactTextString(m) }
func (*BatchWriteSpansRequest) ProtoMessage() {}
func (*BatchWriteSpansRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *BatchWriteSpansRequest) Reset() { *m = BatchWriteSpansRequest{} }
func (m *BatchWriteSpansRequest) String() string { return proto.CompactTextString(m) }
func (*BatchWriteSpansRequest) ProtoMessage() {}
func (*BatchWriteSpansRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_tracing_18786c49399bd83d, []int{0}
}
func (m *BatchWriteSpansRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchWriteSpansRequest.Unmarshal(m, b)
}
func (m *BatchWriteSpansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchWriteSpansRequest.Marshal(b, m, deterministic)
}
func (dst *BatchWriteSpansRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchWriteSpansRequest.Merge(dst, src)
}
func (m *BatchWriteSpansRequest) XXX_Size() int {
return xxx_messageInfo_BatchWriteSpansRequest.Size(m)
}
func (m *BatchWriteSpansRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchWriteSpansRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchWriteSpansRequest proto.InternalMessageInfo
func (m *BatchWriteSpansRequest) GetName() string {
if m != nil {
@ -61,12 +89,13 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for TraceService service
// TraceServiceClient is the client API for TraceService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TraceServiceClient interface {
// Sends new spans to new or existing traces. You cannot update
// existing spans.
BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*google_protobuf4.Empty, error)
BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Creates a new span.
CreateSpan(ctx context.Context, in *Span, opts ...grpc.CallOption) (*Span, error)
}
@ -79,9 +108,9 @@ func NewTraceServiceClient(cc *grpc.ClientConn) TraceServiceClient {
return &traceServiceClient{cc}
}
func (c *traceServiceClient) BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*google_protobuf4.Empty, error) {
out := new(google_protobuf4.Empty)
err := grpc.Invoke(ctx, "/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans", in, out, c.cc, opts...)
func (c *traceServiceClient) BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans", in, out, opts...)
if err != nil {
return nil, err
}
@ -90,19 +119,18 @@ func (c *traceServiceClient) BatchWriteSpans(ctx context.Context, in *BatchWrite
func (c *traceServiceClient) CreateSpan(ctx context.Context, in *Span, opts ...grpc.CallOption) (*Span, error) {
out := new(Span)
err := grpc.Invoke(ctx, "/google.devtools.cloudtrace.v2.TraceService/CreateSpan", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v2.TraceService/CreateSpan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for TraceService service
// TraceServiceServer is the server API for TraceService service.
type TraceServiceServer interface {
// Sends new spans to new or existing traces. You cannot update
// existing spans.
BatchWriteSpans(context.Context, *BatchWriteSpansRequest) (*google_protobuf4.Empty, error)
BatchWriteSpans(context.Context, *BatchWriteSpansRequest) (*empty.Empty, error)
// Creates a new span.
CreateSpan(context.Context, *Span) (*Span, error)
}
@ -164,9 +192,11 @@ var _TraceService_serviceDesc = grpc.ServiceDesc{
Metadata: "google/devtools/cloudtrace/v2/tracing.proto",
}
func init() { proto.RegisterFile("google/devtools/cloudtrace/v2/tracing.proto", fileDescriptor1) }
func init() {
proto.RegisterFile("google/devtools/cloudtrace/v2/tracing.proto", fileDescriptor_tracing_18786c49399bd83d)
}
var fileDescriptor1 = []byte{
var fileDescriptor_tracing_18786c49399bd83d = []byte{
// 404 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xdd, 0x6a, 0xdb, 0x30,
0x14, 0x46, 0xde, 0x0f, 0x4c, 0x1b, 0x0c, 0x04, 0x0b, 0xc1, 0xdb, 0x58, 0xe6, 0x0d, 0x96, 0x64,

View File

@ -1,63 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto
/*
Package containeranalysis is a generated protocol buffer package.
It is generated from these files:
google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto
google/devtools/containeranalysis/v1alpha1/containeranalysis.proto
google/devtools/containeranalysis/v1alpha1/image_basis.proto
google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto
google/devtools/containeranalysis/v1alpha1/provenance.proto
google/devtools/containeranalysis/v1alpha1/source_context.proto
It has these top-level messages:
PackageManager
Occurrence
Note
Deployable
Discovery
BuildType
BuildSignature
BuildDetails
GetOccurrenceRequest
ListOccurrencesRequest
ListOccurrencesResponse
DeleteOccurrenceRequest
CreateOccurrenceRequest
UpdateOccurrenceRequest
GetNoteRequest
GetOccurrenceNoteRequest
ListNotesRequest
ListNotesResponse
DeleteNoteRequest
CreateNoteRequest
UpdateNoteRequest
ListNoteOccurrencesRequest
ListNoteOccurrencesResponse
OperationMetadata
GetVulnzOccurrencesSummaryRequest
GetVulnzOccurrencesSummaryResponse
DockerImage
VulnerabilityType
BuildProvenance
Source
FileHashes
Hash
StorageSource
RepoSource
Command
Artifact
SourceContext
AliasContext
CloudRepoSourceContext
GerritSourceContext
GitSourceContext
RepoId
ProjectRepoId
*/
package containeranalysis
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -94,50 +38,94 @@ var PackageManager_Architecture_name = map[int32]string{
}
var PackageManager_Architecture_value = map[string]int32{
"ARCHITECTURE_UNSPECIFIED": 0,
"X86": 1,
"X64": 2,
"X86": 1,
"X64": 2,
}
func (x PackageManager_Architecture) String() string {
return proto.EnumName(PackageManager_Architecture_name, int32(x))
}
func (PackageManager_Architecture) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 0}
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0, 0}
}
// PackageManager provides metadata about available / installed packages.
type PackageManager struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager) Reset() { *m = PackageManager{} }
func (m *PackageManager) String() string { return proto.CompactTextString(m) }
func (*PackageManager) ProtoMessage() {}
func (*PackageManager) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *PackageManager) Reset() { *m = PackageManager{} }
func (m *PackageManager) String() string { return proto.CompactTextString(m) }
func (*PackageManager) ProtoMessage() {}
func (*PackageManager) Descriptor() ([]byte, []int) {
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0}
}
func (m *PackageManager) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager.Unmarshal(m, b)
}
func (m *PackageManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager.Marshal(b, m, deterministic)
}
func (dst *PackageManager) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager.Merge(dst, src)
}
func (m *PackageManager) XXX_Size() int {
return xxx_messageInfo_PackageManager.Size(m)
}
func (m *PackageManager) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager proto.InternalMessageInfo
// This represents a particular channel of distribution for a given package.
// e.g. Debian's jessie-backports dpkg mirror
type PackageManager_Distribution struct {
// The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
// denoting the package manager version distributing a package.
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
// The CPU architecture for which packages in this distribution
// channel were built
Architecture PackageManager_Architecture `protobuf:"varint,2,opt,name=architecture,enum=google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture" json:"architecture,omitempty"`
Architecture PackageManager_Architecture `protobuf:"varint,2,opt,name=architecture,proto3,enum=google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture" json:"architecture,omitempty"`
// The latest available version of this package in
// this distribution channel.
LatestVersion *VulnerabilityType_Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion" json:"latest_version,omitempty"`
LatestVersion *VulnerabilityType_Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"`
// A freeform string denoting the maintainer of this package.
Maintainer string `protobuf:"bytes,4,opt,name=maintainer" json:"maintainer,omitempty"`
Maintainer string `protobuf:"bytes,4,opt,name=maintainer,proto3" json:"maintainer,omitempty"`
// The distribution channel-specific homepage for this package.
Url string `protobuf:"bytes,6,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"`
// The distribution channel-specific description of this package.
Description string `protobuf:"bytes,7,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Distribution) Reset() { *m = PackageManager_Distribution{} }
func (m *PackageManager_Distribution) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Distribution) ProtoMessage() {}
func (*PackageManager_Distribution) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
func (m *PackageManager_Distribution) Reset() { *m = PackageManager_Distribution{} }
func (m *PackageManager_Distribution) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Distribution) ProtoMessage() {}
func (*PackageManager_Distribution) Descriptor() ([]byte, []int) {
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0, 0}
}
func (m *PackageManager_Distribution) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Distribution.Unmarshal(m, b)
}
func (m *PackageManager_Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Distribution.Marshal(b, m, deterministic)
}
func (dst *PackageManager_Distribution) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Distribution.Merge(dst, src)
}
func (m *PackageManager_Distribution) XXX_Size() int {
return xxx_messageInfo_PackageManager_Distribution.Size(m)
}
func (m *PackageManager_Distribution) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Distribution.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Distribution proto.InternalMessageInfo
func (m *PackageManager_Distribution) GetCpeUri() string {
if m != nil {
@ -187,17 +175,39 @@ func (m *PackageManager_Distribution) GetDescription() string {
type PackageManager_Location struct {
// The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
// denoting the package manager version distributing a package.
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
// The version installed at this location.
Version *VulnerabilityType_Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
Version *VulnerabilityType_Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// The path from which we gathered that this package/version is installed.
Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Location) Reset() { *m = PackageManager_Location{} }
func (m *PackageManager_Location) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Location) ProtoMessage() {}
func (*PackageManager_Location) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} }
func (m *PackageManager_Location) Reset() { *m = PackageManager_Location{} }
func (m *PackageManager_Location) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Location) ProtoMessage() {}
func (*PackageManager_Location) Descriptor() ([]byte, []int) {
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0, 1}
}
func (m *PackageManager_Location) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Location.Unmarshal(m, b)
}
func (m *PackageManager_Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Location.Marshal(b, m, deterministic)
}
func (dst *PackageManager_Location) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Location.Merge(dst, src)
}
func (m *PackageManager_Location) XXX_Size() int {
return xxx_messageInfo_PackageManager_Location.Size(m)
}
func (m *PackageManager_Location) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Location.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Location proto.InternalMessageInfo
func (m *PackageManager_Location) GetCpeUri() string {
if m != nil {
@ -225,15 +235,37 @@ func (m *PackageManager_Location) GetPath() string {
// e.g. glibc (aka libc6) is distributed by many, at various versions.
type PackageManager_Package struct {
// The name of the package.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The various channels by which a package is distributed.
Distribution []*PackageManager_Distribution `protobuf:"bytes,10,rep,name=distribution" json:"distribution,omitempty"`
Distribution []*PackageManager_Distribution `protobuf:"bytes,10,rep,name=distribution,proto3" json:"distribution,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Package) Reset() { *m = PackageManager_Package{} }
func (m *PackageManager_Package) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Package) ProtoMessage() {}
func (*PackageManager_Package) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 2} }
func (m *PackageManager_Package) Reset() { *m = PackageManager_Package{} }
func (m *PackageManager_Package) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Package) ProtoMessage() {}
func (*PackageManager_Package) Descriptor() ([]byte, []int) {
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0, 2}
}
func (m *PackageManager_Package) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Package.Unmarshal(m, b)
}
func (m *PackageManager_Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Package.Marshal(b, m, deterministic)
}
func (dst *PackageManager_Package) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Package.Merge(dst, src)
}
func (m *PackageManager_Package) XXX_Size() int {
return xxx_messageInfo_PackageManager_Package.Size(m)
}
func (m *PackageManager_Package) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Package.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Package proto.InternalMessageInfo
func (m *PackageManager_Package) GetName() string {
if m != nil {
@ -253,16 +285,38 @@ func (m *PackageManager_Package) GetDistribution() []*PackageManager_Distributio
// a system.
type PackageManager_Installation struct {
// Output only. The name of the installed package.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// All of the places within the filesystem versions of this package
// have been found.
Location []*PackageManager_Location `protobuf:"bytes,2,rep,name=location" json:"location,omitempty"`
Location []*PackageManager_Location `protobuf:"bytes,2,rep,name=location,proto3" json:"location,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Installation) Reset() { *m = PackageManager_Installation{} }
func (m *PackageManager_Installation) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Installation) ProtoMessage() {}
func (*PackageManager_Installation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 3} }
func (m *PackageManager_Installation) Reset() { *m = PackageManager_Installation{} }
func (m *PackageManager_Installation) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Installation) ProtoMessage() {}
func (*PackageManager_Installation) Descriptor() ([]byte, []int) {
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0, 3}
}
func (m *PackageManager_Installation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Installation.Unmarshal(m, b)
}
func (m *PackageManager_Installation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Installation.Marshal(b, m, deterministic)
}
func (dst *PackageManager_Installation) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Installation.Merge(dst, src)
}
func (m *PackageManager_Installation) XXX_Size() int {
return xxx_messageInfo_PackageManager_Installation.Size(m)
}
func (m *PackageManager_Installation) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Installation.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Installation proto.InternalMessageInfo
func (m *PackageManager_Installation) GetName() string {
if m != nil {
@ -288,10 +342,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto", fileDescriptor0)
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto", fileDescriptor_bill_of_materials_27661a0342dc8703)
}
var fileDescriptor0 = []byte{
var fileDescriptor_bill_of_materials_27661a0342dc8703 = []byte{
// 522 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xd1, 0x8a, 0xd3, 0x4e,
0x14, 0xc6, 0xff, 0x49, 0x97, 0x76, 0xf7, 0xb4, 0xff, 0x52, 0xe6, 0xc6, 0x10, 0x16, 0x29, 0x0b,

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/image_basis.proto
package containeranalysis
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,6 +13,12 @@ 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
// Instructions from dockerfile
type DockerImage_Layer_Directive int32
@ -100,31 +106,75 @@ func (x DockerImage_Layer_Directive) String() string {
return proto.EnumName(DockerImage_Layer_Directive_name, int32(x))
}
func (DockerImage_Layer_Directive) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 0, 0}
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0, 0, 0}
}
// DockerImage holds types defining base image notes
// and derived image occurrences.
type DockerImage struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage) Reset() { *m = DockerImage{} }
func (m *DockerImage) String() string { return proto.CompactTextString(m) }
func (*DockerImage) ProtoMessage() {}
func (*DockerImage) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *DockerImage) Reset() { *m = DockerImage{} }
func (m *DockerImage) String() string { return proto.CompactTextString(m) }
func (*DockerImage) ProtoMessage() {}
func (*DockerImage) Descriptor() ([]byte, []int) {
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0}
}
func (m *DockerImage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage.Unmarshal(m, b)
}
func (m *DockerImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage.Marshal(b, m, deterministic)
}
func (dst *DockerImage) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage.Merge(dst, src)
}
func (m *DockerImage) XXX_Size() int {
return xxx_messageInfo_DockerImage.Size(m)
}
func (m *DockerImage) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage proto.InternalMessageInfo
// Layer holds metadata specific to a layer of a Docker image.
type DockerImage_Layer struct {
// The recovered Dockerfile directive used to construct this layer.
Directive DockerImage_Layer_Directive `protobuf:"varint,1,opt,name=directive,enum=google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive" json:"directive,omitempty"`
Directive DockerImage_Layer_Directive `protobuf:"varint,1,opt,name=directive,proto3,enum=google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive" json:"directive,omitempty"`
// The recovered arguments to the Dockerfile directive.
Arguments string `protobuf:"bytes,2,opt,name=arguments" json:"arguments,omitempty"`
Arguments string `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Layer) Reset() { *m = DockerImage_Layer{} }
func (m *DockerImage_Layer) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Layer) ProtoMessage() {}
func (*DockerImage_Layer) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
func (m *DockerImage_Layer) Reset() { *m = DockerImage_Layer{} }
func (m *DockerImage_Layer) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Layer) ProtoMessage() {}
func (*DockerImage_Layer) Descriptor() ([]byte, []int) {
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0, 0}
}
func (m *DockerImage_Layer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Layer.Unmarshal(m, b)
}
func (m *DockerImage_Layer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Layer.Marshal(b, m, deterministic)
}
func (dst *DockerImage_Layer) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Layer.Merge(dst, src)
}
func (m *DockerImage_Layer) XXX_Size() int {
return xxx_messageInfo_DockerImage_Layer.Size(m)
}
func (m *DockerImage_Layer) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Layer.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Layer proto.InternalMessageInfo
func (m *DockerImage_Layer) GetDirective() DockerImage_Layer_Directive {
if m != nil {
@ -145,21 +195,43 @@ type DockerImage_Fingerprint struct {
// The layer-id of the final layer in the Docker image's v1
// representation.
// This field can be used as a filter in list requests.
V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name" json:"v1_name,omitempty"`
V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name,proto3" json:"v1_name,omitempty"`
// The ordered list of v2 blobs that represent a given image.
V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob" json:"v2_blob,omitempty"`
V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob,proto3" json:"v2_blob,omitempty"`
// Output only. The name of the image's v2 blobs computed via:
// [bottom] := v2_blob[bottom]
// [N] := sha256(v2_blob[N] + " " + v2_name[N+1])
// Only the name of the final blob is kept.
// This field can be used as a filter in list requests.
V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name" json:"v2_name,omitempty"`
V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name,proto3" json:"v2_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Fingerprint) Reset() { *m = DockerImage_Fingerprint{} }
func (m *DockerImage_Fingerprint) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Fingerprint) ProtoMessage() {}
func (*DockerImage_Fingerprint) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
func (m *DockerImage_Fingerprint) Reset() { *m = DockerImage_Fingerprint{} }
func (m *DockerImage_Fingerprint) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Fingerprint) ProtoMessage() {}
func (*DockerImage_Fingerprint) Descriptor() ([]byte, []int) {
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0, 1}
}
func (m *DockerImage_Fingerprint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Fingerprint.Unmarshal(m, b)
}
func (m *DockerImage_Fingerprint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Fingerprint.Marshal(b, m, deterministic)
}
func (dst *DockerImage_Fingerprint) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Fingerprint.Merge(dst, src)
}
func (m *DockerImage_Fingerprint) XXX_Size() int {
return xxx_messageInfo_DockerImage_Fingerprint.Size(m)
}
func (m *DockerImage_Fingerprint) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Fingerprint.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Fingerprint proto.InternalMessageInfo
func (m *DockerImage_Fingerprint) GetV1Name() string {
if m != nil {
@ -190,15 +262,37 @@ func (m *DockerImage_Fingerprint) GetV2Name() string {
type DockerImage_Basis struct {
// The resource_url for the resource representing the basis of
// associated occurrence images.
ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl" json:"resource_url,omitempty"`
// The fingerprint of the base image
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,2,opt,name=fingerprint" json:"fingerprint,omitempty"`
ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
// The fingerprint of the base image.
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Basis) Reset() { *m = DockerImage_Basis{} }
func (m *DockerImage_Basis) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Basis) ProtoMessage() {}
func (*DockerImage_Basis) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 2} }
func (m *DockerImage_Basis) Reset() { *m = DockerImage_Basis{} }
func (m *DockerImage_Basis) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Basis) ProtoMessage() {}
func (*DockerImage_Basis) Descriptor() ([]byte, []int) {
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0, 2}
}
func (m *DockerImage_Basis) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Basis.Unmarshal(m, b)
}
func (m *DockerImage_Basis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Basis.Marshal(b, m, deterministic)
}
func (dst *DockerImage_Basis) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Basis.Merge(dst, src)
}
func (m *DockerImage_Basis) XXX_Size() int {
return xxx_messageInfo_DockerImage_Basis.Size(m)
}
func (m *DockerImage_Basis) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Basis.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Basis proto.InternalMessageInfo
func (m *DockerImage_Basis) GetResourceUrl() string {
if m != nil {
@ -218,25 +312,46 @@ func (m *DockerImage_Basis) GetFingerprint() *DockerImage_Fingerprint {
// DockerImage relationship. This image would be produced from a Dockerfile
// with FROM <DockerImage.Basis in attached Note>.
type DockerImage_Derived struct {
// The fingerprint of the derived image
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,1,opt,name=fingerprint" json:"fingerprint,omitempty"`
// Output only. The number of layers by which this image differs from
// the associated image basis.
Distance uint32 `protobuf:"varint,2,opt,name=distance" json:"distance,omitempty"`
// This contains layer-specific metadata, if populated it
// has length "distance" and is ordered with [distance] being the
// layer immediately following the base image and [1]
// being the final layer.
LayerInfo []*DockerImage_Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo" json:"layer_info,omitempty"`
// Output only.This contains the base image url for the derived image
// Occurrence
BaseResourceUrl string `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl" json:"base_resource_url,omitempty"`
// The fingerprint of the derived image.
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
// Output only. The number of layers by which this image differs from the
// associated image basis.
Distance uint32 `protobuf:"varint,2,opt,name=distance,proto3" json:"distance,omitempty"`
// This contains layer-specific metadata, if populated it has length
// "distance" and is ordered with [distance] being the layer immediately
// following the base image and [1] being the final layer.
LayerInfo []*DockerImage_Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo,proto3" json:"layer_info,omitempty"`
// Output only. This contains the base image URL for the derived image
// occurrence.
BaseResourceUrl string `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl,proto3" json:"base_resource_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Derived) Reset() { *m = DockerImage_Derived{} }
func (m *DockerImage_Derived) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Derived) ProtoMessage() {}
func (*DockerImage_Derived) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 3} }
func (m *DockerImage_Derived) Reset() { *m = DockerImage_Derived{} }
func (m *DockerImage_Derived) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Derived) ProtoMessage() {}
func (*DockerImage_Derived) Descriptor() ([]byte, []int) {
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0, 3}
}
func (m *DockerImage_Derived) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Derived.Unmarshal(m, b)
}
func (m *DockerImage_Derived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Derived.Marshal(b, m, deterministic)
}
func (dst *DockerImage_Derived) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Derived.Merge(dst, src)
}
func (m *DockerImage_Derived) XXX_Size() int {
return xxx_messageInfo_DockerImage_Derived.Size(m)
}
func (m *DockerImage_Derived) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Derived.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Derived proto.InternalMessageInfo
func (m *DockerImage_Derived) GetFingerprint() *DockerImage_Fingerprint {
if m != nil {
@ -276,10 +391,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/image_basis.proto", fileDescriptor2)
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/image_basis.proto", fileDescriptor_image_basis_f0f54fd9664d71be)
}
var fileDescriptor2 = []byte{
var fileDescriptor_image_basis_f0f54fd9664d71be = []byte{
// 627 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xdf, 0x6e, 0xda, 0x30,
0x14, 0xc6, 0x17, 0x28, 0xd0, 0x9c, 0xf4, 0x8f, 0x6b, 0x69, 0x1a, 0x43, 0xbd, 0x60, 0x95, 0x26,

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto
package containeranalysis
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,6 +13,12 @@ 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
// Note provider-assigned severity/impact ranking
type VulnerabilityType_Severity int32
@ -52,7 +58,7 @@ func (x VulnerabilityType_Severity) String() string {
return proto.EnumName(VulnerabilityType_Severity_name, int32(x))
}
func (VulnerabilityType_Severity) EnumDescriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 0}
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 0}
}
// Whether this is an ordinary package version or a
@ -85,25 +91,47 @@ func (x VulnerabilityType_Version_VersionKind) String() string {
return proto.EnumName(VulnerabilityType_Version_VersionKind_name, int32(x))
}
func (VulnerabilityType_Version_VersionKind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 0, 0}
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 0, 0}
}
// VulnerabilityType provides metadata about a security vulnerability.
type VulnerabilityType struct {
// The CVSS score for this Vulnerability.
CvssScore float32 `protobuf:"fixed32,2,opt,name=cvss_score,json=cvssScore" json:"cvss_score,omitempty"`
CvssScore float32 `protobuf:"fixed32,2,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
// Note provider assigned impact of the vulnerability
Severity VulnerabilityType_Severity `protobuf:"varint,3,opt,name=severity,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
Severity VulnerabilityType_Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
// All information about the package to specifically identify this
// vulnerability. One entry per (version range and cpe_uri) the
// package vulnerability has manifested in.
Details []*VulnerabilityType_Detail `protobuf:"bytes,4,rep,name=details" json:"details,omitempty"`
Details []*VulnerabilityType_Detail `protobuf:"bytes,4,rep,name=details,proto3" json:"details,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType) Reset() { *m = VulnerabilityType{} }
func (m *VulnerabilityType) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType) ProtoMessage() {}
func (*VulnerabilityType) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *VulnerabilityType) Reset() { *m = VulnerabilityType{} }
func (m *VulnerabilityType) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType) ProtoMessage() {}
func (*VulnerabilityType) Descriptor() ([]byte, []int) {
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0}
}
func (m *VulnerabilityType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType.Unmarshal(m, b)
}
func (m *VulnerabilityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType.Merge(dst, src)
}
func (m *VulnerabilityType) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType.Size(m)
}
func (m *VulnerabilityType) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType proto.InternalMessageInfo
func (m *VulnerabilityType) GetCvssScore() float32 {
if m != nil {
@ -133,20 +161,42 @@ func (m *VulnerabilityType) GetDetails() []*VulnerabilityType_Detail {
// http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
type VulnerabilityType_Version struct {
// Used to correct mistakes in the version numbering scheme.
Epoch int32 `protobuf:"varint,1,opt,name=epoch" json:"epoch,omitempty"`
Epoch int32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
// The main part of the version name.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// The iteration of the package build from the above version.
Revision string `protobuf:"bytes,3,opt,name=revision" json:"revision,omitempty"`
Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
// Distinguish between sentinel MIN/MAX versions and normal versions.
// If kind is not NORMAL, then the other fields are ignored.
Kind VulnerabilityType_Version_VersionKind `protobuf:"varint,5,opt,name=kind,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind" json:"kind,omitempty"`
Kind VulnerabilityType_Version_VersionKind `protobuf:"varint,5,opt,name=kind,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind" json:"kind,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_Version) Reset() { *m = VulnerabilityType_Version{} }
func (m *VulnerabilityType_Version) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_Version) ProtoMessage() {}
func (*VulnerabilityType_Version) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
func (m *VulnerabilityType_Version) Reset() { *m = VulnerabilityType_Version{} }
func (m *VulnerabilityType_Version) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_Version) ProtoMessage() {}
func (*VulnerabilityType_Version) Descriptor() ([]byte, []int) {
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 0}
}
func (m *VulnerabilityType_Version) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_Version.Unmarshal(m, b)
}
func (m *VulnerabilityType_Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_Version.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType_Version) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_Version.Merge(dst, src)
}
func (m *VulnerabilityType_Version) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_Version.Size(m)
}
func (m *VulnerabilityType_Version) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_Version.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_Version proto.InternalMessageInfo
func (m *VulnerabilityType_Version) GetEpoch() int32 {
if m != nil {
@ -184,30 +234,55 @@ type VulnerabilityType_Detail struct {
// which the vulnerability manifests. Examples include distro or storage
// location for vulnerable jar.
// This field can be used as a filter in list requests.
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
// The name of the package where the vulnerability was found.
// This field can be used as a filter in list requests.
Package string `protobuf:"bytes,8,opt,name=package" json:"package,omitempty"`
Package string `protobuf:"bytes,8,opt,name=package,proto3" json:"package,omitempty"`
// The min version of the package in which the vulnerability exists.
MinAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,6,opt,name=min_affected_version,json=minAffectedVersion" json:"min_affected_version,omitempty"`
MinAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,6,opt,name=min_affected_version,json=minAffectedVersion,proto3" json:"min_affected_version,omitempty"`
// The max version of the package in which the vulnerability exists.
// This field can be used as a filter in list requests.
MaxAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,7,opt,name=max_affected_version,json=maxAffectedVersion" json:"max_affected_version,omitempty"`
MaxAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,7,opt,name=max_affected_version,json=maxAffectedVersion,proto3" json:"max_affected_version,omitempty"`
// The severity (eg: distro assigned severity) for this vulnerability.
SeverityName string `protobuf:"bytes,4,opt,name=severity_name,json=severityName" json:"severity_name,omitempty"`
SeverityName string `protobuf:"bytes,4,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
// A vendor-specific description of this note.
Description string `protobuf:"bytes,9,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
// The fix for this specific package version.
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,5,opt,name=fixed_location,json=fixedLocation" json:"fixed_location,omitempty"`
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,5,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
// The type of package; whether native or non native(ruby gems,
// node.js packages etc)
PackageType string `protobuf:"bytes,10,opt,name=package_type,json=packageType" json:"package_type,omitempty"`
PackageType string `protobuf:"bytes,10,opt,name=package_type,json=packageType,proto3" json:"package_type,omitempty"`
// Whether this Detail is obsolete. Occurrences are expected not to point to
// obsolete details.
IsObsolete bool `protobuf:"varint,11,opt,name=is_obsolete,json=isObsolete,proto3" json:"is_obsolete,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_Detail) Reset() { *m = VulnerabilityType_Detail{} }
func (m *VulnerabilityType_Detail) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_Detail) ProtoMessage() {}
func (*VulnerabilityType_Detail) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
func (m *VulnerabilityType_Detail) Reset() { *m = VulnerabilityType_Detail{} }
func (m *VulnerabilityType_Detail) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_Detail) ProtoMessage() {}
func (*VulnerabilityType_Detail) Descriptor() ([]byte, []int) {
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 1}
}
func (m *VulnerabilityType_Detail) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_Detail.Unmarshal(m, b)
}
func (m *VulnerabilityType_Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_Detail.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType_Detail) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_Detail.Merge(dst, src)
}
func (m *VulnerabilityType_Detail) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_Detail.Size(m)
}
func (m *VulnerabilityType_Detail) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_Detail.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_Detail proto.InternalMessageInfo
func (m *VulnerabilityType_Detail) GetCpeUri() string {
if m != nil {
@ -265,21 +340,31 @@ func (m *VulnerabilityType_Detail) GetPackageType() string {
return ""
}
func (m *VulnerabilityType_Detail) GetIsObsolete() bool {
if m != nil {
return m.IsObsolete
}
return false
}
// Used by Occurrence to point to where the vulnerability exists and how
// to fix it.
type VulnerabilityType_VulnerabilityDetails struct {
// The type of package; whether native or non native(ruby gems,
// node.js packages etc)
Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
// Output only. The note provider assigned Severity of the vulnerability.
Severity VulnerabilityType_Severity `protobuf:"varint,4,opt,name=severity,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
Severity VulnerabilityType_Severity `protobuf:"varint,4,opt,name=severity,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
// Output only. The CVSS score of this vulnerability. CVSS score is on a
// scale of 0-10 where 0 indicates low severity and 10 indicates high
// severity.
CvssScore float32 `protobuf:"fixed32,5,opt,name=cvss_score,json=cvssScore" json:"cvss_score,omitempty"`
CvssScore float32 `protobuf:"fixed32,5,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
// The set of affected locations and their fixes (if available) within
// the associated resource.
PackageIssue []*VulnerabilityType_PackageIssue `protobuf:"bytes,6,rep,name=package_issue,json=packageIssue" json:"package_issue,omitempty"`
PackageIssue []*VulnerabilityType_PackageIssue `protobuf:"bytes,6,rep,name=package_issue,json=packageIssue,proto3" json:"package_issue,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_VulnerabilityDetails) Reset() {
@ -288,8 +373,25 @@ func (m *VulnerabilityType_VulnerabilityDetails) Reset() {
func (m *VulnerabilityType_VulnerabilityDetails) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_VulnerabilityDetails) ProtoMessage() {}
func (*VulnerabilityType_VulnerabilityDetails) Descriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 2}
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 2}
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Unmarshal(m, b)
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType_VulnerabilityDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Merge(dst, src)
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Size(m)
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_VulnerabilityDetails proto.InternalMessageInfo
func (m *VulnerabilityType_VulnerabilityDetails) GetType() string {
if m != nil {
@ -323,19 +425,39 @@ func (m *VulnerabilityType_VulnerabilityDetails) GetPackageIssue() []*Vulnerabil
// associated fix (if one is available).
type VulnerabilityType_PackageIssue struct {
// The location of the vulnerability.
AffectedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,1,opt,name=affected_location,json=affectedLocation" json:"affected_location,omitempty"`
AffectedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,1,opt,name=affected_location,json=affectedLocation,proto3" json:"affected_location,omitempty"`
// The location of the available fix for vulnerability.
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,2,opt,name=fixed_location,json=fixedLocation" json:"fixed_location,omitempty"`
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,2,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
// The severity (eg: distro assigned severity) for this vulnerability.
SeverityName string `protobuf:"bytes,3,opt,name=severity_name,json=severityName" json:"severity_name,omitempty"`
SeverityName string `protobuf:"bytes,3,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_PackageIssue) Reset() { *m = VulnerabilityType_PackageIssue{} }
func (m *VulnerabilityType_PackageIssue) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_PackageIssue) ProtoMessage() {}
func (*VulnerabilityType_PackageIssue) Descriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 3}
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 3}
}
func (m *VulnerabilityType_PackageIssue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_PackageIssue.Unmarshal(m, b)
}
func (m *VulnerabilityType_PackageIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_PackageIssue.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType_PackageIssue) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_PackageIssue.Merge(dst, src)
}
func (m *VulnerabilityType_PackageIssue) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_PackageIssue.Size(m)
}
func (m *VulnerabilityType_PackageIssue) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_PackageIssue.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_PackageIssue proto.InternalMessageInfo
func (m *VulnerabilityType_PackageIssue) GetAffectedLocation() *VulnerabilityType_VulnerabilityLocation {
if m != nil {
@ -363,12 +485,15 @@ type VulnerabilityType_VulnerabilityLocation struct {
// The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
// format. Examples include distro or storage location for vulnerable jar.
// This field can be used as a filter in list requests.
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
// The package being described.
Package string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"`
Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
// The version of the package being described.
// This field can be used as a filter in list requests.
Version *VulnerabilityType_Version `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"`
Version *VulnerabilityType_Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_VulnerabilityLocation) Reset() {
@ -377,8 +502,25 @@ func (m *VulnerabilityType_VulnerabilityLocation) Reset() {
func (m *VulnerabilityType_VulnerabilityLocation) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_VulnerabilityLocation) ProtoMessage() {}
func (*VulnerabilityType_VulnerabilityLocation) Descriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 4}
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 4}
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Unmarshal(m, b)
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType_VulnerabilityLocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Merge(dst, src)
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Size(m)
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_VulnerabilityLocation proto.InternalMessageInfo
func (m *VulnerabilityType_VulnerabilityLocation) GetCpeUri() string {
if m != nil {
@ -413,56 +555,58 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto", fileDescriptor3)
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto", fileDescriptor_package_vulnerability_9e58f6e1392a878c)
}
var fileDescriptor3 = []byte{
// 750 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6e, 0xda, 0x4c,
0x10, 0xff, 0x6c, 0x0c, 0x86, 0x81, 0x44, 0xce, 0x8a, 0x4f, 0x9f, 0x85, 0xbe, 0x4a, 0x34, 0x55,
0x25, 0xd4, 0x83, 0x51, 0xc8, 0xb1, 0x27, 0x0a, 0x24, 0x71, 0x0b, 0x24, 0x35, 0x21, 0xfd, 0x27,
0xc5, 0xda, 0x98, 0x0d, 0x59, 0xc5, 0x78, 0x2d, 0xdb, 0xa1, 0xa1, 0xa7, 0x3e, 0x40, 0x6f, 0xbd,
0xf7, 0xd0, 0x6b, 0x6f, 0x7d, 0xa0, 0xbe, 0x40, 0x5f, 0xa2, 0xf2, 0xda, 0x8b, 0x20, 0xb4, 0x52,
0x24, 0x92, 0x9e, 0xf0, 0xcc, 0x78, 0x7f, 0xbf, 0x99, 0x9d, 0xdf, 0x0c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 0x9a, 0x84, 0x54, 0xc8, 0x74, 0x0f, 0x5f, 0x69, 0x72,
0xbc, 0x7b, 0x7b, 0x9d, 0xb6, 0x39, 0xec, 0x69, 0x19, 0x94, 0x07, 0xe5, 0xc0, 0xdc, 0x3f, 0xd0,
0x14, 0x54, 0x82, 0x7c, 0xcb, 0x32, 0x8f, 0xcd, 0x56, 0xb3, 0xab, 0x65, 0x9f, 0x7d, 0x92, 0xe0,
0xb1, 0xc3, 0x26, 0x22, 0xeb, 0x3f, 0x27, 0x7b, 0x24, 0xbd, 0x7d, 0x97, 0xbe, 0x34, 0x66, 0x2e,
0xf6, 0xc6, 0x06, 0x0b, 0xc6, 0xf5, 0x31, 0xf1, 0xf8, 0x1f, 0x75, 0x3d, 0x09, 0x61, 0x9f, 0x86,
0xb7, 0xf9, 0x7a, 0x78, 0xba, 0x12, 0xfa, 0x2a, 0x67, 0xf6, 0x5b, 0xcd, 0xb3, 0x1c, 0x47, 0xdb,
0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0xe7, 0xe7, 0xb7, 0xf5, 0x8a, 0x08, 0x00, 0x00,
var fileDescriptor_package_vulnerability_9e58f6e1392a878c = []byte{
// 769 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6e, 0xfa, 0x46,
0x10, 0xae, 0x8d, 0xc1, 0x30, 0x26, 0x91, 0xb3, 0xa2, 0xaa, 0x85, 0x5a, 0x95, 0xa6, 0xaa, 0x84,
0x7a, 0x30, 0x0a, 0x39, 0xf6, 0x44, 0x81, 0x24, 0x6e, 0x81, 0xa4, 0x26, 0xa4, 0xff, 0xa4, 0x58,
0x8b, 0xd9, 0x90, 0x55, 0x8c, 0xd7, 0xf2, 0x3a, 0x34, 0xf4, 0xd4, 0x07, 0xe8, 0x33, 0xf4, 0xd0,
0x6b, 0x6f, 0x55, 0xdf, 0xaa, 0x0f, 0xd1, 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, 0x82, 0xf6, 0x9a, 0xae, 0x20, 0x51, 0x8f, 0x6f, 0xa1, 0x2c, 0x85, 0x88,
0x2c, 0xa8, 0x8d, 0xfb, 0x37, 0x7d, 0xd7, 0xb9, 0xfe, 0xde, 0x9b, 0x8c, 0xc6, 0x57, 0xfd, 0xae,
0x73, 0xe6, 0xf4, 0x7b, 0x1b, 0xd6, 0xdb, 0x19, 0x98, 0x0a, 0xd2, 0xa1, 0x30, 0xb8, 0xfc, 0xd6,
0x54, 0x53, 0x73, 0x1e, 0xf6, 0x7b, 0xce, 0x64, 0x68, 0x16, 0x50, 0x19, 0xb4, 0x0b, 0xe7, 0xfc,
0xc2, 0xd4, 0x50, 0x15, 0xca, 0x5d, 0xd7, 0xb9, 0x76, 0xba, 0x9d, 0x81, 0x59, 0xfc, 0xf2, 0x57,
0x05, 0x3e, 0xf3, 0xd9, 0x42, 0x76, 0xfd, 0xff, 0xcd, 0x5e, 0x29, 0x3f, 0xfc, 0x98, 0xbf, 0x34,
0x67, 0x01, 0x0e, 0xe7, 0x36, 0x8b, 0xe7, 0xad, 0x39, 0x09, 0xc5, 0x2f, 0x79, 0x2b, 0x2b, 0xe1,
0x88, 0xf2, 0x97, 0xfc, 0xbd, 0xf8, 0x62, 0xa7, 0xf4, 0xbb, 0x5a, 0x38, 0xef, 0x76, 0xa6, 0x25,
0x81, 0x76, 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x66, 0xf8, 0xb7, 0x2f, 0xab, 0x08, 0x00,
0x00,
}

View File

@ -1,19 +1,25 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/provenance.proto
package containeranalysis
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
// 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
// Specifies the hash algorithm, if any.
type Hash_HashType int32
@ -36,46 +42,70 @@ var Hash_HashType_value = map[string]int32{
func (x Hash_HashType) String() string {
return proto.EnumName(Hash_HashType_name, int32(x))
}
func (Hash_HashType) EnumDescriptor() ([]byte, []int) { return fileDescriptor4, []int{3, 0} }
func (Hash_HashType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{3, 0}
}
// Provenance of a build. Contains all information needed to verify the full
// details about the build from source to completion.
type BuildProvenance struct {
// Unique identifier of the build.
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the project.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Commands requested by the build.
Commands []*Command `protobuf:"bytes,5,rep,name=commands" json:"commands,omitempty"`
Commands []*Command `protobuf:"bytes,5,rep,name=commands,proto3" json:"commands,omitempty"`
// Output of the build.
BuiltArtifacts []*Artifact `protobuf:"bytes,6,rep,name=built_artifacts,json=builtArtifacts" json:"built_artifacts,omitempty"`
BuiltArtifacts []*Artifact `protobuf:"bytes,6,rep,name=built_artifacts,json=builtArtifacts,proto3" json:"built_artifacts,omitempty"`
// Time at which the build was created.
CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Time at which execution of the build was started.
StartTime *google_protobuf1.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Time at which execution of the build was finished.
FinishTime *google_protobuf1.Timestamp `protobuf:"bytes,9,opt,name=finish_time,json=finishTime" json:"finish_time,omitempty"`
FinishTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=finish_time,json=finishTime,proto3" json:"finish_time,omitempty"`
// E-mail address of the user who initiated this build. Note that this was the
// user's e-mail address at the time the build was initiated; this address may
// not represent the same end-user for all time.
Creator string `protobuf:"bytes,11,opt,name=creator" json:"creator,omitempty"`
Creator string `protobuf:"bytes,11,opt,name=creator,proto3" json:"creator,omitempty"`
// Google Cloud Storage bucket where logs were written.
LogsBucket string `protobuf:"bytes,13,opt,name=logs_bucket,json=logsBucket" json:"logs_bucket,omitempty"`
LogsBucket string `protobuf:"bytes,13,opt,name=logs_bucket,json=logsBucket,proto3" json:"logs_bucket,omitempty"`
// Details of the Source input to the build.
SourceProvenance *Source `protobuf:"bytes,14,opt,name=source_provenance,json=sourceProvenance" json:"source_provenance,omitempty"`
SourceProvenance *Source `protobuf:"bytes,14,opt,name=source_provenance,json=sourceProvenance,proto3" json:"source_provenance,omitempty"`
// Trigger identifier if the build was triggered automatically; empty if not.
TriggerId string `protobuf:"bytes,15,opt,name=trigger_id,json=triggerId" json:"trigger_id,omitempty"`
TriggerId string `protobuf:"bytes,15,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"`
// Special options applied to this build. This is a catch-all field where
// build providers can enter any desired additional details.
BuildOptions map[string]string `protobuf:"bytes,16,rep,name=build_options,json=buildOptions" json:"build_options,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
BuildOptions map[string]string `protobuf:"bytes,16,rep,name=build_options,json=buildOptions,proto3" json:"build_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Version string of the builder at the time this build was executed.
BuilderVersion string `protobuf:"bytes,17,opt,name=builder_version,json=builderVersion" json:"builder_version,omitempty"`
BuilderVersion string `protobuf:"bytes,17,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildProvenance) Reset() { *m = BuildProvenance{} }
func (m *BuildProvenance) String() string { return proto.CompactTextString(m) }
func (*BuildProvenance) ProtoMessage() {}
func (*BuildProvenance) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
func (m *BuildProvenance) Reset() { *m = BuildProvenance{} }
func (m *BuildProvenance) String() string { return proto.CompactTextString(m) }
func (*BuildProvenance) ProtoMessage() {}
func (*BuildProvenance) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{0}
}
func (m *BuildProvenance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildProvenance.Unmarshal(m, b)
}
func (m *BuildProvenance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildProvenance.Marshal(b, m, deterministic)
}
func (dst *BuildProvenance) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildProvenance.Merge(dst, src)
}
func (m *BuildProvenance) XXX_Size() int {
return xxx_messageInfo_BuildProvenance.Size(m)
}
func (m *BuildProvenance) XXX_DiscardUnknown() {
xxx_messageInfo_BuildProvenance.DiscardUnknown(m)
}
var xxx_messageInfo_BuildProvenance proto.InternalMessageInfo
func (m *BuildProvenance) GetId() string {
if m != nil {
@ -105,21 +135,21 @@ func (m *BuildProvenance) GetBuiltArtifacts() []*Artifact {
return nil
}
func (m *BuildProvenance) GetCreateTime() *google_protobuf1.Timestamp {
func (m *BuildProvenance) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *BuildProvenance) GetStartTime() *google_protobuf1.Timestamp {
func (m *BuildProvenance) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *BuildProvenance) GetFinishTime() *google_protobuf1.Timestamp {
func (m *BuildProvenance) GetFinishTime() *timestamp.Timestamp {
if m != nil {
return m.FinishTime
}
@ -178,7 +208,7 @@ type Source struct {
Source isSource_Source `protobuf_oneof:"source"`
// If provided, the input binary artifacts for the build came from this
// location.
ArtifactStorageSource *StorageSource `protobuf:"bytes,4,opt,name=artifact_storage_source,json=artifactStorageSource" json:"artifact_storage_source,omitempty"`
ArtifactStorageSource *StorageSource `protobuf:"bytes,4,opt,name=artifact_storage_source,json=artifactStorageSource,proto3" json:"artifact_storage_source,omitempty"`
// Hash(es) of the build source, which can be used to verify that the original
// source integrity was maintained in the build.
//
@ -187,34 +217,58 @@ type Source struct {
//
// If the build source came in a single package such as a gzipped tarfile
// (.tar.gz), the FileHash will be for the single path to that file.
FileHashes map[string]*FileHashes `protobuf:"bytes,3,rep,name=file_hashes,json=fileHashes" json:"file_hashes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
FileHashes map[string]*FileHashes `protobuf:"bytes,3,rep,name=file_hashes,json=fileHashes,proto3" json:"file_hashes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// If provided, the source code used for the build came from this location.
Context *SourceContext `protobuf:"bytes,7,opt,name=context" json:"context,omitempty"`
Context *SourceContext `protobuf:"bytes,7,opt,name=context,proto3" json:"context,omitempty"`
// If provided, some of the source code used for the build may be found in
// these locations, in the case where the source repository had multiple
// remotes or submodules. This list will not include the context specified in
// the context field.
AdditionalContexts []*SourceContext `protobuf:"bytes,8,rep,name=additional_contexts,json=additionalContexts" json:"additional_contexts,omitempty"`
AdditionalContexts []*SourceContext `protobuf:"bytes,8,rep,name=additional_contexts,json=additionalContexts,proto3" json:"additional_contexts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Source) Reset() { *m = Source{} }
func (m *Source) String() string { return proto.CompactTextString(m) }
func (*Source) ProtoMessage() {}
func (*Source) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
func (m *Source) Reset() { *m = Source{} }
func (m *Source) String() string { return proto.CompactTextString(m) }
func (*Source) ProtoMessage() {}
func (*Source) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{1}
}
func (m *Source) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Source.Unmarshal(m, b)
}
func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Source.Marshal(b, m, deterministic)
}
func (dst *Source) XXX_Merge(src proto.Message) {
xxx_messageInfo_Source.Merge(dst, src)
}
func (m *Source) XXX_Size() int {
return xxx_messageInfo_Source.Size(m)
}
func (m *Source) XXX_DiscardUnknown() {
xxx_messageInfo_Source.DiscardUnknown(m)
}
var xxx_messageInfo_Source proto.InternalMessageInfo
type isSource_Source interface {
isSource_Source()
}
type Source_StorageSource struct {
StorageSource *StorageSource `protobuf:"bytes,1,opt,name=storage_source,json=storageSource,oneof"`
StorageSource *StorageSource `protobuf:"bytes,1,opt,name=storage_source,json=storageSource,proto3,oneof"`
}
type Source_RepoSource struct {
RepoSource *RepoSource `protobuf:"bytes,2,opt,name=repo_source,json=repoSource,oneof"`
RepoSource *RepoSource `protobuf:"bytes,2,opt,name=repo_source,json=repoSource,proto3,oneof"`
}
func (*Source_StorageSource) isSource_Source() {}
func (*Source_RepoSource) isSource_Source() {}
func (*Source_RepoSource) isSource_Source() {}
func (m *Source) GetSource() isSource_Source {
if m != nil {
@ -324,12 +378,12 @@ func _Source_OneofSizer(msg proto.Message) (n int) {
switch x := m.Source.(type) {
case *Source_StorageSource:
s := proto.Size(x.StorageSource)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Source_RepoSource:
s := proto.Size(x.RepoSource)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -343,13 +397,35 @@ func _Source_OneofSizer(msg proto.Message) (n int) {
// messages to verify integrity of source input to the build.
type FileHashes struct {
// Collection of file hashes.
FileHash []*Hash `protobuf:"bytes,1,rep,name=file_hash,json=fileHash" json:"file_hash,omitempty"`
FileHash []*Hash `protobuf:"bytes,1,rep,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FileHashes) Reset() { *m = FileHashes{} }
func (m *FileHashes) String() string { return proto.CompactTextString(m) }
func (*FileHashes) ProtoMessage() {}
func (*FileHashes) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} }
func (m *FileHashes) Reset() { *m = FileHashes{} }
func (m *FileHashes) String() string { return proto.CompactTextString(m) }
func (*FileHashes) ProtoMessage() {}
func (*FileHashes) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{2}
}
func (m *FileHashes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FileHashes.Unmarshal(m, b)
}
func (m *FileHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FileHashes.Marshal(b, m, deterministic)
}
func (dst *FileHashes) XXX_Merge(src proto.Message) {
xxx_messageInfo_FileHashes.Merge(dst, src)
}
func (m *FileHashes) XXX_Size() int {
return xxx_messageInfo_FileHashes.Size(m)
}
func (m *FileHashes) XXX_DiscardUnknown() {
xxx_messageInfo_FileHashes.DiscardUnknown(m)
}
var xxx_messageInfo_FileHashes proto.InternalMessageInfo
func (m *FileHashes) GetFileHash() []*Hash {
if m != nil {
@ -361,15 +437,37 @@ func (m *FileHashes) GetFileHash() []*Hash {
// Container message for hash values.
type Hash struct {
// The type of hash that was performed.
Type Hash_HashType `protobuf:"varint,1,opt,name=type,enum=google.devtools.containeranalysis.v1alpha1.Hash_HashType" json:"type,omitempty"`
Type Hash_HashType `protobuf:"varint,1,opt,name=type,proto3,enum=google.devtools.containeranalysis.v1alpha1.Hash_HashType" json:"type,omitempty"`
// The hash value.
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Hash) Reset() { *m = Hash{} }
func (m *Hash) String() string { return proto.CompactTextString(m) }
func (*Hash) ProtoMessage() {}
func (*Hash) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} }
func (m *Hash) Reset() { *m = Hash{} }
func (m *Hash) String() string { return proto.CompactTextString(m) }
func (*Hash) ProtoMessage() {}
func (*Hash) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{3}
}
func (m *Hash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Hash.Unmarshal(m, b)
}
func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Hash.Marshal(b, m, deterministic)
}
func (dst *Hash) XXX_Merge(src proto.Message) {
xxx_messageInfo_Hash.Merge(dst, src)
}
func (m *Hash) XXX_Size() int {
return xxx_messageInfo_Hash.Size(m)
}
func (m *Hash) XXX_DiscardUnknown() {
xxx_messageInfo_Hash.DiscardUnknown(m)
}
var xxx_messageInfo_Hash proto.InternalMessageInfo
func (m *Hash) GetType() Hash_HashType {
if m != nil {
@ -391,17 +489,39 @@ type StorageSource struct {
// Google Cloud Storage bucket containing source (see [Bucket Name
// Requirements]
// (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bucket string `protobuf:"bytes,1,opt,name=bucket" json:"bucket,omitempty"`
Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
// Google Cloud Storage object containing source.
Object string `protobuf:"bytes,2,opt,name=object" json:"object,omitempty"`
Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
// Google Cloud Storage generation for the object.
Generation int64 `protobuf:"varint,3,opt,name=generation" json:"generation,omitempty"`
Generation int64 `protobuf:"varint,3,opt,name=generation,proto3" json:"generation,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StorageSource) Reset() { *m = StorageSource{} }
func (m *StorageSource) String() string { return proto.CompactTextString(m) }
func (*StorageSource) ProtoMessage() {}
func (*StorageSource) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{4} }
func (m *StorageSource) Reset() { *m = StorageSource{} }
func (m *StorageSource) String() string { return proto.CompactTextString(m) }
func (*StorageSource) ProtoMessage() {}
func (*StorageSource) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{4}
}
func (m *StorageSource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StorageSource.Unmarshal(m, b)
}
func (m *StorageSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StorageSource.Marshal(b, m, deterministic)
}
func (dst *StorageSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_StorageSource.Merge(dst, src)
}
func (m *StorageSource) XXX_Size() int {
return xxx_messageInfo_StorageSource.Size(m)
}
func (m *StorageSource) XXX_DiscardUnknown() {
xxx_messageInfo_StorageSource.DiscardUnknown(m)
}
var xxx_messageInfo_StorageSource proto.InternalMessageInfo
func (m *StorageSource) GetBucket() string {
if m != nil {
@ -428,9 +548,9 @@ func (m *StorageSource) GetGeneration() int64 {
// Repository.
type RepoSource struct {
// ID of the project that owns the repo.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Name of the repo.
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName" json:"repo_name,omitempty"`
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
// A revision within the source repository must be specified in
// one of these ways.
//
@ -438,38 +558,35 @@ type RepoSource struct {
// *RepoSource_BranchName
// *RepoSource_TagName
// *RepoSource_CommitSha
Revision isRepoSource_Revision `protobuf_oneof:"revision"`
Revision isRepoSource_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepoSource) Reset() { *m = RepoSource{} }
func (m *RepoSource) String() string { return proto.CompactTextString(m) }
func (*RepoSource) ProtoMessage() {}
func (*RepoSource) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{5} }
type isRepoSource_Revision interface {
isRepoSource_Revision()
func (m *RepoSource) Reset() { *m = RepoSource{} }
func (m *RepoSource) String() string { return proto.CompactTextString(m) }
func (*RepoSource) ProtoMessage() {}
func (*RepoSource) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{5}
}
func (m *RepoSource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepoSource.Unmarshal(m, b)
}
func (m *RepoSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepoSource.Marshal(b, m, deterministic)
}
func (dst *RepoSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepoSource.Merge(dst, src)
}
func (m *RepoSource) XXX_Size() int {
return xxx_messageInfo_RepoSource.Size(m)
}
func (m *RepoSource) XXX_DiscardUnknown() {
xxx_messageInfo_RepoSource.DiscardUnknown(m)
}
type RepoSource_BranchName struct {
BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,oneof"`
}
type RepoSource_TagName struct {
TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,oneof"`
}
type RepoSource_CommitSha struct {
CommitSha string `protobuf:"bytes,5,opt,name=commit_sha,json=commitSha,oneof"`
}
func (*RepoSource_BranchName) isRepoSource_Revision() {}
func (*RepoSource_TagName) isRepoSource_Revision() {}
func (*RepoSource_CommitSha) isRepoSource_Revision() {}
func (m *RepoSource) GetRevision() isRepoSource_Revision {
if m != nil {
return m.Revision
}
return nil
}
var xxx_messageInfo_RepoSource proto.InternalMessageInfo
func (m *RepoSource) GetProjectId() string {
if m != nil {
@ -485,6 +602,35 @@ func (m *RepoSource) GetRepoName() string {
return ""
}
type isRepoSource_Revision interface {
isRepoSource_Revision()
}
type RepoSource_BranchName struct {
BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3,oneof"`
}
type RepoSource_TagName struct {
TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,proto3,oneof"`
}
type RepoSource_CommitSha struct {
CommitSha string `protobuf:"bytes,5,opt,name=commit_sha,json=commitSha,proto3,oneof"`
}
func (*RepoSource_BranchName) isRepoSource_Revision() {}
func (*RepoSource_TagName) isRepoSource_Revision() {}
func (*RepoSource_CommitSha) isRepoSource_Revision() {}
func (m *RepoSource) GetRevision() isRepoSource_Revision {
if m != nil {
return m.Revision
}
return nil
}
func (m *RepoSource) GetBranchName() string {
if x, ok := m.GetRevision().(*RepoSource_BranchName); ok {
return x.BranchName
@ -569,15 +715,15 @@ func _RepoSource_OneofSizer(msg proto.Message) (n int) {
// revision
switch x := m.Revision.(type) {
case *RepoSource_BranchName:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.BranchName)))
n += len(x.BranchName)
case *RepoSource_TagName:
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.TagName)))
n += len(x.TagName)
case *RepoSource_CommitSha:
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.CommitSha)))
n += len(x.CommitSha)
case nil:
@ -591,25 +737,47 @@ func _RepoSource_OneofSizer(msg proto.Message) (n int) {
type Command struct {
// Name of the command, as presented on the command line, or if the command is
// packaged as a Docker container, as presented to `docker pull`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Environment variables set before running this Command.
Env []string `protobuf:"bytes,2,rep,name=env" json:"env,omitempty"`
Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
// Command-line arguments used when executing this Command.
Args []string `protobuf:"bytes,3,rep,name=args" json:"args,omitempty"`
Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
// Working directory (relative to project source root) used when running
// this Command.
Dir string `protobuf:"bytes,4,opt,name=dir" json:"dir,omitempty"`
Dir string `protobuf:"bytes,4,opt,name=dir,proto3" json:"dir,omitempty"`
// Optional unique identifier for this Command, used in wait_for to reference
// this Command as a dependency.
Id string `protobuf:"bytes,5,opt,name=id" json:"id,omitempty"`
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
// The ID(s) of the Command(s) that this Command depends on.
WaitFor []string `protobuf:"bytes,6,rep,name=wait_for,json=waitFor" json:"wait_for,omitempty"`
WaitFor []string `protobuf:"bytes,6,rep,name=wait_for,json=waitFor,proto3" json:"wait_for,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Command) Reset() { *m = Command{} }
func (m *Command) String() string { return proto.CompactTextString(m) }
func (*Command) ProtoMessage() {}
func (*Command) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{6} }
func (m *Command) Reset() { *m = Command{} }
func (m *Command) String() string { return proto.CompactTextString(m) }
func (*Command) ProtoMessage() {}
func (*Command) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{6}
}
func (m *Command) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Command.Unmarshal(m, b)
}
func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Command.Marshal(b, m, deterministic)
}
func (dst *Command) XXX_Merge(src proto.Message) {
xxx_messageInfo_Command.Merge(dst, src)
}
func (m *Command) XXX_Size() int {
return xxx_messageInfo_Command.Size(m)
}
func (m *Command) XXX_DiscardUnknown() {
xxx_messageInfo_Command.DiscardUnknown(m)
}
var xxx_messageInfo_Command proto.InternalMessageInfo
func (m *Command) GetName() string {
if m != nil {
@ -663,25 +831,47 @@ type Artifact struct {
// to exist here to allow existing BuildProvenance serialized to json in
// google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
// deserialize back into proto.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
// container.
Checksum string `protobuf:"bytes,2,opt,name=checksum" json:"checksum,omitempty"`
Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"`
// Artifact ID, if any; for container images, this will be a URL by digest
// like gcr.io/projectID/imagename@sha256:123456
Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
// Related artifact names. This may be the path to a binary or jar file, or in
// the case of a container build, the name used to push the container image to
// Google Container Registry, as presented to `docker push`. Note that a
// single Artifact ID can have multiple names, for example if two tags are
// applied to one image.
Names []string `protobuf:"bytes,4,rep,name=names" json:"names,omitempty"`
Names []string `protobuf:"bytes,4,rep,name=names,proto3" json:"names,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Artifact) Reset() { *m = Artifact{} }
func (m *Artifact) String() string { return proto.CompactTextString(m) }
func (*Artifact) ProtoMessage() {}
func (*Artifact) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{7} }
func (m *Artifact) Reset() { *m = Artifact{} }
func (m *Artifact) String() string { return proto.CompactTextString(m) }
func (*Artifact) ProtoMessage() {}
func (*Artifact) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{7}
}
func (m *Artifact) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Artifact.Unmarshal(m, b)
}
func (m *Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Artifact.Marshal(b, m, deterministic)
}
func (dst *Artifact) XXX_Merge(src proto.Message) {
xxx_messageInfo_Artifact.Merge(dst, src)
}
func (m *Artifact) XXX_Size() int {
return xxx_messageInfo_Artifact.Size(m)
}
func (m *Artifact) XXX_DiscardUnknown() {
xxx_messageInfo_Artifact.DiscardUnknown(m)
}
var xxx_messageInfo_Artifact proto.InternalMessageInfo
func (m *Artifact) GetName() string {
if m != nil {
@ -713,7 +903,9 @@ func (m *Artifact) GetNames() []string {
func init() {
proto.RegisterType((*BuildProvenance)(nil), "google.devtools.containeranalysis.v1alpha1.BuildProvenance")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.containeranalysis.v1alpha1.BuildProvenance.BuildOptionsEntry")
proto.RegisterType((*Source)(nil), "google.devtools.containeranalysis.v1alpha1.Source")
proto.RegisterMapType((map[string]*FileHashes)(nil), "google.devtools.containeranalysis.v1alpha1.Source.FileHashesEntry")
proto.RegisterType((*FileHashes)(nil), "google.devtools.containeranalysis.v1alpha1.FileHashes")
proto.RegisterType((*Hash)(nil), "google.devtools.containeranalysis.v1alpha1.Hash")
proto.RegisterType((*StorageSource)(nil), "google.devtools.containeranalysis.v1alpha1.StorageSource")
@ -724,10 +916,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/provenance.proto", fileDescriptor4)
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/provenance.proto", fileDescriptor_provenance_ae080c06fe939617)
}
var fileDescriptor4 = []byte{
var fileDescriptor_provenance_ae080c06fe939617 = []byte{
// 1026 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x6e, 0x1b, 0x45,
0x14, 0xee, 0xfa, 0x77, 0xf7, 0xb8, 0x71, 0x92, 0xa1, 0xc0, 0xe2, 0x52, 0x62, 0x2c, 0x21, 0x22,

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/source_context.proto
package containeranalysis
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,6 +13,12 @@ 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 an alias.
type AliasContext_Kind int32
@ -44,7 +50,9 @@ var AliasContext_Kind_value = map[string]int32{
func (x AliasContext_Kind) String() string {
return proto.EnumName(AliasContext_Kind_name, int32(x))
}
func (AliasContext_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor5, []int{1, 0} }
func (AliasContext_Kind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{1, 0}
}
// A SourceContext is a reference to a tree of files. A SourceContext together
// with a path point to a unique revision of a single file or directory.
@ -57,31 +65,57 @@ type SourceContext struct {
// *SourceContext_Git
Context isSourceContext_Context `protobuf_oneof:"context"`
// Labels with user defined metadata.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SourceContext) Reset() { *m = SourceContext{} }
func (m *SourceContext) String() string { return proto.CompactTextString(m) }
func (*SourceContext) ProtoMessage() {}
func (*SourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0} }
func (m *SourceContext) Reset() { *m = SourceContext{} }
func (m *SourceContext) String() string { return proto.CompactTextString(m) }
func (*SourceContext) ProtoMessage() {}
func (*SourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{0}
}
func (m *SourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SourceContext.Unmarshal(m, b)
}
func (m *SourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SourceContext.Marshal(b, m, deterministic)
}
func (dst *SourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_SourceContext.Merge(dst, src)
}
func (m *SourceContext) XXX_Size() int {
return xxx_messageInfo_SourceContext.Size(m)
}
func (m *SourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_SourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_SourceContext proto.InternalMessageInfo
type isSourceContext_Context interface {
isSourceContext_Context()
}
type SourceContext_CloudRepo struct {
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,oneof"`
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"`
}
type SourceContext_Gerrit struct {
Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,oneof"`
Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,proto3,oneof"`
}
type SourceContext_Git struct {
Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,oneof"`
Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,proto3,oneof"`
}
func (*SourceContext_CloudRepo) isSourceContext_Context() {}
func (*SourceContext_Gerrit) isSourceContext_Context() {}
func (*SourceContext_Git) isSourceContext_Context() {}
func (*SourceContext_Gerrit) isSourceContext_Context() {}
func (*SourceContext_Git) isSourceContext_Context() {}
func (m *SourceContext) GetContext() isSourceContext_Context {
if m != nil {
@ -191,17 +225,17 @@ func _SourceContext_OneofSizer(msg proto.Message) (n int) {
switch x := m.Context.(type) {
case *SourceContext_CloudRepo:
s := proto.Size(x.CloudRepo)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Gerrit:
s := proto.Size(x.Gerrit)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Git:
s := proto.Size(x.Git)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -214,15 +248,37 @@ func _SourceContext_OneofSizer(msg proto.Message) (n int) {
// An alias to a repo revision.
type AliasContext struct {
// The alias kind.
Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,enum=google.devtools.containeranalysis.v1alpha1.AliasContext_Kind" json:"kind,omitempty"`
Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.devtools.containeranalysis.v1alpha1.AliasContext_Kind" json:"kind,omitempty"`
// The alias name.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AliasContext) Reset() { *m = AliasContext{} }
func (m *AliasContext) String() string { return proto.CompactTextString(m) }
func (*AliasContext) ProtoMessage() {}
func (*AliasContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{1} }
func (m *AliasContext) Reset() { *m = AliasContext{} }
func (m *AliasContext) String() string { return proto.CompactTextString(m) }
func (*AliasContext) ProtoMessage() {}
func (*AliasContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{1}
}
func (m *AliasContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AliasContext.Unmarshal(m, b)
}
func (m *AliasContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AliasContext.Marshal(b, m, deterministic)
}
func (dst *AliasContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_AliasContext.Merge(dst, src)
}
func (m *AliasContext) XXX_Size() int {
return xxx_messageInfo_AliasContext.Size(m)
}
func (m *AliasContext) XXX_DiscardUnknown() {
xxx_messageInfo_AliasContext.DiscardUnknown(m)
}
var xxx_messageInfo_AliasContext proto.InternalMessageInfo
func (m *AliasContext) GetKind() AliasContext_Kind {
if m != nil {
@ -242,33 +298,64 @@ func (m *AliasContext) GetName() string {
// Source Repo.
type CloudRepoSourceContext struct {
// The ID of the repo.
RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId" json:"repo_id,omitempty"`
RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
// A revision in a Cloud Repo can be identified by either its revision ID or
// its alias.
//
// Types that are valid to be assigned to Revision:
// *CloudRepoSourceContext_RevisionId
// *CloudRepoSourceContext_AliasContext
Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} }
func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) }
func (*CloudRepoSourceContext) ProtoMessage() {}
func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{2} }
func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} }
func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) }
func (*CloudRepoSourceContext) ProtoMessage() {}
func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{2}
}
func (m *CloudRepoSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CloudRepoSourceContext.Unmarshal(m, b)
}
func (m *CloudRepoSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CloudRepoSourceContext.Marshal(b, m, deterministic)
}
func (dst *CloudRepoSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloudRepoSourceContext.Merge(dst, src)
}
func (m *CloudRepoSourceContext) XXX_Size() int {
return xxx_messageInfo_CloudRepoSourceContext.Size(m)
}
func (m *CloudRepoSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_CloudRepoSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_CloudRepoSourceContext proto.InternalMessageInfo
func (m *CloudRepoSourceContext) GetRepoId() *RepoId {
if m != nil {
return m.RepoId
}
return nil
}
type isCloudRepoSourceContext_Revision interface {
isCloudRepoSourceContext_Revision()
}
type CloudRepoSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,oneof"`
}
type CloudRepoSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,3,opt,name=alias_context,json=aliasContext,oneof"`
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
type CloudRepoSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,3,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {}
func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision {
@ -278,13 +365,6 @@ func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision
return nil
}
func (m *CloudRepoSourceContext) GetRepoId() *RepoId {
if m != nil {
return m.RepoId
}
return nil
}
func (m *CloudRepoSourceContext) GetRevisionId() string {
if x, ok := m.GetRevision().(*CloudRepoSourceContext_RevisionId); ok {
return x.RevisionId
@ -354,12 +434,12 @@ func _CloudRepoSourceContext_OneofSizer(msg proto.Message) (n int) {
// revision
switch x := m.Revision.(type) {
case *CloudRepoSourceContext_RevisionId:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *CloudRepoSourceContext_AliasContext:
s := proto.Size(x.AliasContext)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -372,45 +452,46 @@ func _CloudRepoSourceContext_OneofSizer(msg proto.Message) (n int) {
// A SourceContext referring to a Gerrit project.
type GerritSourceContext struct {
// The URI of a running Gerrit instance.
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri" json:"host_uri,omitempty"`
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
// The full project name within the host. Projects may be nested, so
// "project/subproject" is a valid project name. The "repo name" is
// the hostURI/project.
GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject" json:"gerrit_project,omitempty"`
GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject,proto3" json:"gerrit_project,omitempty"`
// A revision in a Gerrit project can be identified by either its revision ID
// or its alias.
//
// Types that are valid to be assigned to Revision:
// *GerritSourceContext_RevisionId
// *GerritSourceContext_AliasContext
Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"`
Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} }
func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) }
func (*GerritSourceContext) ProtoMessage() {}
func (*GerritSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{3} }
type isGerritSourceContext_Revision interface {
isGerritSourceContext_Revision()
func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} }
func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) }
func (*GerritSourceContext) ProtoMessage() {}
func (*GerritSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{3}
}
func (m *GerritSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GerritSourceContext.Unmarshal(m, b)
}
func (m *GerritSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GerritSourceContext.Marshal(b, m, deterministic)
}
func (dst *GerritSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_GerritSourceContext.Merge(dst, src)
}
func (m *GerritSourceContext) XXX_Size() int {
return xxx_messageInfo_GerritSourceContext.Size(m)
}
func (m *GerritSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_GerritSourceContext.DiscardUnknown(m)
}
type GerritSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,oneof"`
}
type GerritSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,oneof"`
}
func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {}
func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {}
func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision {
if m != nil {
return m.Revision
}
return nil
}
var xxx_messageInfo_GerritSourceContext proto.InternalMessageInfo
func (m *GerritSourceContext) GetHostUri() string {
if m != nil {
@ -426,6 +507,29 @@ func (m *GerritSourceContext) GetGerritProject() string {
return ""
}
type isGerritSourceContext_Revision interface {
isGerritSourceContext_Revision()
}
type GerritSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
type GerritSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {}
func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {}
func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision {
if m != nil {
return m.Revision
}
return nil
}
func (m *GerritSourceContext) GetRevisionId() string {
if x, ok := m.GetRevision().(*GerritSourceContext_RevisionId); ok {
return x.RevisionId
@ -495,12 +599,12 @@ func _GerritSourceContext_OneofSizer(msg proto.Message) (n int) {
// revision
switch x := m.Revision.(type) {
case *GerritSourceContext_RevisionId:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *GerritSourceContext_AliasContext:
s := proto.Size(x.AliasContext)
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -514,16 +618,38 @@ func _GerritSourceContext_OneofSizer(msg proto.Message) (n int) {
// repository (e.g., GitHub).
type GitSourceContext struct {
// Git repository URL.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// Required.
// Git commit hash.
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId" json:"revision_id,omitempty"`
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GitSourceContext) Reset() { *m = GitSourceContext{} }
func (m *GitSourceContext) String() string { return proto.CompactTextString(m) }
func (*GitSourceContext) ProtoMessage() {}
func (*GitSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{4} }
func (m *GitSourceContext) Reset() { *m = GitSourceContext{} }
func (m *GitSourceContext) String() string { return proto.CompactTextString(m) }
func (*GitSourceContext) ProtoMessage() {}
func (*GitSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{4}
}
func (m *GitSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GitSourceContext.Unmarshal(m, b)
}
func (m *GitSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GitSourceContext.Marshal(b, m, deterministic)
}
func (dst *GitSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_GitSourceContext.Merge(dst, src)
}
func (m *GitSourceContext) XXX_Size() int {
return xxx_messageInfo_GitSourceContext.Size(m)
}
func (m *GitSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_GitSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_GitSourceContext proto.InternalMessageInfo
func (m *GitSourceContext) GetUrl() string {
if m != nil {
@ -547,27 +673,51 @@ type RepoId struct {
// Types that are valid to be assigned to Id:
// *RepoId_ProjectRepoId
// *RepoId_Uid
Id isRepoId_Id `protobuf_oneof:"id"`
Id isRepoId_Id `protobuf_oneof:"id"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepoId) Reset() { *m = RepoId{} }
func (m *RepoId) String() string { return proto.CompactTextString(m) }
func (*RepoId) ProtoMessage() {}
func (*RepoId) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{5} }
func (m *RepoId) Reset() { *m = RepoId{} }
func (m *RepoId) String() string { return proto.CompactTextString(m) }
func (*RepoId) ProtoMessage() {}
func (*RepoId) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{5}
}
func (m *RepoId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepoId.Unmarshal(m, b)
}
func (m *RepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepoId.Marshal(b, m, deterministic)
}
func (dst *RepoId) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepoId.Merge(dst, src)
}
func (m *RepoId) XXX_Size() int {
return xxx_messageInfo_RepoId.Size(m)
}
func (m *RepoId) XXX_DiscardUnknown() {
xxx_messageInfo_RepoId.DiscardUnknown(m)
}
var xxx_messageInfo_RepoId proto.InternalMessageInfo
type isRepoId_Id interface {
isRepoId_Id()
}
type RepoId_ProjectRepoId struct {
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,oneof"`
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"`
}
type RepoId_Uid struct {
Uid string `protobuf:"bytes,2,opt,name=uid,oneof"`
Uid string `protobuf:"bytes,2,opt,name=uid,proto3,oneof"`
}
func (*RepoId_ProjectRepoId) isRepoId_Id() {}
func (*RepoId_Uid) isRepoId_Id() {}
func (*RepoId_Uid) isRepoId_Id() {}
func (m *RepoId) GetId() isRepoId_Id {
if m != nil {
@ -646,11 +796,11 @@ func _RepoId_OneofSizer(msg proto.Message) (n int) {
switch x := m.Id.(type) {
case *RepoId_ProjectRepoId:
s := proto.Size(x.ProjectRepoId)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *RepoId_Uid:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Uid)))
n += len(x.Uid)
case nil:
@ -664,15 +814,37 @@ func _RepoId_OneofSizer(msg proto.Message) (n int) {
// winged-cargo-31) and a repo name within that project.
type ProjectRepoId struct {
// The ID of the project.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// The name of the repo. Leave empty for the default repo.
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName" json:"repo_name,omitempty"`
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} }
func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) }
func (*ProjectRepoId) ProtoMessage() {}
func (*ProjectRepoId) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{6} }
func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} }
func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) }
func (*ProjectRepoId) ProtoMessage() {}
func (*ProjectRepoId) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{6}
}
func (m *ProjectRepoId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProjectRepoId.Unmarshal(m, b)
}
func (m *ProjectRepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProjectRepoId.Marshal(b, m, deterministic)
}
func (dst *ProjectRepoId) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProjectRepoId.Merge(dst, src)
}
func (m *ProjectRepoId) XXX_Size() int {
return xxx_messageInfo_ProjectRepoId.Size(m)
}
func (m *ProjectRepoId) XXX_DiscardUnknown() {
xxx_messageInfo_ProjectRepoId.DiscardUnknown(m)
}
var xxx_messageInfo_ProjectRepoId proto.InternalMessageInfo
func (m *ProjectRepoId) GetProjectId() string {
if m != nil {
@ -690,6 +862,7 @@ func (m *ProjectRepoId) GetRepoName() string {
func init() {
proto.RegisterType((*SourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.SourceContext")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.containeranalysis.v1alpha1.SourceContext.LabelsEntry")
proto.RegisterType((*AliasContext)(nil), "google.devtools.containeranalysis.v1alpha1.AliasContext")
proto.RegisterType((*CloudRepoSourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.CloudRepoSourceContext")
proto.RegisterType((*GerritSourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.GerritSourceContext")
@ -700,10 +873,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/source_context.proto", fileDescriptor5)
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/source_context.proto", fileDescriptor_source_context_78f437f8b7f72e1b)
}
var fileDescriptor5 = []byte{
var fileDescriptor_source_context_78f437f8b7f72e1b = []byte{
// 675 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x95, 0x5d, 0x4e, 0xdb, 0x4a,
0x14, 0xc7, 0xe3, 0x38, 0x24, 0xf8, 0x84, 0x70, 0xa3, 0xb9, 0xe8, 0x2a, 0x97, 0x7b, 0xab, 0x52,

View File

@ -1,48 +1,17 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/remoteworkers/v1test2/bots.proto
/*
Package remoteworkers is a generated protocol buffer package.
It is generated from these files:
google/devtools/remoteworkers/v1test2/bots.proto
google/devtools/remoteworkers/v1test2/command.proto
google/devtools/remoteworkers/v1test2/tasks.proto
It has these top-level messages:
BotSession
Lease
Worker
Device
AdminTemp
CreateBotSessionRequest
UpdateBotSessionRequest
PostBotEventTempRequest
CommandTask
CommandOutputs
CommandOverhead
FileMetadata
DirectoryMetadata
Digest
Directory
Task
TaskResult
GetTaskRequest
UpdateTaskResultRequest
AddTaskLogRequest
AddTaskLogResponse
*/
package remoteworkers
package remoteworkers // import "google.golang.org/genproto/googleapis/devtools/remoteworkers/v1test2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import any "github.com/golang/protobuf/ptypes/any"
import empty "github.com/golang/protobuf/ptypes/empty"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/any"
import google_protobuf2 "github.com/golang/protobuf/ptypes/empty"
import google_protobuf3 "google.golang.org/genproto/protobuf/field_mask"
import google_protobuf4 "github.com/golang/protobuf/ptypes/timestamp"
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
import status "google.golang.org/genproto/googleapis/rpc/status"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
@ -96,16 +65,18 @@ var BotStatus_name = map[int32]string{
}
var BotStatus_value = map[string]int32{
"BOT_STATUS_UNSPECIFIED": 0,
"OK": 1,
"UNHEALTHY": 2,
"HOST_REBOOTING": 3,
"BOT_TERMINATING": 4,
"OK": 1,
"UNHEALTHY": 2,
"HOST_REBOOTING": 3,
"BOT_TERMINATING": 4,
}
func (x BotStatus) String() string {
return proto.EnumName(BotStatus_name, int32(x))
}
func (BotStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (BotStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_bots_a76feaae86db3e89, []int{0}
}
// The state of the lease. All leases start in the PENDING state. A bot can
// change PENDING to ACTIVE or (in the case of an error) COMPLETED, or from
@ -148,7 +119,9 @@ var LeaseState_value = map[string]int32{
func (x LeaseState) String() string {
return proto.EnumName(LeaseState_name, int32(x))
}
func (LeaseState) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (LeaseState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_bots_a76feaae86db3e89, []int{1}
}
// Possible administration actions.
type AdminTemp_Command int32
@ -188,7 +161,9 @@ var AdminTemp_Command_value = map[string]int32{
func (x AdminTemp_Command) String() string {
return proto.EnumName(AdminTemp_Command_name, int32(x))
}
func (AdminTemp_Command) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4, 0} }
func (AdminTemp_Command) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_bots_a76feaae86db3e89, []int{2, 0}
}
// Types of bot events.
type PostBotEventTempRequest_Type int32
@ -217,7 +192,7 @@ func (x PostBotEventTempRequest_Type) String() string {
return proto.EnumName(PostBotEventTempRequest_Type_name, int32(x))
}
func (PostBotEventTempRequest_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{7, 0}
return fileDescriptor_bots_a76feaae86db3e89, []int{5, 0}
}
// A bot session represents the state of a bot while in continuous contact with
@ -230,7 +205,7 @@ func (PostBotEventTempRequest_Type) EnumDescriptor() ([]byte, []int) {
type BotSession struct {
// The bot session name, as selected by the server. Output only during a call
// to CreateBotSession.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A unique bot ID within the farm used to persistently identify this bot over
// time (i.e., over multiple sessions). This ID must be unique within a
// farm. Typically, the bot ID will be the same as the name of the primary
@ -245,10 +220,10 @@ type BotSession struct {
// invalid session, the server must reject that request, and may also
// quarantine the other bot with the same bot IDs (ie, stop sending it new
// leases and alert an admin).
BotId string `protobuf:"bytes,2,opt,name=bot_id,json=botId" json:"bot_id,omitempty"`
BotId string `protobuf:"bytes,2,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
// The status of the bot. This must be populated in every call to
// UpdateBotSession.
Status BotStatus `protobuf:"varint,3,opt,name=status,enum=google.devtools.remoteworkers.v1test2.BotStatus" json:"status,omitempty"`
Status BotStatus `protobuf:"varint,3,opt,name=status,proto3,enum=google.devtools.remoteworkers.v1test2.BotStatus" json:"status,omitempty"`
// A description of the worker hosting this bot. The Worker message is used
// here in the Status context (see Worker for more information). If multiple
// bots are running on the worker, this field should only describe the
@ -257,22 +232,44 @@ type BotSession struct {
// During the call to CreateBotSession, the server may make arbitrary changes
// to the worker's `server_properties` field (see that field for more
// information). Otherwise, this field is input-only.
Worker *Worker `protobuf:"bytes,4,opt,name=worker" json:"worker,omitempty"`
Worker *Worker `protobuf:"bytes,4,opt,name=worker,proto3" json:"worker,omitempty"`
// A list of all leases that are a part of this session. See the Lease message
// for details.
Leases []*Lease `protobuf:"bytes,5,rep,name=leases" json:"leases,omitempty"`
Leases []*Lease `protobuf:"bytes,5,rep,name=leases,proto3" json:"leases,omitempty"`
// The time at which this bot session will expire, unless the bot calls
// UpdateBotSession again. Output only.
ExpireTime *google_protobuf4.Timestamp `protobuf:"bytes,6,opt,name=expire_time,json=expireTime" json:"expire_time,omitempty"`
ExpireTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
// The version of the bot code currently running. The server may use this
// information to issue an admin action to tell the bot to update itself.
Version string `protobuf:"bytes,7,opt,name=version" json:"version,omitempty"`
Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BotSession) Reset() { *m = BotSession{} }
func (m *BotSession) String() string { return proto.CompactTextString(m) }
func (*BotSession) ProtoMessage() {}
func (*BotSession) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *BotSession) Reset() { *m = BotSession{} }
func (m *BotSession) String() string { return proto.CompactTextString(m) }
func (*BotSession) ProtoMessage() {}
func (*BotSession) Descriptor() ([]byte, []int) {
return fileDescriptor_bots_a76feaae86db3e89, []int{0}
}
func (m *BotSession) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BotSession.Unmarshal(m, b)
}
func (m *BotSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BotSession.Marshal(b, m, deterministic)
}
func (dst *BotSession) XXX_Merge(src proto.Message) {
xxx_messageInfo_BotSession.Merge(dst, src)
}
func (m *BotSession) XXX_Size() int {
return xxx_messageInfo_BotSession.Size(m)
}
func (m *BotSession) XXX_DiscardUnknown() {
xxx_messageInfo_BotSession.DiscardUnknown(m)
}
var xxx_messageInfo_BotSession proto.InternalMessageInfo
func (m *BotSession) GetName() string {
if m != nil {
@ -309,7 +306,7 @@ func (m *BotSession) GetLeases() []*Lease {
return nil
}
func (m *BotSession) GetExpireTime() *google_protobuf4.Timestamp {
func (m *BotSession) GetExpireTime() *timestamp.Timestamp {
if m != nil {
return m.ExpireTime
}
@ -342,70 +339,91 @@ func (m *BotSession) GetVersion() string {
// bot shouldn't report on them any more (the server will ignore superfluous
// COMPLETED records).
type Lease struct {
// The assignment, which is typically a resource that can be accessed through
// some other services. The assignment must be meaningful to the bot based
// solely on this name, either because the bot only understands one type of
// assignment (e.g., tasks served through the Tasks interface) or through some
// implementation-defined schema.
//
// For example, if the worker is executing a Task as defined by the Tasks
// interface, this field might be projects/{projectid}/tasks/{taskid}.
// However, it the worker is being assigned pull from a *queue* of tasks, the
// resource would be the name of the queue, something like
// projects/{projectid}/locations/{locationid}/queues/{queueid}. That queue
// may then provide the bot with tasks through another interface, which the
// bot then processes through the [Tasks]
// [google.devtools.remoteworkers.v1test2.Tasks] interface.
//
// Note that the assignment may be a [full resource name]
// [https://cloud.google.com/apis/design/resource_names#full_resource_name] if
// it should be accessed through an endpoint that is not already known to the
// bot.
Assignment string `protobuf:"bytes,1,opt,name=assignment" json:"assignment,omitempty"`
// A short string uniquely identifing the lease within this bot session.
Id string `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
// The actual work to be performed, if any. May be omitted by the server if
// the lease is not in the `PENDING` state. The message must be meaningful to
// the bot. Output only (must only be set by the server).
Payload *any.Any `protobuf:"bytes,8,opt,name=payload,proto3" json:"payload,omitempty"`
// Any result the bot wishes to provide about the lease. Must not be changed
// after the first call with the lease in the `COMPLETED` or `CANCELLED`
// state. Input only (must only be set by the bot, will not be echoed by the
// server).
Result *any.Any `protobuf:"bytes,9,opt,name=result,proto3" json:"result,omitempty"`
// The state of the lease. See LeaseState for more information.
State LeaseState `protobuf:"varint,2,opt,name=state,enum=google.devtools.remoteworkers.v1test2.LeaseState" json:"state,omitempty"`
State LeaseState `protobuf:"varint,2,opt,name=state,proto3,enum=google.devtools.remoteworkers.v1test2.LeaseState" json:"state,omitempty"`
// The final status of the lease (should be populated by the bot if the state
// is completed). This is the status of the lease, not of any task represented
// by the lease. For example, if the bot could not accept the lease because it
// asked for some resource the bot didn't have, this status will be
// FAILED_PRECONDITION. But if the assignment in the lease didn't execute
// correctly, this field will be `OK` while the failure of the assignment must
// be tracked elsewhere (e.g., through the Tasks interface).
Status *google_rpc.Status `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
// communicated via the `result` field.
Status *status.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
// The requirements that are being claimed by this lease. This field may be
// omitted by the server if the lease is not pending.
Requirements *Worker `protobuf:"bytes,4,opt,name=requirements" json:"requirements,omitempty"`
Requirements *Worker `protobuf:"bytes,4,opt,name=requirements,proto3" json:"requirements,omitempty"`
// The time at which this lease expires. The server *may* extend this over
// time, but due to race conditions, the bot is not *required* to respect any
// expiry date except the first one.
ExpireTime *google_protobuf4.Timestamp `protobuf:"bytes,5,opt,name=expire_time,json=expireTime" json:"expire_time,omitempty"`
// While the `assignment` field is a resource name that allows the bot to
// get the actual assignment, the server can also optionally include the
// assignment itself inline in order to save a round trip to the server.
//
// This doesn't necessarily need to be the resource pointed to by
// `assignment`. For example, if the assignment is a task, this field could
// be task.description, not the entire task, since that's all the bot needs
// to know to get started. As with `assignment` itself, all that's necessary
// is that the bot knows how to handle the type of message received here.
//
// This field may be omitted by the server if the lease is not in the
// `PENDING` state.
InlineAssignment *google_protobuf1.Any `protobuf:"bytes,6,opt,name=inline_assignment,json=inlineAssignment" json:"inline_assignment,omitempty"`
ExpireTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
// DEPRECATED. The assignment should be provided to the bot via the `payload`
// field. Clients that wish to use a simple name (such as a queue of work
// provided elsewhere) should define a custom message type and encode it into
// `payload`.
Assignment string `protobuf:"bytes,1,opt,name=assignment,proto3" json:"assignment,omitempty"` // Deprecated: Do not use.
// DEPRECATED. Use `payload` instead.
InlineAssignment *any.Any `protobuf:"bytes,6,opt,name=inline_assignment,json=inlineAssignment,proto3" json:"inline_assignment,omitempty"` // Deprecated: Do not use.
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Lease) Reset() { *m = Lease{} }
func (m *Lease) String() string { return proto.CompactTextString(m) }
func (*Lease) ProtoMessage() {}
func (*Lease) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Lease) Reset() { *m = Lease{} }
func (m *Lease) String() string { return proto.CompactTextString(m) }
func (*Lease) ProtoMessage() {}
func (*Lease) Descriptor() ([]byte, []int) {
return fileDescriptor_bots_a76feaae86db3e89, []int{1}
}
func (m *Lease) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Lease.Unmarshal(m, b)
}
func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Lease.Marshal(b, m, deterministic)
}
func (dst *Lease) XXX_Merge(src proto.Message) {
xxx_messageInfo_Lease.Merge(dst, src)
}
func (m *Lease) XXX_Size() int {
return xxx_messageInfo_Lease.Size(m)
}
func (m *Lease) XXX_DiscardUnknown() {
xxx_messageInfo_Lease.DiscardUnknown(m)
}
func (m *Lease) GetAssignment() string {
var xxx_messageInfo_Lease proto.InternalMessageInfo
func (m *Lease) GetId() string {
if m != nil {
return m.Assignment
return m.Id
}
return ""
}
func (m *Lease) GetPayload() *any.Any {
if m != nil {
return m.Payload
}
return nil
}
func (m *Lease) GetResult() *any.Any {
if m != nil {
return m.Result
}
return nil
}
func (m *Lease) GetState() LeaseState {
if m != nil {
return m.State
@ -413,7 +431,7 @@ func (m *Lease) GetState() LeaseState {
return LeaseState_LEASE_STATE_UNSPECIFIED
}
func (m *Lease) GetStatus() *google_rpc.Status {
func (m *Lease) GetStatus() *status.Status {
if m != nil {
return m.Status
}
@ -427,206 +445,29 @@ func (m *Lease) GetRequirements() *Worker {
return nil
}
func (m *Lease) GetExpireTime() *google_protobuf4.Timestamp {
func (m *Lease) GetExpireTime() *timestamp.Timestamp {
if m != nil {
return m.ExpireTime
}
return nil
}
func (m *Lease) GetInlineAssignment() *google_protobuf1.Any {
// Deprecated: Do not use.
func (m *Lease) GetAssignment() string {
if m != nil {
return m.Assignment
}
return ""
}
// Deprecated: Do not use.
func (m *Lease) GetInlineAssignment() *any.Any {
if m != nil {
return m.InlineAssignment
}
return nil
}
// Describes a worker, which is a list of one or more devices and the
// connections between them. A device could be a computer, a phone, or even an
// accelerator like a GPU; it's up to the farm administrator to decide how to
// model their farm. For example, if a farm only has one type of GPU, the GPU
// could be modelled as a "has_gpu" property on its host computer; if it has
// many subproperties itself, it might be better to model it as a separate
// device.
//
// The first device in the worker is the "primary device" - that is, the device
// running a bot and which is responsible for actually executing commands. All
// other devices are considered to be attached devices, and must be controllable
// by the primary device.
//
// This message (and all its submessages) can be used in two contexts:
//
// * Status: sent by the bot to report the current capabilities of the device to
// allow reservation matching.
// * Request: sent by a client to request a device with certain capabilities in
// a reservation.
//
// Several of the fields in this message have different semantics depending on
// which of which of these contexts it is used. These semantics are described
// below.
//
// Several messages in Worker and its submessages have the concept of keys and
// values, such as `Worker.Property` and `Device.Property`. All keys are simple
// strings, but certain keys are "standard" keys and should be broadly supported
// across farms and implementations; these are listed below each relevant
// message. Bot implementations or farm admins may add *additional* keys, but
// these SHOULD all begin with an underscore so they do not conflict with
// standard keys that may be added in the future.
//
// Keys are not context sensitive.
//
// See http://goo.gl/NurY8g for more information on the Worker message.
type Worker struct {
// A list of devices; the first device is the primary device. See the `Device`
// message for more information.
Devices []*Device `protobuf:"bytes,1,rep,name=devices" json:"devices,omitempty"`
// A worker may contain "global" properties. For example, certain machines
// might be reserved for certain types of jobs, like short-running compilation
// versus long-running integration tests. This property is known as a "pool"
// and is not related to any one device within the worker; rather, it applies
// to the worker as a whole.
//
// The behaviour of repeated keys is identical to that of Device.Property.
Properties []*Worker_Property `protobuf:"bytes,2,rep,name=properties" json:"properties,omitempty"`
}
func (m *Worker) Reset() { *m = Worker{} }
func (m *Worker) String() string { return proto.CompactTextString(m) }
func (*Worker) ProtoMessage() {}
func (*Worker) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Worker) GetDevices() []*Device {
if m != nil {
return m.Devices
}
return nil
}
func (m *Worker) GetProperties() []*Worker_Property {
if m != nil {
return m.Properties
}
return nil
}
// A global property; see the `properties` field for more information.
type Worker_Property struct {
// For general information on keys, see the documentation to `Worker`.
//
// The current set of standard keys are:
//
// * pool: different workers can be reserved for different purposes. For
// example, an admin might want to segregate long-running integration tests
// from short-running unit tests, so unit tests will always get some
// throughput. To support this, the server can assign different values for
// `pool` (such as "itest" and "utest") to different workers, and then have
// jobs request workers from those pools.
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
// The property's value.
Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}
func (m *Worker_Property) Reset() { *m = Worker_Property{} }
func (m *Worker_Property) String() string { return proto.CompactTextString(m) }
func (*Worker_Property) ProtoMessage() {}
func (*Worker_Property) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
func (m *Worker_Property) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *Worker_Property) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// Any device, including computers, phones, accelerators (e.g. GPUs), etc. All
// names must be unique.
type Device struct {
// The handle can be thought of as the "name" of the device, and must be
// unique within a Worker.
//
// In the Status context, the handle should be some human-understandable name,
// perhaps corresponding to a label physically written on the device to make
// it easy to locate. In the Request context, the name should be the
// *logical* name expected by the task. The bot is responsible for mapping the
// logical name expected by the task to a machine-readable name that the task
// can actually use, such as a USB address. The method by which this mapping
// is communicated to the task is not covered in this API.
Handle string `protobuf:"bytes,1,opt,name=handle" json:"handle,omitempty"`
// Properties of this device that don't change based on the tasks that are
// running on it, e.g. OS, CPU architecture, etc.
//
// Keys may be repeated, and have the following interpretation:
//
// * Status context: the device can support *any* the listed values. For
// example, an "ISA" property might include "x86", "x86-64" and "sse4".
//
// * Request context: the device *must* support *all* of the listed values.
Properties []*Device_Property `protobuf:"bytes,2,rep,name=properties" json:"properties,omitempty"`
}
func (m *Device) Reset() { *m = Device{} }
func (m *Device) String() string { return proto.CompactTextString(m) }
func (*Device) ProtoMessage() {}
func (*Device) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *Device) GetHandle() string {
if m != nil {
return m.Handle
}
return ""
}
func (m *Device) GetProperties() []*Device_Property {
if m != nil {
return m.Properties
}
return nil
}
// A device property; see `properties` for more information.
type Device_Property struct {
// For general information on keys, see the documentation to `Worker`.
//
// The current set of standard keys are:
//
// * os: a human-readable description of the OS. Examples include `linux`,
// `ubuntu` and `ubuntu 14.04` (note that a bot may advertise itself as more
// than one). This will be replaced in the future by more well-structured
// keys and values to represent OS variants.
//
// * has-docker: "true" if the bot has Docker installed. This will be
// replaced in the future by a more structured message for Docker support.
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
// The property's value.
Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}
func (m *Device_Property) Reset() { *m = Device_Property{} }
func (m *Device_Property) String() string { return proto.CompactTextString(m) }
func (*Device_Property) ProtoMessage() {}
func (*Device_Property) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} }
func (m *Device_Property) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *Device_Property) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// AdminTemp is a prelimiary set of administration tasks. It's called "Temp"
// because we do not yet know the best way to represent admin tasks; it's
// possible that this will be entirely replaced in later versions of this API.
@ -641,15 +482,37 @@ func (m *Device_Property) GetValue() string {
// project (http://github.com/luci/luci-py/appengine/swarming).
type AdminTemp struct {
// The admin action; see `Command` for legal values.
Command AdminTemp_Command `protobuf:"varint,1,opt,name=command,enum=google.devtools.remoteworkers.v1test2.AdminTemp_Command" json:"command,omitempty"`
Command AdminTemp_Command `protobuf:"varint,1,opt,name=command,proto3,enum=google.devtools.remoteworkers.v1test2.AdminTemp_Command" json:"command,omitempty"`
// The argument to the admin action; see `Command` for semantics.
Arg string `protobuf:"bytes,2,opt,name=arg" json:"arg,omitempty"`
Arg string `protobuf:"bytes,2,opt,name=arg,proto3" json:"arg,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AdminTemp) Reset() { *m = AdminTemp{} }
func (m *AdminTemp) String() string { return proto.CompactTextString(m) }
func (*AdminTemp) ProtoMessage() {}
func (*AdminTemp) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *AdminTemp) Reset() { *m = AdminTemp{} }
func (m *AdminTemp) String() string { return proto.CompactTextString(m) }
func (*AdminTemp) ProtoMessage() {}
func (*AdminTemp) Descriptor() ([]byte, []int) {
return fileDescriptor_bots_a76feaae86db3e89, []int{2}
}
func (m *AdminTemp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AdminTemp.Unmarshal(m, b)
}
func (m *AdminTemp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AdminTemp.Marshal(b, m, deterministic)
}
func (dst *AdminTemp) XXX_Merge(src proto.Message) {
xxx_messageInfo_AdminTemp.Merge(dst, src)
}
func (m *AdminTemp) XXX_Size() int {
return xxx_messageInfo_AdminTemp.Size(m)
}
func (m *AdminTemp) XXX_DiscardUnknown() {
xxx_messageInfo_AdminTemp.DiscardUnknown(m)
}
var xxx_messageInfo_AdminTemp proto.InternalMessageInfo
func (m *AdminTemp) GetCommand() AdminTemp_Command {
if m != nil {
@ -668,15 +531,37 @@ func (m *AdminTemp) GetArg() string {
// Request message for CreateBotSession.
type CreateBotSessionRequest struct {
// The farm resource.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The bot session to create. Server-assigned fields like name must be unset.
BotSession *BotSession `protobuf:"bytes,2,opt,name=bot_session,json=botSession" json:"bot_session,omitempty"`
BotSession *BotSession `protobuf:"bytes,2,opt,name=bot_session,json=botSession,proto3" json:"bot_session,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateBotSessionRequest) Reset() { *m = CreateBotSessionRequest{} }
func (m *CreateBotSessionRequest) String() string { return proto.CompactTextString(m) }
func (*CreateBotSessionRequest) ProtoMessage() {}
func (*CreateBotSessionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *CreateBotSessionRequest) Reset() { *m = CreateBotSessionRequest{} }
func (m *CreateBotSessionRequest) String() string { return proto.CompactTextString(m) }
func (*CreateBotSessionRequest) ProtoMessage() {}
func (*CreateBotSessionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bots_a76feaae86db3e89, []int{3}
}
func (m *CreateBotSessionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateBotSessionRequest.Unmarshal(m, b)
}
func (m *CreateBotSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateBotSessionRequest.Marshal(b, m, deterministic)
}
func (dst *CreateBotSessionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateBotSessionRequest.Merge(dst, src)
}
func (m *CreateBotSessionRequest) XXX_Size() int {
return xxx_messageInfo_CreateBotSessionRequest.Size(m)
}
func (m *CreateBotSessionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateBotSessionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateBotSessionRequest proto.InternalMessageInfo
func (m *CreateBotSessionRequest) GetParent() string {
if m != nil {
@ -695,18 +580,40 @@ func (m *CreateBotSessionRequest) GetBotSession() *BotSession {
// Request message for UpdateBotSession.
type UpdateBotSessionRequest struct {
// The bot session name. Must match bot_session.name.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The bot session resource to update.
BotSession *BotSession `protobuf:"bytes,2,opt,name=bot_session,json=botSession" json:"bot_session,omitempty"`
BotSession *BotSession `protobuf:"bytes,2,opt,name=bot_session,json=botSession,proto3" json:"bot_session,omitempty"`
// The fields on the bot that should be updated. See the BotSession resource
// for which fields are updatable by which caller.
UpdateMask *google_protobuf3.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateBotSessionRequest) Reset() { *m = UpdateBotSessionRequest{} }
func (m *UpdateBotSessionRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateBotSessionRequest) ProtoMessage() {}
func (*UpdateBotSessionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *UpdateBotSessionRequest) Reset() { *m = UpdateBotSessionRequest{} }
func (m *UpdateBotSessionRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateBotSessionRequest) ProtoMessage() {}
func (*UpdateBotSessionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bots_a76feaae86db3e89, []int{4}
}
func (m *UpdateBotSessionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateBotSessionRequest.Unmarshal(m, b)
}
func (m *UpdateBotSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateBotSessionRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateBotSessionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateBotSessionRequest.Merge(dst, src)
}
func (m *UpdateBotSessionRequest) XXX_Size() int {
return xxx_messageInfo_UpdateBotSessionRequest.Size(m)
}
func (m *UpdateBotSessionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateBotSessionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateBotSessionRequest proto.InternalMessageInfo
func (m *UpdateBotSessionRequest) GetName() string {
if m != nil {
@ -722,7 +629,7 @@ func (m *UpdateBotSessionRequest) GetBotSession() *BotSession {
return nil
}
func (m *UpdateBotSessionRequest) GetUpdateMask() *google_protobuf3.FieldMask {
func (m *UpdateBotSessionRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
@ -732,17 +639,39 @@ func (m *UpdateBotSessionRequest) GetUpdateMask() *google_protobuf3.FieldMask {
// Request message for PostBotEventTemp
type PostBotEventTempRequest struct {
// The bot session name.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The type of bot event.
Type PostBotEventTempRequest_Type `protobuf:"varint,2,opt,name=type,enum=google.devtools.remoteworkers.v1test2.PostBotEventTempRequest_Type" json:"type,omitempty"`
Type PostBotEventTempRequest_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.devtools.remoteworkers.v1test2.PostBotEventTempRequest_Type" json:"type,omitempty"`
// A human-readable message.
Msg string `protobuf:"bytes,3,opt,name=msg" json:"msg,omitempty"`
Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PostBotEventTempRequest) Reset() { *m = PostBotEventTempRequest{} }
func (m *PostBotEventTempRequest) String() string { return proto.CompactTextString(m) }
func (*PostBotEventTempRequest) ProtoMessage() {}
func (*PostBotEventTempRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *PostBotEventTempRequest) Reset() { *m = PostBotEventTempRequest{} }
func (m *PostBotEventTempRequest) String() string { return proto.CompactTextString(m) }
func (*PostBotEventTempRequest) ProtoMessage() {}
func (*PostBotEventTempRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bots_a76feaae86db3e89, []int{5}
}
func (m *PostBotEventTempRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PostBotEventTempRequest.Unmarshal(m, b)
}
func (m *PostBotEventTempRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PostBotEventTempRequest.Marshal(b, m, deterministic)
}
func (dst *PostBotEventTempRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PostBotEventTempRequest.Merge(dst, src)
}
func (m *PostBotEventTempRequest) XXX_Size() int {
return xxx_messageInfo_PostBotEventTempRequest.Size(m)
}
func (m *PostBotEventTempRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PostBotEventTempRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PostBotEventTempRequest proto.InternalMessageInfo
func (m *PostBotEventTempRequest) GetName() string {
if m != nil {
@ -768,10 +697,6 @@ func (m *PostBotEventTempRequest) GetMsg() string {
func init() {
proto.RegisterType((*BotSession)(nil), "google.devtools.remoteworkers.v1test2.BotSession")
proto.RegisterType((*Lease)(nil), "google.devtools.remoteworkers.v1test2.Lease")
proto.RegisterType((*Worker)(nil), "google.devtools.remoteworkers.v1test2.Worker")
proto.RegisterType((*Worker_Property)(nil), "google.devtools.remoteworkers.v1test2.Worker.Property")
proto.RegisterType((*Device)(nil), "google.devtools.remoteworkers.v1test2.Device")
proto.RegisterType((*Device_Property)(nil), "google.devtools.remoteworkers.v1test2.Device.Property")
proto.RegisterType((*AdminTemp)(nil), "google.devtools.remoteworkers.v1test2.AdminTemp")
proto.RegisterType((*CreateBotSessionRequest)(nil), "google.devtools.remoteworkers.v1test2.CreateBotSessionRequest")
proto.RegisterType((*UpdateBotSessionRequest)(nil), "google.devtools.remoteworkers.v1test2.UpdateBotSessionRequest")
@ -790,8 +715,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Bots service
// BotsClient is the client API for Bots service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BotsClient interface {
// CreateBotSession is called when the bot first joins the farm, and
// establishes a session ID to ensure that multiple machines do not register
@ -805,7 +731,7 @@ type BotsClient interface {
// event has occurred. This method is subject to change or removal in future
// revisions of this API; we may simply want to replace it with StackDriver or
// some other common interface.
PostBotEventTemp(ctx context.Context, in *PostBotEventTempRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
PostBotEventTemp(ctx context.Context, in *PostBotEventTempRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type botsClient struct {
@ -818,7 +744,7 @@ func NewBotsClient(cc *grpc.ClientConn) BotsClient {
func (c *botsClient) CreateBotSession(ctx context.Context, in *CreateBotSessionRequest, opts ...grpc.CallOption) (*BotSession, error) {
out := new(BotSession)
err := grpc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Bots/CreateBotSession", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Bots/CreateBotSession", in, out, opts...)
if err != nil {
return nil, err
}
@ -827,24 +753,23 @@ func (c *botsClient) CreateBotSession(ctx context.Context, in *CreateBotSessionR
func (c *botsClient) UpdateBotSession(ctx context.Context, in *UpdateBotSessionRequest, opts ...grpc.CallOption) (*BotSession, error) {
out := new(BotSession)
err := grpc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Bots/UpdateBotSession", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Bots/UpdateBotSession", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *botsClient) PostBotEventTemp(ctx context.Context, in *PostBotEventTempRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) {
out := new(google_protobuf2.Empty)
err := grpc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Bots/PostBotEventTemp", in, out, c.cc, opts...)
func (c *botsClient) PostBotEventTemp(ctx context.Context, in *PostBotEventTempRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Bots/PostBotEventTemp", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Bots service
// BotsServer is the server API for Bots service.
type BotsServer interface {
// CreateBotSession is called when the bot first joins the farm, and
// establishes a session ID to ensure that multiple machines do not register
@ -858,7 +783,7 @@ type BotsServer interface {
// event has occurred. This method is subject to change or removal in future
// revisions of this API; we may simply want to replace it with StackDriver or
// some other common interface.
PostBotEventTemp(context.Context, *PostBotEventTempRequest) (*google_protobuf2.Empty, error)
PostBotEventTemp(context.Context, *PostBotEventTempRequest) (*empty.Empty, error)
}
func RegisterBotsServer(s *grpc.Server, srv BotsServer) {
@ -940,76 +865,78 @@ var _Bots_serviceDesc = grpc.ServiceDesc{
Metadata: "google/devtools/remoteworkers/v1test2/bots.proto",
}
func init() { proto.RegisterFile("google/devtools/remoteworkers/v1test2/bots.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 1083 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x8e, 0xdb, 0x44,
0x14, 0xc6, 0xd9, 0xc4, 0x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ed, 0x51, 0xbe, 0x7c, 0xb5, 0xe9, 0x1f, 0x7d, 0xf7, 0xe2, 0x8f, 0x1f, 0x32, 0xa6, 0x5e, 0x59,
0x3c, 0xd1, 0xbe, 0x8d, 0x7b, 0xea, 0x61, 0xb5, 0xfa, 0xdc, 0x5c, 0x96, 0x22, 0xbb, 0xbf, 0x5a,
0xdd, 0x52, 0xfe, 0x66, 0x73, 0x6c, 0x2d, 0xff, 0x82, 0xae, 0x7a, 0x0d, 0xf9, 0xb5, 0x15, 0xf9,
0xa2, 0x96, 0x1f, 0x56, 0xab, 0xab, 0xda, 0xcd, 0xea, 0xf3, 0x75, 0xf9, 0x3f, 0x2a, 0xa0, 0x6d,
0x16, 0xee, 0xd6, 0xf2, 0x2f, 0xa8, 0xf8, 0xf2, 0xad, 0x73, 0x7d, 0x69, 0x8b, 0x17, 0xe7, 0xc2,
0xe2, 0xea, 0x2b, 0x35, 0x86, 0x94, 0xc5, 0xb4, 0xf7, 0x95, 0x6a, 0xdd, 0xf9, 0x12, 0x27, 0x7c,
0x63, 0x3a, 0x71, 0x83, 0xb1, 0x41, 0xa3, 0xb1, 0x39, 0x26, 0x81, 0x64, 0x37, 0xe3, 0x2d, 0x37,
0xf4, 0xd8, 0x2b, 0x9e, 0xdc, 0x0f, 0xd6, 0x56, 0x87, 0xaa, 0x84, 0x7f, 0xf8, 0x77, 0x00, 0x00,
0x00, 0xff, 0xff, 0x7c, 0xc5, 0x7e, 0x38, 0xb0, 0x0b, 0x00, 0x00,
func init() {
proto.RegisterFile("google/devtools/remoteworkers/v1test2/bots.proto", fileDescriptor_bots_a76feaae86db3e89)
}
var fileDescriptor_bots_a76feaae86db3e89 = []byte{
// 1075 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x8e, 0xdb, 0x44,
0x14, 0xc6, 0xce, 0x5f, 0x73, 0xd2, 0xa6, 0xee, 0x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, 0xed, 0x56, 0xed, 0xc5, 0xba, 0xfc, 0x9f, 0x15, 0xd0, 0x36, 0x8d,
0x9b, 0x5a, 0xfe, 0x15, 0x8e, 0xaf, 0xdc, 0xbd, 0x34, 0x97, 0xb6, 0xf8, 0xb0, 0x5a, 0x96, 0xb8,
0xf6, 0x56, 0x8d, 0x21, 0x65, 0x71, 0xd8, 0x87, 0x4a, 0xad, 0xf9, 0xa7, 0x02, 0x1f, 0x9f, 0x50,
0x3f, 0x9d, 0xa8, 0xe6, 0x1d, 0x2c, 0x8f, 0xe3, 0xff, 0x33, 0x26, 0x2c, 0x36, 0x50, 0xbe, 0xc1,
0x09, 0x77, 0x4a, 0x67, 0x6e, 0x30, 0x35, 0x69, 0x34, 0xb5, 0xa6, 0x24, 0x90, 0xf2, 0xac, 0xf8,
0xca, 0x0d, 0x3d, 0xf6, 0x96, 0xef, 0xca, 0x47, 0x6b, 0xa7, 0xbf, 0xa8, 0x2a, 0x3e, 0xfe, 0x4d,
0xbd, 0xbf, 0x1f, 0x47, 0x6e, 0x93, 0x33, 0x47, 0xaa, 0x5a, 0x4b, 0x6f, 0x3e, 0xd9, 0x75, 0x04,
0x75, 0x9c, 0x97, 0xb9, 0x3e, 0xfd, 0x27, 0x00, 0x00, 0xff, 0xff, 0x75, 0x00, 0xcd, 0xd5, 0x39,
0x0b, 0x00, 0x00,
}

View File

@ -1,32 +1,63 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/remoteworkers/v1test2/command.proto
package remoteworkers
package remoteworkers // import "google.golang.org/genproto/googleapis/devtools/remoteworkers/v1test2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf5 "github.com/golang/protobuf/ptypes/duration"
import any "github.com/golang/protobuf/ptypes/any"
import duration "github.com/golang/protobuf/ptypes/duration"
import status "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
// Describes a shell-style task to execute.
// 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
// Describes a shell-style task to execute, suitable for providing as the Bots
// interface's `Lease.payload` field.
type CommandTask struct {
// The inputs to the task.
Inputs *CommandTask_Inputs `protobuf:"bytes,1,opt,name=inputs" json:"inputs,omitempty"`
Inputs *CommandTask_Inputs `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"`
// The expected outputs from the task.
ExpectedOutputs *CommandTask_Outputs `protobuf:"bytes,4,opt,name=expected_outputs,json=expectedOutputs" json:"expected_outputs,omitempty"`
ExpectedOutputs *CommandTask_Outputs `protobuf:"bytes,4,opt,name=expected_outputs,json=expectedOutputs,proto3" json:"expected_outputs,omitempty"`
// The timeouts of this task.
Timeouts *CommandTask_Timeouts `protobuf:"bytes,5,opt,name=timeouts" json:"timeouts,omitempty"`
Timeouts *CommandTask_Timeouts `protobuf:"bytes,5,opt,name=timeouts,proto3" json:"timeouts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandTask) Reset() { *m = CommandTask{} }
func (m *CommandTask) String() string { return proto.CompactTextString(m) }
func (*CommandTask) ProtoMessage() {}
func (*CommandTask) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *CommandTask) Reset() { *m = CommandTask{} }
func (m *CommandTask) String() string { return proto.CompactTextString(m) }
func (*CommandTask) ProtoMessage() {}
func (*CommandTask) Descriptor() ([]byte, []int) {
return fileDescriptor_command_56eedbbbc833397d, []int{0}
}
func (m *CommandTask) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandTask.Unmarshal(m, b)
}
func (m *CommandTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandTask.Marshal(b, m, deterministic)
}
func (dst *CommandTask) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandTask.Merge(dst, src)
}
func (m *CommandTask) XXX_Size() int {
return xxx_messageInfo_CommandTask.Size(m)
}
func (m *CommandTask) XXX_DiscardUnknown() {
xxx_messageInfo_CommandTask.DiscardUnknown(m)
}
var xxx_messageInfo_CommandTask proto.InternalMessageInfo
func (m *CommandTask) GetInputs() *CommandTask_Inputs {
if m != nil {
@ -51,8 +82,17 @@ func (m *CommandTask) GetTimeouts() *CommandTask_Timeouts {
// Describes the inputs to a shell-style task.
type CommandTask_Inputs struct {
// The command itself to run (e.g., argv)
Arguments []string `protobuf:"bytes,1,rep,name=arguments" json:"arguments,omitempty"`
// The command itself to run (e.g., argv).
//
// This field should be passed directly to the underlying operating system,
// and so it must be sensible to that operating system. For example, on
// Windows, the first argument might be "C:\Windows\System32\ping.exe" -
// that is, using drive letters and backslashes. A command for a *nix
// system, on the other hand, would use forward slashes.
//
// All other fields in the RWAPI must consistently use forward slashes,
// since those fields may be interpretted by both the service and the bot.
Arguments []string `protobuf:"bytes,1,rep,name=arguments,proto3" json:"arguments,omitempty"`
// The input filesystem to be set up prior to the task beginning. The
// contents should be a repeated set of FileMetadata messages though other
// formats are allowed if better for the implementation (eg, a LUCI-style
@ -62,15 +102,37 @@ type CommandTask_Inputs struct {
// metadata, in which case it may be useful to break up portions of the
// filesystem that change frequently (eg, specific input files) from those
// that don't (eg, standard header files).
Files []*Digest `protobuf:"bytes,2,rep,name=files" json:"files,omitempty"`
Files []*Digest `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
// All environment variables required by the task.
EnvironmentVariables []*CommandTask_Inputs_EnvironmentVariable `protobuf:"bytes,3,rep,name=environment_variables,json=environmentVariables" json:"environment_variables,omitempty"`
EnvironmentVariables []*CommandTask_Inputs_EnvironmentVariable `protobuf:"bytes,3,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandTask_Inputs) Reset() { *m = CommandTask_Inputs{} }
func (m *CommandTask_Inputs) String() string { return proto.CompactTextString(m) }
func (*CommandTask_Inputs) ProtoMessage() {}
func (*CommandTask_Inputs) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
func (m *CommandTask_Inputs) Reset() { *m = CommandTask_Inputs{} }
func (m *CommandTask_Inputs) String() string { return proto.CompactTextString(m) }
func (*CommandTask_Inputs) ProtoMessage() {}
func (*CommandTask_Inputs) Descriptor() ([]byte, []int) {
return fileDescriptor_command_56eedbbbc833397d, []int{0, 0}
}
func (m *CommandTask_Inputs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandTask_Inputs.Unmarshal(m, b)
}
func (m *CommandTask_Inputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandTask_Inputs.Marshal(b, m, deterministic)
}
func (dst *CommandTask_Inputs) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandTask_Inputs.Merge(dst, src)
}
func (m *CommandTask_Inputs) XXX_Size() int {
return xxx_messageInfo_CommandTask_Inputs.Size(m)
}
func (m *CommandTask_Inputs) XXX_DiscardUnknown() {
xxx_messageInfo_CommandTask_Inputs.DiscardUnknown(m)
}
var xxx_messageInfo_CommandTask_Inputs proto.InternalMessageInfo
func (m *CommandTask_Inputs) GetArguments() []string {
if m != nil {
@ -96,9 +158,12 @@ func (m *CommandTask_Inputs) GetEnvironmentVariables() []*CommandTask_Inputs_Env
// An environment variable required by this task.
type CommandTask_Inputs_EnvironmentVariable struct {
// The envvar name.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The envvar value.
Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandTask_Inputs_EnvironmentVariable) Reset() {
@ -107,8 +172,25 @@ func (m *CommandTask_Inputs_EnvironmentVariable) Reset() {
func (m *CommandTask_Inputs_EnvironmentVariable) String() string { return proto.CompactTextString(m) }
func (*CommandTask_Inputs_EnvironmentVariable) ProtoMessage() {}
func (*CommandTask_Inputs_EnvironmentVariable) Descriptor() ([]byte, []int) {
return fileDescriptor1, []int{0, 0, 0}
return fileDescriptor_command_56eedbbbc833397d, []int{0, 0, 0}
}
func (m *CommandTask_Inputs_EnvironmentVariable) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable.Unmarshal(m, b)
}
func (m *CommandTask_Inputs_EnvironmentVariable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable.Marshal(b, m, deterministic)
}
func (dst *CommandTask_Inputs_EnvironmentVariable) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable.Merge(dst, src)
}
func (m *CommandTask_Inputs_EnvironmentVariable) XXX_Size() int {
return xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable.Size(m)
}
func (m *CommandTask_Inputs_EnvironmentVariable) XXX_DiscardUnknown() {
xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable.DiscardUnknown(m)
}
var xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable proto.InternalMessageInfo
func (m *CommandTask_Inputs_EnvironmentVariable) GetName() string {
if m != nil {
@ -126,16 +208,52 @@ func (m *CommandTask_Inputs_EnvironmentVariable) GetValue() string {
// Describes the expected outputs of the command.
type CommandTask_Outputs struct {
// A list of expected files, relative to the execution root.
Files []string `protobuf:"bytes,1,rep,name=files" json:"files,omitempty"`
// A list of expected directories, relative to the execution root.
Directories []string `protobuf:"bytes,2,rep,name=directories" json:"directories,omitempty"`
// A list of expected files, relative to the execution root. All paths
// MUST be delimited by forward slashes.
Files []string `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
// A list of expected directories, relative to the execution root. All paths
// MUST be delimited by forward slashes.
Directories []string `protobuf:"bytes,2,rep,name=directories,proto3" json:"directories,omitempty"`
// The destination to which any stdout should be sent. The method by which
// the bot should send the stream contents to that destination is not
// defined in this API. As examples, the destination could be a file
// referenced in the `files` field in this message, or it could be a URI
// that must be written via the ByteStream API.
StdoutDestination string `protobuf:"bytes,3,opt,name=stdout_destination,json=stdoutDestination,proto3" json:"stdout_destination,omitempty"`
// The destination to which any stderr should be sent. The method by which
// the bot should send the stream contents to that destination is not
// defined in this API. As examples, the destination could be a file
// referenced in the `files` field in this message, or it could be a URI
// that must be written via the ByteStream API.
StderrDestination string `protobuf:"bytes,4,opt,name=stderr_destination,json=stderrDestination,proto3" json:"stderr_destination,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandTask_Outputs) Reset() { *m = CommandTask_Outputs{} }
func (m *CommandTask_Outputs) String() string { return proto.CompactTextString(m) }
func (*CommandTask_Outputs) ProtoMessage() {}
func (*CommandTask_Outputs) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 1} }
func (m *CommandTask_Outputs) Reset() { *m = CommandTask_Outputs{} }
func (m *CommandTask_Outputs) String() string { return proto.CompactTextString(m) }
func (*CommandTask_Outputs) ProtoMessage() {}
func (*CommandTask_Outputs) Descriptor() ([]byte, []int) {
return fileDescriptor_command_56eedbbbc833397d, []int{0, 1}
}
func (m *CommandTask_Outputs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandTask_Outputs.Unmarshal(m, b)
}
func (m *CommandTask_Outputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandTask_Outputs.Marshal(b, m, deterministic)
}
func (dst *CommandTask_Outputs) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandTask_Outputs.Merge(dst, src)
}
func (m *CommandTask_Outputs) XXX_Size() int {
return xxx_messageInfo_CommandTask_Outputs.Size(m)
}
func (m *CommandTask_Outputs) XXX_DiscardUnknown() {
xxx_messageInfo_CommandTask_Outputs.DiscardUnknown(m)
}
var xxx_messageInfo_CommandTask_Outputs proto.InternalMessageInfo
func (m *CommandTask_Outputs) GetFiles() []string {
if m != nil {
@ -151,70 +269,129 @@ func (m *CommandTask_Outputs) GetDirectories() []string {
return nil
}
func (m *CommandTask_Outputs) GetStdoutDestination() string {
if m != nil {
return m.StdoutDestination
}
return ""
}
func (m *CommandTask_Outputs) GetStderrDestination() string {
if m != nil {
return m.StderrDestination
}
return ""
}
// Describes the timeouts associated with this task.
type CommandTask_Timeouts struct {
// This specifies the maximum time that the task can run, excluding the
// time required to download inputs or upload outputs. That is, the worker
// will terminate the task if it runs longer than this.
Execution *google_protobuf5.Duration `protobuf:"bytes,1,opt,name=execution" json:"execution,omitempty"`
Execution *duration.Duration `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"`
// This specifies the maximum amount of time the task can be idle - that is,
// go without generating some output in either stdout or stderr. If the
// process is silent for more than the specified time, the worker will
// terminate the task.
Idle *google_protobuf5.Duration `protobuf:"bytes,2,opt,name=idle" json:"idle,omitempty"`
Idle *duration.Duration `protobuf:"bytes,2,opt,name=idle,proto3" json:"idle,omitempty"`
// If the execution or IO timeouts are exceeded, the worker will try to
// gracefully terminate the task and return any existing logs. However,
// tasks may be hard-frozen in which case this process will fail. This
// timeout specifies how long to wait for a terminated task to shut down
// gracefully (e.g. via SIGTERM) before we bring down the hammer (e.g.
// SIGKILL on *nix, CTRL_BREAK_EVENT on Windows).
Shutdown *google_protobuf5.Duration `protobuf:"bytes,3,opt,name=shutdown" json:"shutdown,omitempty"`
Shutdown *duration.Duration `protobuf:"bytes,3,opt,name=shutdown,proto3" json:"shutdown,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandTask_Timeouts) Reset() { *m = CommandTask_Timeouts{} }
func (m *CommandTask_Timeouts) String() string { return proto.CompactTextString(m) }
func (*CommandTask_Timeouts) ProtoMessage() {}
func (*CommandTask_Timeouts) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 2} }
func (m *CommandTask_Timeouts) Reset() { *m = CommandTask_Timeouts{} }
func (m *CommandTask_Timeouts) String() string { return proto.CompactTextString(m) }
func (*CommandTask_Timeouts) ProtoMessage() {}
func (*CommandTask_Timeouts) Descriptor() ([]byte, []int) {
return fileDescriptor_command_56eedbbbc833397d, []int{0, 2}
}
func (m *CommandTask_Timeouts) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandTask_Timeouts.Unmarshal(m, b)
}
func (m *CommandTask_Timeouts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandTask_Timeouts.Marshal(b, m, deterministic)
}
func (dst *CommandTask_Timeouts) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandTask_Timeouts.Merge(dst, src)
}
func (m *CommandTask_Timeouts) XXX_Size() int {
return xxx_messageInfo_CommandTask_Timeouts.Size(m)
}
func (m *CommandTask_Timeouts) XXX_DiscardUnknown() {
xxx_messageInfo_CommandTask_Timeouts.DiscardUnknown(m)
}
func (m *CommandTask_Timeouts) GetExecution() *google_protobuf5.Duration {
var xxx_messageInfo_CommandTask_Timeouts proto.InternalMessageInfo
func (m *CommandTask_Timeouts) GetExecution() *duration.Duration {
if m != nil {
return m.Execution
}
return nil
}
func (m *CommandTask_Timeouts) GetIdle() *google_protobuf5.Duration {
func (m *CommandTask_Timeouts) GetIdle() *duration.Duration {
if m != nil {
return m.Idle
}
return nil
}
func (m *CommandTask_Timeouts) GetShutdown() *google_protobuf5.Duration {
func (m *CommandTask_Timeouts) GetShutdown() *duration.Duration {
if m != nil {
return m.Shutdown
}
return nil
}
// DEPRECATED - use CommandResult instead.
// Describes the actual outputs from the task.
type CommandOutputs struct {
// exit_code is only fully reliable if the status' code is OK. If the task
// exceeded its deadline or was cancelled, the process may still produce an
// exit code as it is cancelled, and this will be populated, but a successful
// (zero) is unlikely to be correct unless the status code is OK.
ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode" json:"exit_code,omitempty"`
ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
// The output files. The blob referenced by the digest should contain
// one of the following (implementation-dependent):
// * A marshalled DirectoryMetadata of the returned filesystem
// * A LUCI-style .isolated file
Outputs *Digest `protobuf:"bytes,2,opt,name=outputs" json:"outputs,omitempty"`
Outputs *Digest `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandOutputs) Reset() { *m = CommandOutputs{} }
func (m *CommandOutputs) String() string { return proto.CompactTextString(m) }
func (*CommandOutputs) ProtoMessage() {}
func (*CommandOutputs) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *CommandOutputs) Reset() { *m = CommandOutputs{} }
func (m *CommandOutputs) String() string { return proto.CompactTextString(m) }
func (*CommandOutputs) ProtoMessage() {}
func (*CommandOutputs) Descriptor() ([]byte, []int) {
return fileDescriptor_command_56eedbbbc833397d, []int{1}
}
func (m *CommandOutputs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandOutputs.Unmarshal(m, b)
}
func (m *CommandOutputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandOutputs.Marshal(b, m, deterministic)
}
func (dst *CommandOutputs) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandOutputs.Merge(dst, src)
}
func (m *CommandOutputs) XXX_Size() int {
return xxx_messageInfo_CommandOutputs.Size(m)
}
func (m *CommandOutputs) XXX_DiscardUnknown() {
xxx_messageInfo_CommandOutputs.DiscardUnknown(m)
}
var xxx_messageInfo_CommandOutputs proto.InternalMessageInfo
func (m *CommandOutputs) GetExitCode() int32 {
if m != nil {
@ -230,60 +407,207 @@ func (m *CommandOutputs) GetOutputs() *Digest {
return nil
}
// DEPRECATED - use CommandResult instead.
// Can be used as part of CompleteRequest.metadata, or are part of a more
// sophisticated message.
type CommandOverhead struct {
// The elapsed time between calling Accept and Complete. The server will also
// have its own idea of what this should be, but this excludes the overhead of
// the RPCs and the bot response time.
Duration *google_protobuf5.Duration `protobuf:"bytes,1,opt,name=duration" json:"duration,omitempty"`
Duration *duration.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
// The amount of time *not* spent executing the command (ie
// uploading/downloading files).
Overhead *google_protobuf5.Duration `protobuf:"bytes,2,opt,name=overhead" json:"overhead,omitempty"`
Overhead *duration.Duration `protobuf:"bytes,2,opt,name=overhead,proto3" json:"overhead,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandOverhead) Reset() { *m = CommandOverhead{} }
func (m *CommandOverhead) String() string { return proto.CompactTextString(m) }
func (*CommandOverhead) ProtoMessage() {}
func (*CommandOverhead) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *CommandOverhead) Reset() { *m = CommandOverhead{} }
func (m *CommandOverhead) String() string { return proto.CompactTextString(m) }
func (*CommandOverhead) ProtoMessage() {}
func (*CommandOverhead) Descriptor() ([]byte, []int) {
return fileDescriptor_command_56eedbbbc833397d, []int{2}
}
func (m *CommandOverhead) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandOverhead.Unmarshal(m, b)
}
func (m *CommandOverhead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandOverhead.Marshal(b, m, deterministic)
}
func (dst *CommandOverhead) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandOverhead.Merge(dst, src)
}
func (m *CommandOverhead) XXX_Size() int {
return xxx_messageInfo_CommandOverhead.Size(m)
}
func (m *CommandOverhead) XXX_DiscardUnknown() {
xxx_messageInfo_CommandOverhead.DiscardUnknown(m)
}
func (m *CommandOverhead) GetDuration() *google_protobuf5.Duration {
var xxx_messageInfo_CommandOverhead proto.InternalMessageInfo
func (m *CommandOverhead) GetDuration() *duration.Duration {
if m != nil {
return m.Duration
}
return nil
}
func (m *CommandOverhead) GetOverhead() *google_protobuf5.Duration {
func (m *CommandOverhead) GetOverhead() *duration.Duration {
if m != nil {
return m.Overhead
}
return nil
}
// All information about the execution of a command, suitable for providing as
// the Bots interface's `Lease.result` field.
type CommandResult struct {
// An overall status for the command. For example, if the command timed out,
// this might have a code of DEADLINE_EXCEEDED; if it was killed by the OS for
// memory exhaustion, it might have a code of RESOURCE_EXHAUSTED.
Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// The exit code of the process. An exit code of "0" should only be trusted if
// `status` has a code of OK (otherwise it may simply be unset).
ExitCode int32 `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
// The output files. The blob referenced by the digest should contain
// one of the following (implementation-dependent):
// * A marshalled DirectoryMetadata of the returned filesystem
// * A LUCI-style .isolated file
Outputs *Digest `protobuf:"bytes,3,opt,name=outputs,proto3" json:"outputs,omitempty"`
// The elapsed time between calling Accept and Complete. The server will also
// have its own idea of what this should be, but this excludes the overhead of
// the RPCs and the bot response time.
Duration *duration.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` // Deprecated: Do not use.
// The amount of time *not* spent executing the command (ie
// uploading/downloading files).
Overhead *duration.Duration `protobuf:"bytes,5,opt,name=overhead,proto3" json:"overhead,omitempty"` // Deprecated: Do not use.
// Implementation-dependent statistics about the task. Both servers and bots
// may define messages which can be encoded here; bots are free to provide
// statistics in multiple formats, and servers are free to choose one or more
// of the values to process and ignore others. In particular, it is *not*
// considered an error for the bot to provide the server with a field that it
// doesn't know about.
Statistics []*any.Any `protobuf:"bytes,6,rep,name=statistics,proto3" json:"statistics,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandResult) Reset() { *m = CommandResult{} }
func (m *CommandResult) String() string { return proto.CompactTextString(m) }
func (*CommandResult) ProtoMessage() {}
func (*CommandResult) Descriptor() ([]byte, []int) {
return fileDescriptor_command_56eedbbbc833397d, []int{3}
}
func (m *CommandResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandResult.Unmarshal(m, b)
}
func (m *CommandResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandResult.Marshal(b, m, deterministic)
}
func (dst *CommandResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandResult.Merge(dst, src)
}
func (m *CommandResult) XXX_Size() int {
return xxx_messageInfo_CommandResult.Size(m)
}
func (m *CommandResult) XXX_DiscardUnknown() {
xxx_messageInfo_CommandResult.DiscardUnknown(m)
}
var xxx_messageInfo_CommandResult proto.InternalMessageInfo
func (m *CommandResult) GetStatus() *status.Status {
if m != nil {
return m.Status
}
return nil
}
func (m *CommandResult) GetExitCode() int32 {
if m != nil {
return m.ExitCode
}
return 0
}
func (m *CommandResult) GetOutputs() *Digest {
if m != nil {
return m.Outputs
}
return nil
}
// Deprecated: Do not use.
func (m *CommandResult) GetDuration() *duration.Duration {
if m != nil {
return m.Duration
}
return nil
}
// Deprecated: Do not use.
func (m *CommandResult) GetOverhead() *duration.Duration {
if m != nil {
return m.Overhead
}
return nil
}
func (m *CommandResult) GetStatistics() []*any.Any {
if m != nil {
return m.Statistics
}
return nil
}
// The metadata for a file. Similar to the equivalent message in the Remote
// Execution API.
type FileMetadata struct {
// The path of this file. If this message is part of the
// CommandResult.output_files fields, the path is relative to the execution
// root and must correspond to an entry in CommandTask.outputs.files. If this
// CommandOutputs.outputs fields, the path is relative to the execution root
// and must correspond to an entry in CommandTask.outputs.files. If this
// message is part of a Directory message, then the path is relative to the
// root of that directory.
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
// root of that directory. All paths MUST be delimited by forward slashes.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// A pointer to the contents of the file. The method by which a client
// retrieves the contents from a CAS system is not defined here.
Digest *Digest `protobuf:"bytes,2,opt,name=digest" json:"digest,omitempty"`
Digest *Digest `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
// If the file is small enough, its contents may also or alternatively be
// listed here.
Contents []byte `protobuf:"bytes,3,opt,name=contents,proto3" json:"contents,omitempty"`
// Properties of the file
IsExecutable bool `protobuf:"varint,4,opt,name=is_executable,json=isExecutable" json:"is_executable,omitempty"`
IsExecutable bool `protobuf:"varint,4,opt,name=is_executable,json=isExecutable,proto3" json:"is_executable,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FileMetadata) Reset() { *m = FileMetadata{} }
func (m *FileMetadata) String() string { return proto.CompactTextString(m) }
func (*FileMetadata) ProtoMessage() {}
func (*FileMetadata) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
func (m *FileMetadata) Reset() { *m = FileMetadata{} }
func (m *FileMetadata) String() string { return proto.CompactTextString(m) }
func (*FileMetadata) ProtoMessage() {}
func (*FileMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_command_56eedbbbc833397d, []int{4}
}
func (m *FileMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FileMetadata.Unmarshal(m, b)
}
func (m *FileMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FileMetadata.Marshal(b, m, deterministic)
}
func (dst *FileMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_FileMetadata.Merge(dst, src)
}
func (m *FileMetadata) XXX_Size() int {
return xxx_messageInfo_FileMetadata.Size(m)
}
func (m *FileMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_FileMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_FileMetadata proto.InternalMessageInfo
func (m *FileMetadata) GetPath() string {
if m != nil {
@ -317,16 +641,38 @@ func (m *FileMetadata) GetIsExecutable() bool {
// Execution API.
type DirectoryMetadata struct {
// The path of the directory, as in [FileMetadata.path][google.devtools.remoteworkers.v1test2.FileMetadata.path].
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// A pointer to the contents of the directory, in the form of a marshalled
// Directory message.
Digest *Digest `protobuf:"bytes,2,opt,name=digest" json:"digest,omitempty"`
Digest *Digest `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DirectoryMetadata) Reset() { *m = DirectoryMetadata{} }
func (m *DirectoryMetadata) String() string { return proto.CompactTextString(m) }
func (*DirectoryMetadata) ProtoMessage() {}
func (*DirectoryMetadata) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
func (m *DirectoryMetadata) Reset() { *m = DirectoryMetadata{} }
func (m *DirectoryMetadata) String() string { return proto.CompactTextString(m) }
func (*DirectoryMetadata) ProtoMessage() {}
func (*DirectoryMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_command_56eedbbbc833397d, []int{5}
}
func (m *DirectoryMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DirectoryMetadata.Unmarshal(m, b)
}
func (m *DirectoryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DirectoryMetadata.Marshal(b, m, deterministic)
}
func (dst *DirectoryMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_DirectoryMetadata.Merge(dst, src)
}
func (m *DirectoryMetadata) XXX_Size() int {
return xxx_messageInfo_DirectoryMetadata.Size(m)
}
func (m *DirectoryMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_DirectoryMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_DirectoryMetadata proto.InternalMessageInfo
func (m *DirectoryMetadata) GetPath() string {
if m != nil {
@ -342,24 +688,52 @@ func (m *DirectoryMetadata) GetDigest() *Digest {
return nil
}
// A reference to the contents of a file or a directory. If the latter, the has
// refers to the hash of a marshalled Directory message. Similar to the
// equivalent message in the Remote Execution API.
// The CommandTask and CommandResult messages assume the existence of a service
// that can serve blobs of content, identified by a hash and size known as a
// "digest." The method by which these blobs may be retrieved is not specified
// here, but a model implementation is in the Remote Execution API's
// "ContentAddressibleStorage" interface.
//
// In the context of the RWAPI, a Digest will virtually always refer to the
// contents of a file or a directory. The latter is represented by the
// byte-encoded Directory message.
type Digest struct {
// A string-encoded hash (eg "1a2b3c", not the byte array [0x1a, 0x2b, 0x3c])
// using an implementation-defined hash algorithm (eg SHA-256).
Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// The size of the contents. While this is not strictly required as part of an
// identifier (after all, any given hash will have exactly one canonical
// size), it's useful in almost all cases when one might want to send or
// retrieve blobs of content and is included here for this reason.
SizeBytes int64 `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes" json:"size_bytes,omitempty"`
SizeBytes int64 `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Digest) Reset() { *m = Digest{} }
func (m *Digest) String() string { return proto.CompactTextString(m) }
func (*Digest) ProtoMessage() {}
func (*Digest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
func (m *Digest) Reset() { *m = Digest{} }
func (m *Digest) String() string { return proto.CompactTextString(m) }
func (*Digest) ProtoMessage() {}
func (*Digest) Descriptor() ([]byte, []int) {
return fileDescriptor_command_56eedbbbc833397d, []int{6}
}
func (m *Digest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Digest.Unmarshal(m, b)
}
func (m *Digest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Digest.Marshal(b, m, deterministic)
}
func (dst *Digest) XXX_Merge(src proto.Message) {
xxx_messageInfo_Digest.Merge(dst, src)
}
func (m *Digest) XXX_Size() int {
return xxx_messageInfo_Digest.Size(m)
}
func (m *Digest) XXX_DiscardUnknown() {
xxx_messageInfo_Digest.DiscardUnknown(m)
}
var xxx_messageInfo_Digest proto.InternalMessageInfo
func (m *Digest) GetHash() string {
if m != nil {
@ -379,15 +753,37 @@ func (m *Digest) GetSizeBytes() int64 {
// Execution API.
type Directory struct {
// The files in this directory
Files []*FileMetadata `protobuf:"bytes,1,rep,name=files" json:"files,omitempty"`
Files []*FileMetadata `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
// Any subdirectories
Directories []*DirectoryMetadata `protobuf:"bytes,2,rep,name=directories" json:"directories,omitempty"`
Directories []*DirectoryMetadata `protobuf:"bytes,2,rep,name=directories,proto3" json:"directories,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Directory) Reset() { *m = Directory{} }
func (m *Directory) String() string { return proto.CompactTextString(m) }
func (*Directory) ProtoMessage() {}
func (*Directory) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
func (m *Directory) Reset() { *m = Directory{} }
func (m *Directory) String() string { return proto.CompactTextString(m) }
func (*Directory) ProtoMessage() {}
func (*Directory) Descriptor() ([]byte, []int) {
return fileDescriptor_command_56eedbbbc833397d, []int{7}
}
func (m *Directory) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Directory.Unmarshal(m, b)
}
func (m *Directory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Directory.Marshal(b, m, deterministic)
}
func (dst *Directory) XXX_Merge(src proto.Message) {
xxx_messageInfo_Directory.Merge(dst, src)
}
func (m *Directory) XXX_Size() int {
return xxx_messageInfo_Directory.Size(m)
}
func (m *Directory) XXX_DiscardUnknown() {
xxx_messageInfo_Directory.DiscardUnknown(m)
}
var xxx_messageInfo_Directory proto.InternalMessageInfo
func (m *Directory) GetFiles() []*FileMetadata {
if m != nil {
@ -411,6 +807,7 @@ func init() {
proto.RegisterType((*CommandTask_Timeouts)(nil), "google.devtools.remoteworkers.v1test2.CommandTask.Timeouts")
proto.RegisterType((*CommandOutputs)(nil), "google.devtools.remoteworkers.v1test2.CommandOutputs")
proto.RegisterType((*CommandOverhead)(nil), "google.devtools.remoteworkers.v1test2.CommandOverhead")
proto.RegisterType((*CommandResult)(nil), "google.devtools.remoteworkers.v1test2.CommandResult")
proto.RegisterType((*FileMetadata)(nil), "google.devtools.remoteworkers.v1test2.FileMetadata")
proto.RegisterType((*DirectoryMetadata)(nil), "google.devtools.remoteworkers.v1test2.DirectoryMetadata")
proto.RegisterType((*Digest)(nil), "google.devtools.remoteworkers.v1test2.Digest")
@ -418,51 +815,63 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/remoteworkers/v1test2/command.proto", fileDescriptor1)
proto.RegisterFile("google/devtools/remoteworkers/v1test2/command.proto", fileDescriptor_command_56eedbbbc833397d)
}
var fileDescriptor1 = []byte{
// 665 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0xcb, 0x6e, 0x13, 0x49,
0x14, 0x86, 0xe5, 0x38, 0x76, 0xec, 0xe3, 0xcc, 0x64, 0xa6, 0x26, 0x23, 0x19, 0x73, 0x51, 0x64,
0x84, 0x94, 0x4d, 0xba, 0x85, 0x23, 0xc4, 0x25, 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xa8, 0xd5, 0xdb, 0x9e, 0x33, 0xa1, 0xe9, 0xd1, 0xf8, 0xcd, 0x3b, 0xb9, 0xb9, 0x79,
0xad, 0xde, 0x93, 0xb9, 0x2b, 0xfc, 0xa1, 0x7f, 0xd7, 0x76, 0x76, 0xf7, 0xf8, 0x84, 0x3a, 0x4e,
0x2c, 0x12, 0x96, 0xc6, 0x81, 0xc8, 0xe2, 0x30, 0xc6, 0xd4, 0x58, 0x28, 0xb4, 0x7f, 0x62, 0x13,
0x2e, 0x67, 0xfc, 0xd4, 0xed, 0x5c, 0x8b, 0x0e, 0xea, 0x46, 0xbe, 0xfd, 0x3d, 0x00, 0x00, 0xff,
0xff, 0x1c, 0x77, 0x2c, 0xa3, 0x28, 0x07, 0x00, 0x00,
var fileDescriptor_command_56eedbbbc833397d = []byte{
// 852 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x5d, 0x6f, 0x1b, 0x45,
0x14, 0xd5, 0xae, 0x3f, 0x62, 0x5f, 0xa7, 0x94, 0x0e, 0xa9, 0x70, 0xcd, 0x87, 0x22, 0xa3, 0x4a,
0x01, 0x29, 0x6b, 0xd5, 0x01, 0x41, 0xc8, 0x03, 0x22, 0x71, 0xa8, 0xfa, 0x50, 0x01, 0x43, 0xd4,
0x48, 0x7d, 0xb1, 0x26, 0xbb, 0xb7, 0xce, 0xa8, 0xf6, 0x8e, 0x35, 0x33, 0xeb, 0x36, 0xbc, 0x20,
0xf1, 0x47, 0x90, 0xfa, 0x46, 0xdf, 0xe0, 0x3f, 0xf0, 0xc8, 0x7f, 0x42, 0xf3, 0xb5, 0x59, 0x37,
0x90, 0x18, 0x23, 0xf1, 0xb6, 0xbe, 0xf7, 0x9c, 0x33, 0xf7, 0x9e, 0x99, 0x7b, 0x65, 0xd8, 0x9b,
0x08, 0x31, 0x99, 0xe2, 0x20, 0xc3, 0x85, 0x16, 0x62, 0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, 0x00, 0xff, 0xff, 0xf4, 0x52, 0xfa, 0x6a,
0x7d, 0x09, 0x00, 0x00,
}

View File

@ -1,15 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/remoteworkers/v1test2/tasks.proto
package remoteworkers
package remoteworkers // import "google.golang.org/genproto/googleapis/devtools/remoteworkers/v1test2"
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"
import google_protobuf1 "github.com/golang/protobuf/ptypes/any"
import google_protobuf3 "google.golang.org/genproto/protobuf/field_mask"
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
import status "google.golang.org/genproto/googleapis/rpc/status"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
@ -21,6 +21,13 @@ 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
// DEPRECATED - use Lease.payload instead.
// A Task represents a unit of work. Its result and logs are defined as
// subresources.
//
@ -32,23 +39,45 @@ var _ = math.Inf
// overhead.
type Task struct {
// The name of this task. Output only.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The actual task to perform. For example, this could be CommandTask to run a
// command line.
Description *google_protobuf1.Any `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
Description *any.Any `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Handles to logs. The key is a human-readable name like `stdout`, and the
// handle is a resource name that can be passed to ByteStream or other
// accessors.
//
// An implementation may define some logs by default (like `stdout`), and may
// allow clients to add new logs via AddTaskLog.
Logs map[string]string `protobuf:"bytes,3,rep,name=logs" json:"logs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Logs map[string]string `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Task) Reset() { *m = Task{} }
func (m *Task) String() string { return proto.CompactTextString(m) }
func (*Task) ProtoMessage() {}
func (*Task) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *Task) Reset() { *m = Task{} }
func (m *Task) String() string { return proto.CompactTextString(m) }
func (*Task) ProtoMessage() {}
func (*Task) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_667ae2bf8892e2d4, []int{0}
}
func (m *Task) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Task.Unmarshal(m, b)
}
func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Task.Marshal(b, m, deterministic)
}
func (dst *Task) XXX_Merge(src proto.Message) {
xxx_messageInfo_Task.Merge(dst, src)
}
func (m *Task) XXX_Size() int {
return xxx_messageInfo_Task.Size(m)
}
func (m *Task) XXX_DiscardUnknown() {
xxx_messageInfo_Task.DiscardUnknown(m)
}
var xxx_messageInfo_Task proto.InternalMessageInfo
func (m *Task) GetName() string {
if m != nil {
@ -57,7 +86,7 @@ func (m *Task) GetName() string {
return ""
}
func (m *Task) GetDescription() *google_protobuf1.Any {
func (m *Task) GetDescription() *any.Any {
if m != nil {
return m.Description
}
@ -71,11 +100,12 @@ func (m *Task) GetLogs() map[string]string {
return nil
}
// DEPRECATED - use Lease.assignment_result instead.
// The result and metadata of the task.
type TaskResult struct {
// The name of the task result; must be a name of a `Task` followed by
// `/result`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The result may be updated several times; the client must only set
// `complete` to true to indicate that no further updates are allowed.
// If this is not true, the `status` field must not be examined since its zero
@ -83,23 +113,45 @@ type TaskResult struct {
//
// Once a task is completed, it must not be updated with further results,
// though the implementation may choose to continue to receive logs.
Complete bool `protobuf:"varint,2,opt,name=complete" json:"complete,omitempty"`
Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"`
// The final status of the task itself. For example, if task.description
// included a timeout which was violated, status.code may be
// DEADLINE_EXCEEDED. This field can only be read if `complete` is true.
Status *google_rpc.Status `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
Status *status.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
// Any non-log output, such as output files and exit codes. See
// CommandResult as an example.
Output *google_protobuf1.Any `protobuf:"bytes,4,opt,name=output" json:"output,omitempty"`
Output *any.Any `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"`
// Any information about how the command was executed, eg runtime. See
// CommandOverhead as an example.
Meta *google_protobuf1.Any `protobuf:"bytes,5,opt,name=meta" json:"meta,omitempty"`
Meta *any.Any `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskResult) Reset() { *m = TaskResult{} }
func (m *TaskResult) String() string { return proto.CompactTextString(m) }
func (*TaskResult) ProtoMessage() {}
func (*TaskResult) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *TaskResult) Reset() { *m = TaskResult{} }
func (m *TaskResult) String() string { return proto.CompactTextString(m) }
func (*TaskResult) ProtoMessage() {}
func (*TaskResult) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_667ae2bf8892e2d4, []int{1}
}
func (m *TaskResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskResult.Unmarshal(m, b)
}
func (m *TaskResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskResult.Marshal(b, m, deterministic)
}
func (dst *TaskResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskResult.Merge(dst, src)
}
func (m *TaskResult) XXX_Size() int {
return xxx_messageInfo_TaskResult.Size(m)
}
func (m *TaskResult) XXX_DiscardUnknown() {
xxx_messageInfo_TaskResult.DiscardUnknown(m)
}
var xxx_messageInfo_TaskResult proto.InternalMessageInfo
func (m *TaskResult) GetName() string {
if m != nil {
@ -115,21 +167,21 @@ func (m *TaskResult) GetComplete() bool {
return false
}
func (m *TaskResult) GetStatus() *google_rpc.Status {
func (m *TaskResult) GetStatus() *status.Status {
if m != nil {
return m.Status
}
return nil
}
func (m *TaskResult) GetOutput() *google_protobuf1.Any {
func (m *TaskResult) GetOutput() *any.Any {
if m != nil {
return m.Output
}
return nil
}
func (m *TaskResult) GetMeta() *google_protobuf1.Any {
func (m *TaskResult) GetMeta() *any.Any {
if m != nil {
return m.Meta
}
@ -139,13 +191,35 @@ func (m *TaskResult) GetMeta() *google_protobuf1.Any {
// Request message for `GetTask`.
type GetTaskRequest struct {
// The task name.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetTaskRequest) Reset() { *m = GetTaskRequest{} }
func (m *GetTaskRequest) String() string { return proto.CompactTextString(m) }
func (*GetTaskRequest) ProtoMessage() {}
func (*GetTaskRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
func (m *GetTaskRequest) Reset() { *m = GetTaskRequest{} }
func (m *GetTaskRequest) String() string { return proto.CompactTextString(m) }
func (*GetTaskRequest) ProtoMessage() {}
func (*GetTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_667ae2bf8892e2d4, []int{2}
}
func (m *GetTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetTaskRequest.Unmarshal(m, b)
}
func (m *GetTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetTaskRequest.Marshal(b, m, deterministic)
}
func (dst *GetTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetTaskRequest.Merge(dst, src)
}
func (m *GetTaskRequest) XXX_Size() int {
return xxx_messageInfo_GetTaskRequest.Size(m)
}
func (m *GetTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetTaskRequest proto.InternalMessageInfo
func (m *GetTaskRequest) GetName() string {
if m != nil {
@ -157,21 +231,43 @@ func (m *GetTaskRequest) GetName() string {
// Request message for `UpdateTaskResult`.
type UpdateTaskResultRequest struct {
// The task result name; must match `result.name`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The result being updated.
Result *TaskResult `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"`
Result *TaskResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
// The fields within `result` that are specified.
UpdateMask *google_protobuf3.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// If this is being updated by a bot from BotManager, the source should be
// bot.session_id. That way, if two bots accidentally get the same name, we'll
// know to reject updates from the older one.
Source string `protobuf:"bytes,4,opt,name=source" json:"source,omitempty"`
Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateTaskResultRequest) Reset() { *m = UpdateTaskResultRequest{} }
func (m *UpdateTaskResultRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateTaskResultRequest) ProtoMessage() {}
func (*UpdateTaskResultRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
func (m *UpdateTaskResultRequest) Reset() { *m = UpdateTaskResultRequest{} }
func (m *UpdateTaskResultRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateTaskResultRequest) ProtoMessage() {}
func (*UpdateTaskResultRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_667ae2bf8892e2d4, []int{3}
}
func (m *UpdateTaskResultRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateTaskResultRequest.Unmarshal(m, b)
}
func (m *UpdateTaskResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateTaskResultRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateTaskResultRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateTaskResultRequest.Merge(dst, src)
}
func (m *UpdateTaskResultRequest) XXX_Size() int {
return xxx_messageInfo_UpdateTaskResultRequest.Size(m)
}
func (m *UpdateTaskResultRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateTaskResultRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateTaskResultRequest proto.InternalMessageInfo
func (m *UpdateTaskResultRequest) GetName() string {
if m != nil {
@ -187,7 +283,7 @@ func (m *UpdateTaskResultRequest) GetResult() *TaskResult {
return nil
}
func (m *UpdateTaskResultRequest) GetUpdateMask() *google_protobuf3.FieldMask {
func (m *UpdateTaskResultRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
@ -204,15 +300,37 @@ func (m *UpdateTaskResultRequest) GetSource() string {
// Request message for `AddTaskLog`.
type AddTaskLogRequest struct {
// The name of the task that will own the new log.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The human-readable name of the log, like `stdout` or a relative file path.
LogId string `protobuf:"bytes,2,opt,name=log_id,json=logId" json:"log_id,omitempty"`
LogId string `protobuf:"bytes,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddTaskLogRequest) Reset() { *m = AddTaskLogRequest{} }
func (m *AddTaskLogRequest) String() string { return proto.CompactTextString(m) }
func (*AddTaskLogRequest) ProtoMessage() {}
func (*AddTaskLogRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
func (m *AddTaskLogRequest) Reset() { *m = AddTaskLogRequest{} }
func (m *AddTaskLogRequest) String() string { return proto.CompactTextString(m) }
func (*AddTaskLogRequest) ProtoMessage() {}
func (*AddTaskLogRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_667ae2bf8892e2d4, []int{4}
}
func (m *AddTaskLogRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddTaskLogRequest.Unmarshal(m, b)
}
func (m *AddTaskLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddTaskLogRequest.Marshal(b, m, deterministic)
}
func (dst *AddTaskLogRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddTaskLogRequest.Merge(dst, src)
}
func (m *AddTaskLogRequest) XXX_Size() int {
return xxx_messageInfo_AddTaskLogRequest.Size(m)
}
func (m *AddTaskLogRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AddTaskLogRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AddTaskLogRequest proto.InternalMessageInfo
func (m *AddTaskLogRequest) GetName() string {
if m != nil {
@ -231,13 +349,35 @@ func (m *AddTaskLogRequest) GetLogId() string {
// Response message for `AddTaskLog`.
type AddTaskLogResponse struct {
// The handle for the new log, as would be returned in Task.logs.
Handle string `protobuf:"bytes,1,opt,name=handle" json:"handle,omitempty"`
Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddTaskLogResponse) Reset() { *m = AddTaskLogResponse{} }
func (m *AddTaskLogResponse) String() string { return proto.CompactTextString(m) }
func (*AddTaskLogResponse) ProtoMessage() {}
func (*AddTaskLogResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
func (m *AddTaskLogResponse) Reset() { *m = AddTaskLogResponse{} }
func (m *AddTaskLogResponse) String() string { return proto.CompactTextString(m) }
func (*AddTaskLogResponse) ProtoMessage() {}
func (*AddTaskLogResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_667ae2bf8892e2d4, []int{5}
}
func (m *AddTaskLogResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddTaskLogResponse.Unmarshal(m, b)
}
func (m *AddTaskLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddTaskLogResponse.Marshal(b, m, deterministic)
}
func (dst *AddTaskLogResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddTaskLogResponse.Merge(dst, src)
}
func (m *AddTaskLogResponse) XXX_Size() int {
return xxx_messageInfo_AddTaskLogResponse.Size(m)
}
func (m *AddTaskLogResponse) XXX_DiscardUnknown() {
xxx_messageInfo_AddTaskLogResponse.DiscardUnknown(m)
}
var xxx_messageInfo_AddTaskLogResponse proto.InternalMessageInfo
func (m *AddTaskLogResponse) GetHandle() string {
if m != nil {
@ -248,6 +388,7 @@ func (m *AddTaskLogResponse) GetHandle() string {
func init() {
proto.RegisterType((*Task)(nil), "google.devtools.remoteworkers.v1test2.Task")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.remoteworkers.v1test2.Task.LogsEntry")
proto.RegisterType((*TaskResult)(nil), "google.devtools.remoteworkers.v1test2.TaskResult")
proto.RegisterType((*GetTaskRequest)(nil), "google.devtools.remoteworkers.v1test2.GetTaskRequest")
proto.RegisterType((*UpdateTaskResultRequest)(nil), "google.devtools.remoteworkers.v1test2.UpdateTaskResultRequest")
@ -263,15 +404,19 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Tasks service
// TasksClient is the client API for Tasks service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TasksClient interface {
// DEPRECATED - use Lease.payload instead.
// GetTask reads the current state of the task. Tasks must be created through
// some other interface, and should be immutable once created and exposed to
// the bots.
GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error)
// DEPRECATED - use Lease.result instead.
// UpdateTaskResult updates the result.
UpdateTaskResult(ctx context.Context, in *UpdateTaskResultRequest, opts ...grpc.CallOption) (*TaskResult, error)
// DEPRECATED - precreate logs prior to sending to bot.
// AddTaskLog creates a new streaming log. The log is streamed and marked as
// completed through other interfaces (i.e., ByteStream). This can be called
// by the bot if it wants to create a new log; the server can also predefine
@ -289,7 +434,7 @@ func NewTasksClient(cc *grpc.ClientConn) TasksClient {
func (c *tasksClient) GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error) {
out := new(Task)
err := grpc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/GetTask", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/GetTask", in, out, opts...)
if err != nil {
return nil, err
}
@ -298,7 +443,7 @@ func (c *tasksClient) GetTask(ctx context.Context, in *GetTaskRequest, opts ...g
func (c *tasksClient) UpdateTaskResult(ctx context.Context, in *UpdateTaskResultRequest, opts ...grpc.CallOption) (*TaskResult, error) {
out := new(TaskResult)
err := grpc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/UpdateTaskResult", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/UpdateTaskResult", in, out, opts...)
if err != nil {
return nil, err
}
@ -307,22 +452,24 @@ func (c *tasksClient) UpdateTaskResult(ctx context.Context, in *UpdateTaskResult
func (c *tasksClient) AddTaskLog(ctx context.Context, in *AddTaskLogRequest, opts ...grpc.CallOption) (*AddTaskLogResponse, error) {
out := new(AddTaskLogResponse)
err := grpc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/AddTaskLog", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/AddTaskLog", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Tasks service
// TasksServer is the server API for Tasks service.
type TasksServer interface {
// DEPRECATED - use Lease.payload instead.
// GetTask reads the current state of the task. Tasks must be created through
// some other interface, and should be immutable once created and exposed to
// the bots.
GetTask(context.Context, *GetTaskRequest) (*Task, error)
// DEPRECATED - use Lease.result instead.
// UpdateTaskResult updates the result.
UpdateTaskResult(context.Context, *UpdateTaskResultRequest) (*TaskResult, error)
// DEPRECATED - precreate logs prior to sending to bot.
// AddTaskLog creates a new streaming log. The log is streamed and marked as
// completed through other interfaces (i.e., ByteStream). This can be called
// by the bot if it wants to create a new log; the server can also predefine
@ -409,48 +556,53 @@ var _Tasks_serviceDesc = grpc.ServiceDesc{
Metadata: "google/devtools/remoteworkers/v1test2/tasks.proto",
}
func init() { proto.RegisterFile("google/devtools/remoteworkers/v1test2/tasks.proto", fileDescriptor2) }
var fileDescriptor2 = []byte{
// 634 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xc1, 0x6e, 0xd3, 0x40,
0x10, 0x95, 0x13, 0xc7, 0x34, 0x13, 0x09, 0x95, 0x55, 0xa1, 0xc6, 0xea, 0x21, 0x58, 0x80, 0xa2,
0x34, 0xb2, 0x95, 0x20, 0xa0, 0xa4, 0xa2, 0x52, 0x91, 0x00, 0x45, 0x0a, 0x17, 0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3, 0x12, 0xea, 0x52, 0x12, 0xc9, 0x3b, 0x76, 0xf3, 0x14, 0x8e,
0x03, 0xfe, 0x8f, 0x97, 0x7f, 0x7f, 0xee, 0xef, 0x89, 0x21, 0xe9, 0x0f, 0xfe, 0x06, 0x00, 0x00,
0xff, 0xff, 0xb8, 0x8f, 0xed, 0xe0, 0x37, 0x06, 0x00, 0x00,
func init() {
proto.RegisterFile("google/devtools/remoteworkers/v1test2/tasks.proto", fileDescriptor_tasks_667ae2bf8892e2d4)
}
var fileDescriptor_tasks_667ae2bf8892e2d4 = []byte{
// 682 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x6b, 0x13, 0x41,
0x14, 0x66, 0x92, 0x34, 0x36, 0x2f, 0x20, 0x75, 0xa8, 0x36, 0x2e, 0x3d, 0xc4, 0xc5, 0x4a, 0x4c,
0xcb, 0x2e, 0x89, 0xa8, 0x35, 0xc5, 0x42, 0x8b, 0x5a, 0x0a, 0x15, 0x64, 0xad, 0x16, 0xbc, 0x94,
0x69, 0x76, 0x3a, 0x86, 0x6c, 0x76, 0xd6, 0x9d, 0xd9, 0x48, 0x90, 0x5e, 0x3c, 0x79, 0x15, 0xff,
0x03, 0x8f, 0x5e, 0xbc, 0x7a, 0x14, 0xef, 0x9e, 0x04, 0xff, 0x02, 0xff, 0x10, 0x99, 0x1f, 0x69,
0x9b, 0xfe, 0x88, 0xa9, 0xb7, 0x99, 0x79, 0xdf, 0xf7, 0xde, 0xfb, 0xde, 0xf7, 0xb2, 0x81, 0x06,
0xe3, 0x9c, 0x45, 0xd4, 0x0f, 0x69, 0x5f, 0x72, 0x1e, 0x09, 0x3f, 0xa5, 0x3d, 0x2e, 0xe9, 0x5b,
0x9e, 0x76, 0x69, 0x2a, 0xfc, 0x7e, 0x43, 0x52, 0x21, 0x9b, 0xbe, 0x24, 0xa2, 0x2b, 0xbc, 0x24,
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}

View File

@ -0,0 +1,412 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/remoteworkers/v1test2/worker.proto
package remoteworkers // import "google.golang.org/genproto/googleapis/devtools/remoteworkers/v1test2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// 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
// Describes a worker, which is a list of one or more devices and the
// connections between them. A device could be a computer, a phone, or even an
// accelerator like a GPU; it's up to the farm administrator to decide how to
// model their farm. For example, if a farm only has one type of GPU, the GPU
// could be modelled as a "has_gpu" property on its host computer; if it has
// many subproperties itself, it might be better to model it as a separate
// device.
//
// The first device in the worker is the "primary device" - that is, the device
// running a bot and which is responsible for actually executing commands. All
// other devices are considered to be attached devices, and must be controllable
// by the primary device.
//
// This message (and all its submessages) can be used in two contexts:
//
// * Status: sent by the bot to report the current capabilities of the device to
// allow reservation matching.
// * Request: sent by a client to request a device with certain capabilities in
// a reservation.
//
// Several of the fields in this message have different semantics depending on
// which of which of these contexts it is used. These semantics are described
// below.
//
// Several messages in Worker and its submessages have the concept of keys and
// values, such as `Worker.Property` and `Device.Property`. All keys are simple
// strings, but certain keys are "standard" keys and should be broadly supported
// across farms and implementations; these are listed below each relevant
// message. Bot implementations or farm admins may add *additional* keys, but
// these SHOULD all begin with an underscore so they do not conflict with
// standard keys that may be added in the future.
//
// Keys are not context sensitive.
//
// See http://goo.gl/NurY8g for more information on the Worker message.
type Worker struct {
// A list of devices; the first device is the primary device. See the `Device`
// message for more information.
Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
// A worker may contain "global" properties. For example, certain machines
// might be reserved for certain types of jobs, like short-running compilation
// versus long-running integration tests. This property is known as a "pool"
// and is not related to any one device within the worker; rather, it applies
// to the worker as a whole.
//
// The behaviour of repeated keys is identical to that of Device.Property.
Properties []*Worker_Property `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty"`
// Bots can be configured in certain ways when accepting leases. For example,
// many leases are executed inside a Docker container. To support this, the
// bot needs to be able to report that it has Docker installed (and knows how
// to execute something inside a container), and the task submitter needs to
// specify which image should be used to start the container. Similarly, a
// lease may be able to run as one of several users on the worker; in such
// cases, the bot needs to report what users are available, and the submitter
// needs to choose one.
//
// Therefore, when this message is reported by the bot to the service, each
// key represents a *type* of configuration that the bot knows how to set,
// while each *value* represents a legal value for that configuration (the
// empty string is interpretted as a wildcard, such as for Docker images).
// When this message is sent by the server to the bot in the context of a
// lease, it represents a command to the bot to apply the setting. Keys may
// be repeated during reporting but not in a lease.
Configs []*Worker_Config `protobuf:"bytes,3,rep,name=configs,proto3" json:"configs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Worker) Reset() { *m = Worker{} }
func (m *Worker) String() string { return proto.CompactTextString(m) }
func (*Worker) ProtoMessage() {}
func (*Worker) Descriptor() ([]byte, []int) {
return fileDescriptor_worker_52520c784d3d1f3d, []int{0}
}
func (m *Worker) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Worker.Unmarshal(m, b)
}
func (m *Worker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Worker.Marshal(b, m, deterministic)
}
func (dst *Worker) XXX_Merge(src proto.Message) {
xxx_messageInfo_Worker.Merge(dst, src)
}
func (m *Worker) XXX_Size() int {
return xxx_messageInfo_Worker.Size(m)
}
func (m *Worker) XXX_DiscardUnknown() {
xxx_messageInfo_Worker.DiscardUnknown(m)
}
var xxx_messageInfo_Worker proto.InternalMessageInfo
func (m *Worker) GetDevices() []*Device {
if m != nil {
return m.Devices
}
return nil
}
func (m *Worker) GetProperties() []*Worker_Property {
if m != nil {
return m.Properties
}
return nil
}
func (m *Worker) GetConfigs() []*Worker_Config {
if m != nil {
return m.Configs
}
return nil
}
// A global property; see the `properties` field for more information.
type Worker_Property struct {
// For general information on keys, see the documentation to `Worker`.
//
// The current set of standard keys are:
//
// * pool: different workers can be reserved for different purposes. For
// example, an admin might want to segregate long-running integration tests
// from short-running unit tests, so unit tests will always get some
// throughput. To support this, the server can assign different values for
// `pool` (such as "itest" and "utest") to different workers, and then have
// jobs request workers from those pools.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The property's value.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Worker_Property) Reset() { *m = Worker_Property{} }
func (m *Worker_Property) String() string { return proto.CompactTextString(m) }
func (*Worker_Property) ProtoMessage() {}
func (*Worker_Property) Descriptor() ([]byte, []int) {
return fileDescriptor_worker_52520c784d3d1f3d, []int{0, 0}
}
func (m *Worker_Property) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Worker_Property.Unmarshal(m, b)
}
func (m *Worker_Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Worker_Property.Marshal(b, m, deterministic)
}
func (dst *Worker_Property) XXX_Merge(src proto.Message) {
xxx_messageInfo_Worker_Property.Merge(dst, src)
}
func (m *Worker_Property) XXX_Size() int {
return xxx_messageInfo_Worker_Property.Size(m)
}
func (m *Worker_Property) XXX_DiscardUnknown() {
xxx_messageInfo_Worker_Property.DiscardUnknown(m)
}
var xxx_messageInfo_Worker_Property proto.InternalMessageInfo
func (m *Worker_Property) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *Worker_Property) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// A configuration request or report; see the `configs` field for more
// information.
type Worker_Config struct {
// For general information on keys, see the documentation to `Worker`.
//
// The current set of standard keys are:
//
// * DockerImage: the image of the container. When being reported by the
// bot, the empty value should always be included if the bot is able to pull
// its own images; the bot may optionally *also* report images that are
// present in its cache. When being requested in a lease, the value is the
// URI of the image (eg `gcr.io/user/image@sha256:hash`).
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The configuration's value.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Worker_Config) Reset() { *m = Worker_Config{} }
func (m *Worker_Config) String() string { return proto.CompactTextString(m) }
func (*Worker_Config) ProtoMessage() {}
func (*Worker_Config) Descriptor() ([]byte, []int) {
return fileDescriptor_worker_52520c784d3d1f3d, []int{0, 1}
}
func (m *Worker_Config) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Worker_Config.Unmarshal(m, b)
}
func (m *Worker_Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Worker_Config.Marshal(b, m, deterministic)
}
func (dst *Worker_Config) XXX_Merge(src proto.Message) {
xxx_messageInfo_Worker_Config.Merge(dst, src)
}
func (m *Worker_Config) XXX_Size() int {
return xxx_messageInfo_Worker_Config.Size(m)
}
func (m *Worker_Config) XXX_DiscardUnknown() {
xxx_messageInfo_Worker_Config.DiscardUnknown(m)
}
var xxx_messageInfo_Worker_Config proto.InternalMessageInfo
func (m *Worker_Config) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *Worker_Config) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// Any device, including computers, phones, accelerators (e.g. GPUs), etc. All
// names must be unique.
type Device struct {
// The handle can be thought of as the "name" of the device, and must be
// unique within a Worker.
//
// In the Status context, the handle should be some human-understandable name,
// perhaps corresponding to a label physically written on the device to make
// it easy to locate. In the Request context, the name should be the
// *logical* name expected by the task. The bot is responsible for mapping the
// logical name expected by the task to a machine-readable name that the task
// can actually use, such as a USB address. The method by which this mapping
// is communicated to the task is not covered in this API.
Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"`
// Properties of this device that don't change based on the tasks that are
// running on it, e.g. OS, CPU architecture, etc.
//
// Keys may be repeated, and have the following interpretation:
//
// * Status context: the device can support *any* the listed values. For
// example, an "ISA" property might include "x86", "x86-64" and "sse4".
//
// * Request context: the device *must* support *all* of the listed values.
Properties []*Device_Property `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Device) Reset() { *m = Device{} }
func (m *Device) String() string { return proto.CompactTextString(m) }
func (*Device) ProtoMessage() {}
func (*Device) Descriptor() ([]byte, []int) {
return fileDescriptor_worker_52520c784d3d1f3d, []int{1}
}
func (m *Device) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Device.Unmarshal(m, b)
}
func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Device.Marshal(b, m, deterministic)
}
func (dst *Device) XXX_Merge(src proto.Message) {
xxx_messageInfo_Device.Merge(dst, src)
}
func (m *Device) XXX_Size() int {
return xxx_messageInfo_Device.Size(m)
}
func (m *Device) XXX_DiscardUnknown() {
xxx_messageInfo_Device.DiscardUnknown(m)
}
var xxx_messageInfo_Device proto.InternalMessageInfo
func (m *Device) GetHandle() string {
if m != nil {
return m.Handle
}
return ""
}
func (m *Device) GetProperties() []*Device_Property {
if m != nil {
return m.Properties
}
return nil
}
// A device property; see `properties` for more information.
type Device_Property struct {
// For general information on keys, see the documentation to `Worker`.
//
// The current set of standard keys are:
//
// * os: a human-readable description of the OS. Examples include `linux`,
// `ubuntu` and `ubuntu 14.04` (note that a bot may advertise itself as more
// than one). This will be replaced in the future by more well-structured
// keys and values to represent OS variants.
//
// * has-docker: "true" if the bot has Docker installed. This will be
// replaced in the future by a more structured message for Docker support.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The property's value.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Device_Property) Reset() { *m = Device_Property{} }
func (m *Device_Property) String() string { return proto.CompactTextString(m) }
func (*Device_Property) ProtoMessage() {}
func (*Device_Property) Descriptor() ([]byte, []int) {
return fileDescriptor_worker_52520c784d3d1f3d, []int{1, 0}
}
func (m *Device_Property) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Device_Property.Unmarshal(m, b)
}
func (m *Device_Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Device_Property.Marshal(b, m, deterministic)
}
func (dst *Device_Property) XXX_Merge(src proto.Message) {
xxx_messageInfo_Device_Property.Merge(dst, src)
}
func (m *Device_Property) XXX_Size() int {
return xxx_messageInfo_Device_Property.Size(m)
}
func (m *Device_Property) XXX_DiscardUnknown() {
xxx_messageInfo_Device_Property.DiscardUnknown(m)
}
var xxx_messageInfo_Device_Property proto.InternalMessageInfo
func (m *Device_Property) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *Device_Property) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func init() {
proto.RegisterType((*Worker)(nil), "google.devtools.remoteworkers.v1test2.Worker")
proto.RegisterType((*Worker_Property)(nil), "google.devtools.remoteworkers.v1test2.Worker.Property")
proto.RegisterType((*Worker_Config)(nil), "google.devtools.remoteworkers.v1test2.Worker.Config")
proto.RegisterType((*Device)(nil), "google.devtools.remoteworkers.v1test2.Device")
proto.RegisterType((*Device_Property)(nil), "google.devtools.remoteworkers.v1test2.Device.Property")
}
func init() {
proto.RegisterFile("google/devtools/remoteworkers/v1test2/worker.proto", fileDescriptor_worker_52520c784d3d1f3d)
}
var fileDescriptor_worker_52520c784d3d1f3d = []byte{
// 332 bytes of a gz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fc, 0x4c, 0x7a, 0x6d, 0x60, 0x51, 0x49, 0x3a, 0x21, 0xfc, 0xaf,
0xe6, 0xb0, 0x03, 0x68, 0xad, 0x71, 0xeb, 0x3b, 0x5d, 0x67, 0xb0, 0x27, 0x76, 0xaf, 0xec, 0x08,
0xfe, 0x15, 0x51, 0xf2, 0x88, 0xbe, 0x6b, 0x7a, 0xb6, 0xe8, 0x9c, 0x81, 0x67, 0x35, 0x4d, 0x89,
0xde, 0xab, 0x03, 0x9e, 0x4d, 0x88, 0x1d, 0x83, 0xf7, 0x10, 0xa5, 0xab, 0x04, 0x4b, 0xaa, 0xac,
0xfe, 0x14, 0x98, 0x55, 0x7f, 0x19, 0xd8, 0x6f, 0x7e, 0x70, 0xf4, 0xe6, 0xc0, 0xc9, 0x92, 0x36,
0xcd, 0xa6, 0x8f, 0x0e, 0x85, 0x69, 0xdb, 0x80, 0xb5, 0x7d, 0x4c, 0x9d, 0x5b, 0x51, 0xd2, 0x92,
0x92, 0x28, 0x95, 0x9c, 0x94, 0x0c, 0x24, 0xa6, 0xe6, 0x30, 0x03, 0xfb, 0x29, 0xca, 0x62, 0xfd,
0xcd, 0x3d, 0x5f, 0xd5, 0xba, 0xcf, 0xae, 0x2b, 0x16, 0x2f, 0x6e, 0x7f, 0x62, 0xcd, 0x63, 0x2c,
0x66, 0x66, 0xaf, 0xda, 0x02, 0x7c, 0x3e, 0x9c, 0xed, 0xd0, 0x3b, 0xcf, 0xcc, 0x3a, 0xff, 0x08,
0x00, 0x00, 0xff, 0xff, 0x4e, 0x67, 0x96, 0xee, 0x3a, 0x03, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,592 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/common.proto
package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import duration "github.com/golang/protobuf/ptypes/duration"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
// 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
// These correspond to the prefix of the rule name. Eg cc_test has language CC.
type Language int32
const (
// Language unspecified or not listed here.
Language_LANGUAGE_UNSPECIFIED Language = 0
// Not related to any particular language
Language_NONE Language = 1
// Android
Language_ANDROID Language = 2
// ActionScript (Flash)
Language_AS Language = 3
// C++ or C
Language_CC Language = 4
// Cascading-Style-Sheets
Language_CSS Language = 5
// Dart
Language_DART Language = 6
// Go
Language_GO Language = 7
// Google-Web-Toolkit
Language_GWT Language = 8
// Haskell
Language_HASKELL Language = 9
// Java
Language_JAVA Language = 10
// Javascript
Language_JS Language = 11
// Lisp
Language_LISP Language = 12
// Objective-C
Language_OBJC Language = 13
// Python
Language_PY Language = 14
// Shell (Typically Bash)
Language_SH Language = 15
// Swift
Language_SWIFT Language = 16
// Typescript
Language_TS Language = 18
// Webtesting
Language_WEB Language = 19
)
var Language_name = map[int32]string{
0: "LANGUAGE_UNSPECIFIED",
1: "NONE",
2: "ANDROID",
3: "AS",
4: "CC",
5: "CSS",
6: "DART",
7: "GO",
8: "GWT",
9: "HASKELL",
10: "JAVA",
11: "JS",
12: "LISP",
13: "OBJC",
14: "PY",
15: "SH",
16: "SWIFT",
18: "TS",
19: "WEB",
}
var Language_value = map[string]int32{
"LANGUAGE_UNSPECIFIED": 0,
"NONE": 1,
"ANDROID": 2,
"AS": 3,
"CC": 4,
"CSS": 5,
"DART": 6,
"GO": 7,
"GWT": 8,
"HASKELL": 9,
"JAVA": 10,
"JS": 11,
"LISP": 12,
"OBJC": 13,
"PY": 14,
"SH": 15,
"SWIFT": 16,
"TS": 18,
"WEB": 19,
}
func (x Language) String() string {
return proto.EnumName(Language_name, int32(x))
}
func (Language) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_common_2f402f211e3e1d93, []int{0}
}
// Status of a resource.
type Status int32
const (
// The implicit default enum value. Should never be set.
Status_STATUS_UNSPECIFIED Status = 0
// Displays as "Building". Means the target is compiling, linking, etc.
Status_BUILDING Status = 1
// Displays as "Built". Means the target was built successfully.
// If testing was requested, it should never reach this status: it should go
// straight from BUILDING to TESTING.
Status_BUILT Status = 2
// Displays as "Broken". Means build failure such as compile error.
Status_FAILED_TO_BUILD Status = 3
// Displays as "Testing". Means the test is running.
Status_TESTING Status = 4
// Displays as "Passed". Means the test was run and passed.
Status_PASSED Status = 5
// Displays as "Failed". Means the test was run and failed.
Status_FAILED Status = 6
// Displays as "Timed out". Means the test didn't finish in time.
Status_TIMED_OUT Status = 7
// Displays as "Cancelled". Means the build or test was cancelled.
// E.g. User hit control-C.
Status_CANCELLED Status = 8
// Displays as "Tool Failed". Means the build or test had internal tool
// failure.
Status_TOOL_FAILED Status = 9
// Displays as "Incomplete". Means the build or test did not complete. This
// might happen when a build breakage or test failure causes the tool to stop
// trying to build anything more or run any more tests, with the default
// bazel --nokeep_going option or the --notest_keep_going option.
Status_INCOMPLETE Status = 10
// Displays as "Flaky". Means the aggregate status contains some runs that
// were successful, and some that were not.
Status_FLAKY Status = 11
// Displays as "Unknown". Means the tool uploading to the server died
// mid-upload or does not know the state.
Status_UNKNOWN Status = 12
// Displays as "Skipped". Means building and testing were skipped.
// (E.g. Restricted to a different configuration.)
Status_SKIPPED Status = 13
)
var Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "BUILDING",
2: "BUILT",
3: "FAILED_TO_BUILD",
4: "TESTING",
5: "PASSED",
6: "FAILED",
7: "TIMED_OUT",
8: "CANCELLED",
9: "TOOL_FAILED",
10: "INCOMPLETE",
11: "FLAKY",
12: "UNKNOWN",
13: "SKIPPED",
}
var Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"BUILDING": 1,
"BUILT": 2,
"FAILED_TO_BUILD": 3,
"TESTING": 4,
"PASSED": 5,
"FAILED": 6,
"TIMED_OUT": 7,
"CANCELLED": 8,
"TOOL_FAILED": 9,
"INCOMPLETE": 10,
"FLAKY": 11,
"UNKNOWN": 12,
"SKIPPED": 13,
}
func (x Status) String() string {
return proto.EnumName(Status_name, int32(x))
}
func (Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_common_2f402f211e3e1d93, []int{1}
}
// Describes the status of a resource in both enum and string form.
// Only use description when conveying additional info not captured in the enum
// name.
type StatusAttributes struct {
// Enum representation of the status.
Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=google.devtools.resultstore.v2.Status" json:"status,omitempty"`
// A longer description about the status.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StatusAttributes) Reset() { *m = StatusAttributes{} }
func (m *StatusAttributes) String() string { return proto.CompactTextString(m) }
func (*StatusAttributes) ProtoMessage() {}
func (*StatusAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_common_2f402f211e3e1d93, []int{0}
}
func (m *StatusAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StatusAttributes.Unmarshal(m, b)
}
func (m *StatusAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StatusAttributes.Marshal(b, m, deterministic)
}
func (dst *StatusAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_StatusAttributes.Merge(dst, src)
}
func (m *StatusAttributes) XXX_Size() int {
return xxx_messageInfo_StatusAttributes.Size(m)
}
func (m *StatusAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_StatusAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_StatusAttributes proto.InternalMessageInfo
func (m *StatusAttributes) GetStatus() Status {
if m != nil {
return m.Status
}
return Status_STATUS_UNSPECIFIED
}
func (m *StatusAttributes) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
// A generic key-value property definition.
type Property struct {
// The key.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The value.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Property) Reset() { *m = Property{} }
func (m *Property) String() string { return proto.CompactTextString(m) }
func (*Property) ProtoMessage() {}
func (*Property) Descriptor() ([]byte, []int) {
return fileDescriptor_common_2f402f211e3e1d93, []int{1}
}
func (m *Property) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Property.Unmarshal(m, b)
}
func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Property.Marshal(b, m, deterministic)
}
func (dst *Property) XXX_Merge(src proto.Message) {
xxx_messageInfo_Property.Merge(dst, src)
}
func (m *Property) XXX_Size() int {
return xxx_messageInfo_Property.Size(m)
}
func (m *Property) XXX_DiscardUnknown() {
xxx_messageInfo_Property.DiscardUnknown(m)
}
var xxx_messageInfo_Property proto.InternalMessageInfo
func (m *Property) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *Property) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// The timing of a particular Invocation, Action, etc. The start_time is
// specified, stop time can be calculated by adding duration to start_time.
type Timing struct {
// The time the resource started running. This is in UTC Epoch time.
StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// The duration for which the resource ran.
Duration *duration.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Timing) Reset() { *m = Timing{} }
func (m *Timing) String() string { return proto.CompactTextString(m) }
func (*Timing) ProtoMessage() {}
func (*Timing) Descriptor() ([]byte, []int) {
return fileDescriptor_common_2f402f211e3e1d93, []int{2}
}
func (m *Timing) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Timing.Unmarshal(m, b)
}
func (m *Timing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Timing.Marshal(b, m, deterministic)
}
func (dst *Timing) XXX_Merge(src proto.Message) {
xxx_messageInfo_Timing.Merge(dst, src)
}
func (m *Timing) XXX_Size() int {
return xxx_messageInfo_Timing.Size(m)
}
func (m *Timing) XXX_DiscardUnknown() {
xxx_messageInfo_Timing.DiscardUnknown(m)
}
var xxx_messageInfo_Timing proto.InternalMessageInfo
func (m *Timing) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *Timing) GetDuration() *duration.Duration {
if m != nil {
return m.Duration
}
return nil
}
// Represents a dependency of a resource on another resource. This can be used
// to define a graph or a workflow paradigm through resources.
type Dependency struct {
// The resource depended upon. It may be a Target, ConfiguredTarget, or
// Action.
//
// Types that are valid to be assigned to Resource:
// *Dependency_Target
// *Dependency_ConfiguredTarget
// *Dependency_Action
Resource isDependency_Resource `protobuf_oneof:"resource"`
// A label describing this dependency.
// The label "Root Cause" is handled specially. It is used to point to the
// exact resource that caused a resource to fail.
Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Dependency) Reset() { *m = Dependency{} }
func (m *Dependency) String() string { return proto.CompactTextString(m) }
func (*Dependency) ProtoMessage() {}
func (*Dependency) Descriptor() ([]byte, []int) {
return fileDescriptor_common_2f402f211e3e1d93, []int{3}
}
func (m *Dependency) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Dependency.Unmarshal(m, b)
}
func (m *Dependency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Dependency.Marshal(b, m, deterministic)
}
func (dst *Dependency) XXX_Merge(src proto.Message) {
xxx_messageInfo_Dependency.Merge(dst, src)
}
func (m *Dependency) XXX_Size() int {
return xxx_messageInfo_Dependency.Size(m)
}
func (m *Dependency) XXX_DiscardUnknown() {
xxx_messageInfo_Dependency.DiscardUnknown(m)
}
var xxx_messageInfo_Dependency proto.InternalMessageInfo
type isDependency_Resource interface {
isDependency_Resource()
}
type Dependency_Target struct {
Target string `protobuf:"bytes,1,opt,name=target,proto3,oneof"`
}
type Dependency_ConfiguredTarget struct {
ConfiguredTarget string `protobuf:"bytes,2,opt,name=configured_target,json=configuredTarget,proto3,oneof"`
}
type Dependency_Action struct {
Action string `protobuf:"bytes,3,opt,name=action,proto3,oneof"`
}
func (*Dependency_Target) isDependency_Resource() {}
func (*Dependency_ConfiguredTarget) isDependency_Resource() {}
func (*Dependency_Action) isDependency_Resource() {}
func (m *Dependency) GetResource() isDependency_Resource {
if m != nil {
return m.Resource
}
return nil
}
func (m *Dependency) GetTarget() string {
if x, ok := m.GetResource().(*Dependency_Target); ok {
return x.Target
}
return ""
}
func (m *Dependency) GetConfiguredTarget() string {
if x, ok := m.GetResource().(*Dependency_ConfiguredTarget); ok {
return x.ConfiguredTarget
}
return ""
}
func (m *Dependency) GetAction() string {
if x, ok := m.GetResource().(*Dependency_Action); ok {
return x.Action
}
return ""
}
func (m *Dependency) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Dependency) 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 _Dependency_OneofMarshaler, _Dependency_OneofUnmarshaler, _Dependency_OneofSizer, []interface{}{
(*Dependency_Target)(nil),
(*Dependency_ConfiguredTarget)(nil),
(*Dependency_Action)(nil),
}
}
func _Dependency_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Dependency)
// resource
switch x := m.Resource.(type) {
case *Dependency_Target:
b.EncodeVarint(1<<3 | proto.WireBytes)
b.EncodeStringBytes(x.Target)
case *Dependency_ConfiguredTarget:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeStringBytes(x.ConfiguredTarget)
case *Dependency_Action:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeStringBytes(x.Action)
case nil:
default:
return fmt.Errorf("Dependency.Resource has unexpected type %T", x)
}
return nil
}
func _Dependency_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Dependency)
switch tag {
case 1: // resource.target
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Resource = &Dependency_Target{x}
return true, err
case 2: // resource.configured_target
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Resource = &Dependency_ConfiguredTarget{x}
return true, err
case 3: // resource.action
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Resource = &Dependency_Action{x}
return true, err
default:
return false, nil
}
}
func _Dependency_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Dependency)
// resource
switch x := m.Resource.(type) {
case *Dependency_Target:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Target)))
n += len(x.Target)
case *Dependency_ConfiguredTarget:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.ConfiguredTarget)))
n += len(x.ConfiguredTarget)
case *Dependency_Action:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Action)))
n += len(x.Action)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*StatusAttributes)(nil), "google.devtools.resultstore.v2.StatusAttributes")
proto.RegisterType((*Property)(nil), "google.devtools.resultstore.v2.Property")
proto.RegisterType((*Timing)(nil), "google.devtools.resultstore.v2.Timing")
proto.RegisterType((*Dependency)(nil), "google.devtools.resultstore.v2.Dependency")
proto.RegisterEnum("google.devtools.resultstore.v2.Language", Language_name, Language_value)
proto.RegisterEnum("google.devtools.resultstore.v2.Status", Status_name, Status_value)
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/common.proto", fileDescriptor_common_2f402f211e3e1d93)
}
var fileDescriptor_common_2f402f211e3e1d93 = []byte{
// 690 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcd, 0x8e, 0xe3, 0x44,
0x10, 0xc7, 0xd7, 0xf9, 0x70, 0x9c, 0xca, 0x7c, 0x14, 0xbd, 0x2b, 0x14, 0xe6, 0x00, 0xa3, 0x1c,
0xd0, 0x6a, 0x11, 0xb6, 0x14, 0xc4, 0x01, 0x21, 0x21, 0x39, 0xb6, 0x93, 0xf1, 0xc4, 0x6b, 0x5b,
0xee, 0x0e, 0xd1, 0x72, 0x89, 0x9c, 0xa4, 0xd7, 0xb2, 0x48, 0xec, 0x60, 0xb7, 0x23, 0x0d, 0x6f,
0xc1, 0x8b, 0x71, 0xe5, 0x75, 0x50, 0xdb, 0x0e, 0x8c, 0x06, 0x01, 0xa7, 0xee, 0x7f, 0xfd, 0x7f,
0x55, 0x5d, 0xd5, 0x6a, 0x1b, 0xbe, 0x4a, 0xf2, 0x3c, 0x39, 0x70, 0x63, 0xcf, 0xcf, 0x22, 0xcf,
0x0f, 0xa5, 0x51, 0xf0, 0xb2, 0x3a, 0x88, 0x52, 0xe4, 0x05, 0x37, 0xce, 0x53, 0x63, 0x97, 0x1f,
0x8f, 0x79, 0xa6, 0x9f, 0x8a, 0x5c, 0xe4, 0xe4, 0xf3, 0x06, 0xd6, 0x2f, 0xb0, 0xfe, 0x0c, 0xd6,
0xcf, 0xd3, 0xbb, 0xd6, 0x37, 0x6a, 0x7a, 0x5b, 0x7d, 0x34, 0xf6, 0x55, 0x11, 0x8b, 0xf4, 0x92,
0x7f, 0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84, 0x32, 0x93, 0xad, 0xe8, 0x8b, 0x61, 0xae, 0x40, 0x9b, 0xad, 0x5c, 0xcf, 0x76, 0xfd,
0x05, 0x2a, 0xb2, 0x98, 0x54, 0x0c, 0x3b, 0xe4, 0x35, 0xdc, 0xce, 0x4d, 0xd7, 0x73, 0xec, 0x0d,
0x0b, 0x36, 0x35, 0x82, 0x5d, 0xd9, 0x2f, 0x73, 0x28, 0x93, 0x70, 0x8f, 0x00, 0xa8, 0xa1, 0x49,
0xa9, 0x63, 0x63, 0x5f, 0xee, 0x1b, 0x1a, 0x55, 0x72, 0x0d, 0x43, 0xe6, 0xbe, 0x77, 0xec, 0x4d,
0xb0, 0x62, 0x38, 0x90, 0xd2, 0x32, 0x7d, 0xcb, 0xf1, 0xa4, 0xab, 0x91, 0x5b, 0x18, 0xb1, 0x20,
0xf0, 0x36, 0x2d, 0x3e, 0x24, 0x37, 0x00, 0xae, 0x6f, 0x05, 0xef, 0x43, 0xcf, 0x61, 0x0e, 0x82,
0xec, 0x61, 0xee, 0x99, 0xcb, 0x0f, 0x38, 0x92, 0xc7, 0xad, 0xfc, 0xa5, 0x1f, 0xac, 0x7d, 0xbc,
0x92, 0x82, 0x2e, 0xdd, 0x30, 0x74, 0x6c, 0xbc, 0x9e, 0xfd, 0x02, 0x93, 0x5d, 0x7e, 0xfc, 0x9f,
0xaf, 0x28, 0x54, 0x7e, 0x72, 0x5b, 0x22, 0xc9, 0x0f, 0x71, 0x96, 0xe8, 0x79, 0x91, 0x18, 0x09,
0xcf, 0xea, 0x87, 0x69, 0x34, 0x56, 0x7c, 0x4a, 0xcb, 0x7f, 0xfb, 0x73, 0x7c, 0xff, 0x4c, 0x6e,
0xd5, 0x3a, 0xeb, 0x9b, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xdb, 0xae, 0x2d, 0xfb, 0x6e, 0x04,
0x00, 0x00,
}

View File

@ -0,0 +1,227 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/configuration.proto
package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// 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
// Represents a configuration within an Invocation associated with one or more
// ConfiguredTargets. It captures the environment and other settings that
// were used.
type Configuration struct {
// The format of this Configuration resource name must be:
// invocations/${INVOCATION_ID}/configs/${CONFIG_ID}
// The configuration ID of "default" should be preferred for the default
// configuration in a single-config invocation.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource ID components that identify the Configuration. They must match
// the resource name after proper encoding.
Id *Configuration_Id `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// The aggregate status for this configuration.
StatusAttributes *StatusAttributes `protobuf:"bytes,3,opt,name=status_attributes,json=statusAttributes,proto3" json:"status_attributes,omitempty"`
// Attributes that apply only to this configuration.
ConfigurationAttributes *ConfigurationAttributes `protobuf:"bytes,5,opt,name=configuration_attributes,json=configurationAttributes,proto3" json:"configuration_attributes,omitempty"`
// Arbitrary name-value pairs.
// This is implemented as a multi-map. Multiple properties are allowed with
// the same key. Properties will be returned in lexicographical order by key.
Properties []*Property `protobuf:"bytes,6,rep,name=properties,proto3" json:"properties,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Configuration) Reset() { *m = Configuration{} }
func (m *Configuration) String() string { return proto.CompactTextString(m) }
func (*Configuration) ProtoMessage() {}
func (*Configuration) Descriptor() ([]byte, []int) {
return fileDescriptor_configuration_2bcc63e0499c6772, []int{0}
}
func (m *Configuration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Configuration.Unmarshal(m, b)
}
func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Configuration.Marshal(b, m, deterministic)
}
func (dst *Configuration) XXX_Merge(src proto.Message) {
xxx_messageInfo_Configuration.Merge(dst, src)
}
func (m *Configuration) XXX_Size() int {
return xxx_messageInfo_Configuration.Size(m)
}
func (m *Configuration) XXX_DiscardUnknown() {
xxx_messageInfo_Configuration.DiscardUnknown(m)
}
var xxx_messageInfo_Configuration proto.InternalMessageInfo
func (m *Configuration) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Configuration) GetId() *Configuration_Id {
if m != nil {
return m.Id
}
return nil
}
func (m *Configuration) GetStatusAttributes() *StatusAttributes {
if m != nil {
return m.StatusAttributes
}
return nil
}
func (m *Configuration) GetConfigurationAttributes() *ConfigurationAttributes {
if m != nil {
return m.ConfigurationAttributes
}
return nil
}
func (m *Configuration) GetProperties() []*Property {
if m != nil {
return m.Properties
}
return nil
}
// The resource ID components that identify the Configuration.
type Configuration_Id struct {
// The Invocation ID.
InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
// The Configuration ID.
ConfigurationId string `protobuf:"bytes,2,opt,name=configuration_id,json=configurationId,proto3" json:"configuration_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Configuration_Id) Reset() { *m = Configuration_Id{} }
func (m *Configuration_Id) String() string { return proto.CompactTextString(m) }
func (*Configuration_Id) ProtoMessage() {}
func (*Configuration_Id) Descriptor() ([]byte, []int) {
return fileDescriptor_configuration_2bcc63e0499c6772, []int{0, 0}
}
func (m *Configuration_Id) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Configuration_Id.Unmarshal(m, b)
}
func (m *Configuration_Id) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Configuration_Id.Marshal(b, m, deterministic)
}
func (dst *Configuration_Id) XXX_Merge(src proto.Message) {
xxx_messageInfo_Configuration_Id.Merge(dst, src)
}
func (m *Configuration_Id) XXX_Size() int {
return xxx_messageInfo_Configuration_Id.Size(m)
}
func (m *Configuration_Id) XXX_DiscardUnknown() {
xxx_messageInfo_Configuration_Id.DiscardUnknown(m)
}
var xxx_messageInfo_Configuration_Id proto.InternalMessageInfo
func (m *Configuration_Id) GetInvocationId() string {
if m != nil {
return m.InvocationId
}
return ""
}
func (m *Configuration_Id) GetConfigurationId() string {
if m != nil {
return m.ConfigurationId
}
return ""
}
// Attributes that apply only to the configuration.
type ConfigurationAttributes struct {
// The type of cpu. (e.g. "x86", "powerpc")
Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigurationAttributes) Reset() { *m = ConfigurationAttributes{} }
func (m *ConfigurationAttributes) String() string { return proto.CompactTextString(m) }
func (*ConfigurationAttributes) ProtoMessage() {}
func (*ConfigurationAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_configuration_2bcc63e0499c6772, []int{1}
}
func (m *ConfigurationAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigurationAttributes.Unmarshal(m, b)
}
func (m *ConfigurationAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigurationAttributes.Marshal(b, m, deterministic)
}
func (dst *ConfigurationAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigurationAttributes.Merge(dst, src)
}
func (m *ConfigurationAttributes) XXX_Size() int {
return xxx_messageInfo_ConfigurationAttributes.Size(m)
}
func (m *ConfigurationAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigurationAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigurationAttributes proto.InternalMessageInfo
func (m *ConfigurationAttributes) GetCpu() string {
if m != nil {
return m.Cpu
}
return ""
}
func init() {
proto.RegisterType((*Configuration)(nil), "google.devtools.resultstore.v2.Configuration")
proto.RegisterType((*Configuration_Id)(nil), "google.devtools.resultstore.v2.Configuration.Id")
proto.RegisterType((*ConfigurationAttributes)(nil), "google.devtools.resultstore.v2.ConfigurationAttributes")
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/configuration.proto", fileDescriptor_configuration_2bcc63e0499c6772)
}
var fileDescriptor_configuration_2bcc63e0499c6772 = []byte{
// 335 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x4f, 0xb3, 0x40,
0x10, 0xc6, 0x03, 0xbc, 0x6f, 0x93, 0x4e, 0x6d, 0xac, 0x7b, 0x29, 0xe9, 0xc1, 0x34, 0xf5, 0x82,
0x69, 0xb2, 0x18, 0x3c, 0x78, 0xf0, 0xe2, 0x9f, 0x8b, 0xdc, 0x1a, 0xf4, 0x64, 0x62, 0x0c, 0x65,
0xd7, 0xcd, 0x26, 0xc0, 0xe0, 0xee, 0x42, 0xe2, 0x37, 0xf5, 0xe3, 0x18, 0x81, 0x2a, 0x18, 0x6b,
0xf5, 0x36, 0xcc, 0xf0, 0x7b, 0x9e, 0x99, 0x9d, 0x81, 0x40, 0x20, 0x8a, 0x94, 0xfb, 0x8c, 0x57,
0x06, 0x31, 0xd5, 0xbe, 0xe2, 0xba, 0x4c, 0x8d, 0x36, 0xa8, 0xb8, 0x5f, 0x05, 0x7e, 0x82, 0xf9,
0x93, 0x14, 0xa5, 0x8a, 0x8d, 0xc4, 0x9c, 0x16, 0x0a, 0x0d, 0x92, 0xc3, 0x86, 0xa1, 0x1b, 0x86,
0x76, 0x18, 0x5a, 0x05, 0xb3, 0xe5, 0x4e, 0xcd, 0x2c, 0xdb, 0x88, 0x2d, 0x5e, 0x1d, 0x18, 0x5f,
0x77, 0x4d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0xde, 0x79, 0xe7, 0x73, 0x3d, 0xa8, 0xa9,
0xd3, 0xb7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xad, 0xea, 0x27, 0xe2, 0x04, 0x03, 0x00, 0x00,
}

View File

@ -0,0 +1,304 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/configured_target.proto
package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import duration "github.com/golang/protobuf/ptypes/duration"
// 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
// Each ConfiguredTarget represents data for a given configuration of a given
// target in a given Invocation.
// Every ConfiguredTarget should have at least one Action as a child resource
// before the invocation is finalized. Refer to the Action's documentation for
// more info on this.
type ConfiguredTarget struct {
// The resource name. Its format must be:
// invocations/${INVOCATION_ID}/targets/${TARGET_ID}/configuredTargets/${CONFIG_ID}
// where ${CONFIG_ID} must match the ID of an existing Configuration under
// this Invocation.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource ID components that identify the ConfiguredTarget. They must
// match the resource name after proper encoding.
Id *ConfiguredTarget_Id `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// The aggregate status for this configuration of this target. If testing
// was not requested, set this to the build status (e.g. BUILT or
// FAILED_TO_BUILD).
StatusAttributes *StatusAttributes `protobuf:"bytes,3,opt,name=status_attributes,json=statusAttributes,proto3" json:"status_attributes,omitempty"`
// Captures the start time and duration of this configured target.
Timing *Timing `protobuf:"bytes,4,opt,name=timing,proto3" json:"timing,omitempty"`
// Test specific attributes for this ConfiguredTarget.
TestAttributes *ConfiguredTestAttributes `protobuf:"bytes,6,opt,name=test_attributes,json=testAttributes,proto3" json:"test_attributes,omitempty"`
// Arbitrary name-value pairs.
// This is implemented as a multi-map. Multiple properties are allowed with
// the same key. Properties will be returned in lexicographical order by key.
Properties []*Property `protobuf:"bytes,7,rep,name=properties,proto3" json:"properties,omitempty"`
// A list of file references for configured target level files.
// The file IDs must be unique within this list. Duplicate file IDs will
// result in an error. Files will be returned in lexicographical order by ID.
Files []*File `protobuf:"bytes,8,rep,name=files,proto3" json:"files,omitempty"`
// Summary of aggregate coverage across all test actions for this target in
// this configuration. The server populates this for you in the
// post-processing phase.
CoverageSummaries []*LanguageCoverageSummary `protobuf:"bytes,9,rep,name=coverage_summaries,json=coverageSummaries,proto3" json:"coverage_summaries,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfiguredTarget) Reset() { *m = ConfiguredTarget{} }
func (m *ConfiguredTarget) String() string { return proto.CompactTextString(m) }
func (*ConfiguredTarget) ProtoMessage() {}
func (*ConfiguredTarget) Descriptor() ([]byte, []int) {
return fileDescriptor_configured_target_48a4f73ce345d3e8, []int{0}
}
func (m *ConfiguredTarget) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfiguredTarget.Unmarshal(m, b)
}
func (m *ConfiguredTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfiguredTarget.Marshal(b, m, deterministic)
}
func (dst *ConfiguredTarget) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfiguredTarget.Merge(dst, src)
}
func (m *ConfiguredTarget) XXX_Size() int {
return xxx_messageInfo_ConfiguredTarget.Size(m)
}
func (m *ConfiguredTarget) XXX_DiscardUnknown() {
xxx_messageInfo_ConfiguredTarget.DiscardUnknown(m)
}
var xxx_messageInfo_ConfiguredTarget proto.InternalMessageInfo
func (m *ConfiguredTarget) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ConfiguredTarget) GetId() *ConfiguredTarget_Id {
if m != nil {
return m.Id
}
return nil
}
func (m *ConfiguredTarget) GetStatusAttributes() *StatusAttributes {
if m != nil {
return m.StatusAttributes
}
return nil
}
func (m *ConfiguredTarget) GetTiming() *Timing {
if m != nil {
return m.Timing
}
return nil
}
func (m *ConfiguredTarget) GetTestAttributes() *ConfiguredTestAttributes {
if m != nil {
return m.TestAttributes
}
return nil
}
func (m *ConfiguredTarget) GetProperties() []*Property {
if m != nil {
return m.Properties
}
return nil
}
func (m *ConfiguredTarget) GetFiles() []*File {
if m != nil {
return m.Files
}
return nil
}
func (m *ConfiguredTarget) GetCoverageSummaries() []*LanguageCoverageSummary {
if m != nil {
return m.CoverageSummaries
}
return nil
}
// The resource ID components that identify the ConfiguredTarget.
type ConfiguredTarget_Id struct {
// The Invocation ID.
InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
// The Target ID.
TargetId string `protobuf:"bytes,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
// The Configuration ID.
ConfigurationId string `protobuf:"bytes,3,opt,name=configuration_id,json=configurationId,proto3" json:"configuration_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfiguredTarget_Id) Reset() { *m = ConfiguredTarget_Id{} }
func (m *ConfiguredTarget_Id) String() string { return proto.CompactTextString(m) }
func (*ConfiguredTarget_Id) ProtoMessage() {}
func (*ConfiguredTarget_Id) Descriptor() ([]byte, []int) {
return fileDescriptor_configured_target_48a4f73ce345d3e8, []int{0, 0}
}
func (m *ConfiguredTarget_Id) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfiguredTarget_Id.Unmarshal(m, b)
}
func (m *ConfiguredTarget_Id) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfiguredTarget_Id.Marshal(b, m, deterministic)
}
func (dst *ConfiguredTarget_Id) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfiguredTarget_Id.Merge(dst, src)
}
func (m *ConfiguredTarget_Id) XXX_Size() int {
return xxx_messageInfo_ConfiguredTarget_Id.Size(m)
}
func (m *ConfiguredTarget_Id) XXX_DiscardUnknown() {
xxx_messageInfo_ConfiguredTarget_Id.DiscardUnknown(m)
}
var xxx_messageInfo_ConfiguredTarget_Id proto.InternalMessageInfo
func (m *ConfiguredTarget_Id) GetInvocationId() string {
if m != nil {
return m.InvocationId
}
return ""
}
func (m *ConfiguredTarget_Id) GetTargetId() string {
if m != nil {
return m.TargetId
}
return ""
}
func (m *ConfiguredTarget_Id) GetConfigurationId() string {
if m != nil {
return m.ConfigurationId
}
return ""
}
// Attributes that apply only to test actions under this configured target.
type ConfiguredTestAttributes struct {
// Total number of test runs. For example, in bazel this is specified with
// --runs_per_test. Zero if runs_per_test is not used.
TotalRunCount int32 `protobuf:"varint,2,opt,name=total_run_count,json=totalRunCount,proto3" json:"total_run_count,omitempty"`
// Total number of test shards. Zero if shard count was not specified.
TotalShardCount int32 `protobuf:"varint,3,opt,name=total_shard_count,json=totalShardCount,proto3" json:"total_shard_count,omitempty"`
// How long test is allowed to run.
TimeoutDuration *duration.Duration `protobuf:"bytes,5,opt,name=timeout_duration,json=timeoutDuration,proto3" json:"timeout_duration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfiguredTestAttributes) Reset() { *m = ConfiguredTestAttributes{} }
func (m *ConfiguredTestAttributes) String() string { return proto.CompactTextString(m) }
func (*ConfiguredTestAttributes) ProtoMessage() {}
func (*ConfiguredTestAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_configured_target_48a4f73ce345d3e8, []int{1}
}
func (m *ConfiguredTestAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfiguredTestAttributes.Unmarshal(m, b)
}
func (m *ConfiguredTestAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfiguredTestAttributes.Marshal(b, m, deterministic)
}
func (dst *ConfiguredTestAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfiguredTestAttributes.Merge(dst, src)
}
func (m *ConfiguredTestAttributes) XXX_Size() int {
return xxx_messageInfo_ConfiguredTestAttributes.Size(m)
}
func (m *ConfiguredTestAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_ConfiguredTestAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_ConfiguredTestAttributes proto.InternalMessageInfo
func (m *ConfiguredTestAttributes) GetTotalRunCount() int32 {
if m != nil {
return m.TotalRunCount
}
return 0
}
func (m *ConfiguredTestAttributes) GetTotalShardCount() int32 {
if m != nil {
return m.TotalShardCount
}
return 0
}
func (m *ConfiguredTestAttributes) GetTimeoutDuration() *duration.Duration {
if m != nil {
return m.TimeoutDuration
}
return nil
}
func init() {
proto.RegisterType((*ConfiguredTarget)(nil), "google.devtools.resultstore.v2.ConfiguredTarget")
proto.RegisterType((*ConfiguredTarget_Id)(nil), "google.devtools.resultstore.v2.ConfiguredTarget.Id")
proto.RegisterType((*ConfiguredTestAttributes)(nil), "google.devtools.resultstore.v2.ConfiguredTestAttributes")
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/configured_target.proto", fileDescriptor_configured_target_48a4f73ce345d3e8)
}
var fileDescriptor_configured_target_48a4f73ce345d3e8 = []byte{
// 536 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdf, 0x8a, 0x13, 0x31,
0x14, 0xc6, 0x69, 0xbb, 0x5d, 0xb7, 0x59, 0xd7, 0xb6, 0xb9, 0x1a, 0x2b, 0x48, 0xa9, 0xb2, 0x74,
0x15, 0x66, 0xa4, 0x8b, 0x7f, 0x50, 0x10, 0xb4, 0x8b, 0x38, 0xe0, 0xc5, 0x32, 0xdd,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0x1a, 0xf8, 0x1c,
0x75, 0x41, 0x01, 0x29, 0x72, 0x6d, 0x65, 0xbe, 0x50, 0x56, 0x82, 0xdb, 0xaa, 0x9d, 0x9d, 0x39,
0x39, 0xb3, 0x72, 0xba, 0x11, 0xf1, 0x0b, 0xd4, 0xf7, 0x3e, 0xf3, 0x93, 0x68, 0x1a, 0x9c, 0x2d,
0xe7, 0xf4, 0x80, 0xd9, 0x46, 0xf7, 0xde, 0x2b, 0xd4, 0x03, 0x51, 0x32, 0x65, 0x21, 0xaf, 0x66,
0x2b, 0x6a, 0xbb, 0xae, 0x79, 0x5c, 0xdd, 0x64, 0x35, 0x7c, 0xf1, 0x55, 0x30, 0x64, 0xdd, 0x10,
0xa9, 0x84, 0xcf, 0xb7, 0x68, 0xb4, 0x50, 0x65, 0xcd, 0xd5, 0x5f, 0x37, 0xbe, 0xa7, 0xc1, 0xc1,
0x55, 0x41, 0x24, 0x8f, 0x95, 0xe6, 0x09, 0x67, 0xd2, 0x6d, 0x90, 0xf8, 0xbf, 0xc8, 0x4a, 0x98,
0xfb, 0xbe, 0x0c, 0x1f, 0x76, 0x96, 0xf3, 0x63, 0x97, 0xba, 0xfc, 0x13, 0x00, 0x00, 0xff, 0xff,
0x8f, 0xb1, 0xb2, 0xc2, 0x0a, 0x05, 0x00, 0x00,
}

View File

@ -0,0 +1,310 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/coverage.proto
package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// 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
// Describes line coverage for a file
type LineCoverage struct {
// Which source lines in the file represent the start of a statement that was
// instrumented to detect whether it was executed by the test.
//
// This is a bitfield where i-th bit corresponds to the i-th line. Divide line
// number by 8 to get index into byte array. Mod line number by 8 to get bit
// number (0 = LSB, 7 = MSB).
//
// A 1 denotes the line was instrumented.
// A 0 denotes the line was not instrumented.
InstrumentedLines []byte `protobuf:"bytes,1,opt,name=instrumented_lines,json=instrumentedLines,proto3" json:"instrumented_lines,omitempty"`
// Which of the instrumented source lines were executed by the test. Should
// include lines that were not instrumented.
//
// This is a bitfield where i-th bit corresponds to the i-th line. Divide line
// number by 8 to get index into byte array. Mod line number by 8 to get bit
// number (0 = LSB, 7 = MSB).
//
// A 1 denotes the line was executed.
// A 0 denotes the line was not executed.
ExecutedLines []byte `protobuf:"bytes,2,opt,name=executed_lines,json=executedLines,proto3" json:"executed_lines,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LineCoverage) Reset() { *m = LineCoverage{} }
func (m *LineCoverage) String() string { return proto.CompactTextString(m) }
func (*LineCoverage) ProtoMessage() {}
func (*LineCoverage) Descriptor() ([]byte, []int) {
return fileDescriptor_coverage_23030c42b40853e2, []int{0}
}
func (m *LineCoverage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LineCoverage.Unmarshal(m, b)
}
func (m *LineCoverage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LineCoverage.Marshal(b, m, deterministic)
}
func (dst *LineCoverage) XXX_Merge(src proto.Message) {
xxx_messageInfo_LineCoverage.Merge(dst, src)
}
func (m *LineCoverage) XXX_Size() int {
return xxx_messageInfo_LineCoverage.Size(m)
}
func (m *LineCoverage) XXX_DiscardUnknown() {
xxx_messageInfo_LineCoverage.DiscardUnknown(m)
}
var xxx_messageInfo_LineCoverage proto.InternalMessageInfo
func (m *LineCoverage) GetInstrumentedLines() []byte {
if m != nil {
return m.InstrumentedLines
}
return nil
}
func (m *LineCoverage) GetExecutedLines() []byte {
if m != nil {
return m.ExecutedLines
}
return nil
}
// Describes branch coverage for a file
type BranchCoverage struct {
// The field branch_present denotes the lines containing at least one branch.
//
// This is a bitfield where i-th bit corresponds to the i-th line. Divide line
// number by 8 to get index into byte array. Mod line number by 8 to get bit
// number (0 = LSB, 7 = MSB).
//
// A 1 denotes the line contains at least one branch.
// A 0 denotes the line contains no branches.
BranchPresent []byte `protobuf:"bytes,1,opt,name=branch_present,json=branchPresent,proto3" json:"branch_present,omitempty"`
// Contains the number of branches present, only for the lines which have the
// corresponding bit set in branch_present, in a relative order ignoring
// lines which do not have any branches.
BranchesInLine []int32 `protobuf:"varint,2,rep,packed,name=branches_in_line,json=branchesInLine,proto3" json:"branches_in_line,omitempty"`
// As each branch can have any one of the following three states: not
// executed, executed but not taken, executed and taken.
//
// This is a bitfield where i-th bit corresponds to the i-th line. Divide line
// number by 8 to get index into byte array. Mod line number by 8 to get bit
// number (0 = LSB, 7 = MSB).
//
// i-th bit of the following two byte arrays are used to denote the above
// mentioned states.
//
// not executed: i-th bit of executed == 0 && i-th bit of taken == 0
// executed but not taken: i-th bit of executed == 1 && i-th bit of taken == 0
// executed and taken: i-th bit of executed == 1 && i-th bit of taken == 1
Executed []byte `protobuf:"bytes,3,opt,name=executed,proto3" json:"executed,omitempty"`
// Described above.
Taken []byte `protobuf:"bytes,4,opt,name=taken,proto3" json:"taken,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BranchCoverage) Reset() { *m = BranchCoverage{} }
func (m *BranchCoverage) String() string { return proto.CompactTextString(m) }
func (*BranchCoverage) ProtoMessage() {}
func (*BranchCoverage) Descriptor() ([]byte, []int) {
return fileDescriptor_coverage_23030c42b40853e2, []int{1}
}
func (m *BranchCoverage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BranchCoverage.Unmarshal(m, b)
}
func (m *BranchCoverage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BranchCoverage.Marshal(b, m, deterministic)
}
func (dst *BranchCoverage) XXX_Merge(src proto.Message) {
xxx_messageInfo_BranchCoverage.Merge(dst, src)
}
func (m *BranchCoverage) XXX_Size() int {
return xxx_messageInfo_BranchCoverage.Size(m)
}
func (m *BranchCoverage) XXX_DiscardUnknown() {
xxx_messageInfo_BranchCoverage.DiscardUnknown(m)
}
var xxx_messageInfo_BranchCoverage proto.InternalMessageInfo
func (m *BranchCoverage) GetBranchPresent() []byte {
if m != nil {
return m.BranchPresent
}
return nil
}
func (m *BranchCoverage) GetBranchesInLine() []int32 {
if m != nil {
return m.BranchesInLine
}
return nil
}
func (m *BranchCoverage) GetExecuted() []byte {
if m != nil {
return m.Executed
}
return nil
}
func (m *BranchCoverage) GetTaken() []byte {
if m != nil {
return m.Taken
}
return nil
}
// Describes code coverage for a particular file under test.
type FileCoverage struct {
// Path of source file within the SourceContext of this Invocation.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// Details of lines in a file required to calculate line coverage.
LineCoverage *LineCoverage `protobuf:"bytes,2,opt,name=line_coverage,json=lineCoverage,proto3" json:"line_coverage,omitempty"`
// Details of branches in a file required to calculate branch coverage.
BranchCoverage *BranchCoverage `protobuf:"bytes,3,opt,name=branch_coverage,json=branchCoverage,proto3" json:"branch_coverage,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FileCoverage) Reset() { *m = FileCoverage{} }
func (m *FileCoverage) String() string { return proto.CompactTextString(m) }
func (*FileCoverage) ProtoMessage() {}
func (*FileCoverage) Descriptor() ([]byte, []int) {
return fileDescriptor_coverage_23030c42b40853e2, []int{2}
}
func (m *FileCoverage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FileCoverage.Unmarshal(m, b)
}
func (m *FileCoverage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FileCoverage.Marshal(b, m, deterministic)
}
func (dst *FileCoverage) XXX_Merge(src proto.Message) {
xxx_messageInfo_FileCoverage.Merge(dst, src)
}
func (m *FileCoverage) XXX_Size() int {
return xxx_messageInfo_FileCoverage.Size(m)
}
func (m *FileCoverage) XXX_DiscardUnknown() {
xxx_messageInfo_FileCoverage.DiscardUnknown(m)
}
var xxx_messageInfo_FileCoverage proto.InternalMessageInfo
func (m *FileCoverage) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *FileCoverage) GetLineCoverage() *LineCoverage {
if m != nil {
return m.LineCoverage
}
return nil
}
func (m *FileCoverage) GetBranchCoverage() *BranchCoverage {
if m != nil {
return m.BranchCoverage
}
return nil
}
// Describes code coverage for a build or test Action. This is used to store
// baseline coverage for build Actions and test coverage for test Actions.
type ActionCoverage struct {
// List of coverage info for all source files that the TestResult covers.
FileCoverages []*FileCoverage `protobuf:"bytes,2,rep,name=file_coverages,json=fileCoverages,proto3" json:"file_coverages,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ActionCoverage) Reset() { *m = ActionCoverage{} }
func (m *ActionCoverage) String() string { return proto.CompactTextString(m) }
func (*ActionCoverage) ProtoMessage() {}
func (*ActionCoverage) Descriptor() ([]byte, []int) {
return fileDescriptor_coverage_23030c42b40853e2, []int{3}
}
func (m *ActionCoverage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ActionCoverage.Unmarshal(m, b)
}
func (m *ActionCoverage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ActionCoverage.Marshal(b, m, deterministic)
}
func (dst *ActionCoverage) XXX_Merge(src proto.Message) {
xxx_messageInfo_ActionCoverage.Merge(dst, src)
}
func (m *ActionCoverage) XXX_Size() int {
return xxx_messageInfo_ActionCoverage.Size(m)
}
func (m *ActionCoverage) XXX_DiscardUnknown() {
xxx_messageInfo_ActionCoverage.DiscardUnknown(m)
}
var xxx_messageInfo_ActionCoverage proto.InternalMessageInfo
func (m *ActionCoverage) GetFileCoverages() []*FileCoverage {
if m != nil {
return m.FileCoverages
}
return nil
}
func init() {
proto.RegisterType((*LineCoverage)(nil), "google.devtools.resultstore.v2.LineCoverage")
proto.RegisterType((*BranchCoverage)(nil), "google.devtools.resultstore.v2.BranchCoverage")
proto.RegisterType((*FileCoverage)(nil), "google.devtools.resultstore.v2.FileCoverage")
proto.RegisterType((*ActionCoverage)(nil), "google.devtools.resultstore.v2.ActionCoverage")
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/coverage.proto", fileDescriptor_coverage_23030c42b40853e2)
}
var fileDescriptor_coverage_23030c42b40853e2 = []byte{
// 372 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6b, 0xe3, 0x30,
0x10, 0xc5, 0xf9, 0x58, 0x76, 0x67, 0x6d, 0xef, 0xae, 0xd8, 0x83, 0xd9, 0xc3, 0x12, 0x0c, 0x81,
0x1c, 0x1a, 0x19, 0xd2, 0x63, 0x4f, 0x4d, 0xa1, 0x10, 0xe8, 0x21, 0x75, 0x0f, 0x85, 0x5e, 0x8c,
0xe3, 0x4c, 0x1c, 0x51, 0x45, 0x72, 0x25, 0xc5, 0xf4, 0x7f, 0xf4, 0x7f, 0xf5, 0x37, 0x95, 0xc8,
0x1f, 0x71, 0x0f, 0x6d, 0x7a, 0xd3, 0xbc, 0x79, 0xf3, 0xde, 0xcc, 0x43, 0x30, 0xcd, 0xa5, 0xcc,
0x39, 0x46, 0x6b, 0x2c, 0x8d, 0x94, 0x5c, 0x47, 0x0a, 0xf5, 0x9e, 0x1b, 0x6d, 0xa4, 0xc2, 0xa8,
0x9c, 0x45, 0x99, 0x2c, 0x51, 0xa5, 0x39, 0xd2, 0x42, 0x49, 0x23, 0xc9, 0xff, 0x8a, 0x4e, 0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 0x30, 0x29, 0x5a, 0xab, 0x3b, 0xf0, 0x37, 0x8c,
0x1f, 0xb7, 0xd7, 0x36, 0xbc, 0x2f, 0xac, 0xdf, 0xcd, 0x25, 0xf6, 0x36, 0x9d, 0x4a, 0xcf, 0x9f,
0x20, 0xcc, 0xe4, 0xee, 0x84, 0xc2, 0xd2, 0x79, 0x58, 0xd4, 0x8c, 0x5c, 0xf2, 0x54, 0xe4, 0x54,
0xaa, 0x3c, 0xca, 0x51, 0xd8, 0x7f, 0x19, 0x55, 0xad, 0xb4, 0x60, 0xfa, 0xa3, 0x9f, 0x7c, 0xd1,
0x29, 0x57, 0xdf, 0xec, 0xd4, 0xf9, 0x5b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3e, 0x92, 0x57, 0x34,
0xfe, 0x02, 0x00, 0x00,
}

View File

@ -0,0 +1,229 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/coverage_summary.proto
package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// 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
// Summary of line coverage
type LineCoverageSummary struct {
// Number of lines instrumented for coverage.
InstrumentedLineCount int32 `protobuf:"varint,1,opt,name=instrumented_line_count,json=instrumentedLineCount,proto3" json:"instrumented_line_count,omitempty"`
// Number of instrumented lines that were executed by the test.
ExecutedLineCount int32 `protobuf:"varint,2,opt,name=executed_line_count,json=executedLineCount,proto3" json:"executed_line_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LineCoverageSummary) Reset() { *m = LineCoverageSummary{} }
func (m *LineCoverageSummary) String() string { return proto.CompactTextString(m) }
func (*LineCoverageSummary) ProtoMessage() {}
func (*LineCoverageSummary) Descriptor() ([]byte, []int) {
return fileDescriptor_coverage_summary_b55cc8729ada7d99, []int{0}
}
func (m *LineCoverageSummary) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LineCoverageSummary.Unmarshal(m, b)
}
func (m *LineCoverageSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LineCoverageSummary.Marshal(b, m, deterministic)
}
func (dst *LineCoverageSummary) XXX_Merge(src proto.Message) {
xxx_messageInfo_LineCoverageSummary.Merge(dst, src)
}
func (m *LineCoverageSummary) XXX_Size() int {
return xxx_messageInfo_LineCoverageSummary.Size(m)
}
func (m *LineCoverageSummary) XXX_DiscardUnknown() {
xxx_messageInfo_LineCoverageSummary.DiscardUnknown(m)
}
var xxx_messageInfo_LineCoverageSummary proto.InternalMessageInfo
func (m *LineCoverageSummary) GetInstrumentedLineCount() int32 {
if m != nil {
return m.InstrumentedLineCount
}
return 0
}
func (m *LineCoverageSummary) GetExecutedLineCount() int32 {
if m != nil {
return m.ExecutedLineCount
}
return 0
}
// Summary of branch coverage
// A branch may be:
// * not executed. Counted only in total.
// * executed but not taken. Appears in total and executed.
// * executed and taken. Appears in all three fields.
type BranchCoverageSummary struct {
// The number of branches present in the file.
TotalBranchCount int32 `protobuf:"varint,1,opt,name=total_branch_count,json=totalBranchCount,proto3" json:"total_branch_count,omitempty"`
// The number of branches executed out of the total branches present.
// A branch is executed when its condition is evaluated.
// This is <= total_branch_count as not all branches are executed.
ExecutedBranchCount int32 `protobuf:"varint,2,opt,name=executed_branch_count,json=executedBranchCount,proto3" json:"executed_branch_count,omitempty"`
// The number of branches taken out of the total branches executed.
// A branch is taken when its condition is satisfied.
// This is <= executed_branch_count as not all executed branches are taken.
TakenBranchCount int32 `protobuf:"varint,3,opt,name=taken_branch_count,json=takenBranchCount,proto3" json:"taken_branch_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BranchCoverageSummary) Reset() { *m = BranchCoverageSummary{} }
func (m *BranchCoverageSummary) String() string { return proto.CompactTextString(m) }
func (*BranchCoverageSummary) ProtoMessage() {}
func (*BranchCoverageSummary) Descriptor() ([]byte, []int) {
return fileDescriptor_coverage_summary_b55cc8729ada7d99, []int{1}
}
func (m *BranchCoverageSummary) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BranchCoverageSummary.Unmarshal(m, b)
}
func (m *BranchCoverageSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BranchCoverageSummary.Marshal(b, m, deterministic)
}
func (dst *BranchCoverageSummary) XXX_Merge(src proto.Message) {
xxx_messageInfo_BranchCoverageSummary.Merge(dst, src)
}
func (m *BranchCoverageSummary) XXX_Size() int {
return xxx_messageInfo_BranchCoverageSummary.Size(m)
}
func (m *BranchCoverageSummary) XXX_DiscardUnknown() {
xxx_messageInfo_BranchCoverageSummary.DiscardUnknown(m)
}
var xxx_messageInfo_BranchCoverageSummary proto.InternalMessageInfo
func (m *BranchCoverageSummary) GetTotalBranchCount() int32 {
if m != nil {
return m.TotalBranchCount
}
return 0
}
func (m *BranchCoverageSummary) GetExecutedBranchCount() int32 {
if m != nil {
return m.ExecutedBranchCount
}
return 0
}
func (m *BranchCoverageSummary) GetTakenBranchCount() int32 {
if m != nil {
return m.TakenBranchCount
}
return 0
}
// Summary of coverage in each language
type LanguageCoverageSummary struct {
// This summary is for all files written in this programming language.
Language Language `protobuf:"varint,1,opt,name=language,proto3,enum=google.devtools.resultstore.v2.Language" json:"language,omitempty"`
// Summary of lines covered vs instrumented.
LineSummary *LineCoverageSummary `protobuf:"bytes,2,opt,name=line_summary,json=lineSummary,proto3" json:"line_summary,omitempty"`
// Summary of branch coverage.
BranchSummary *BranchCoverageSummary `protobuf:"bytes,3,opt,name=branch_summary,json=branchSummary,proto3" json:"branch_summary,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LanguageCoverageSummary) Reset() { *m = LanguageCoverageSummary{} }
func (m *LanguageCoverageSummary) String() string { return proto.CompactTextString(m) }
func (*LanguageCoverageSummary) ProtoMessage() {}
func (*LanguageCoverageSummary) Descriptor() ([]byte, []int) {
return fileDescriptor_coverage_summary_b55cc8729ada7d99, []int{2}
}
func (m *LanguageCoverageSummary) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LanguageCoverageSummary.Unmarshal(m, b)
}
func (m *LanguageCoverageSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LanguageCoverageSummary.Marshal(b, m, deterministic)
}
func (dst *LanguageCoverageSummary) XXX_Merge(src proto.Message) {
xxx_messageInfo_LanguageCoverageSummary.Merge(dst, src)
}
func (m *LanguageCoverageSummary) XXX_Size() int {
return xxx_messageInfo_LanguageCoverageSummary.Size(m)
}
func (m *LanguageCoverageSummary) XXX_DiscardUnknown() {
xxx_messageInfo_LanguageCoverageSummary.DiscardUnknown(m)
}
var xxx_messageInfo_LanguageCoverageSummary proto.InternalMessageInfo
func (m *LanguageCoverageSummary) GetLanguage() Language {
if m != nil {
return m.Language
}
return Language_LANGUAGE_UNSPECIFIED
}
func (m *LanguageCoverageSummary) GetLineSummary() *LineCoverageSummary {
if m != nil {
return m.LineSummary
}
return nil
}
func (m *LanguageCoverageSummary) GetBranchSummary() *BranchCoverageSummary {
if m != nil {
return m.BranchSummary
}
return nil
}
func init() {
proto.RegisterType((*LineCoverageSummary)(nil), "google.devtools.resultstore.v2.LineCoverageSummary")
proto.RegisterType((*BranchCoverageSummary)(nil), "google.devtools.resultstore.v2.BranchCoverageSummary")
proto.RegisterType((*LanguageCoverageSummary)(nil), "google.devtools.resultstore.v2.LanguageCoverageSummary")
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/coverage_summary.proto", fileDescriptor_coverage_summary_b55cc8729ada7d99)
}
var fileDescriptor_coverage_summary_b55cc8729ada7d99 = []byte{
// 358 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x41, 0x4b, 0xeb, 0x40,
0x14, 0x85, 0x49, 0xcb, 0x7b, 0x3c, 0xa6, 0xef, 0x95, 0x67, 0x4a, 0xa9, 0xb8, 0x10, 0xc9, 0xaa,
0xa0, 0x4c, 0x20, 0xa5, 0x6e, 0xdc, 0x55, 0x37, 0x42, 0x17, 0x12, 0xc1, 0x85, 0x08, 0x61, 0x9a,
0x5e, 0xc6, 0x60, 0x32, 0xb7, 0x4e, 0x26, 0x41, 0x17, 0xfe, 0x0c, 0x7f, 0x83, 0x7f, 0x53, 0x32,
0x33, 0x09, 0x69, 0xab, 0x66, 0x39, 0x9c, 0x7b, 0xbe, 0x73, 0x66, 0xee, 0x90, 0x39, 0x47, 0xe4,
0x29, 0xf8, 0x6b, 0x28, 0x15, 0x62, 0x9a, 0xfb, 0x12, 0xf2, 0x22, 0x55, 0xb9, 0x42, 0x09, 0x7e,
0x19, 0xf8, 0x31, 0x96, 0x20, 0x19, 0x87, 0x28, 0x2f, 0xb2, 0x8c, 0xc9, 0x57, 0xba, 0x91, 0xa8,
0xd0, 0x3d, 0x36, 0x36, 0x5a, 0xdb, 0x68, 0xcb, 0x46, 0xcb, 0xe0, 0xe8, 0xb4, 0x13, 0x9b, 0x65,
0x28, 0x0c, 0xcc, 0x7b, 0x23, 0xa3, 0x65, 0x22, 0xe0, 0xd2, 0x46, 0xdd, 0x9a, 0x24, 0xf7, 0x9c,
0x4c, 0x12, 0x91, 0x2b, 0x59, 0x64, 0x20, 0x14, 0xac, 0xa3, 0x34, 0x11, 0x10, 0xc5, 0x58, 0x08,
0x75, 0xe8, 0x9c, 0x38, 0xd3, 0x5f, 0xe1, 0xb8, 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, 0x40, 0x03, 0x00, 0x00,
}

View File

@ -0,0 +1,238 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/file.proto
package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import wrappers "github.com/golang/protobuf/ptypes/wrappers"
// 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 metadata for a file or an archive file entry.
type File struct {
// The identifier of the file or archive entry.
// User-provided, must be unique for the repeated field it is in. When an
// Append RPC is called with a Files field populated, if a File already exists
// with this ID, that File will be overwritten with the new File proto.
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
// The URI of a file.
// This could also be the URI of an entire archive.
// Most log data doesn't need to be stored forever, so a ttl is suggested.
// Note that if you ever move or delete the file at this URI, the link from
// the server will be broken.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// (Optional) The length of the file in bytes. Allows the filesize to be
// shown in the UI. Omit if file is still being written or length is
// not known. This could also be the length of an entire archive.
Length *wrappers.Int64Value `protobuf:"bytes,3,opt,name=length,proto3" json:"length,omitempty"`
// (Optional) The content-type (aka MIME-type) of the file. This is sent to
// the web browser so it knows how to handle the file. (e.g. text/plain,
// image/jpeg, text/html, etc). For zip archives, use "application/zip".
ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
// (Optional) If the above path, length, and content_type are referring to an
// archive, and you wish to refer to a particular entry within that archive,
// put the particular archive entry data here.
ArchiveEntry *ArchiveEntry `protobuf:"bytes,5,opt,name=archive_entry,json=archiveEntry,proto3" json:"archive_entry,omitempty"`
// (Optional) A url to a content display app/site for this file or archive
// entry.
ContentViewer string `protobuf:"bytes,6,opt,name=content_viewer,json=contentViewer,proto3" json:"content_viewer,omitempty"`
// (Optional) Whether to hide this file or archive entry in the UI. Defaults
// to false. A checkbox lets users see hidden files, but they're hidden by
// default.
Hidden bool `protobuf:"varint,7,opt,name=hidden,proto3" json:"hidden,omitempty"`
// (Optional) A short description of what this file or archive entry
// contains. This description should help someone viewing the list of these
// files to understand the purpose of this file and what they would want to
// view it for.
Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *File) Reset() { *m = File{} }
func (m *File) String() string { return proto.CompactTextString(m) }
func (*File) ProtoMessage() {}
func (*File) Descriptor() ([]byte, []int) {
return fileDescriptor_file_164a6769e8eec974, []int{0}
}
func (m *File) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_File.Unmarshal(m, b)
}
func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_File.Marshal(b, m, deterministic)
}
func (dst *File) XXX_Merge(src proto.Message) {
xxx_messageInfo_File.Merge(dst, src)
}
func (m *File) XXX_Size() int {
return xxx_messageInfo_File.Size(m)
}
func (m *File) XXX_DiscardUnknown() {
xxx_messageInfo_File.DiscardUnknown(m)
}
var xxx_messageInfo_File proto.InternalMessageInfo
func (m *File) GetUid() string {
if m != nil {
return m.Uid
}
return ""
}
func (m *File) GetUri() string {
if m != nil {
return m.Uri
}
return ""
}
func (m *File) GetLength() *wrappers.Int64Value {
if m != nil {
return m.Length
}
return nil
}
func (m *File) GetContentType() string {
if m != nil {
return m.ContentType
}
return ""
}
func (m *File) GetArchiveEntry() *ArchiveEntry {
if m != nil {
return m.ArchiveEntry
}
return nil
}
func (m *File) GetContentViewer() string {
if m != nil {
return m.ContentViewer
}
return ""
}
func (m *File) GetHidden() bool {
if m != nil {
return m.Hidden
}
return false
}
func (m *File) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
// Information specific to an entry in an archive.
type ArchiveEntry struct {
// The relative path of the entry within the archive.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// (Optional) The uncompressed length of the archive entry in bytes. Allows
// the entry size to be shown in the UI. Omit if the length is not known.
Length *wrappers.Int64Value `protobuf:"bytes,2,opt,name=length,proto3" json:"length,omitempty"`
// (Optional) The content-type (aka MIME-type) of the archive entry. (e.g.
// text/plain, image/jpeg, text/html, etc). This is sent to the web browser
// so it knows how to handle the entry.
ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ArchiveEntry) Reset() { *m = ArchiveEntry{} }
func (m *ArchiveEntry) String() string { return proto.CompactTextString(m) }
func (*ArchiveEntry) ProtoMessage() {}
func (*ArchiveEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_file_164a6769e8eec974, []int{1}
}
func (m *ArchiveEntry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ArchiveEntry.Unmarshal(m, b)
}
func (m *ArchiveEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ArchiveEntry.Marshal(b, m, deterministic)
}
func (dst *ArchiveEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_ArchiveEntry.Merge(dst, src)
}
func (m *ArchiveEntry) XXX_Size() int {
return xxx_messageInfo_ArchiveEntry.Size(m)
}
func (m *ArchiveEntry) XXX_DiscardUnknown() {
xxx_messageInfo_ArchiveEntry.DiscardUnknown(m)
}
var xxx_messageInfo_ArchiveEntry proto.InternalMessageInfo
func (m *ArchiveEntry) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *ArchiveEntry) GetLength() *wrappers.Int64Value {
if m != nil {
return m.Length
}
return nil
}
func (m *ArchiveEntry) GetContentType() string {
if m != nil {
return m.ContentType
}
return ""
}
func init() {
proto.RegisterType((*File)(nil), "google.devtools.resultstore.v2.File")
proto.RegisterType((*ArchiveEntry)(nil), "google.devtools.resultstore.v2.ArchiveEntry")
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/file.proto", fileDescriptor_file_164a6769e8eec974)
}
var fileDescriptor_file_164a6769e8eec974 = []byte{
// 350 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x52, 0xdf, 0x4b, 0xeb, 0x30,
0x14, 0xa6, 0xdb, 0x6e, 0xef, 0x6e, 0xb6, 0x5d, 0x24, 0x0f, 0x12, 0x14, 0xa4, 0x0e, 0x84, 0x09,
0x92, 0xc0, 0x26, 0xbe, 0xf8, 0xa4, 0xa0, 0xb0, 0x37, 0x2d, 0xb2, 0x07, 0x5f, 0x46, 0xd7, 0x9e,
0xb5, 0x81, 0x98, 0xc4, 0x34, 0xed, 0x98, 0x7f, 0x98, 0x7f, 0x9f, 0x2c, 0xcd, 0xa0, 0x20, 0x2a,
0xf8, 0x76, 0xce, 0x77, 0xbe, 0x1f, 0xed, 0x47, 0xd0, 0x79, 0xae, 0x54, 0x2e, 0x80, 0x65, 0x50,
0x5b, 0xa5, 0x44, 0xc9, 0x0c, 0x94, 0x95, 0xb0, 0xa5, 0x55, 0x06, 0x58, 0x3d, 0x65, 0x6b, 0x2e,
0x80, 0x6a, 0xa3, 0xac, 0xc2, 0x27, 0x0d, 0x95, 0xee, 0xa9, 0xb4, 0x45, 0xa5, 0xf5, 0xf4, 0xc8,
0xdf, 0x99, 0x63, 0xaf, 0xaa, 0x35, 0xdb, 0x98, 0x44, 0x6b, 0x30, 0x65, 0xa3, 0x1f, 0xbf, 0x77,
0x50, 0xef, 0x9e, 0x0b, 0xc0, 0x07, 0xa8, 0x5b, 0xf1, 0x8c, 0x04, 0x51, 0x30, 0xf9, 0x17, 0xef,
0x46, 0x87,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 0x66, 0xd7, 0xad, 0x75, 0x15, 0x3a, 0xd5,
0xec, 0x23, 0x00, 0x00, 0xff, 0xff, 0x65, 0xa9, 0x29, 0x4f, 0x9b, 0x02, 0x00, 0x00,
}

View File

@ -0,0 +1,169 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/file_set.proto
package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// 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
// Represents a set of files within an Invocation. Can contain other file sets.
type FileSet struct {
// The format of this FileSet resource name must be:
// invocations/${INVOCATION_ID}/fileSets/${FILE_SET_ID}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource ID components that identify the file set. They must match the
// resource name after proper encoding.
Id *FileSet_Id `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// List of names of other file sets that are referenced from this one.
// Each name must point to a file set under the same invocation. The name
// format must be: invocations/${INVOCATION_ID}/fileSets/${FILE_SET_ID}
FileSets []string `protobuf:"bytes,3,rep,name=file_sets,json=fileSets,proto3" json:"file_sets,omitempty"`
// Files that are contained within this file set.
Files []*File `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FileSet) Reset() { *m = FileSet{} }
func (m *FileSet) String() string { return proto.CompactTextString(m) }
func (*FileSet) ProtoMessage() {}
func (*FileSet) Descriptor() ([]byte, []int) {
return fileDescriptor_file_set_f92ed2b2eba5ffbc, []int{0}
}
func (m *FileSet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FileSet.Unmarshal(m, b)
}
func (m *FileSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FileSet.Marshal(b, m, deterministic)
}
func (dst *FileSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_FileSet.Merge(dst, src)
}
func (m *FileSet) XXX_Size() int {
return xxx_messageInfo_FileSet.Size(m)
}
func (m *FileSet) XXX_DiscardUnknown() {
xxx_messageInfo_FileSet.DiscardUnknown(m)
}
var xxx_messageInfo_FileSet proto.InternalMessageInfo
func (m *FileSet) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *FileSet) GetId() *FileSet_Id {
if m != nil {
return m.Id
}
return nil
}
func (m *FileSet) GetFileSets() []string {
if m != nil {
return m.FileSets
}
return nil
}
func (m *FileSet) GetFiles() []*File {
if m != nil {
return m.Files
}
return nil
}
// The resource ID components that identify the FileSet.
type FileSet_Id struct {
// The Invocation ID.
InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
// The FileSet ID.
FileSetId string `protobuf:"bytes,2,opt,name=file_set_id,json=fileSetId,proto3" json:"file_set_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FileSet_Id) Reset() { *m = FileSet_Id{} }
func (m *FileSet_Id) String() string { return proto.CompactTextString(m) }
func (*FileSet_Id) ProtoMessage() {}
func (*FileSet_Id) Descriptor() ([]byte, []int) {
return fileDescriptor_file_set_f92ed2b2eba5ffbc, []int{0, 0}
}
func (m *FileSet_Id) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FileSet_Id.Unmarshal(m, b)
}
func (m *FileSet_Id) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FileSet_Id.Marshal(b, m, deterministic)
}
func (dst *FileSet_Id) XXX_Merge(src proto.Message) {
xxx_messageInfo_FileSet_Id.Merge(dst, src)
}
func (m *FileSet_Id) XXX_Size() int {
return xxx_messageInfo_FileSet_Id.Size(m)
}
func (m *FileSet_Id) XXX_DiscardUnknown() {
xxx_messageInfo_FileSet_Id.DiscardUnknown(m)
}
var xxx_messageInfo_FileSet_Id proto.InternalMessageInfo
func (m *FileSet_Id) GetInvocationId() string {
if m != nil {
return m.InvocationId
}
return ""
}
func (m *FileSet_Id) GetFileSetId() string {
if m != nil {
return m.FileSetId
}
return ""
}
func init() {
proto.RegisterType((*FileSet)(nil), "google.devtools.resultstore.v2.FileSet")
proto.RegisterType((*FileSet_Id)(nil), "google.devtools.resultstore.v2.FileSet.Id")
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/file_set.proto", fileDescriptor_file_set_f92ed2b2eba5ffbc)
}
var fileDescriptor_file_set_f92ed2b2eba5ffbc = []byte{
// 271 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xbb, 0x4f, 0xc3, 0x30,
0x10, 0x87, 0x95, 0xa4, 0x3c, 0x72, 0x81, 0xc5, 0x53, 0x54, 0xa4, 0x2a, 0x2a, 0x0c, 0x01, 0x09,
0x5b, 0x0a, 0x5b, 0xd9, 0x18, 0x90, 0xbc, 0xa1, 0xb0, 0xb1, 0x44, 0xa1, 0xbe, 0x5a, 0x96, 0xdc,
0x5c, 0x89, 0x4d, 0xfe, 0x7b, 0x24, 0x44, 0x1e, 0xa2, 0x0b, 0xb4, 0xdb, 0xd9, 0xfe, 0xee, 0x77,
0x9f, 0x0f, 0xee, 0x35, 0x91, 0xb6, 0x28, 0x14, 0x76, 0x9e, 0xc8, 0x3a, 0xd1, 0xa2, 0xfb, 0xb4,
0xde, 0x79, 0x6a, 0x51, 0x74, 0x85, 0xd8, 0x18, 0x8b, 0x95, 0x43, 0xcf, 0x77, 0x2d, 0x79, 0x62,
0x8b, 0x01, 0xe7, 0x13, 0xce, 0xf7, 0x70, 0xde, 0x15, 0xf3, 0xdb, 0x23, 0xe2, 0x86, 0xa8, 0xe5,
0x57, 0x00, 0x67, 0xcf, 0xc6, 0xe2, 0x2b, 0x7a, 0xc6, 0x60, 0xd6, 0xd4, 0x5b, 0x4c, 0x83, 0x2c,
0xc8, 0xe3, 0xb2, 0xaf, 0xd9, 0x0a, 0x42, 0xa3, 0xd2, 0x30, 0x0b, 0xf2, 0xa4, 0xb8, 0xe3, 0xff,
0xcf, 0xe5, 0x63, 0x10, 0x97, 0xaa, 0x0c, 0x8d, 0x62, 0x57, 0x10, 0x4f, 0xe2, 0x2e, 0x8d, 0xb2,
0x28, 0x8f, 0xcb, 0xf3, 0xcd, 0x80, 0x38, 0xb6, 0x82, 0x93, 0x9f, 0xda, 0xa5, 0xb3, 0x2c, 0xca,
0x93, 0xe2, 0xe6, 0x98, 0xec, 0x72, 0x68, 0x99, 0x4b, 0x08, 0xa5, 0x62, 0xd7, 0x70, 0x69, 0x9a,
0x8e, 0xd6, 0xb5, 0x37, 0xd4, 0x54, 0x46, 0x8d, 0xde, 0x17, 0xbf, 0x97, 0x52, 0xb1, 0x05, 0x24,
0x93, 0x43, 0x35, 0x7e, 0x24, 0x2e, 0xe3, 0xd1, 0x42, 0xaa, 0xa7, 0x0f, 0x58, 0xae, 0x69, 0x7b,
0x60, 0xf8, 0x4b, 0xf0, 0x26, 0x47, 0x42, 0x93, 0xad, 0x1b, 0xcd, 0xa9, 0xd5, 0x42, 0x63, 0xd3,
0xef, 0x50, 0x0c, 0x4f, 0xf5, 0xce, 0xb8, 0xbf, 0x36, 0xfe, 0xb8, 0x77, 0x7c, 0x3f, 0xed, 0xbb,
0x1e, 0xbe, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x67, 0xbb, 0x64, 0xf5, 0x01, 0x00, 0x00,
}

View File

@ -0,0 +1,485 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/invocation.proto
package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// 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
// An Invocation typically represents the result of running a tool. Each has a
// unique ID, typically generated by the server. Target resources under each
// Invocation contain the bulk of the data.
type Invocation struct {
// The resource name. Its format must be:
// invocations/${INVOCATION_ID}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource ID components that identify the Invocation. They must match
// the resource name after proper encoding.
Id *Invocation_Id `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// The aggregate status of the invocation.
StatusAttributes *StatusAttributes `protobuf:"bytes,3,opt,name=status_attributes,json=statusAttributes,proto3" json:"status_attributes,omitempty"`
// When this invocation started and its duration.
Timing *Timing `protobuf:"bytes,4,opt,name=timing,proto3" json:"timing,omitempty"`
// Attributes of this invocation.
InvocationAttributes *InvocationAttributes `protobuf:"bytes,5,opt,name=invocation_attributes,json=invocationAttributes,proto3" json:"invocation_attributes,omitempty"`
// The workspace the tool was run in.
WorkspaceInfo *WorkspaceInfo `protobuf:"bytes,6,opt,name=workspace_info,json=workspaceInfo,proto3" json:"workspace_info,omitempty"`
// Arbitrary name-value pairs.
// This is implemented as a multi-map. Multiple properties are allowed with
// the same key. Properties will be returned in lexicographical order by key.
Properties []*Property `protobuf:"bytes,7,rep,name=properties,proto3" json:"properties,omitempty"`
// A list of file references for invocation level files.
// The file IDs must be unique within this list. Duplicate file IDs will
// result in an error. Files will be returned in lexicographical order by ID.
// Use this field to specify build logs, and other invocation level logs.
Files []*File `protobuf:"bytes,8,rep,name=files,proto3" json:"files,omitempty"`
// Summary of aggregate coverage across all Actions in this Invocation.
// the server populates this for you in the post-processing phase.
CoverageSummaries []*LanguageCoverageSummary `protobuf:"bytes,9,rep,name=coverage_summaries,json=coverageSummaries,proto3" json:"coverage_summaries,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Invocation) Reset() { *m = Invocation{} }
func (m *Invocation) String() string { return proto.CompactTextString(m) }
func (*Invocation) ProtoMessage() {}
func (*Invocation) Descriptor() ([]byte, []int) {
return fileDescriptor_invocation_04b66137ff87776e, []int{0}
}
func (m *Invocation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Invocation.Unmarshal(m, b)
}
func (m *Invocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Invocation.Marshal(b, m, deterministic)
}
func (dst *Invocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Invocation.Merge(dst, src)
}
func (m *Invocation) XXX_Size() int {
return xxx_messageInfo_Invocation.Size(m)
}
func (m *Invocation) XXX_DiscardUnknown() {
xxx_messageInfo_Invocation.DiscardUnknown(m)
}
var xxx_messageInfo_Invocation proto.InternalMessageInfo
func (m *Invocation) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Invocation) GetId() *Invocation_Id {
if m != nil {
return m.Id
}
return nil
}
func (m *Invocation) GetStatusAttributes() *StatusAttributes {
if m != nil {
return m.StatusAttributes
}
return nil
}
func (m *Invocation) GetTiming() *Timing {
if m != nil {
return m.Timing
}
return nil
}
func (m *Invocation) GetInvocationAttributes() *InvocationAttributes {
if m != nil {
return m.InvocationAttributes
}
return nil
}
func (m *Invocation) GetWorkspaceInfo() *WorkspaceInfo {
if m != nil {
return m.WorkspaceInfo
}
return nil
}
func (m *Invocation) GetProperties() []*Property {
if m != nil {
return m.Properties
}
return nil
}
func (m *Invocation) GetFiles() []*File {
if m != nil {
return m.Files
}
return nil
}
func (m *Invocation) GetCoverageSummaries() []*LanguageCoverageSummary {
if m != nil {
return m.CoverageSummaries
}
return nil
}
// The resource ID components that identify the Invocation.
type Invocation_Id struct {
// The Invocation ID.
InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Invocation_Id) Reset() { *m = Invocation_Id{} }
func (m *Invocation_Id) String() string { return proto.CompactTextString(m) }
func (*Invocation_Id) ProtoMessage() {}
func (*Invocation_Id) Descriptor() ([]byte, []int) {
return fileDescriptor_invocation_04b66137ff87776e, []int{0, 0}
}
func (m *Invocation_Id) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Invocation_Id.Unmarshal(m, b)
}
func (m *Invocation_Id) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Invocation_Id.Marshal(b, m, deterministic)
}
func (dst *Invocation_Id) XXX_Merge(src proto.Message) {
xxx_messageInfo_Invocation_Id.Merge(dst, src)
}
func (m *Invocation_Id) XXX_Size() int {
return xxx_messageInfo_Invocation_Id.Size(m)
}
func (m *Invocation_Id) XXX_DiscardUnknown() {
xxx_messageInfo_Invocation_Id.DiscardUnknown(m)
}
var xxx_messageInfo_Invocation_Id proto.InternalMessageInfo
func (m *Invocation_Id) GetInvocationId() string {
if m != nil {
return m.InvocationId
}
return ""
}
// If known, represents the state of the user/build-system workspace.
type WorkspaceContext struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WorkspaceContext) Reset() { *m = WorkspaceContext{} }
func (m *WorkspaceContext) String() string { return proto.CompactTextString(m) }
func (*WorkspaceContext) ProtoMessage() {}
func (*WorkspaceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_invocation_04b66137ff87776e, []int{1}
}
func (m *WorkspaceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WorkspaceContext.Unmarshal(m, b)
}
func (m *WorkspaceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WorkspaceContext.Marshal(b, m, deterministic)
}
func (dst *WorkspaceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_WorkspaceContext.Merge(dst, src)
}
func (m *WorkspaceContext) XXX_Size() int {
return xxx_messageInfo_WorkspaceContext.Size(m)
}
func (m *WorkspaceContext) XXX_DiscardUnknown() {
xxx_messageInfo_WorkspaceContext.DiscardUnknown(m)
}
var xxx_messageInfo_WorkspaceContext proto.InternalMessageInfo
// Describes the workspace under which the tool was invoked, this includes
// information that was fed into the command, the source code referenced, and
// the tool itself.
type WorkspaceInfo struct {
// Data about the workspace that might be useful for debugging.
WorkspaceContext *WorkspaceContext `protobuf:"bytes,1,opt,name=workspace_context,json=workspaceContext,proto3" json:"workspace_context,omitempty"`
// Where the tool was invoked
Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
// The client's working directory where the build/test was run from.
WorkingDirectory string `protobuf:"bytes,4,opt,name=working_directory,json=workingDirectory,proto3" json:"working_directory,omitempty"`
// Tools should set tool_tag to the name of the tool or use case.
ToolTag string `protobuf:"bytes,5,opt,name=tool_tag,json=toolTag,proto3" json:"tool_tag,omitempty"`
// The command lines invoked. The first command line is the one typed by the
// user, then each one after that should be an expansion of the previous
// command line.
CommandLines []*CommandLine `protobuf:"bytes,7,rep,name=command_lines,json=commandLines,proto3" json:"command_lines,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WorkspaceInfo) Reset() { *m = WorkspaceInfo{} }
func (m *WorkspaceInfo) String() string { return proto.CompactTextString(m) }
func (*WorkspaceInfo) ProtoMessage() {}
func (*WorkspaceInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_invocation_04b66137ff87776e, []int{2}
}
func (m *WorkspaceInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WorkspaceInfo.Unmarshal(m, b)
}
func (m *WorkspaceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WorkspaceInfo.Marshal(b, m, deterministic)
}
func (dst *WorkspaceInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_WorkspaceInfo.Merge(dst, src)
}
func (m *WorkspaceInfo) XXX_Size() int {
return xxx_messageInfo_WorkspaceInfo.Size(m)
}
func (m *WorkspaceInfo) XXX_DiscardUnknown() {
xxx_messageInfo_WorkspaceInfo.DiscardUnknown(m)
}
var xxx_messageInfo_WorkspaceInfo proto.InternalMessageInfo
func (m *WorkspaceInfo) GetWorkspaceContext() *WorkspaceContext {
if m != nil {
return m.WorkspaceContext
}
return nil
}
func (m *WorkspaceInfo) GetHostname() string {
if m != nil {
return m.Hostname
}
return ""
}
func (m *WorkspaceInfo) GetWorkingDirectory() string {
if m != nil {
return m.WorkingDirectory
}
return ""
}
func (m *WorkspaceInfo) GetToolTag() string {
if m != nil {
return m.ToolTag
}
return ""
}
func (m *WorkspaceInfo) GetCommandLines() []*CommandLine {
if m != nil {
return m.CommandLines
}
return nil
}
// The command and arguments that produced this Invocation.
type CommandLine struct {
// A label describing this command line.
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
// The command-line tool that is run: argv[0].
Tool string `protobuf:"bytes,2,opt,name=tool,proto3" json:"tool,omitempty"`
// The arguments to the above tool: argv[1]...argv[N].
Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
// The actual command that was run with the tool. (e.g. "build", or "test")
// Omit if the tool doesn't accept a command.
// This is a duplicate of one of the fields in args.
Command string `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandLine) Reset() { *m = CommandLine{} }
func (m *CommandLine) String() string { return proto.CompactTextString(m) }
func (*CommandLine) ProtoMessage() {}
func (*CommandLine) Descriptor() ([]byte, []int) {
return fileDescriptor_invocation_04b66137ff87776e, []int{3}
}
func (m *CommandLine) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandLine.Unmarshal(m, b)
}
func (m *CommandLine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandLine.Marshal(b, m, deterministic)
}
func (dst *CommandLine) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandLine.Merge(dst, src)
}
func (m *CommandLine) XXX_Size() int {
return xxx_messageInfo_CommandLine.Size(m)
}
func (m *CommandLine) XXX_DiscardUnknown() {
xxx_messageInfo_CommandLine.DiscardUnknown(m)
}
var xxx_messageInfo_CommandLine proto.InternalMessageInfo
func (m *CommandLine) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
func (m *CommandLine) GetTool() string {
if m != nil {
return m.Tool
}
return ""
}
func (m *CommandLine) GetArgs() []string {
if m != nil {
return m.Args
}
return nil
}
func (m *CommandLine) GetCommand() string {
if m != nil {
return m.Command
}
return ""
}
// Attributes that apply to all invocations.
type InvocationAttributes struct {
// The project ID this invocation is associated with. This must be
// set in the CreateInvocation call, and can't be changed.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// The list of users in the command chain. The first user in this sequence
// is the one who instigated the first command in the chain.
Users []string `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
// Labels to categorize this invocation.
// This is implemented as a set. All labels will be unique. Any duplicate
// labels added will be ignored. Labels will be returned in lexicographical
// order. Labels should be short, easy to read, and you
// shouldn't have more than a handful.
// Labels should match regex \w([- \w]*\w)?
// Labels should not be used for unique properties such as unique IDs.
// Use properties in cases that don't meet these conditions.
Labels []string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InvocationAttributes) Reset() { *m = InvocationAttributes{} }
func (m *InvocationAttributes) String() string { return proto.CompactTextString(m) }
func (*InvocationAttributes) ProtoMessage() {}
func (*InvocationAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_invocation_04b66137ff87776e, []int{4}
}
func (m *InvocationAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InvocationAttributes.Unmarshal(m, b)
}
func (m *InvocationAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InvocationAttributes.Marshal(b, m, deterministic)
}
func (dst *InvocationAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_InvocationAttributes.Merge(dst, src)
}
func (m *InvocationAttributes) XXX_Size() int {
return xxx_messageInfo_InvocationAttributes.Size(m)
}
func (m *InvocationAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_InvocationAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_InvocationAttributes proto.InternalMessageInfo
func (m *InvocationAttributes) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *InvocationAttributes) GetUsers() []string {
if m != nil {
return m.Users
}
return nil
}
func (m *InvocationAttributes) GetLabels() []string {
if m != nil {
return m.Labels
}
return nil
}
func init() {
proto.RegisterType((*Invocation)(nil), "google.devtools.resultstore.v2.Invocation")
proto.RegisterType((*Invocation_Id)(nil), "google.devtools.resultstore.v2.Invocation.Id")
proto.RegisterType((*WorkspaceContext)(nil), "google.devtools.resultstore.v2.WorkspaceContext")
proto.RegisterType((*WorkspaceInfo)(nil), "google.devtools.resultstore.v2.WorkspaceInfo")
proto.RegisterType((*CommandLine)(nil), "google.devtools.resultstore.v2.CommandLine")
proto.RegisterType((*InvocationAttributes)(nil), "google.devtools.resultstore.v2.InvocationAttributes")
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/invocation.proto", fileDescriptor_invocation_04b66137ff87776e)
}
var fileDescriptor_invocation_04b66137ff87776e = []byte{
// 631 bytes of a gzipped FileDescriptorProto
0x1f, 0x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x99, 0x30, 0xb1, 0xe5, 0xe4,
0x9a, 0x2a, 0xed, 0x75, 0xdd, 0x2e, 0x45, 0x80, 0xee, 0xc0, 0xc0, 0xd5, 0x55, 0x6d, 0x5e, 0x46,
0xef, 0x7e, 0xc0, 0x24, 0x96, 0x59, 0x4b, 0x2f, 0x4e, 0x3b, 0x9f, 0xc3, 0x72, 0x05, 0x93, 0x29,
0x11, 0xcc, 0x97, 0x8a, 0x05, 0x8c, 0x0a, 0x37, 0x25, 0xcb, 0x3f, 0x01, 0xb2, 0xe0, 0xfa, 0x6f,
0x33, 0xf5, 0x55, 0x23, 0xbc, 0x18, 0x38, 0xd5, 0xd3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfa,
0x5b, 0x4b, 0x30, 0x3d, 0x06, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,433 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/resultstore_file_download.proto
package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
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
// Request object for GetFile
type GetFileRequest struct {
// This corresponds to the uri field in the File message.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// The offset for the first byte to return in the read, relative to the start
// of the resource.
//
// A `read_offset` that is negative or greater than the size of the resource
// will cause an `OUT_OF_RANGE` error.
ReadOffset int64 `protobuf:"varint,2,opt,name=read_offset,json=readOffset,proto3" json:"read_offset,omitempty"`
// The maximum number of `data` bytes the server is allowed to return in the
// sum of all `ReadResponse` messages. A `read_limit` of zero indicates that
// there is no limit, and a negative `read_limit` will cause an error.
//
// If the stream returns fewer bytes than allowed by the `read_limit` and no
// error occurred, the stream includes all data from the `read_offset` to the
// end of the resource.
ReadLimit int64 `protobuf:"varint,3,opt,name=read_limit,json=readLimit,proto3" json:"read_limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetFileRequest) Reset() { *m = GetFileRequest{} }
func (m *GetFileRequest) String() string { return proto.CompactTextString(m) }
func (*GetFileRequest) ProtoMessage() {}
func (*GetFileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_resultstore_file_download_7c120db11270c429, []int{0}
}
func (m *GetFileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFileRequest.Unmarshal(m, b)
}
func (m *GetFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFileRequest.Marshal(b, m, deterministic)
}
func (dst *GetFileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFileRequest.Merge(dst, src)
}
func (m *GetFileRequest) XXX_Size() int {
return xxx_messageInfo_GetFileRequest.Size(m)
}
func (m *GetFileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetFileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetFileRequest proto.InternalMessageInfo
func (m *GetFileRequest) GetUri() string {
if m != nil {
return m.Uri
}
return ""
}
func (m *GetFileRequest) GetReadOffset() int64 {
if m != nil {
return m.ReadOffset
}
return 0
}
func (m *GetFileRequest) GetReadLimit() int64 {
if m != nil {
return m.ReadLimit
}
return 0
}
// Response object for GetFile
type GetFileResponse struct {
// The file data.
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetFileResponse) Reset() { *m = GetFileResponse{} }
func (m *GetFileResponse) String() string { return proto.CompactTextString(m) }
func (*GetFileResponse) ProtoMessage() {}
func (*GetFileResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_resultstore_file_download_7c120db11270c429, []int{1}
}
func (m *GetFileResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFileResponse.Unmarshal(m, b)
}
func (m *GetFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFileResponse.Marshal(b, m, deterministic)
}
func (dst *GetFileResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFileResponse.Merge(dst, src)
}
func (m *GetFileResponse) XXX_Size() int {
return xxx_messageInfo_GetFileResponse.Size(m)
}
func (m *GetFileResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetFileResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetFileResponse proto.InternalMessageInfo
func (m *GetFileResponse) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
// Request object for GetFileTail
type GetFileTailRequest struct {
// This corresponds to the uri field in the File message.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// The offset for the first byte to return in the read, relative to the end
// of the resource.
//
// A `read_offset` that is negative or greater than the size of the resource
// will cause an `OUT_OF_RANGE` error.
ReadOffset int64 `protobuf:"varint,2,opt,name=read_offset,json=readOffset,proto3" json:"read_offset,omitempty"`
// The maximum number of `data` bytes the server is allowed to return. The
// server will return bytes starting from the tail of the file.
//
// A `read_limit` of zero indicates that there is no limit, and a negative
// `read_limit` will cause an error.
ReadLimit int64 `protobuf:"varint,3,opt,name=read_limit,json=readLimit,proto3" json:"read_limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetFileTailRequest) Reset() { *m = GetFileTailRequest{} }
func (m *GetFileTailRequest) String() string { return proto.CompactTextString(m) }
func (*GetFileTailRequest) ProtoMessage() {}
func (*GetFileTailRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_resultstore_file_download_7c120db11270c429, []int{2}
}
func (m *GetFileTailRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFileTailRequest.Unmarshal(m, b)
}
func (m *GetFileTailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFileTailRequest.Marshal(b, m, deterministic)
}
func (dst *GetFileTailRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFileTailRequest.Merge(dst, src)
}
func (m *GetFileTailRequest) XXX_Size() int {
return xxx_messageInfo_GetFileTailRequest.Size(m)
}
func (m *GetFileTailRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetFileTailRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetFileTailRequest proto.InternalMessageInfo
func (m *GetFileTailRequest) GetUri() string {
if m != nil {
return m.Uri
}
return ""
}
func (m *GetFileTailRequest) GetReadOffset() int64 {
if m != nil {
return m.ReadOffset
}
return 0
}
func (m *GetFileTailRequest) GetReadLimit() int64 {
if m != nil {
return m.ReadLimit
}
return 0
}
// Response object for GetFileTail
type GetFileTailResponse struct {
// The file data, encoded with UTF-8.
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetFileTailResponse) Reset() { *m = GetFileTailResponse{} }
func (m *GetFileTailResponse) String() string { return proto.CompactTextString(m) }
func (*GetFileTailResponse) ProtoMessage() {}
func (*GetFileTailResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_resultstore_file_download_7c120db11270c429, []int{3}
}
func (m *GetFileTailResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFileTailResponse.Unmarshal(m, b)
}
func (m *GetFileTailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFileTailResponse.Marshal(b, m, deterministic)
}
func (dst *GetFileTailResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFileTailResponse.Merge(dst, src)
}
func (m *GetFileTailResponse) XXX_Size() int {
return xxx_messageInfo_GetFileTailResponse.Size(m)
}
func (m *GetFileTailResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetFileTailResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetFileTailResponse proto.InternalMessageInfo
func (m *GetFileTailResponse) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*GetFileRequest)(nil), "google.devtools.resultstore.v2.GetFileRequest")
proto.RegisterType((*GetFileResponse)(nil), "google.devtools.resultstore.v2.GetFileResponse")
proto.RegisterType((*GetFileTailRequest)(nil), "google.devtools.resultstore.v2.GetFileTailRequest")
proto.RegisterType((*GetFileTailResponse)(nil), "google.devtools.resultstore.v2.GetFileTailResponse")
}
// 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
// ResultStoreFileDownloadClient is the client API for ResultStoreFileDownload service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ResultStoreFileDownloadClient interface {
// Retrieves the File with the given uri.
// returns a stream of bytes to be stitched together in order.
//
// An error will be reported in the following cases:
// - If the File is not found.
// - If the given File uri is badly formatted.
GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (ResultStoreFileDownload_GetFileClient, error)
// Retrieves the tail of a File with the given uri.
//
// An error will be reported in the following cases:
// - If the File is not found.
// - If the given File uri is badly formatted.
GetFileTail(ctx context.Context, in *GetFileTailRequest, opts ...grpc.CallOption) (*GetFileTailResponse, error)
}
type resultStoreFileDownloadClient struct {
cc *grpc.ClientConn
}
func NewResultStoreFileDownloadClient(cc *grpc.ClientConn) ResultStoreFileDownloadClient {
return &resultStoreFileDownloadClient{cc}
}
func (c *resultStoreFileDownloadClient) GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (ResultStoreFileDownload_GetFileClient, error) {
stream, err := c.cc.NewStream(ctx, &_ResultStoreFileDownload_serviceDesc.Streams[0], "/google.devtools.resultstore.v2.ResultStoreFileDownload/GetFile", opts...)
if err != nil {
return nil, err
}
x := &resultStoreFileDownloadGetFileClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type ResultStoreFileDownload_GetFileClient interface {
Recv() (*GetFileResponse, error)
grpc.ClientStream
}
type resultStoreFileDownloadGetFileClient struct {
grpc.ClientStream
}
func (x *resultStoreFileDownloadGetFileClient) Recv() (*GetFileResponse, error) {
m := new(GetFileResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *resultStoreFileDownloadClient) GetFileTail(ctx context.Context, in *GetFileTailRequest, opts ...grpc.CallOption) (*GetFileTailResponse, error) {
out := new(GetFileTailResponse)
err := c.cc.Invoke(ctx, "/google.devtools.resultstore.v2.ResultStoreFileDownload/GetFileTail", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ResultStoreFileDownloadServer is the server API for ResultStoreFileDownload service.
type ResultStoreFileDownloadServer interface {
// Retrieves the File with the given uri.
// returns a stream of bytes to be stitched together in order.
//
// An error will be reported in the following cases:
// - If the File is not found.
// - If the given File uri is badly formatted.
GetFile(*GetFileRequest, ResultStoreFileDownload_GetFileServer) error
// Retrieves the tail of a File with the given uri.
//
// An error will be reported in the following cases:
// - If the File is not found.
// - If the given File uri is badly formatted.
GetFileTail(context.Context, *GetFileTailRequest) (*GetFileTailResponse, error)
}
func RegisterResultStoreFileDownloadServer(s *grpc.Server, srv ResultStoreFileDownloadServer) {
s.RegisterService(&_ResultStoreFileDownload_serviceDesc, srv)
}
func _ResultStoreFileDownload_GetFile_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(GetFileRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ResultStoreFileDownloadServer).GetFile(m, &resultStoreFileDownloadGetFileServer{stream})
}
type ResultStoreFileDownload_GetFileServer interface {
Send(*GetFileResponse) error
grpc.ServerStream
}
type resultStoreFileDownloadGetFileServer struct {
grpc.ServerStream
}
func (x *resultStoreFileDownloadGetFileServer) Send(m *GetFileResponse) error {
return x.ServerStream.SendMsg(m)
}
func _ResultStoreFileDownload_GetFileTail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetFileTailRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ResultStoreFileDownloadServer).GetFileTail(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.resultstore.v2.ResultStoreFileDownload/GetFileTail",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ResultStoreFileDownloadServer).GetFileTail(ctx, req.(*GetFileTailRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ResultStoreFileDownload_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.resultstore.v2.ResultStoreFileDownload",
HandlerType: (*ResultStoreFileDownloadServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetFileTail",
Handler: _ResultStoreFileDownload_GetFileTail_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "GetFile",
Handler: _ResultStoreFileDownload_GetFile_Handler,
ServerStreams: true,
},
},
Metadata: "google/devtools/resultstore/v2/resultstore_file_download.proto",
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/resultstore_file_download.proto", fileDescriptor_resultstore_file_download_7c120db11270c429)
}
var fileDescriptor_resultstore_file_download_7c120db11270c429 = []byte{
// 384 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x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x00, 0x00, 0xff, 0xff, 0x0d, 0x3d, 0x87, 0x5d, 0x54, 0x03, 0x00, 0x00,
}

View File

@ -0,0 +1,434 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/target.proto
package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// 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
// These correspond to the suffix of the rule name. Eg cc_test has type TEST.
type TargetType int32
const (
// Unspecified by the build system.
TargetType_TARGET_TYPE_UNSPECIFIED TargetType = 0
// An application e.g. ios_application.
TargetType_APPLICATION TargetType = 1
// A binary target e.g. cc_binary.
TargetType_BINARY TargetType = 2
// A library target e.g. java_library
TargetType_LIBRARY TargetType = 3
// A package
TargetType_PACKAGE TargetType = 4
// Any test target, in bazel that means a rule with a '_test' suffix.
TargetType_TEST TargetType = 5
)
var TargetType_name = map[int32]string{
0: "TARGET_TYPE_UNSPECIFIED",
1: "APPLICATION",
2: "BINARY",
3: "LIBRARY",
4: "PACKAGE",
5: "TEST",
}
var TargetType_value = map[string]int32{
"TARGET_TYPE_UNSPECIFIED": 0,
"APPLICATION": 1,
"BINARY": 2,
"LIBRARY": 3,
"PACKAGE": 4,
"TEST": 5,
}
func (x TargetType) String() string {
return proto.EnumName(TargetType_name, int32(x))
}
func (TargetType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_target_25848505c9398e1a, []int{0}
}
// Indicates how big the user indicated the test action was.
type TestSize int32
const (
// Unspecified by the user.
TestSize_TEST_SIZE_UNSPECIFIED TestSize = 0
// Unit test taking less than 1 minute.
TestSize_SMALL TestSize = 1
// Integration tests taking less than 5 minutes.
TestSize_MEDIUM TestSize = 2
// End-to-end tests taking less than 15 minutes.
TestSize_LARGE TestSize = 3
// Even bigger than LARGE.
TestSize_ENORMOUS TestSize = 4
// Something that doesn't fit into the above categories.
TestSize_OTHER_SIZE TestSize = 5
)
var TestSize_name = map[int32]string{
0: "TEST_SIZE_UNSPECIFIED",
1: "SMALL",
2: "MEDIUM",
3: "LARGE",
4: "ENORMOUS",
5: "OTHER_SIZE",
}
var TestSize_value = map[string]int32{
"TEST_SIZE_UNSPECIFIED": 0,
"SMALL": 1,
"MEDIUM": 2,
"LARGE": 3,
"ENORMOUS": 4,
"OTHER_SIZE": 5,
}
func (x TestSize) String() string {
return proto.EnumName(TestSize_name, int32(x))
}
func (TestSize) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_target_25848505c9398e1a, []int{1}
}
// Each Target represents data for a given target in a given Invocation.
// ConfiguredTarget and Action resources under each Target contain the bulk of
// the data.
type Target struct {
// The resource name. Its format must be:
// invocations/${INVOCATION_ID}/targets/${TARGET_ID}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource ID components that identify the Target. They must match the
// resource name after proper encoding.
Id *Target_Id `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// This is the aggregate status of the target.
StatusAttributes *StatusAttributes `protobuf:"bytes,3,opt,name=status_attributes,json=statusAttributes,proto3" json:"status_attributes,omitempty"`
// When this target started and its duration.
Timing *Timing `protobuf:"bytes,4,opt,name=timing,proto3" json:"timing,omitempty"`
// Attributes that apply to all targets.
TargetAttributes *TargetAttributes `protobuf:"bytes,5,opt,name=target_attributes,json=targetAttributes,proto3" json:"target_attributes,omitempty"`
// Attributes that apply to all test actions under this target.
TestAttributes *TestAttributes `protobuf:"bytes,6,opt,name=test_attributes,json=testAttributes,proto3" json:"test_attributes,omitempty"`
// Arbitrary name-value pairs.
// This is implemented as a multi-map. Multiple properties are allowed with
// the same key. Properties will be returned in lexicographical order by key.
Properties []*Property `protobuf:"bytes,7,rep,name=properties,proto3" json:"properties,omitempty"`
// A list of file references for target level files.
// The file IDs must be unique within this list. Duplicate file IDs will
// result in an error. Files will be returned in lexicographical order by ID.
// Use this field to specify outputs not related to a configuration.
Files []*File `protobuf:"bytes,8,rep,name=files,proto3" json:"files,omitempty"`
// Provides a hint to clients as to whether to display the Target to users.
// If true then clients likely want to display the Target by default.
// Once set to true, this may not be set back to false.
IsVisible bool `protobuf:"varint,9,opt,name=is_visible,json=isVisible,proto3" json:"is_visible,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Target) Reset() { *m = Target{} }
func (m *Target) String() string { return proto.CompactTextString(m) }
func (*Target) ProtoMessage() {}
func (*Target) Descriptor() ([]byte, []int) {
return fileDescriptor_target_25848505c9398e1a, []int{0}
}
func (m *Target) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Target.Unmarshal(m, b)
}
func (m *Target) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Target.Marshal(b, m, deterministic)
}
func (dst *Target) XXX_Merge(src proto.Message) {
xxx_messageInfo_Target.Merge(dst, src)
}
func (m *Target) XXX_Size() int {
return xxx_messageInfo_Target.Size(m)
}
func (m *Target) XXX_DiscardUnknown() {
xxx_messageInfo_Target.DiscardUnknown(m)
}
var xxx_messageInfo_Target proto.InternalMessageInfo
func (m *Target) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Target) GetId() *Target_Id {
if m != nil {
return m.Id
}
return nil
}
func (m *Target) GetStatusAttributes() *StatusAttributes {
if m != nil {
return m.StatusAttributes
}
return nil
}
func (m *Target) GetTiming() *Timing {
if m != nil {
return m.Timing
}
return nil
}
func (m *Target) GetTargetAttributes() *TargetAttributes {
if m != nil {
return m.TargetAttributes
}
return nil
}
func (m *Target) GetTestAttributes() *TestAttributes {
if m != nil {
return m.TestAttributes
}
return nil
}
func (m *Target) GetProperties() []*Property {
if m != nil {
return m.Properties
}
return nil
}
func (m *Target) GetFiles() []*File {
if m != nil {
return m.Files
}
return nil
}
func (m *Target) GetIsVisible() bool {
if m != nil {
return m.IsVisible
}
return false
}
// The resource ID components that identify the Target.
type Target_Id struct {
// The Invocation ID.
InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
// The Target ID.
TargetId string `protobuf:"bytes,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Target_Id) Reset() { *m = Target_Id{} }
func (m *Target_Id) String() string { return proto.CompactTextString(m) }
func (*Target_Id) ProtoMessage() {}
func (*Target_Id) Descriptor() ([]byte, []int) {
return fileDescriptor_target_25848505c9398e1a, []int{0, 0}
}
func (m *Target_Id) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Target_Id.Unmarshal(m, b)
}
func (m *Target_Id) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Target_Id.Marshal(b, m, deterministic)
}
func (dst *Target_Id) XXX_Merge(src proto.Message) {
xxx_messageInfo_Target_Id.Merge(dst, src)
}
func (m *Target_Id) XXX_Size() int {
return xxx_messageInfo_Target_Id.Size(m)
}
func (m *Target_Id) XXX_DiscardUnknown() {
xxx_messageInfo_Target_Id.DiscardUnknown(m)
}
var xxx_messageInfo_Target_Id proto.InternalMessageInfo
func (m *Target_Id) GetInvocationId() string {
if m != nil {
return m.InvocationId
}
return ""
}
func (m *Target_Id) GetTargetId() string {
if m != nil {
return m.TargetId
}
return ""
}
// Attributes that apply to all targets.
type TargetAttributes struct {
// If known, indicates the type of this target. In bazel this corresponds
// to the rule-suffix.
Type TargetType `protobuf:"varint,1,opt,name=type,proto3,enum=google.devtools.resultstore.v2.TargetType" json:"type,omitempty"`
// If known, the main language of this target, e.g. java, cc, python, etc.
Language Language `protobuf:"varint,2,opt,name=language,proto3,enum=google.devtools.resultstore.v2.Language" json:"language,omitempty"`
// The tags attribute of the build rule. These should be short, descriptive
// words, and there should only be a few of them.
// This is implemented as a set. All tags will be unique. Any duplicate tags
// will be ignored. Tags will be returned in lexicographical order.
Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TargetAttributes) Reset() { *m = TargetAttributes{} }
func (m *TargetAttributes) String() string { return proto.CompactTextString(m) }
func (*TargetAttributes) ProtoMessage() {}
func (*TargetAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_target_25848505c9398e1a, []int{1}
}
func (m *TargetAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TargetAttributes.Unmarshal(m, b)
}
func (m *TargetAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TargetAttributes.Marshal(b, m, deterministic)
}
func (dst *TargetAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_TargetAttributes.Merge(dst, src)
}
func (m *TargetAttributes) XXX_Size() int {
return xxx_messageInfo_TargetAttributes.Size(m)
}
func (m *TargetAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_TargetAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_TargetAttributes proto.InternalMessageInfo
func (m *TargetAttributes) GetType() TargetType {
if m != nil {
return m.Type
}
return TargetType_TARGET_TYPE_UNSPECIFIED
}
func (m *TargetAttributes) GetLanguage() Language {
if m != nil {
return m.Language
}
return Language_LANGUAGE_UNSPECIFIED
}
func (m *TargetAttributes) GetTags() []string {
if m != nil {
return m.Tags
}
return nil
}
// Attributes that apply only to test actions under this target.
type TestAttributes struct {
// Indicates how big the user indicated the test action was.
Size TestSize `protobuf:"varint,1,opt,name=size,proto3,enum=google.devtools.resultstore.v2.TestSize" json:"size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestAttributes) Reset() { *m = TestAttributes{} }
func (m *TestAttributes) String() string { return proto.CompactTextString(m) }
func (*TestAttributes) ProtoMessage() {}
func (*TestAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_target_25848505c9398e1a, []int{2}
}
func (m *TestAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestAttributes.Unmarshal(m, b)
}
func (m *TestAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestAttributes.Marshal(b, m, deterministic)
}
func (dst *TestAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestAttributes.Merge(dst, src)
}
func (m *TestAttributes) XXX_Size() int {
return xxx_messageInfo_TestAttributes.Size(m)
}
func (m *TestAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_TestAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_TestAttributes proto.InternalMessageInfo
func (m *TestAttributes) GetSize() TestSize {
if m != nil {
return m.Size
}
return TestSize_TEST_SIZE_UNSPECIFIED
}
func init() {
proto.RegisterType((*Target)(nil), "google.devtools.resultstore.v2.Target")
proto.RegisterType((*Target_Id)(nil), "google.devtools.resultstore.v2.Target.Id")
proto.RegisterType((*TargetAttributes)(nil), "google.devtools.resultstore.v2.TargetAttributes")
proto.RegisterType((*TestAttributes)(nil), "google.devtools.resultstore.v2.TestAttributes")
proto.RegisterEnum("google.devtools.resultstore.v2.TargetType", TargetType_name, TargetType_value)
proto.RegisterEnum("google.devtools.resultstore.v2.TestSize", TestSize_name, TestSize_value)
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/target.proto", fileDescriptor_target_25848505c9398e1a)
}
var fileDescriptor_target_25848505c9398e1a = []byte{
// 634 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xed, 0x6a, 0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xa6, 0x8e, 0x5a, 0x00, 0xe3, 0xf0, 0xd4, 0xc5,
0x52, 0xcb, 0xac, 0x1d, 0xfc, 0x80, 0xce, 0x15, 0x9b, 0x96, 0xf4, 0xc1, 0xd7, 0x2e, 0xbc, 0x25,
0x22, 0x61, 0x45, 0xc7, 0x6d, 0x96, 0x27, 0xbd, 0x84, 0x64, 0xf2, 0xcd, 0xea, 0xa9, 0x4f, 0xd1,
0x8c, 0xf2, 0x3f, 0xbd, 0x70, 0x1f, 0x56, 0xc2, 0xcb, 0xba, 0x64, 0xbd, 0xfd, 0x1d, 0x00, 0x00,
0xff, 0xff, 0xc9, 0x5f, 0x96, 0x8a, 0x90, 0x05, 0x00, 0x00,
}

View File

@ -0,0 +1,632 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/test_suite.proto
package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// 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 result of running a test case.
type TestCase_Result int32
const (
// The implicit default enum value. Do not use.
TestCase_RESULT_UNSPECIFIED TestCase_Result = 0
// Test case ran to completion. Look for failures or errors to determine
// whether it passed, failed, or errored.
TestCase_COMPLETED TestCase_Result = 1
// Test case started but did not complete because the test harness received
// a signal and decided to stop running tests.
TestCase_INTERRUPTED TestCase_Result = 2
// Test case was not started because the test harness received a SIGINT or
// timed out.
TestCase_CANCELLED TestCase_Result = 3
// Test case was not run because the user or process running the test
// specified a filter that excluded this test case.
TestCase_FILTERED TestCase_Result = 4
// Test case was not run to completion because the test case decided it
// should not be run (eg. due to a failed assumption in a JUnit4 test).
// Per-test setup or tear-down may or may not have run.
TestCase_SKIPPED TestCase_Result = 5
// The test framework did not run the test case because it was labeled as
// suppressed. Eg. if someone temporarily disables a failing test.
TestCase_SUPPRESSED TestCase_Result = 6
)
var TestCase_Result_name = map[int32]string{
0: "RESULT_UNSPECIFIED",
1: "COMPLETED",
2: "INTERRUPTED",
3: "CANCELLED",
4: "FILTERED",
5: "SKIPPED",
6: "SUPPRESSED",
}
var TestCase_Result_value = map[string]int32{
"RESULT_UNSPECIFIED": 0,
"COMPLETED": 1,
"INTERRUPTED": 2,
"CANCELLED": 3,
"FILTERED": 4,
"SKIPPED": 5,
"SUPPRESSED": 6,
}
func (x TestCase_Result) String() string {
return proto.EnumName(TestCase_Result_name, int32(x))
}
func (TestCase_Result) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_test_suite_9672634cf69bbe80, []int{2, 0}
}
// The result of running a test suite, as reported in a <testsuite> element of
// an XML log.
type TestSuite struct {
// The full name of this suite, as reported in the name attribute. For Java
// tests, this is normally the fully qualified class name. Eg.
// "com.google.common.hash.BloomFilterTest".
SuiteName string `protobuf:"bytes,1,opt,name=suite_name,json=suiteName,proto3" json:"suite_name,omitempty"`
// The results of the test cases and test suites contained in this suite,
// as reported in the <testcase> and <testsuite> elements contained within
// this <testsuite>.
Tests []*Test `protobuf:"bytes,2,rep,name=tests,proto3" json:"tests,omitempty"`
// Failures reported in <failure> elements within this <testsuite>.
Failures []*TestFailure `protobuf:"bytes,3,rep,name=failures,proto3" json:"failures,omitempty"`
// Errors reported in <error> elements within this <testsuite>.
Errors []*TestError `protobuf:"bytes,4,rep,name=errors,proto3" json:"errors,omitempty"`
// The timing for the entire TestSuite, as reported by the time attribute.
Timing *Timing `protobuf:"bytes,6,opt,name=timing,proto3" json:"timing,omitempty"`
// Arbitrary name-value pairs, as reported in custom attributes or in a
// <properties> element within this <testsuite>. Multiple properties are
// allowed with the same key. Properties will be returned in lexicographical
// order by key.
Properties []*Property `protobuf:"bytes,7,rep,name=properties,proto3" json:"properties,omitempty"`
// Files produced by this test suite, as reported by undeclared output
// annotations.
// The file IDs must be unique within this list. Duplicate file IDs will
// result in an error. Files will be returned in lexicographical order by ID.
Files []*File `protobuf:"bytes,8,rep,name=files,proto3" json:"files,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestSuite) Reset() { *m = TestSuite{} }
func (m *TestSuite) String() string { return proto.CompactTextString(m) }
func (*TestSuite) ProtoMessage() {}
func (*TestSuite) Descriptor() ([]byte, []int) {
return fileDescriptor_test_suite_9672634cf69bbe80, []int{0}
}
func (m *TestSuite) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestSuite.Unmarshal(m, b)
}
func (m *TestSuite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestSuite.Marshal(b, m, deterministic)
}
func (dst *TestSuite) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestSuite.Merge(dst, src)
}
func (m *TestSuite) XXX_Size() int {
return xxx_messageInfo_TestSuite.Size(m)
}
func (m *TestSuite) XXX_DiscardUnknown() {
xxx_messageInfo_TestSuite.DiscardUnknown(m)
}
var xxx_messageInfo_TestSuite proto.InternalMessageInfo
func (m *TestSuite) GetSuiteName() string {
if m != nil {
return m.SuiteName
}
return ""
}
func (m *TestSuite) GetTests() []*Test {
if m != nil {
return m.Tests
}
return nil
}
func (m *TestSuite) GetFailures() []*TestFailure {
if m != nil {
return m.Failures
}
return nil
}
func (m *TestSuite) GetErrors() []*TestError {
if m != nil {
return m.Errors
}
return nil
}
func (m *TestSuite) GetTiming() *Timing {
if m != nil {
return m.Timing
}
return nil
}
func (m *TestSuite) GetProperties() []*Property {
if m != nil {
return m.Properties
}
return nil
}
func (m *TestSuite) GetFiles() []*File {
if m != nil {
return m.Files
}
return nil
}
// The result of running a test case or test suite. JUnit3 TestDecorators are
// represented as a TestSuite with a single test.
type Test struct {
// Either a TestCase of a TestSuite
//
// Types that are valid to be assigned to TestType:
// *Test_TestCase
// *Test_TestSuite
TestType isTest_TestType `protobuf_oneof:"test_type"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Test) Reset() { *m = Test{} }
func (m *Test) String() string { return proto.CompactTextString(m) }
func (*Test) ProtoMessage() {}
func (*Test) Descriptor() ([]byte, []int) {
return fileDescriptor_test_suite_9672634cf69bbe80, []int{1}
}
func (m *Test) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Test.Unmarshal(m, b)
}
func (m *Test) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Test.Marshal(b, m, deterministic)
}
func (dst *Test) XXX_Merge(src proto.Message) {
xxx_messageInfo_Test.Merge(dst, src)
}
func (m *Test) XXX_Size() int {
return xxx_messageInfo_Test.Size(m)
}
func (m *Test) XXX_DiscardUnknown() {
xxx_messageInfo_Test.DiscardUnknown(m)
}
var xxx_messageInfo_Test proto.InternalMessageInfo
type isTest_TestType interface {
isTest_TestType()
}
type Test_TestCase struct {
TestCase *TestCase `protobuf:"bytes,1,opt,name=test_case,json=testCase,proto3,oneof"`
}
type Test_TestSuite struct {
TestSuite *TestSuite `protobuf:"bytes,2,opt,name=test_suite,json=testSuite,proto3,oneof"`
}
func (*Test_TestCase) isTest_TestType() {}
func (*Test_TestSuite) isTest_TestType() {}
func (m *Test) GetTestType() isTest_TestType {
if m != nil {
return m.TestType
}
return nil
}
func (m *Test) GetTestCase() *TestCase {
if x, ok := m.GetTestType().(*Test_TestCase); ok {
return x.TestCase
}
return nil
}
func (m *Test) GetTestSuite() *TestSuite {
if x, ok := m.GetTestType().(*Test_TestSuite); ok {
return x.TestSuite
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Test) 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 _Test_OneofMarshaler, _Test_OneofUnmarshaler, _Test_OneofSizer, []interface{}{
(*Test_TestCase)(nil),
(*Test_TestSuite)(nil),
}
}
func _Test_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Test)
// test_type
switch x := m.TestType.(type) {
case *Test_TestCase:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TestCase); err != nil {
return err
}
case *Test_TestSuite:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TestSuite); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Test.TestType has unexpected type %T", x)
}
return nil
}
func _Test_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Test)
switch tag {
case 1: // test_type.test_case
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TestCase)
err := b.DecodeMessage(msg)
m.TestType = &Test_TestCase{msg}
return true, err
case 2: // test_type.test_suite
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TestSuite)
err := b.DecodeMessage(msg)
m.TestType = &Test_TestSuite{msg}
return true, err
default:
return false, nil
}
}
func _Test_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Test)
// test_type
switch x := m.TestType.(type) {
case *Test_TestCase:
s := proto.Size(x.TestCase)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Test_TestSuite:
s := proto.Size(x.TestSuite)
n += 1 // 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
}
// The result of running a test case, as reported in a <testcase> element of
// an XML log.
type TestCase struct {
// The name of the test case, as reported in the name attribute. For Java,
// this is normally the method name. Eg. "testBasic".
CaseName string `protobuf:"bytes,1,opt,name=case_name,json=caseName,proto3" json:"case_name,omitempty"`
// The name of the class in which the test case was defined, as reported in
// the classname attribute. For Java, this is normally the fully qualified
// class name. Eg. "com.google.common.hash.BloomFilterTest".
ClassName string `protobuf:"bytes,2,opt,name=class_name,json=className,proto3" json:"class_name,omitempty"`
// An enum reported in the result attribute that is used in conjunction with
// failures and errors below to report the outcome.
Result TestCase_Result `protobuf:"varint,3,opt,name=result,proto3,enum=google.devtools.resultstore.v2.TestCase_Result" json:"result,omitempty"`
// Failures reported in <failure> elements within this <testcase>.
Failures []*TestFailure `protobuf:"bytes,4,rep,name=failures,proto3" json:"failures,omitempty"`
// Errors reported in <error> elements within this <testcase>.
Errors []*TestError `protobuf:"bytes,5,rep,name=errors,proto3" json:"errors,omitempty"`
// The timing for the TestCase, as reported by the time attribute.
Timing *Timing `protobuf:"bytes,7,opt,name=timing,proto3" json:"timing,omitempty"`
// Arbitrary name-value pairs, as reported in custom attributes or in a
// <properties> element within this <testcase>. Multiple properties are
// allowed with the same key. Properties will be returned in lexicographical
// order by key.
Properties []*Property `protobuf:"bytes,8,rep,name=properties,proto3" json:"properties,omitempty"`
// Files produced by this test case, as reported by undeclared output
// annotations.
// The file IDs must be unique within this list. Duplicate file IDs will
// result in an error. Files will be returned in lexicographical order by ID.
Files []*File `protobuf:"bytes,9,rep,name=files,proto3" json:"files,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestCase) Reset() { *m = TestCase{} }
func (m *TestCase) String() string { return proto.CompactTextString(m) }
func (*TestCase) ProtoMessage() {}
func (*TestCase) Descriptor() ([]byte, []int) {
return fileDescriptor_test_suite_9672634cf69bbe80, []int{2}
}
func (m *TestCase) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestCase.Unmarshal(m, b)
}
func (m *TestCase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestCase.Marshal(b, m, deterministic)
}
func (dst *TestCase) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestCase.Merge(dst, src)
}
func (m *TestCase) XXX_Size() int {
return xxx_messageInfo_TestCase.Size(m)
}
func (m *TestCase) XXX_DiscardUnknown() {
xxx_messageInfo_TestCase.DiscardUnknown(m)
}
var xxx_messageInfo_TestCase proto.InternalMessageInfo
func (m *TestCase) GetCaseName() string {
if m != nil {
return m.CaseName
}
return ""
}
func (m *TestCase) GetClassName() string {
if m != nil {
return m.ClassName
}
return ""
}
func (m *TestCase) GetResult() TestCase_Result {
if m != nil {
return m.Result
}
return TestCase_RESULT_UNSPECIFIED
}
func (m *TestCase) GetFailures() []*TestFailure {
if m != nil {
return m.Failures
}
return nil
}
func (m *TestCase) GetErrors() []*TestError {
if m != nil {
return m.Errors
}
return nil
}
func (m *TestCase) GetTiming() *Timing {
if m != nil {
return m.Timing
}
return nil
}
func (m *TestCase) GetProperties() []*Property {
if m != nil {
return m.Properties
}
return nil
}
func (m *TestCase) GetFiles() []*File {
if m != nil {
return m.Files
}
return nil
}
// Represents a violated assertion, as reported in a <failure> element within a
// <testcase>. Some languages allow assertions to be made without stopping the
// test case when they're violated, leading to multiple TestFailures. For Java,
// multiple TestFailures are used to represent a chained exception.
type TestFailure struct {
// The exception message reported in the message attribute. Typically short,
// but may be multi-line. Eg. "Expected 'foo' but was 'bar'".
FailureMessage string `protobuf:"bytes,1,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"`
// The type of the exception being thrown, reported in the type attribute.
// Eg: "org.junit.ComparisonFailure"
ExceptionType string `protobuf:"bytes,2,opt,name=exception_type,json=exceptionType,proto3" json:"exception_type,omitempty"`
// The stack trace reported as the content of the <failure> element, often in
// a CDATA block. This contains one line for each stack frame, each including
// a method/function name, a class/file name, and a line number. Most recent
// call is usually first, but not for Python stack traces. May contain the
// exception_type and message.
StackTrace string `protobuf:"bytes,3,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestFailure) Reset() { *m = TestFailure{} }
func (m *TestFailure) String() string { return proto.CompactTextString(m) }
func (*TestFailure) ProtoMessage() {}
func (*TestFailure) Descriptor() ([]byte, []int) {
return fileDescriptor_test_suite_9672634cf69bbe80, []int{3}
}
func (m *TestFailure) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestFailure.Unmarshal(m, b)
}
func (m *TestFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestFailure.Marshal(b, m, deterministic)
}
func (dst *TestFailure) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestFailure.Merge(dst, src)
}
func (m *TestFailure) XXX_Size() int {
return xxx_messageInfo_TestFailure.Size(m)
}
func (m *TestFailure) XXX_DiscardUnknown() {
xxx_messageInfo_TestFailure.DiscardUnknown(m)
}
var xxx_messageInfo_TestFailure proto.InternalMessageInfo
func (m *TestFailure) GetFailureMessage() string {
if m != nil {
return m.FailureMessage
}
return ""
}
func (m *TestFailure) GetExceptionType() string {
if m != nil {
return m.ExceptionType
}
return ""
}
func (m *TestFailure) GetStackTrace() string {
if m != nil {
return m.StackTrace
}
return ""
}
// Represents an exception that prevented a test case from completing, as
// reported in an <error> element within a <testcase>. For Java, multiple
// TestErrors are used to represent a chained exception.
type TestError struct {
// The exception message, as reported in the message attribute. Typically
// short, but may be multi-line. Eg. "argument cannot be null".
ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
// The type of the exception being thrown, reported in the type attribute.
// For Java, this is a fully qualified Throwable class name.
// Eg: "java.lang.IllegalArgumentException"
ExceptionType string `protobuf:"bytes,2,opt,name=exception_type,json=exceptionType,proto3" json:"exception_type,omitempty"`
// The stack trace reported as the content of the <error> element, often in
// a CDATA block. This contains one line for each stack frame, each including
// a method/function name, a class/file name, and a line number. Most recent
// call is usually first, but not for Python stack traces. May contain the
// exception_type and message.
StackTrace string `protobuf:"bytes,3,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestError) Reset() { *m = TestError{} }
func (m *TestError) String() string { return proto.CompactTextString(m) }
func (*TestError) ProtoMessage() {}
func (*TestError) Descriptor() ([]byte, []int) {
return fileDescriptor_test_suite_9672634cf69bbe80, []int{4}
}
func (m *TestError) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestError.Unmarshal(m, b)
}
func (m *TestError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestError.Marshal(b, m, deterministic)
}
func (dst *TestError) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestError.Merge(dst, src)
}
func (m *TestError) XXX_Size() int {
return xxx_messageInfo_TestError.Size(m)
}
func (m *TestError) XXX_DiscardUnknown() {
xxx_messageInfo_TestError.DiscardUnknown(m)
}
var xxx_messageInfo_TestError proto.InternalMessageInfo
func (m *TestError) GetErrorMessage() string {
if m != nil {
return m.ErrorMessage
}
return ""
}
func (m *TestError) GetExceptionType() string {
if m != nil {
return m.ExceptionType
}
return ""
}
func (m *TestError) GetStackTrace() string {
if m != nil {
return m.StackTrace
}
return ""
}
func init() {
proto.RegisterType((*TestSuite)(nil), "google.devtools.resultstore.v2.TestSuite")
proto.RegisterType((*Test)(nil), "google.devtools.resultstore.v2.Test")
proto.RegisterType((*TestCase)(nil), "google.devtools.resultstore.v2.TestCase")
proto.RegisterType((*TestFailure)(nil), "google.devtools.resultstore.v2.TestFailure")
proto.RegisterType((*TestError)(nil), "google.devtools.resultstore.v2.TestError")
proto.RegisterEnum("google.devtools.resultstore.v2.TestCase_Result", TestCase_Result_name, TestCase_Result_value)
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/test_suite.proto", fileDescriptor_test_suite_9672634cf69bbe80)
}
var fileDescriptor_test_suite_9672634cf69bbe80 = []byte{
// 641 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 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
0xcf, 0x24, 0x20, 0xa5, 0xa0, 0x54, 0x3a, 0x37, 0xea, 0x4f, 0x54, 0x8e, 0x15, 0x3d, 0x82, 0x3d,
0x39, 0xd8, 0xdf, 0x7a, 0xef, 0x4a, 0x71, 0xc3, 0x9d, 0x4f, 0x3f, 0x41, 0x27, 0x62, 0xd9, 0x8a,
0x39, 0x79, 0xda, 0xbb, 0x51, 0xb5, 0x23, 0x66, 0x69, 0x38, 0x8f, 0x1d, 0x56, 0xc4, 0x6e, 0x4c,
0xe7, 0xf2, 0x0d, 0xa8, 0xde, 0xaa, 0x30, 0x4f, 0xf8, 0x9f, 0x5e, 0x8c, 0x97, 0x4b, 0x9f, 0xef,
0x75, 0x49, 0x3d, 0xff, 0x11, 0x00, 0x00, 0xff, 0xff, 0x38, 0x57, 0x5a, 0x20, 0xe4, 0x06, 0x00,
0x00,
}

View File

@ -1,25 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/source/v1/source_context.proto
/*
Package source is a generated protocol buffer package.
It is generated from these files:
google/devtools/source/v1/source_context.proto
It has these top-level messages:
SourceContext
ExtendedSourceContext
AliasContext
CloudRepoSourceContext
CloudWorkspaceSourceContext
GerritSourceContext
GitSourceContext
RepoId
ProjectRepoId
CloudWorkspaceId
*/
package source
package source // import "google.golang.org/genproto/googleapis/devtools/source/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -69,7 +51,9 @@ var AliasContext_Kind_value = map[string]int32{
func (x AliasContext_Kind) String() string {
return proto.EnumName(AliasContext_Kind_name, int32(x))
}
func (AliasContext_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
func (AliasContext_Kind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_source_context_a972181f110f4ce5, []int{2, 0}
}
// A SourceContext is a reference to a tree of files. A SourceContext together
// with a path point to a unique revision of a single file or directory.
@ -81,35 +65,63 @@ type SourceContext struct {
// *SourceContext_CloudWorkspace
// *SourceContext_Gerrit
// *SourceContext_Git
Context isSourceContext_Context `protobuf_oneof:"context"`
Context isSourceContext_Context `protobuf_oneof:"context"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SourceContext) Reset() { *m = SourceContext{} }
func (m *SourceContext) String() string { return proto.CompactTextString(m) }
func (*SourceContext) ProtoMessage() {}
func (*SourceContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *SourceContext) Reset() { *m = SourceContext{} }
func (m *SourceContext) String() string { return proto.CompactTextString(m) }
func (*SourceContext) ProtoMessage() {}
func (*SourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_a972181f110f4ce5, []int{0}
}
func (m *SourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SourceContext.Unmarshal(m, b)
}
func (m *SourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SourceContext.Marshal(b, m, deterministic)
}
func (dst *SourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_SourceContext.Merge(dst, src)
}
func (m *SourceContext) XXX_Size() int {
return xxx_messageInfo_SourceContext.Size(m)
}
func (m *SourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_SourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_SourceContext proto.InternalMessageInfo
type isSourceContext_Context interface {
isSourceContext_Context()
}
type SourceContext_CloudRepo struct {
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,oneof"`
}
type SourceContext_CloudWorkspace struct {
CloudWorkspace *CloudWorkspaceSourceContext `protobuf:"bytes,2,opt,name=cloud_workspace,json=cloudWorkspace,oneof"`
}
type SourceContext_Gerrit struct {
Gerrit *GerritSourceContext `protobuf:"bytes,3,opt,name=gerrit,oneof"`
}
type SourceContext_Git struct {
Git *GitSourceContext `protobuf:"bytes,6,opt,name=git,oneof"`
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"`
}
func (*SourceContext_CloudRepo) isSourceContext_Context() {}
type SourceContext_CloudWorkspace struct {
CloudWorkspace *CloudWorkspaceSourceContext `protobuf:"bytes,2,opt,name=cloud_workspace,json=cloudWorkspace,proto3,oneof"`
}
type SourceContext_Gerrit struct {
Gerrit *GerritSourceContext `protobuf:"bytes,3,opt,name=gerrit,proto3,oneof"`
}
type SourceContext_Git struct {
Git *GitSourceContext `protobuf:"bytes,6,opt,name=git,proto3,oneof"`
}
func (*SourceContext_CloudRepo) isSourceContext_Context() {}
func (*SourceContext_CloudWorkspace) isSourceContext_Context() {}
func (*SourceContext_Gerrit) isSourceContext_Context() {}
func (*SourceContext_Git) isSourceContext_Context() {}
func (*SourceContext_Gerrit) isSourceContext_Context() {}
func (*SourceContext_Git) isSourceContext_Context() {}
func (m *SourceContext) GetContext() isSourceContext_Context {
if m != nil {
@ -233,22 +245,22 @@ func _SourceContext_OneofSizer(msg proto.Message) (n int) {
switch x := m.Context.(type) {
case *SourceContext_CloudRepo:
s := proto.Size(x.CloudRepo)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_CloudWorkspace:
s := proto.Size(x.CloudWorkspace)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Gerrit:
s := proto.Size(x.Gerrit)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Git:
s := proto.Size(x.Git)
n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -262,15 +274,37 @@ func _SourceContext_OneofSizer(msg proto.Message) (n int) {
// details describing the context.
type ExtendedSourceContext struct {
// Any source context.
Context *SourceContext `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"`
Context *SourceContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
// Labels with user defined metadata.
Labels map[string]string `protobuf:"bytes,2,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExtendedSourceContext) Reset() { *m = ExtendedSourceContext{} }
func (m *ExtendedSourceContext) String() string { return proto.CompactTextString(m) }
func (*ExtendedSourceContext) ProtoMessage() {}
func (*ExtendedSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ExtendedSourceContext) Reset() { *m = ExtendedSourceContext{} }
func (m *ExtendedSourceContext) String() string { return proto.CompactTextString(m) }
func (*ExtendedSourceContext) ProtoMessage() {}
func (*ExtendedSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_a972181f110f4ce5, []int{1}
}
func (m *ExtendedSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExtendedSourceContext.Unmarshal(m, b)
}
func (m *ExtendedSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExtendedSourceContext.Marshal(b, m, deterministic)
}
func (dst *ExtendedSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExtendedSourceContext.Merge(dst, src)
}
func (m *ExtendedSourceContext) XXX_Size() int {
return xxx_messageInfo_ExtendedSourceContext.Size(m)
}
func (m *ExtendedSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_ExtendedSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_ExtendedSourceContext proto.InternalMessageInfo
func (m *ExtendedSourceContext) GetContext() *SourceContext {
if m != nil {
@ -289,15 +323,37 @@ func (m *ExtendedSourceContext) GetLabels() map[string]string {
// An alias to a repo revision.
type AliasContext struct {
// The alias kind.
Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,enum=google.devtools.source.v1.AliasContext_Kind" json:"kind,omitempty"`
Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.devtools.source.v1.AliasContext_Kind" json:"kind,omitempty"`
// The alias name.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AliasContext) Reset() { *m = AliasContext{} }
func (m *AliasContext) String() string { return proto.CompactTextString(m) }
func (*AliasContext) ProtoMessage() {}
func (*AliasContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *AliasContext) Reset() { *m = AliasContext{} }
func (m *AliasContext) String() string { return proto.CompactTextString(m) }
func (*AliasContext) ProtoMessage() {}
func (*AliasContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_a972181f110f4ce5, []int{2}
}
func (m *AliasContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AliasContext.Unmarshal(m, b)
}
func (m *AliasContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AliasContext.Marshal(b, m, deterministic)
}
func (dst *AliasContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_AliasContext.Merge(dst, src)
}
func (m *AliasContext) XXX_Size() int {
return xxx_messageInfo_AliasContext.Size(m)
}
func (m *AliasContext) XXX_DiscardUnknown() {
xxx_messageInfo_AliasContext.DiscardUnknown(m)
}
var xxx_messageInfo_AliasContext proto.InternalMessageInfo
func (m *AliasContext) GetKind() AliasContext_Kind {
if m != nil {
@ -317,7 +373,7 @@ func (m *AliasContext) GetName() string {
// repo (a repo hosted by the Google Cloud Platform).
type CloudRepoSourceContext struct {
// The ID of the repo.
RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId" json:"repo_id,omitempty"`
RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
// A revision in a cloud repository can be identified by either its revision
// ID or its Alias.
//
@ -325,30 +381,63 @@ type CloudRepoSourceContext struct {
// *CloudRepoSourceContext_RevisionId
// *CloudRepoSourceContext_AliasName
// *CloudRepoSourceContext_AliasContext
Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} }
func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) }
func (*CloudRepoSourceContext) ProtoMessage() {}
func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} }
func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) }
func (*CloudRepoSourceContext) ProtoMessage() {}
func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_a972181f110f4ce5, []int{3}
}
func (m *CloudRepoSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CloudRepoSourceContext.Unmarshal(m, b)
}
func (m *CloudRepoSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CloudRepoSourceContext.Marshal(b, m, deterministic)
}
func (dst *CloudRepoSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloudRepoSourceContext.Merge(dst, src)
}
func (m *CloudRepoSourceContext) XXX_Size() int {
return xxx_messageInfo_CloudRepoSourceContext.Size(m)
}
func (m *CloudRepoSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_CloudRepoSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_CloudRepoSourceContext proto.InternalMessageInfo
func (m *CloudRepoSourceContext) GetRepoId() *RepoId {
if m != nil {
return m.RepoId
}
return nil
}
type isCloudRepoSourceContext_Revision interface {
isCloudRepoSourceContext_Revision()
}
type CloudRepoSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,oneof"`
}
type CloudRepoSourceContext_AliasName struct {
AliasName string `protobuf:"bytes,3,opt,name=alias_name,json=aliasName,oneof"`
}
type CloudRepoSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,oneof"`
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
func (*CloudRepoSourceContext_AliasName) isCloudRepoSourceContext_Revision() {}
type CloudRepoSourceContext_AliasName struct {
AliasName string `protobuf:"bytes,3,opt,name=alias_name,json=aliasName,proto3,oneof"`
}
type CloudRepoSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
func (*CloudRepoSourceContext_AliasName) isCloudRepoSourceContext_Revision() {}
func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {}
func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision {
@ -358,13 +447,6 @@ func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision
return nil
}
func (m *CloudRepoSourceContext) GetRepoId() *RepoId {
if m != nil {
return m.RepoId
}
return nil
}
func (m *CloudRepoSourceContext) GetRevisionId() string {
if x, ok := m.GetRevision().(*CloudRepoSourceContext_RevisionId); ok {
return x.RevisionId
@ -452,16 +534,16 @@ func _CloudRepoSourceContext_OneofSizer(msg proto.Message) (n int) {
// revision
switch x := m.Revision.(type) {
case *CloudRepoSourceContext_RevisionId:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *CloudRepoSourceContext_AliasName:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.AliasName)))
n += len(x.AliasName)
case *CloudRepoSourceContext_AliasContext:
s := proto.Size(x.AliasContext)
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -474,16 +556,38 @@ func _CloudRepoSourceContext_OneofSizer(msg proto.Message) (n int) {
// A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
type CloudWorkspaceSourceContext struct {
// The ID of the workspace.
WorkspaceId *CloudWorkspaceId `protobuf:"bytes,1,opt,name=workspace_id,json=workspaceId" json:"workspace_id,omitempty"`
WorkspaceId *CloudWorkspaceId `protobuf:"bytes,1,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
// The ID of the snapshot.
// An empty snapshot_id refers to the most recent snapshot.
SnapshotId string `protobuf:"bytes,2,opt,name=snapshot_id,json=snapshotId" json:"snapshot_id,omitempty"`
SnapshotId string `protobuf:"bytes,2,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CloudWorkspaceSourceContext) Reset() { *m = CloudWorkspaceSourceContext{} }
func (m *CloudWorkspaceSourceContext) String() string { return proto.CompactTextString(m) }
func (*CloudWorkspaceSourceContext) ProtoMessage() {}
func (*CloudWorkspaceSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *CloudWorkspaceSourceContext) Reset() { *m = CloudWorkspaceSourceContext{} }
func (m *CloudWorkspaceSourceContext) String() string { return proto.CompactTextString(m) }
func (*CloudWorkspaceSourceContext) ProtoMessage() {}
func (*CloudWorkspaceSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_a972181f110f4ce5, []int{4}
}
func (m *CloudWorkspaceSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CloudWorkspaceSourceContext.Unmarshal(m, b)
}
func (m *CloudWorkspaceSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CloudWorkspaceSourceContext.Marshal(b, m, deterministic)
}
func (dst *CloudWorkspaceSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloudWorkspaceSourceContext.Merge(dst, src)
}
func (m *CloudWorkspaceSourceContext) XXX_Size() int {
return xxx_messageInfo_CloudWorkspaceSourceContext.Size(m)
}
func (m *CloudWorkspaceSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_CloudWorkspaceSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_CloudWorkspaceSourceContext proto.InternalMessageInfo
func (m *CloudWorkspaceSourceContext) GetWorkspaceId() *CloudWorkspaceId {
if m != nil {
@ -502,11 +606,11 @@ func (m *CloudWorkspaceSourceContext) GetSnapshotId() string {
// A SourceContext referring to a Gerrit project.
type GerritSourceContext struct {
// The URI of a running Gerrit instance.
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri" json:"host_uri,omitempty"`
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
// The full project name within the host. Projects may be nested, so
// "project/subproject" is a valid project name.
// The "repo name" is hostURI/project.
GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject" json:"gerrit_project,omitempty"`
GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject,proto3" json:"gerrit_project,omitempty"`
// A revision in a Gerrit project can be identified by either its revision ID
// or its alias.
//
@ -514,38 +618,35 @@ type GerritSourceContext struct {
// *GerritSourceContext_RevisionId
// *GerritSourceContext_AliasName
// *GerritSourceContext_AliasContext
Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"`
Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} }
func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) }
func (*GerritSourceContext) ProtoMessage() {}
func (*GerritSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
type isGerritSourceContext_Revision interface {
isGerritSourceContext_Revision()
func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} }
func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) }
func (*GerritSourceContext) ProtoMessage() {}
func (*GerritSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_a972181f110f4ce5, []int{5}
}
func (m *GerritSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GerritSourceContext.Unmarshal(m, b)
}
func (m *GerritSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GerritSourceContext.Marshal(b, m, deterministic)
}
func (dst *GerritSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_GerritSourceContext.Merge(dst, src)
}
func (m *GerritSourceContext) XXX_Size() int {
return xxx_messageInfo_GerritSourceContext.Size(m)
}
func (m *GerritSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_GerritSourceContext.DiscardUnknown(m)
}
type GerritSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,oneof"`
}
type GerritSourceContext_AliasName struct {
AliasName string `protobuf:"bytes,4,opt,name=alias_name,json=aliasName,oneof"`
}
type GerritSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,5,opt,name=alias_context,json=aliasContext,oneof"`
}
func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {}
func (*GerritSourceContext_AliasName) isGerritSourceContext_Revision() {}
func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {}
func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision {
if m != nil {
return m.Revision
}
return nil
}
var xxx_messageInfo_GerritSourceContext proto.InternalMessageInfo
func (m *GerritSourceContext) GetHostUri() string {
if m != nil {
@ -561,6 +662,35 @@ func (m *GerritSourceContext) GetGerritProject() string {
return ""
}
type isGerritSourceContext_Revision interface {
isGerritSourceContext_Revision()
}
type GerritSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
type GerritSourceContext_AliasName struct {
AliasName string `protobuf:"bytes,4,opt,name=alias_name,json=aliasName,proto3,oneof"`
}
type GerritSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,5,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {}
func (*GerritSourceContext_AliasName) isGerritSourceContext_Revision() {}
func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {}
func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision {
if m != nil {
return m.Revision
}
return nil
}
func (m *GerritSourceContext) GetRevisionId() string {
if x, ok := m.GetRevision().(*GerritSourceContext_RevisionId); ok {
return x.RevisionId
@ -648,16 +778,16 @@ func _GerritSourceContext_OneofSizer(msg proto.Message) (n int) {
// revision
switch x := m.Revision.(type) {
case *GerritSourceContext_RevisionId:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *GerritSourceContext_AliasName:
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.AliasName)))
n += len(x.AliasName)
case *GerritSourceContext_AliasContext:
s := proto.Size(x.AliasContext)
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -671,16 +801,38 @@ func _GerritSourceContext_OneofSizer(msg proto.Message) (n int) {
// repository (e.g. GitHub).
type GitSourceContext struct {
// Git repository URL.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// Git commit hash.
// required.
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId" json:"revision_id,omitempty"`
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GitSourceContext) Reset() { *m = GitSourceContext{} }
func (m *GitSourceContext) String() string { return proto.CompactTextString(m) }
func (*GitSourceContext) ProtoMessage() {}
func (*GitSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *GitSourceContext) Reset() { *m = GitSourceContext{} }
func (m *GitSourceContext) String() string { return proto.CompactTextString(m) }
func (*GitSourceContext) ProtoMessage() {}
func (*GitSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_a972181f110f4ce5, []int{6}
}
func (m *GitSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GitSourceContext.Unmarshal(m, b)
}
func (m *GitSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GitSourceContext.Marshal(b, m, deterministic)
}
func (dst *GitSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_GitSourceContext.Merge(dst, src)
}
func (m *GitSourceContext) XXX_Size() int {
return xxx_messageInfo_GitSourceContext.Size(m)
}
func (m *GitSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_GitSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_GitSourceContext proto.InternalMessageInfo
func (m *GitSourceContext) GetUrl() string {
if m != nil {
@ -704,27 +856,51 @@ type RepoId struct {
// Types that are valid to be assigned to Id:
// *RepoId_ProjectRepoId
// *RepoId_Uid
Id isRepoId_Id `protobuf_oneof:"id"`
Id isRepoId_Id `protobuf_oneof:"id"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepoId) Reset() { *m = RepoId{} }
func (m *RepoId) String() string { return proto.CompactTextString(m) }
func (*RepoId) ProtoMessage() {}
func (*RepoId) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *RepoId) Reset() { *m = RepoId{} }
func (m *RepoId) String() string { return proto.CompactTextString(m) }
func (*RepoId) ProtoMessage() {}
func (*RepoId) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_a972181f110f4ce5, []int{7}
}
func (m *RepoId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepoId.Unmarshal(m, b)
}
func (m *RepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepoId.Marshal(b, m, deterministic)
}
func (dst *RepoId) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepoId.Merge(dst, src)
}
func (m *RepoId) XXX_Size() int {
return xxx_messageInfo_RepoId.Size(m)
}
func (m *RepoId) XXX_DiscardUnknown() {
xxx_messageInfo_RepoId.DiscardUnknown(m)
}
var xxx_messageInfo_RepoId proto.InternalMessageInfo
type isRepoId_Id interface {
isRepoId_Id()
}
type RepoId_ProjectRepoId struct {
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,oneof"`
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"`
}
type RepoId_Uid struct {
Uid string `protobuf:"bytes,2,opt,name=uid,oneof"`
Uid string `protobuf:"bytes,2,opt,name=uid,proto3,oneof"`
}
func (*RepoId_ProjectRepoId) isRepoId_Id() {}
func (*RepoId_Uid) isRepoId_Id() {}
func (*RepoId_Uid) isRepoId_Id() {}
func (m *RepoId) GetId() isRepoId_Id {
if m != nil {
@ -803,11 +979,11 @@ func _RepoId_OneofSizer(msg proto.Message) (n int) {
switch x := m.Id.(type) {
case *RepoId_ProjectRepoId:
s := proto.Size(x.ProjectRepoId)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *RepoId_Uid:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Uid)))
n += len(x.Uid)
case nil:
@ -821,15 +997,37 @@ func _RepoId_OneofSizer(msg proto.Message) (n int) {
// (e.g. winged-cargo-31) and a repo name within that project.
type ProjectRepoId struct {
// The ID of the project.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// The name of the repo. Leave empty for the default repo.
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName" json:"repo_name,omitempty"`
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} }
func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) }
func (*ProjectRepoId) ProtoMessage() {}
func (*ProjectRepoId) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} }
func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) }
func (*ProjectRepoId) ProtoMessage() {}
func (*ProjectRepoId) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_a972181f110f4ce5, []int{8}
}
func (m *ProjectRepoId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProjectRepoId.Unmarshal(m, b)
}
func (m *ProjectRepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProjectRepoId.Marshal(b, m, deterministic)
}
func (dst *ProjectRepoId) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProjectRepoId.Merge(dst, src)
}
func (m *ProjectRepoId) XXX_Size() int {
return xxx_messageInfo_ProjectRepoId.Size(m)
}
func (m *ProjectRepoId) XXX_DiscardUnknown() {
xxx_messageInfo_ProjectRepoId.DiscardUnknown(m)
}
var xxx_messageInfo_ProjectRepoId proto.InternalMessageInfo
func (m *ProjectRepoId) GetProjectId() string {
if m != nil {
@ -850,16 +1048,38 @@ func (m *ProjectRepoId) GetRepoName() string {
// can be stored before they are committed.
type CloudWorkspaceId struct {
// The ID of the repo containing the workspace.
RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId" json:"repo_id,omitempty"`
RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
// The unique name of the workspace within the repo. This is the name
// chosen by the client in the Source API's CreateWorkspace method.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CloudWorkspaceId) Reset() { *m = CloudWorkspaceId{} }
func (m *CloudWorkspaceId) String() string { return proto.CompactTextString(m) }
func (*CloudWorkspaceId) ProtoMessage() {}
func (*CloudWorkspaceId) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *CloudWorkspaceId) Reset() { *m = CloudWorkspaceId{} }
func (m *CloudWorkspaceId) String() string { return proto.CompactTextString(m) }
func (*CloudWorkspaceId) ProtoMessage() {}
func (*CloudWorkspaceId) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_a972181f110f4ce5, []int{9}
}
func (m *CloudWorkspaceId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CloudWorkspaceId.Unmarshal(m, b)
}
func (m *CloudWorkspaceId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CloudWorkspaceId.Marshal(b, m, deterministic)
}
func (dst *CloudWorkspaceId) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloudWorkspaceId.Merge(dst, src)
}
func (m *CloudWorkspaceId) XXX_Size() int {
return xxx_messageInfo_CloudWorkspaceId.Size(m)
}
func (m *CloudWorkspaceId) XXX_DiscardUnknown() {
xxx_messageInfo_CloudWorkspaceId.DiscardUnknown(m)
}
var xxx_messageInfo_CloudWorkspaceId proto.InternalMessageInfo
func (m *CloudWorkspaceId) GetRepoId() *RepoId {
if m != nil {
@ -878,6 +1098,7 @@ func (m *CloudWorkspaceId) GetName() string {
func init() {
proto.RegisterType((*SourceContext)(nil), "google.devtools.source.v1.SourceContext")
proto.RegisterType((*ExtendedSourceContext)(nil), "google.devtools.source.v1.ExtendedSourceContext")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.source.v1.ExtendedSourceContext.LabelsEntry")
proto.RegisterType((*AliasContext)(nil), "google.devtools.source.v1.AliasContext")
proto.RegisterType((*CloudRepoSourceContext)(nil), "google.devtools.source.v1.CloudRepoSourceContext")
proto.RegisterType((*CloudWorkspaceSourceContext)(nil), "google.devtools.source.v1.CloudWorkspaceSourceContext")
@ -889,9 +1110,11 @@ func init() {
proto.RegisterEnum("google.devtools.source.v1.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value)
}
func init() { proto.RegisterFile("google/devtools/source/v1/source_context.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/devtools/source/v1/source_context.proto", fileDescriptor_source_context_a972181f110f4ce5)
}
var fileDescriptor0 = []byte{
var fileDescriptor_source_context_a972181f110f4ce5 = []byte{
// 800 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x4e, 0xdb, 0x48,
0x14, 0x8e, 0xe3, 0x90, 0xe0, 0x13, 0x02, 0xd1, 0xec, 0x8f, 0x02, 0x2c, 0x02, 0x2c, 0xad, 0x16,

View File

@ -1,30 +1,14 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/sourcerepo/v1/sourcerepo.proto
/*
Package sourcerepo is a generated protocol buffer package.
It is generated from these files:
google/devtools/sourcerepo/v1/sourcerepo.proto
It has these top-level messages:
Repo
MirrorConfig
GetRepoRequest
ListReposRequest
ListReposResponse
CreateRepoRequest
DeleteRepoRequest
*/
package sourcerepo
package sourcerepo // import "google.golang.org/genproto/googleapis/devtools/sourcerepo/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_iam_v11 "google.golang.org/genproto/googleapis/iam/v1"
import google_iam_v1 "google.golang.org/genproto/googleapis/iam/v1"
import google_protobuf1 "github.com/golang/protobuf/ptypes/empty"
import v1 "google.golang.org/genproto/googleapis/iam/v1"
import (
context "golang.org/x/net/context"
@ -47,22 +31,44 @@ type Repo struct {
// Resource name of the repository, of the form
// `projects/<project>/repos/<repo>`. The repo name may contain slashes.
// eg, `projects/myproject/repos/name/with/slash`
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The disk usage of the repo, in bytes. Read-only field. Size is only
// returned by GetRepo.
Size int64 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"`
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
// URL to clone the repository from Google Cloud Source Repositories.
// Read-only field.
Url string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
// How this repository mirrors a repository managed by another service.
// Read-only field.
MirrorConfig *MirrorConfig `protobuf:"bytes,4,opt,name=mirror_config,json=mirrorConfig" json:"mirror_config,omitempty"`
MirrorConfig *MirrorConfig `protobuf:"bytes,4,opt,name=mirror_config,json=mirrorConfig,proto3" json:"mirror_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Repo) Reset() { *m = Repo{} }
func (m *Repo) String() string { return proto.CompactTextString(m) }
func (*Repo) ProtoMessage() {}
func (*Repo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Repo) Reset() { *m = Repo{} }
func (m *Repo) String() string { return proto.CompactTextString(m) }
func (*Repo) ProtoMessage() {}
func (*Repo) Descriptor() ([]byte, []int) {
return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{0}
}
func (m *Repo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Repo.Unmarshal(m, b)
}
func (m *Repo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Repo.Marshal(b, m, deterministic)
}
func (dst *Repo) XXX_Merge(src proto.Message) {
xxx_messageInfo_Repo.Merge(dst, src)
}
func (m *Repo) XXX_Size() int {
return xxx_messageInfo_Repo.Size(m)
}
func (m *Repo) XXX_DiscardUnknown() {
xxx_messageInfo_Repo.DiscardUnknown(m)
}
var xxx_messageInfo_Repo proto.InternalMessageInfo
func (m *Repo) GetName() string {
if m != nil {
@ -96,22 +102,44 @@ func (m *Repo) GetMirrorConfig() *MirrorConfig {
// hosting service, for example GitHub or BitBucket.
type MirrorConfig struct {
// URL of the main repository at the other hosting service.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// ID of the webhook listening to updates to trigger mirroring.
// Removing this webhook from the other hosting service will stop
// Google Cloud Source Repositories from receiving notifications,
// and thereby disabling mirroring.
WebhookId string `protobuf:"bytes,2,opt,name=webhook_id,json=webhookId" json:"webhook_id,omitempty"`
WebhookId string `protobuf:"bytes,2,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
// ID of the SSH deploy key at the other hosting service.
// Removing this key from the other service would deauthorize
// Google Cloud Source Repositories from mirroring.
DeployKeyId string `protobuf:"bytes,3,opt,name=deploy_key_id,json=deployKeyId" json:"deploy_key_id,omitempty"`
DeployKeyId string `protobuf:"bytes,3,opt,name=deploy_key_id,json=deployKeyId,proto3" json:"deploy_key_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MirrorConfig) Reset() { *m = MirrorConfig{} }
func (m *MirrorConfig) String() string { return proto.CompactTextString(m) }
func (*MirrorConfig) ProtoMessage() {}
func (*MirrorConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *MirrorConfig) Reset() { *m = MirrorConfig{} }
func (m *MirrorConfig) String() string { return proto.CompactTextString(m) }
func (*MirrorConfig) ProtoMessage() {}
func (*MirrorConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{1}
}
func (m *MirrorConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MirrorConfig.Unmarshal(m, b)
}
func (m *MirrorConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MirrorConfig.Marshal(b, m, deterministic)
}
func (dst *MirrorConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_MirrorConfig.Merge(dst, src)
}
func (m *MirrorConfig) XXX_Size() int {
return xxx_messageInfo_MirrorConfig.Size(m)
}
func (m *MirrorConfig) XXX_DiscardUnknown() {
xxx_messageInfo_MirrorConfig.DiscardUnknown(m)
}
var xxx_messageInfo_MirrorConfig proto.InternalMessageInfo
func (m *MirrorConfig) GetUrl() string {
if m != nil {
@ -138,13 +166,35 @@ func (m *MirrorConfig) GetDeployKeyId() string {
type GetRepoRequest struct {
// The name of the requested repository. Values are of the form
// `projects/<project>/repos/<repo>`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetRepoRequest) Reset() { *m = GetRepoRequest{} }
func (m *GetRepoRequest) String() string { return proto.CompactTextString(m) }
func (*GetRepoRequest) ProtoMessage() {}
func (*GetRepoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *GetRepoRequest) Reset() { *m = GetRepoRequest{} }
func (m *GetRepoRequest) String() string { return proto.CompactTextString(m) }
func (*GetRepoRequest) ProtoMessage() {}
func (*GetRepoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{2}
}
func (m *GetRepoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetRepoRequest.Unmarshal(m, b)
}
func (m *GetRepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetRepoRequest.Marshal(b, m, deterministic)
}
func (dst *GetRepoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRepoRequest.Merge(dst, src)
}
func (m *GetRepoRequest) XXX_Size() int {
return xxx_messageInfo_GetRepoRequest.Size(m)
}
func (m *GetRepoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRepoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRepoRequest proto.InternalMessageInfo
func (m *GetRepoRequest) GetName() string {
if m != nil {
@ -157,20 +207,42 @@ func (m *GetRepoRequest) GetName() string {
type ListReposRequest struct {
// The project ID whose repos should be listed. Values are of the form
// `projects/<project>`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Maximum number of repositories to return; between 1 and 500.
// If not set or zero, defaults to 100 at the server.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Resume listing repositories where a prior ListReposResponse
// left off. This is an opaque token that must be obtained from
// a recent, prior ListReposResponse's next_page_token field.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListReposRequest) Reset() { *m = ListReposRequest{} }
func (m *ListReposRequest) String() string { return proto.CompactTextString(m) }
func (*ListReposRequest) ProtoMessage() {}
func (*ListReposRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *ListReposRequest) Reset() { *m = ListReposRequest{} }
func (m *ListReposRequest) String() string { return proto.CompactTextString(m) }
func (*ListReposRequest) ProtoMessage() {}
func (*ListReposRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{3}
}
func (m *ListReposRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListReposRequest.Unmarshal(m, b)
}
func (m *ListReposRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListReposRequest.Marshal(b, m, deterministic)
}
func (dst *ListReposRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListReposRequest.Merge(dst, src)
}
func (m *ListReposRequest) XXX_Size() int {
return xxx_messageInfo_ListReposRequest.Size(m)
}
func (m *ListReposRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListReposRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListReposRequest proto.InternalMessageInfo
func (m *ListReposRequest) GetName() string {
if m != nil {
@ -196,17 +268,39 @@ func (m *ListReposRequest) GetPageToken() string {
// Response for ListRepos. The size is not set in the returned repositories.
type ListReposResponse struct {
// The listed repos.
Repos []*Repo `protobuf:"bytes,1,rep,name=repos" json:"repos,omitempty"`
Repos []*Repo `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"`
// If non-empty, additional repositories exist within the project. These
// can be retrieved by including this value in the next ListReposRequest's
// page_token field.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListReposResponse) Reset() { *m = ListReposResponse{} }
func (m *ListReposResponse) String() string { return proto.CompactTextString(m) }
func (*ListReposResponse) ProtoMessage() {}
func (*ListReposResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *ListReposResponse) Reset() { *m = ListReposResponse{} }
func (m *ListReposResponse) String() string { return proto.CompactTextString(m) }
func (*ListReposResponse) ProtoMessage() {}
func (*ListReposResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{4}
}
func (m *ListReposResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListReposResponse.Unmarshal(m, b)
}
func (m *ListReposResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListReposResponse.Marshal(b, m, deterministic)
}
func (dst *ListReposResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListReposResponse.Merge(dst, src)
}
func (m *ListReposResponse) XXX_Size() int {
return xxx_messageInfo_ListReposResponse.Size(m)
}
func (m *ListReposResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListReposResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListReposResponse proto.InternalMessageInfo
func (m *ListReposResponse) GetRepos() []*Repo {
if m != nil {
@ -226,16 +320,38 @@ func (m *ListReposResponse) GetNextPageToken() string {
type CreateRepoRequest struct {
// The project in which to create the repo. Values are of the form
// `projects/<project>`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The repo to create. Only name should be set; setting other fields
// is an error. The project in the name should match the parent field.
Repo *Repo `protobuf:"bytes,2,opt,name=repo" json:"repo,omitempty"`
Repo *Repo `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateRepoRequest) Reset() { *m = CreateRepoRequest{} }
func (m *CreateRepoRequest) String() string { return proto.CompactTextString(m) }
func (*CreateRepoRequest) ProtoMessage() {}
func (*CreateRepoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *CreateRepoRequest) Reset() { *m = CreateRepoRequest{} }
func (m *CreateRepoRequest) String() string { return proto.CompactTextString(m) }
func (*CreateRepoRequest) ProtoMessage() {}
func (*CreateRepoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{5}
}
func (m *CreateRepoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateRepoRequest.Unmarshal(m, b)
}
func (m *CreateRepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateRepoRequest.Marshal(b, m, deterministic)
}
func (dst *CreateRepoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateRepoRequest.Merge(dst, src)
}
func (m *CreateRepoRequest) XXX_Size() int {
return xxx_messageInfo_CreateRepoRequest.Size(m)
}
func (m *CreateRepoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateRepoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateRepoRequest proto.InternalMessageInfo
func (m *CreateRepoRequest) GetParent() string {
if m != nil {
@ -255,13 +371,35 @@ func (m *CreateRepoRequest) GetRepo() *Repo {
type DeleteRepoRequest struct {
// The name of the repo to delete. Values are of the form
// `projects/<project>/repos/<repo>`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteRepoRequest) Reset() { *m = DeleteRepoRequest{} }
func (m *DeleteRepoRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteRepoRequest) ProtoMessage() {}
func (*DeleteRepoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *DeleteRepoRequest) Reset() { *m = DeleteRepoRequest{} }
func (m *DeleteRepoRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteRepoRequest) ProtoMessage() {}
func (*DeleteRepoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{6}
}
func (m *DeleteRepoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteRepoRequest.Unmarshal(m, b)
}
func (m *DeleteRepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteRepoRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteRepoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteRepoRequest.Merge(dst, src)
}
func (m *DeleteRepoRequest) XXX_Size() int {
return xxx_messageInfo_DeleteRepoRequest.Size(m)
}
func (m *DeleteRepoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteRepoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteRepoRequest proto.InternalMessageInfo
func (m *DeleteRepoRequest) GetName() string {
if m != nil {
@ -288,8 +426,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for SourceRepo service
// SourceRepoClient is the client API for SourceRepo service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SourceRepoClient interface {
// Returns all repos belonging to a project. The sizes of the repos are
// not set by ListRepos. To get the size of a repo, use GetRepo.
@ -302,18 +441,18 @@ type SourceRepoClient interface {
// `ALREADY_EXISTS`.
CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*Repo, error)
// Deletes a repo.
DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Sets the access control policy on the specified resource. Replaces any
// existing policy.
SetIamPolicy(ctx context.Context, in *google_iam_v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error)
SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
// Gets the access control policy for a resource.
// Returns an empty policy if the resource exists and does not have a policy
// set.
GetIamPolicy(ctx context.Context, in *google_iam_v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error)
GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
// Returns permissions that a caller has on the specified resource.
// If the resource does not exist, this will return an empty set of
// permissions, not a NOT_FOUND error.
TestIamPermissions(ctx context.Context, in *google_iam_v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*google_iam_v11.TestIamPermissionsResponse, error)
TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
}
type sourceRepoClient struct {
@ -326,7 +465,7 @@ func NewSourceRepoClient(cc *grpc.ClientConn) SourceRepoClient {
func (c *sourceRepoClient) ListRepos(ctx context.Context, in *ListReposRequest, opts ...grpc.CallOption) (*ListReposResponse, error) {
out := new(ListReposResponse)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/ListRepos", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/ListRepos", in, out, opts...)
if err != nil {
return nil, err
}
@ -335,7 +474,7 @@ func (c *sourceRepoClient) ListRepos(ctx context.Context, in *ListReposRequest,
func (c *sourceRepoClient) GetRepo(ctx context.Context, in *GetRepoRequest, opts ...grpc.CallOption) (*Repo, error) {
out := new(Repo)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetRepo", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetRepo", in, out, opts...)
if err != nil {
return nil, err
}
@ -344,51 +483,50 @@ func (c *sourceRepoClient) GetRepo(ctx context.Context, in *GetRepoRequest, opts
func (c *sourceRepoClient) CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*Repo, error) {
out := new(Repo)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/CreateRepo", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/CreateRepo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) {
out := new(google_protobuf1.Empty)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/DeleteRepo", in, out, c.cc, opts...)
func (c *sourceRepoClient) DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/DeleteRepo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) SetIamPolicy(ctx context.Context, in *google_iam_v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error) {
out := new(google_iam_v1.Policy)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/SetIamPolicy", in, out, c.cc, opts...)
func (c *sourceRepoClient) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
out := new(v1.Policy)
err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/SetIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) GetIamPolicy(ctx context.Context, in *google_iam_v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error) {
out := new(google_iam_v1.Policy)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetIamPolicy", in, out, c.cc, opts...)
func (c *sourceRepoClient) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
out := new(v1.Policy)
err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) TestIamPermissions(ctx context.Context, in *google_iam_v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*google_iam_v11.TestIamPermissionsResponse, error) {
out := new(google_iam_v11.TestIamPermissionsResponse)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/TestIamPermissions", in, out, c.cc, opts...)
func (c *sourceRepoClient) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) {
out := new(v1.TestIamPermissionsResponse)
err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/TestIamPermissions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for SourceRepo service
// SourceRepoServer is the server API for SourceRepo service.
type SourceRepoServer interface {
// Returns all repos belonging to a project. The sizes of the repos are
// not set by ListRepos. To get the size of a repo, use GetRepo.
@ -401,18 +539,18 @@ type SourceRepoServer interface {
// `ALREADY_EXISTS`.
CreateRepo(context.Context, *CreateRepoRequest) (*Repo, error)
// Deletes a repo.
DeleteRepo(context.Context, *DeleteRepoRequest) (*google_protobuf1.Empty, error)
DeleteRepo(context.Context, *DeleteRepoRequest) (*empty.Empty, error)
// Sets the access control policy on the specified resource. Replaces any
// existing policy.
SetIamPolicy(context.Context, *google_iam_v11.SetIamPolicyRequest) (*google_iam_v1.Policy, error)
SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
// Gets the access control policy for a resource.
// Returns an empty policy if the resource exists and does not have a policy
// set.
GetIamPolicy(context.Context, *google_iam_v11.GetIamPolicyRequest) (*google_iam_v1.Policy, error)
GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
// Returns permissions that a caller has on the specified resource.
// If the resource does not exist, this will return an empty set of
// permissions, not a NOT_FOUND error.
TestIamPermissions(context.Context, *google_iam_v11.TestIamPermissionsRequest) (*google_iam_v11.TestIamPermissionsResponse, error)
TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
}
func RegisterSourceRepoServer(s *grpc.Server, srv SourceRepoServer) {
@ -492,7 +630,7 @@ func _SourceRepo_DeleteRepo_Handler(srv interface{}, ctx context.Context, dec fu
}
func _SourceRepo_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(google_iam_v11.SetIamPolicyRequest)
in := new(v1.SetIamPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
@ -504,13 +642,13 @@ func _SourceRepo_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/SetIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).SetIamPolicy(ctx, req.(*google_iam_v11.SetIamPolicyRequest))
return srv.(SourceRepoServer).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(google_iam_v11.GetIamPolicyRequest)
in := new(v1.GetIamPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
@ -522,13 +660,13 @@ func _SourceRepo_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/GetIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).GetIamPolicy(ctx, req.(*google_iam_v11.GetIamPolicyRequest))
return srv.(SourceRepoServer).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(google_iam_v11.TestIamPermissionsRequest)
in := new(v1.TestIamPermissionsRequest)
if err := dec(in); err != nil {
return nil, err
}
@ -540,7 +678,7 @@ func _SourceRepo_TestIamPermissions_Handler(srv interface{}, ctx context.Context
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/TestIamPermissions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).TestIamPermissions(ctx, req.(*google_iam_v11.TestIamPermissionsRequest))
return srv.(SourceRepoServer).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest))
}
return interceptor(ctx, in, info, handler)
}
@ -582,9 +720,11 @@ var _SourceRepo_serviceDesc = grpc.ServiceDesc{
Metadata: "google/devtools/sourcerepo/v1/sourcerepo.proto",
}
func init() { proto.RegisterFile("google/devtools/sourcerepo/v1/sourcerepo.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/devtools/sourcerepo/v1/sourcerepo.proto", fileDescriptor_sourcerepo_c3970ced7dbc10e1)
}
var fileDescriptor0 = []byte{
var fileDescriptor_sourcerepo_c3970ced7dbc10e1 = []byte{
// 743 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xd1, 0x6e, 0xd3, 0x4a,
0x10, 0xd5, 0x36, 0x69, 0x7b, 0x33, 0x4d, 0x6f, 0xdb, 0x95, 0x6e, 0x15, 0xa5, 0x37, 0x55, 0xae,