vendor files

This commit is contained in:
Serguei Bezverkhi
2018-01-09 13:57:14 -05:00
parent 558bc6c02a
commit 7b24313bd6
16547 changed files with 4527373 additions and 0 deletions

View File

@ -0,0 +1,834 @@
// 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
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/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.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The type of console output stream.
type ConsoleOutputStream int32
const (
// Unspecified or unknown.
ConsoleOutputStream_UNKNOWN ConsoleOutputStream = 0
// Normal output stream.
ConsoleOutputStream_STDOUT ConsoleOutputStream = 1
// Error output stream.
ConsoleOutputStream_STDERR ConsoleOutputStream = 2
)
var ConsoleOutputStream_name = map[int32]string{
0: "UNKNOWN",
1: "STDOUT",
2: "STDERR",
}
var ConsoleOutputStream_value = map[string]int32{
"UNKNOWN": 0,
"STDOUT": 1,
"STDERR": 2,
}
func (x ConsoleOutputStream) String() string {
return proto.EnumName(ConsoleOutputStream_name, int32(x))
}
func (ConsoleOutputStream) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
// How did the event stream finish.
type BuildEvent_BuildComponentStreamFinished_FinishType int32
const (
// Unknown or unspecified; callers should never set this value.
BuildEvent_BuildComponentStreamFinished_FINISH_TYPE_UNSPECIFIED BuildEvent_BuildComponentStreamFinished_FinishType = 0
// Set by the event publisher to indicate a build event stream is
// finished.
BuildEvent_BuildComponentStreamFinished_FINISHED BuildEvent_BuildComponentStreamFinished_FinishType = 1
// Set by the WatchBuild RPC server when the publisher of a build event
// stream stops publishing events without publishing a
// BuildComponentStreamFinished event whose type equals FINISHED.
BuildEvent_BuildComponentStreamFinished_EXPIRED BuildEvent_BuildComponentStreamFinished_FinishType = 2
)
var BuildEvent_BuildComponentStreamFinished_FinishType_name = map[int32]string{
0: "FINISH_TYPE_UNSPECIFIED",
1: "FINISHED",
2: "EXPIRED",
}
var BuildEvent_BuildComponentStreamFinished_FinishType_value = map[string]int32{
"FINISH_TYPE_UNSPECIFIED": 0,
"FINISHED": 1,
"EXPIRED": 2,
}
func (x BuildEvent_BuildComponentStreamFinished_FinishType) String() string {
return proto.EnumName(BuildEvent_BuildComponentStreamFinished_FinishType_name, int32(x))
}
func (BuildEvent_BuildComponentStreamFinished_FinishType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 5, 0}
}
// Which build component generates this event stream. Each build component
// may generate one event stream.
type StreamId_BuildComponent int32
const (
// Unknown or unspecified; callers should never set this value.
StreamId_UNKNOWN_COMPONENT StreamId_BuildComponent = 0
// A component that coordinates builds.
StreamId_CONTROLLER StreamId_BuildComponent = 1
// A component that runs executables needed to complete a build.
StreamId_WORKER StreamId_BuildComponent = 2
// A component that builds something.
StreamId_TOOL StreamId_BuildComponent = 3
)
var StreamId_BuildComponent_name = map[int32]string{
0: "UNKNOWN_COMPONENT",
1: "CONTROLLER",
2: "WORKER",
3: "TOOL",
}
var StreamId_BuildComponent_value = map[string]int32{
"UNKNOWN_COMPONENT": 0,
"CONTROLLER": 1,
"WORKER": 2,
"TOOL": 3,
}
func (x StreamId_BuildComponent) String() string {
return proto.EnumName(StreamId_BuildComponent_name, int32(x))
}
func (StreamId_BuildComponent) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []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"`
// //////////////////////////////////////////////////////////////////////////
// Events that indicate a state change of a build request in the build
// queue.
//
// Types that are valid to be assigned to Event:
// *BuildEvent_InvocationAttemptStarted_
// *BuildEvent_InvocationAttemptFinished_
// *BuildEvent_BuildEnqueued_
// *BuildEvent_BuildFinished_
// *BuildEvent_ConsoleOutput_
// *BuildEvent_ComponentStreamFinished
// *BuildEvent_BazelEvent
// *BuildEvent_BuildExecutionEvent
// *BuildEvent_SourceFetchEvent
Event isBuildEvent_Event `protobuf_oneof:"event"`
}
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} }
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"`
}
func (*BuildEvent_InvocationAttemptStarted_) isBuildEvent_Event() {}
func (*BuildEvent_InvocationAttemptFinished_) isBuildEvent_Event() {}
func (*BuildEvent_BuildEnqueued_) isBuildEvent_Event() {}
func (*BuildEvent_BuildFinished_) isBuildEvent_Event() {}
func (*BuildEvent_ConsoleOutput_) isBuildEvent_Event() {}
func (*BuildEvent_ComponentStreamFinished) isBuildEvent_Event() {}
func (*BuildEvent_BazelEvent) isBuildEvent_Event() {}
func (*BuildEvent_BuildExecutionEvent) isBuildEvent_Event() {}
func (*BuildEvent_SourceFetchEvent) isBuildEvent_Event() {}
func (m *BuildEvent) GetEvent() isBuildEvent_Event {
if m != nil {
return m.Event
}
return nil
}
func (m *BuildEvent) GetEventTime() *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
}
return nil
}
func (m *BuildEvent) GetInvocationAttemptFinished() *BuildEvent_InvocationAttemptFinished {
if x, ok := m.GetEvent().(*BuildEvent_InvocationAttemptFinished_); ok {
return x.InvocationAttemptFinished
}
return nil
}
func (m *BuildEvent) GetBuildEnqueued() *BuildEvent_BuildEnqueued {
if x, ok := m.GetEvent().(*BuildEvent_BuildEnqueued_); ok {
return x.BuildEnqueued
}
return nil
}
func (m *BuildEvent) GetBuildFinished() *BuildEvent_BuildFinished {
if x, ok := m.GetEvent().(*BuildEvent_BuildFinished_); ok {
return x.BuildFinished
}
return nil
}
func (m *BuildEvent) GetConsoleOutput() *BuildEvent_ConsoleOutput {
if x, ok := m.GetEvent().(*BuildEvent_ConsoleOutput_); ok {
return x.ConsoleOutput
}
return nil
}
func (m *BuildEvent) GetComponentStreamFinished() *BuildEvent_BuildComponentStreamFinished {
if x, ok := m.GetEvent().(*BuildEvent_ComponentStreamFinished); ok {
return x.ComponentStreamFinished
}
return nil
}
func (m *BuildEvent) GetBazelEvent() *google_protobuf1.Any {
if x, ok := m.GetEvent().(*BuildEvent_BazelEvent); ok {
return x.BazelEvent
}
return nil
}
func (m *BuildEvent) GetBuildExecutionEvent() *google_protobuf1.Any {
if x, ok := m.GetEvent().(*BuildEvent_BuildExecutionEvent); ok {
return x.BuildExecutionEvent
}
return nil
}
func (m *BuildEvent) GetSourceFetchEvent() *google_protobuf1.Any {
if x, ok := m.GetEvent().(*BuildEvent_SourceFetchEvent); ok {
return x.SourceFetchEvent
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*BuildEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _BuildEvent_OneofMarshaler, _BuildEvent_OneofUnmarshaler, _BuildEvent_OneofSizer, []interface{}{
(*BuildEvent_InvocationAttemptStarted_)(nil),
(*BuildEvent_InvocationAttemptFinished_)(nil),
(*BuildEvent_BuildEnqueued_)(nil),
(*BuildEvent_BuildFinished_)(nil),
(*BuildEvent_ConsoleOutput_)(nil),
(*BuildEvent_ComponentStreamFinished)(nil),
(*BuildEvent_BazelEvent)(nil),
(*BuildEvent_BuildExecutionEvent)(nil),
(*BuildEvent_SourceFetchEvent)(nil),
}
}
func _BuildEvent_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*BuildEvent)
// event
switch x := m.Event.(type) {
case *BuildEvent_InvocationAttemptStarted_:
b.EncodeVarint(51<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.InvocationAttemptStarted); err != nil {
return err
}
case *BuildEvent_InvocationAttemptFinished_:
b.EncodeVarint(52<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.InvocationAttemptFinished); err != nil {
return err
}
case *BuildEvent_BuildEnqueued_:
b.EncodeVarint(53<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BuildEnqueued); err != nil {
return err
}
case *BuildEvent_BuildFinished_:
b.EncodeVarint(55<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BuildFinished); err != nil {
return err
}
case *BuildEvent_ConsoleOutput_:
b.EncodeVarint(56<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ConsoleOutput); err != nil {
return err
}
case *BuildEvent_ComponentStreamFinished:
b.EncodeVarint(59<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ComponentStreamFinished); err != nil {
return err
}
case *BuildEvent_BazelEvent:
b.EncodeVarint(60<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BazelEvent); err != nil {
return err
}
case *BuildEvent_BuildExecutionEvent:
b.EncodeVarint(61<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BuildExecutionEvent); err != nil {
return err
}
case *BuildEvent_SourceFetchEvent:
b.EncodeVarint(62<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.SourceFetchEvent); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("BuildEvent.Event has unexpected type %T", x)
}
return nil
}
func _BuildEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*BuildEvent)
switch tag {
case 51: // event.invocation_attempt_started
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_InvocationAttemptStarted)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_InvocationAttemptStarted_{msg}
return true, err
case 52: // event.invocation_attempt_finished
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_InvocationAttemptFinished)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_InvocationAttemptFinished_{msg}
return true, err
case 53: // event.build_enqueued
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_BuildEnqueued)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_BuildEnqueued_{msg}
return true, err
case 55: // event.build_finished
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_BuildFinished)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_BuildFinished_{msg}
return true, err
case 56: // event.console_output
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_ConsoleOutput)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_ConsoleOutput_{msg}
return true, err
case 59: // event.component_stream_finished
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BuildEvent_BuildComponentStreamFinished)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_ComponentStreamFinished{msg}
return true, err
case 60: // event.bazel_event
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(google_protobuf1.Any)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_BazelEvent{msg}
return true, err
case 61: // event.build_execution_event
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(google_protobuf1.Any)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_BuildExecutionEvent{msg}
return true, err
case 62: // event.source_fetch_event
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(google_protobuf1.Any)
err := b.DecodeMessage(msg)
m.Event = &BuildEvent_SourceFetchEvent{msg}
return true, err
default:
return false, nil
}
}
func _BuildEvent_OneofSizer(msg proto.Message) (n int) {
m := msg.(*BuildEvent)
// event
switch x := m.Event.(type) {
case *BuildEvent_InvocationAttemptStarted_:
s := proto.Size(x.InvocationAttemptStarted)
n += proto.SizeVarint(51<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_InvocationAttemptFinished_:
s := proto.Size(x.InvocationAttemptFinished)
n += proto.SizeVarint(52<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BuildEnqueued_:
s := proto.Size(x.BuildEnqueued)
n += proto.SizeVarint(53<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BuildFinished_:
s := proto.Size(x.BuildFinished)
n += proto.SizeVarint(55<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_ConsoleOutput_:
s := proto.Size(x.ConsoleOutput)
n += proto.SizeVarint(56<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_ComponentStreamFinished:
s := proto.Size(x.ComponentStreamFinished)
n += proto.SizeVarint(59<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BazelEvent:
s := proto.Size(x.BazelEvent)
n += proto.SizeVarint(60<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_BuildExecutionEvent:
s := proto.Size(x.BuildExecutionEvent)
n += proto.SizeVarint(61<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *BuildEvent_SourceFetchEvent:
s := proto.Size(x.SourceFetchEvent)
n += proto.SizeVarint(62<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Notification that the build system has attempted to run the build tool.
type BuildEvent_InvocationAttemptStarted struct {
// The number of the invocation attempt, starting at 1 and increasing by 1
// for each new attempt. Can be used to determine if there is a later
// invocation attempt replacing the current one a client is processing.
AttemptNumber int64 `protobuf:"varint,1,opt,name=attempt_number,json=attemptNumber" json:"attempt_number,omitempty"`
}
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}
}
func (m *BuildEvent_InvocationAttemptStarted) GetAttemptNumber() int64 {
if m != nil {
return m.AttemptNumber
}
return 0
}
// Notification that an invocation attempt has finished.
type BuildEvent_InvocationAttemptFinished struct {
// The exit code of the build tool.
ExitCode *google_protobuf3.Int32Value `protobuf:"bytes,2,opt,name=exit_code,json=exitCode" json:"exit_code,omitempty"`
// Final status of the invocation.
InvocationStatus *BuildStatus `protobuf:"bytes,3,opt,name=invocation_status,json=invocationStatus" json:"invocation_status,omitempty"`
}
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}
}
func (m *BuildEvent_InvocationAttemptFinished) GetExitCode() *google_protobuf3.Int32Value {
if m != nil {
return m.ExitCode
}
return nil
}
func (m *BuildEvent_InvocationAttemptFinished) GetInvocationStatus() *BuildStatus {
if m != nil {
return m.InvocationStatus
}
return nil
}
// Notification that the build request is enqueued. It could happen when
// a new build request is inserted into the build queue, or when a
// build request is put back into the build queue due to a previous build
// failure.
type BuildEvent_BuildEnqueued struct {
}
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} }
// 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"`
}
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) GetStatus() *BuildStatus {
if m != nil {
return m.Status
}
return nil
}
// Textual output written to standard output or standard error.
type BuildEvent_ConsoleOutput struct {
// The output stream type.
Type ConsoleOutputStream `protobuf:"varint,1,opt,name=type,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"`
}
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} }
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"`
}
type BuildEvent_ConsoleOutput_BinaryOutput struct {
BinaryOutput []byte `protobuf:"bytes,3,opt,name=binary_output,json=binaryOutput,proto3,oneof"`
}
func (*BuildEvent_ConsoleOutput_TextOutput) isBuildEvent_ConsoleOutput_Output() {}
func (*BuildEvent_ConsoleOutput_BinaryOutput) isBuildEvent_ConsoleOutput_Output() {}
func (m *BuildEvent_ConsoleOutput) GetOutput() isBuildEvent_ConsoleOutput_Output {
if m != nil {
return m.Output
}
return nil
}
func (m *BuildEvent_ConsoleOutput) GetType() ConsoleOutputStream {
if m != nil {
return m.Type
}
return ConsoleOutputStream_UNKNOWN
}
func (m *BuildEvent_ConsoleOutput) GetTextOutput() string {
if x, ok := m.GetOutput().(*BuildEvent_ConsoleOutput_TextOutput); ok {
return x.TextOutput
}
return ""
}
func (m *BuildEvent_ConsoleOutput) GetBinaryOutput() []byte {
if x, ok := m.GetOutput().(*BuildEvent_ConsoleOutput_BinaryOutput); ok {
return x.BinaryOutput
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*BuildEvent_ConsoleOutput) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _BuildEvent_ConsoleOutput_OneofMarshaler, _BuildEvent_ConsoleOutput_OneofUnmarshaler, _BuildEvent_ConsoleOutput_OneofSizer, []interface{}{
(*BuildEvent_ConsoleOutput_TextOutput)(nil),
(*BuildEvent_ConsoleOutput_BinaryOutput)(nil),
}
}
func _BuildEvent_ConsoleOutput_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*BuildEvent_ConsoleOutput)
// output
switch x := m.Output.(type) {
case *BuildEvent_ConsoleOutput_TextOutput:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeStringBytes(x.TextOutput)
case *BuildEvent_ConsoleOutput_BinaryOutput:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeRawBytes(x.BinaryOutput)
case nil:
default:
return fmt.Errorf("BuildEvent_ConsoleOutput.Output has unexpected type %T", x)
}
return nil
}
func _BuildEvent_ConsoleOutput_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*BuildEvent_ConsoleOutput)
switch tag {
case 2: // output.text_output
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Output = &BuildEvent_ConsoleOutput_TextOutput{x}
return true, err
case 3: // output.binary_output
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.Output = &BuildEvent_ConsoleOutput_BinaryOutput{x}
return true, err
default:
return false, nil
}
}
func _BuildEvent_ConsoleOutput_OneofSizer(msg proto.Message) (n int) {
m := msg.(*BuildEvent_ConsoleOutput)
// output
switch x := m.Output.(type) {
case *BuildEvent_ConsoleOutput_TextOutput:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.TextOutput)))
n += len(x.TextOutput)
case *BuildEvent_ConsoleOutput_BinaryOutput:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.BinaryOutput)))
n += len(x.BinaryOutput)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Notification of the end of a build event stream published by a build
// component other than CONTROLLER (See StreamId.BuildComponents).
type BuildEvent_BuildComponentStreamFinished struct {
// How the event stream finished.
Type BuildEvent_BuildComponentStreamFinished_FinishType `protobuf:"varint,1,opt,name=type,enum=google.devtools.build.v1.BuildEvent_BuildComponentStreamFinished_FinishType" json:"type,omitempty"`
}
func (m *BuildEvent_BuildComponentStreamFinished) Reset() {
*m = BuildEvent_BuildComponentStreamFinished{}
}
func (m *BuildEvent_BuildComponentStreamFinished) String() string { return proto.CompactTextString(m) }
func (*BuildEvent_BuildComponentStreamFinished) ProtoMessage() {}
func (*BuildEvent_BuildComponentStreamFinished) Descriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 5}
}
func (m *BuildEvent_BuildComponentStreamFinished) GetType() BuildEvent_BuildComponentStreamFinished_FinishType {
if m != nil {
return m.Type
}
return BuildEvent_BuildComponentStreamFinished_FINISH_TYPE_UNSPECIFIED
}
// Unique identifier for a build event stream.
type StreamId struct {
// The id of a Build message.
BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId" 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"`
// 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"`
}
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) GetBuildId() string {
if m != nil {
return m.BuildId
}
return ""
}
func (m *StreamId) GetInvocationId() string {
if m != nil {
return m.InvocationId
}
return ""
}
func (m *StreamId) GetComponent() StreamId_BuildComponent {
if m != nil {
return m.Component
}
return StreamId_UNKNOWN_COMPONENT
}
func init() {
proto.RegisterType((*BuildEvent)(nil), "google.devtools.build.v1.BuildEvent")
proto.RegisterType((*BuildEvent_InvocationAttemptStarted)(nil), "google.devtools.build.v1.BuildEvent.InvocationAttemptStarted")
proto.RegisterType((*BuildEvent_InvocationAttemptFinished)(nil), "google.devtools.build.v1.BuildEvent.InvocationAttemptFinished")
proto.RegisterType((*BuildEvent_BuildEnqueued)(nil), "google.devtools.build.v1.BuildEvent.BuildEnqueued")
proto.RegisterType((*BuildEvent_BuildFinished)(nil), "google.devtools.build.v1.BuildEvent.BuildFinished")
proto.RegisterType((*BuildEvent_ConsoleOutput)(nil), "google.devtools.build.v1.BuildEvent.ConsoleOutput")
proto.RegisterType((*BuildEvent_BuildComponentStreamFinished)(nil), "google.devtools.build.v1.BuildEvent.BuildComponentStreamFinished")
proto.RegisterType((*StreamId)(nil), "google.devtools.build.v1.StreamId")
proto.RegisterEnum("google.devtools.build.v1.ConsoleOutputStream", ConsoleOutputStream_name, ConsoleOutputStream_value)
proto.RegisterEnum("google.devtools.build.v1.BuildEvent_BuildComponentStreamFinished_FinishType", BuildEvent_BuildComponentStreamFinished_FinishType_name, BuildEvent_BuildComponentStreamFinished_FinishType_value)
proto.RegisterEnum("google.devtools.build.v1.StreamId_BuildComponent", StreamId_BuildComponent_name, StreamId_BuildComponent_value)
}
func init() { proto.RegisterFile("google/devtools/build/v1/build_events.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 927 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x6d, 0x6f, 0xe3, 0x44,
0x10, 0x8e, 0xdb, 0xa3, 0x4d, 0xa7, 0x49, 0xce, 0xb7, 0xc7, 0xa9, 0x8e, 0x5b, 0xf1, 0x52, 0x54,
0x09, 0x81, 0x70, 0xd4, 0x14, 0x74, 0x07, 0x47, 0x4f, 0xca, 0x8b, 0xab, 0x98, 0xeb, 0xd9, 0xd1,
0x26, 0xe5, 0x78, 0xf9, 0x10, 0x1c, 0x7b, 0x9b, 0xb3, 0x94, 0x78, 0x8d, 0xbd, 0x0e, 0x0d, 0x12,
0x82, 0x5f, 0x83, 0xc4, 0x1f, 0xe1, 0xc7, 0xf0, 0x07, 0xe0, 0x23, 0xf2, 0xee, 0xba, 0x49, 0xda,
0xa6, 0x77, 0x85, 0x6f, 0xbb, 0x33, 0xcf, 0x3c, 0xcf, 0xcc, 0xec, 0x8c, 0x65, 0xf8, 0x78, 0x44,
0xe9, 0x68, 0x4c, 0x6a, 0x3e, 0x99, 0x32, 0x4a, 0xc7, 0x49, 0x6d, 0x98, 0x06, 0x63, 0xbf, 0x36,
0x3d, 0x14, 0x87, 0x01, 0x99, 0x92, 0x90, 0x25, 0x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, 0x6b, 0xcd, 0x04, 0xf6,
0x3c, 0x3a, 0x59, 0x59, 0x4d, 0xf3, 0xfe, 0xfc, 0x45, 0xbb, 0xd9, 0x86, 0x76, 0x95, 0xef, 0x8e,
0x25, 0x78, 0x44, 0xc7, 0x6e, 0x38, 0x32, 0x68, 0x3c, 0xaa, 0x8d, 0x48, 0xc8, 0xf7, 0xb7, 0x26,
0x5c, 0x6e, 0x14, 0x24, 0xd7, 0x7f, 0x4b, 0x9e, 0xf2, 0xc3, 0x3f, 0x8a, 0x32, 0xdc, 0xe0, 0xe0,
0xa3, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x84, 0x0f, 0x0f, 0xdf, 0x27, 0x09, 0x00, 0x00,
}

View File

@ -0,0 +1,130 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/build/v1/build_status.proto
package build
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/any"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// The end result of the Build.
type BuildStatus_Result int32
const (
// Unspecified or unknown.
BuildStatus_UNKNOWN_STATUS BuildStatus_Result = 0
// Build was successful and tests (if requested) all pass.
BuildStatus_COMMAND_SUCCEEDED BuildStatus_Result = 1
// Build error and/or test failure.
BuildStatus_COMMAND_FAILED BuildStatus_Result = 2
// Unable to obtain a result due to input provided by the user.
BuildStatus_USER_ERROR BuildStatus_Result = 3
// Unable to obtain a result due to a failure within the build system.
BuildStatus_SYSTEM_ERROR BuildStatus_Result = 4
// Build required too many resources, such as build tool RAM.
BuildStatus_RESOURCE_EXHAUSTED BuildStatus_Result = 5
// An invocation attempt time exceeded its deadline.
BuildStatus_INVOCATION_DEADLINE_EXCEEDED BuildStatus_Result = 6
// Build request time exceeded the request_deadline
BuildStatus_REQUEST_DEADLINE_EXCEEDED BuildStatus_Result = 8
// The build was cancelled by a call to CancelBuild.
BuildStatus_CANCELLED BuildStatus_Result = 7
)
var BuildStatus_Result_name = map[int32]string{
0: "UNKNOWN_STATUS",
1: "COMMAND_SUCCEEDED",
2: "COMMAND_FAILED",
3: "USER_ERROR",
4: "SYSTEM_ERROR",
5: "RESOURCE_EXHAUSTED",
6: "INVOCATION_DEADLINE_EXCEEDED",
8: "REQUEST_DEADLINE_EXCEEDED",
7: "CANCELLED",
}
var BuildStatus_Result_value = map[string]int32{
"UNKNOWN_STATUS": 0,
"COMMAND_SUCCEEDED": 1,
"COMMAND_FAILED": 2,
"USER_ERROR": 3,
"SYSTEM_ERROR": 4,
"RESOURCE_EXHAUSTED": 5,
"INVOCATION_DEADLINE_EXCEEDED": 6,
"REQUEST_DEADLINE_EXCEEDED": 8,
"CANCELLED": 7,
}
func (x BuildStatus_Result) String() string {
return proto.EnumName(BuildStatus_Result_name, int32(x))
}
func (BuildStatus_Result) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []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"`
// Fine-grained diagnostic information to complement the status.
Details *google_protobuf1.Any `protobuf:"bytes,2,opt,name=details" json:"details,omitempty"`
}
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) GetResult() BuildStatus_Result {
if m != nil {
return m.Result
}
return BuildStatus_UNKNOWN_STATUS
}
func (m *BuildStatus) GetDetails() *google_protobuf1.Any {
if m != nil {
return m.Details
}
return nil
}
func init() {
proto.RegisterType((*BuildStatus)(nil), "google.devtools.build.v1.BuildStatus")
proto.RegisterEnum("google.devtools.build.v1.BuildStatus_Result", BuildStatus_Result_name, BuildStatus_Result_value)
}
func init() { proto.RegisterFile("google/devtools/build/v1/build_status.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 390 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x4f, 0x0b, 0xd3, 0x30,
0x18, 0xc6, 0xcd, 0xd4, 0x4e, 0x33, 0x1d, 0x35, 0xa8, 0x6c, 0x63, 0xc2, 0xd8, 0x69, 0xa0, 0xa4,
0x6c, 0x1e, 0xc5, 0x43, 0xd6, 0x44, 0x2c, 0x6e, 0xe9, 0x4c, 0x5a, 0xff, 0x5d, 0x4a, 0xe6, 0x6a,
0x29, 0xd4, 0x66, 0xac, 0xe9, 0x60, 0x1f, 0xd3, 0x93, 0x5f, 0xc5, 0xa3, 0xf4, 0x1f, 0x0c, 0x74,
0xb7, 0xf4, 0x7d, 0x7e, 0xcf, 0xf3, 0xbe, 0x3c, 0x14, 0xbe, 0x4c, 0xb4, 0x4e, 0xb2, 0xd8, 0x39,
0xc4, 0x67, 0xa3, 0x75, 0x56, 0x38, 0xfb, 0x32, 0xcd, 0x0e, 0xce, 0x79, 0xd9, 0x3c, 0xa2, 0xc2,
0x28, 0x53, 0x16, 0xf8, 0x78, 0xd2, 0x46, 0xa3, 0x51, 0x03, 0xe3, 0x0e, 0xc6, 0x35, 0x83, 0xcf,
0xcb, 0xc9, 0xb4, 0x8d, 0x51, 0xc7, 0xd4, 0x51, 0x79, 0xae, 0x8d, 0x32, 0xa9, 0xce, 0x5b, 0xdf,
0x64, 0xdc, 0xaa, 0xf5, 0xd7, 0xbe, 0xfc, 0xe1, 0xa8, 0xfc, 0xd2, 0x48, 0xf3, 0xdf, 0x3d, 0x38,
0x58, 0x57, 0x29, 0xb2, 0x5e, 0x84, 0x28, 0xb4, 0x4e, 0x71, 0x51, 0x66, 0x66, 0x04, 0x66, 0x60,
0x31, 0x5c, 0xbd, 0xc2, 0xb7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0x27, 0x58,
0x9f, 0x12, 0x27, 0x89, 0xf3, 0xba, 0x33, 0xa7, 0x91, 0xd4, 0x31, 0x2d, 0xfe, 0xfd, 0x59, 0xde,
0xd4, 0x8f, 0x3f, 0x00, 0xec, 0xad, 0x1a, 0x7e, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x3d,
0xf5, 0x87, 0x58, 0x02, 0x00, 0x00,
}

View File

@ -0,0 +1,465 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/build/v1/publish_build_event.proto
package build
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/duration"
import google_protobuf5 "github.com/golang/protobuf/ptypes/empty"
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
// The service level of the build request. Backends only uses this value when
// the BuildEnqueued event is published to determine what level of service
// this build should receive.
type PublishLifecycleEventRequest_ServiceLevel int32
const (
// Non-interactive builds can tolerate longer event latencies. This is the
// default ServiceLevel if callers do not specify one.
PublishLifecycleEventRequest_NONINTERACTIVE PublishLifecycleEventRequest_ServiceLevel = 0
// The events of an interactive build should be delivered with low latency.
PublishLifecycleEventRequest_INTERACTIVE PublishLifecycleEventRequest_ServiceLevel = 1
)
var PublishLifecycleEventRequest_ServiceLevel_name = map[int32]string{
0: "NONINTERACTIVE",
1: "INTERACTIVE",
}
var PublishLifecycleEventRequest_ServiceLevel_value = map[string]int32{
"NONINTERACTIVE": 0,
"INTERACTIVE": 1,
}
func (x PublishLifecycleEventRequest_ServiceLevel) String() string {
return proto.EnumName(PublishLifecycleEventRequest_ServiceLevel_name, int32(x))
}
func (PublishLifecycleEventRequest_ServiceLevel) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 0}
}
// Publishes 'lifecycle events' that update the high-level state of a build:
// - BuildEnqueued: When a build is scheduled.
// - InvocationAttemptStarted: When work for a build starts; there can be
// multiple invocations for a build (e.g. retries).
// - InvocationAttemptCompleted: When work for a build finishes.
// - BuildFinished: When a build is finished.
type PublishLifecycleEventRequest struct {
// The interactivity of this build.
ServiceLevel PublishLifecycleEventRequest_ServiceLevel `protobuf:"varint,1,opt,name=service_level,json=serviceLevel,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"`
// 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"`
// 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"`
// 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"`
}
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) GetServiceLevel() PublishLifecycleEventRequest_ServiceLevel {
if m != nil {
return m.ServiceLevel
}
return PublishLifecycleEventRequest_NONINTERACTIVE
}
func (m *PublishLifecycleEventRequest) GetBuildEvent() *OrderedBuildEvent {
if m != nil {
return m.BuildEvent
}
return nil
}
func (m *PublishLifecycleEventRequest) GetStreamTimeout() *google_protobuf4.Duration {
if m != nil {
return m.StreamTimeout
}
return nil
}
func (m *PublishLifecycleEventRequest) GetNotificationKeywords() []string {
if m != nil {
return m.NotificationKeywords
}
return nil
}
func (m *PublishLifecycleEventRequest) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
// States which event has been committed. Any failure to commit will cause
// RPC errors, hence not recorded by this proto.
type PublishBuildToolEventStreamResponse struct {
// The stream that contains this event.
StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId" 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"`
}
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}
}
func (m *PublishBuildToolEventStreamResponse) GetStreamId() *StreamId {
if m != nil {
return m.StreamId
}
return nil
}
func (m *PublishBuildToolEventStreamResponse) GetSequenceNumber() int64 {
if m != nil {
return m.SequenceNumber
}
return 0
}
// Build event with contextual information about the stream it belongs to and
// its position in that stream.
type OrderedBuildEvent struct {
// Which build event stream this event belongs to.
StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId" 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"`
// The actual event.
Event *BuildEvent `protobuf:"bytes,3,opt,name=event" json:"event,omitempty"`
}
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) GetStreamId() *StreamId {
if m != nil {
return m.StreamId
}
return nil
}
func (m *OrderedBuildEvent) GetSequenceNumber() int64 {
if m != nil {
return m.SequenceNumber
}
return 0
}
func (m *OrderedBuildEvent) GetEvent() *BuildEvent {
if m != nil {
return m.Event
}
return nil
}
type PublishBuildToolEventStreamRequest struct {
// Which build event stream this event belongs to.
StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId" 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"`
// The actual event.
Event *BuildEvent `protobuf:"bytes,3,opt,name=event" json:"event,omitempty"`
// 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"`
// 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"`
}
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}
}
func (m *PublishBuildToolEventStreamRequest) GetStreamId() *StreamId {
if m != nil {
return m.StreamId
}
return nil
}
func (m *PublishBuildToolEventStreamRequest) GetSequenceNumber() int64 {
if m != nil {
return m.SequenceNumber
}
return 0
}
func (m *PublishBuildToolEventStreamRequest) GetEvent() *BuildEvent {
if m != nil {
return m.Event
}
return nil
}
func (m *PublishBuildToolEventStreamRequest) GetOrderedBuildEvent() *OrderedBuildEvent {
if m != nil {
return m.OrderedBuildEvent
}
return nil
}
func (m *PublishBuildToolEventStreamRequest) GetNotificationKeywords() []string {
if m != nil {
return m.NotificationKeywords
}
return nil
}
func init() {
proto.RegisterType((*PublishLifecycleEventRequest)(nil), "google.devtools.build.v1.PublishLifecycleEventRequest")
proto.RegisterType((*PublishBuildToolEventStreamResponse)(nil), "google.devtools.build.v1.PublishBuildToolEventStreamResponse")
proto.RegisterType((*OrderedBuildEvent)(nil), "google.devtools.build.v1.OrderedBuildEvent")
proto.RegisterType((*PublishBuildToolEventStreamRequest)(nil), "google.devtools.build.v1.PublishBuildToolEventStreamRequest")
proto.RegisterEnum("google.devtools.build.v1.PublishLifecycleEventRequest_ServiceLevel", PublishLifecycleEventRequest_ServiceLevel_name, PublishLifecycleEventRequest_ServiceLevel_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for PublishBuildEvent service
type PublishBuildEventClient interface {
// Publish a build event stating the new state of a build (typically from the
// build queue). If the event is a BuildEnqueued event, also register the new
// build request ID and its build type to BES.
//
// The backend will persist the event and deliver it to registered frontend
// jobs immediately without batching.
//
// The commit status of the request is reported by the RPC's util_status()
// function. The error code is the canoncial error code defined in
// //util/task/codes.proto.
PublishLifecycleEvent(ctx context.Context, in *PublishLifecycleEventRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error)
// Publish build tool events belonging to the same stream to a backend job
// using bidirectional streaming.
PublishBuildToolEventStream(ctx context.Context, opts ...grpc.CallOption) (PublishBuildEvent_PublishBuildToolEventStreamClient, error)
}
type publishBuildEventClient struct {
cc *grpc.ClientConn
}
func NewPublishBuildEventClient(cc *grpc.ClientConn) PublishBuildEventClient {
return &publishBuildEventClient{cc}
}
func (c *publishBuildEventClient) PublishLifecycleEvent(ctx context.Context, in *PublishLifecycleEventRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error) {
out := new(google_protobuf5.Empty)
err := grpc.Invoke(ctx, "/google.devtools.build.v1.PublishBuildEvent/PublishLifecycleEvent", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *publishBuildEventClient) PublishBuildToolEventStream(ctx context.Context, opts ...grpc.CallOption) (PublishBuildEvent_PublishBuildToolEventStreamClient, error) {
stream, err := grpc.NewClientStream(ctx, &_PublishBuildEvent_serviceDesc.Streams[0], c.cc, "/google.devtools.build.v1.PublishBuildEvent/PublishBuildToolEventStream", opts...)
if err != nil {
return nil, err
}
x := &publishBuildEventPublishBuildToolEventStreamClient{stream}
return x, nil
}
type PublishBuildEvent_PublishBuildToolEventStreamClient interface {
Send(*OrderedBuildEvent) error
Recv() (*PublishBuildToolEventStreamResponse, error)
grpc.ClientStream
}
type publishBuildEventPublishBuildToolEventStreamClient struct {
grpc.ClientStream
}
func (x *publishBuildEventPublishBuildToolEventStreamClient) Send(m *OrderedBuildEvent) error {
return x.ClientStream.SendMsg(m)
}
func (x *publishBuildEventPublishBuildToolEventStreamClient) Recv() (*PublishBuildToolEventStreamResponse, error) {
m := new(PublishBuildToolEventStreamResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// Server API for PublishBuildEvent service
type PublishBuildEventServer interface {
// Publish a build event stating the new state of a build (typically from the
// build queue). If the event is a BuildEnqueued event, also register the new
// build request ID and its build type to BES.
//
// The backend will persist the event and deliver it to registered frontend
// jobs immediately without batching.
//
// The commit status of the request is reported by the RPC's util_status()
// function. The error code is the canoncial error code defined in
// //util/task/codes.proto.
PublishLifecycleEvent(context.Context, *PublishLifecycleEventRequest) (*google_protobuf5.Empty, error)
// Publish build tool events belonging to the same stream to a backend job
// using bidirectional streaming.
PublishBuildToolEventStream(PublishBuildEvent_PublishBuildToolEventStreamServer) error
}
func RegisterPublishBuildEventServer(s *grpc.Server, srv PublishBuildEventServer) {
s.RegisterService(&_PublishBuildEvent_serviceDesc, srv)
}
func _PublishBuildEvent_PublishLifecycleEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PublishLifecycleEventRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PublishBuildEventServer).PublishLifecycleEvent(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.build.v1.PublishBuildEvent/PublishLifecycleEvent",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PublishBuildEventServer).PublishLifecycleEvent(ctx, req.(*PublishLifecycleEventRequest))
}
return interceptor(ctx, in, info, handler)
}
func _PublishBuildEvent_PublishBuildToolEventStream_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(PublishBuildEventServer).PublishBuildToolEventStream(&publishBuildEventPublishBuildToolEventStreamServer{stream})
}
type PublishBuildEvent_PublishBuildToolEventStreamServer interface {
Send(*PublishBuildToolEventStreamResponse) error
Recv() (*OrderedBuildEvent, error)
grpc.ServerStream
}
type publishBuildEventPublishBuildToolEventStreamServer struct {
grpc.ServerStream
}
func (x *publishBuildEventPublishBuildToolEventStreamServer) Send(m *PublishBuildToolEventStreamResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *publishBuildEventPublishBuildToolEventStreamServer) Recv() (*OrderedBuildEvent, error) {
m := new(OrderedBuildEvent)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _PublishBuildEvent_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.build.v1.PublishBuildEvent",
HandlerType: (*PublishBuildEventServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "PublishLifecycleEvent",
Handler: _PublishBuildEvent_PublishLifecycleEvent_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "PublishBuildToolEventStream",
Handler: _PublishBuildEvent_PublishBuildToolEventStream_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "google/devtools/build/v1/publish_build_event.proto",
}
func init() { proto.RegisterFile("google/devtools/build/v1/publish_build_event.proto", 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, 0x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, 0x3f, 0x47, 0x2b, 0x6c, 0xa2,
0xb7, 0x85, 0xc3, 0x30, 0x5f, 0x3c, 0x0c, 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,
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,475 @@
// 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
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 (
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 to register a debuggee.
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"`
}
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) GetDebuggee() *Debuggee {
if m != nil {
return m.Debuggee
}
return nil
}
// Response for registering a debuggee.
type RegisterDebuggeeResponse struct {
// Debuggee resource.
// The field `id` is guranteed to be set (in addition to the echoed fields).
// 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"`
}
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) GetDebuggee() *Debuggee {
if m != nil {
return m.Debuggee
}
return nil
}
// 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"`
// 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"`
// 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"`
}
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) GetDebuggeeId() string {
if m != nil {
return m.DebuggeeId
}
return ""
}
func (m *ListActiveBreakpointsRequest) GetWaitToken() string {
if m != nil {
return m.WaitToken
}
return ""
}
func (m *ListActiveBreakpointsRequest) GetSuccessOnTimeout() bool {
if m != nil {
return m.SuccessOnTimeout
}
return false
}
// Response for listing active breakpoints.
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"`
// 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"`
// 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"`
}
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) GetBreakpoints() []*Breakpoint {
if m != nil {
return m.Breakpoints
}
return nil
}
func (m *ListActiveBreakpointsResponse) GetNextWaitToken() string {
if m != nil {
return m.NextWaitToken
}
return ""
}
func (m *ListActiveBreakpointsResponse) GetWaitExpired() bool {
if m != nil {
return m.WaitExpired
}
return false
}
// 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"`
// 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"`
}
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) GetDebuggeeId() string {
if m != nil {
return m.DebuggeeId
}
return ""
}
func (m *UpdateActiveBreakpointRequest) GetBreakpoint() *Breakpoint {
if m != nil {
return m.Breakpoint
}
return nil
}
// Response for updating an active breakpoint.
// The message is defined to allow future extensions.
type UpdateActiveBreakpointResponse struct {
}
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 init() {
proto.RegisterType((*RegisterDebuggeeRequest)(nil), "google.devtools.clouddebugger.v2.RegisterDebuggeeRequest")
proto.RegisterType((*RegisterDebuggeeResponse)(nil), "google.devtools.clouddebugger.v2.RegisterDebuggeeResponse")
proto.RegisterType((*ListActiveBreakpointsRequest)(nil), "google.devtools.clouddebugger.v2.ListActiveBreakpointsRequest")
proto.RegisterType((*ListActiveBreakpointsResponse)(nil), "google.devtools.clouddebugger.v2.ListActiveBreakpointsResponse")
proto.RegisterType((*UpdateActiveBreakpointRequest)(nil), "google.devtools.clouddebugger.v2.UpdateActiveBreakpointRequest")
proto.RegisterType((*UpdateActiveBreakpointResponse)(nil), "google.devtools.clouddebugger.v2.UpdateActiveBreakpointResponse")
}
// 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
// Client API for Controller2 service
type Controller2Client interface {
// Registers the debuggee with the controller service.
//
// All agents attached to the same application must call this method with
// exactly the same request content to get back the same stable `debuggee_id`.
// Agents should call this method again whenever `google.rpc.Code.NOT_FOUND`
// is returned from any controller method.
//
// This protocol allows the controller service to disable debuggees, recover
// from data loss, or change the `debuggee_id` format. Agents must handle
// `debuggee_id` value changing upon re-registration.
RegisterDebuggee(ctx context.Context, in *RegisterDebuggeeRequest, opts ...grpc.CallOption) (*RegisterDebuggeeResponse, error)
// Returns the list of all active breakpoints for the debuggee.
//
// The breakpoint specification (`location`, `condition`, and `expressions`
// fields) is semantically immutable, although the field values may
// change. For example, an agent may update the location line number
// to reflect the actual line where the breakpoint was set, but this
// doesn't change the breakpoint semantics.
//
// This means that an agent does not need to check if a breakpoint has changed
// when it encounters the same breakpoint on a successive call.
// Moreover, an agent should remember the breakpoints that are completed
// until the controller removes them from the active list to avoid
// setting those breakpoints again.
ListActiveBreakpoints(ctx context.Context, in *ListActiveBreakpointsRequest, opts ...grpc.CallOption) (*ListActiveBreakpointsResponse, error)
// Updates the breakpoint state or mutable fields.
// The entire Breakpoint message must be sent back to the controller service.
//
// Updates to active breakpoint fields are only allowed if the new value
// does not change the breakpoint specification. Updates to the `location`,
// `condition` and `expressions` fields should not alter the breakpoint
// semantics. These may only make changes such as canonicalizing a value
// or snapping the location to the correct line of code.
UpdateActiveBreakpoint(ctx context.Context, in *UpdateActiveBreakpointRequest, opts ...grpc.CallOption) (*UpdateActiveBreakpointResponse, error)
}
type controller2Client struct {
cc *grpc.ClientConn
}
func NewController2Client(cc *grpc.ClientConn) Controller2Client {
return &controller2Client{cc}
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Controller2 service
type Controller2Server interface {
// Registers the debuggee with the controller service.
//
// All agents attached to the same application must call this method with
// exactly the same request content to get back the same stable `debuggee_id`.
// Agents should call this method again whenever `google.rpc.Code.NOT_FOUND`
// is returned from any controller method.
//
// This protocol allows the controller service to disable debuggees, recover
// from data loss, or change the `debuggee_id` format. Agents must handle
// `debuggee_id` value changing upon re-registration.
RegisterDebuggee(context.Context, *RegisterDebuggeeRequest) (*RegisterDebuggeeResponse, error)
// Returns the list of all active breakpoints for the debuggee.
//
// The breakpoint specification (`location`, `condition`, and `expressions`
// fields) is semantically immutable, although the field values may
// change. For example, an agent may update the location line number
// to reflect the actual line where the breakpoint was set, but this
// doesn't change the breakpoint semantics.
//
// This means that an agent does not need to check if a breakpoint has changed
// when it encounters the same breakpoint on a successive call.
// Moreover, an agent should remember the breakpoints that are completed
// until the controller removes them from the active list to avoid
// setting those breakpoints again.
ListActiveBreakpoints(context.Context, *ListActiveBreakpointsRequest) (*ListActiveBreakpointsResponse, error)
// Updates the breakpoint state or mutable fields.
// The entire Breakpoint message must be sent back to the controller service.
//
// Updates to active breakpoint fields are only allowed if the new value
// does not change the breakpoint specification. Updates to the `location`,
// `condition` and `expressions` fields should not alter the breakpoint
// semantics. These may only make changes such as canonicalizing a value
// or snapping the location to the correct line of code.
UpdateActiveBreakpoint(context.Context, *UpdateActiveBreakpointRequest) (*UpdateActiveBreakpointResponse, error)
}
func RegisterController2Server(s *grpc.Server, srv Controller2Server) {
s.RegisterService(&_Controller2_serviceDesc, srv)
}
func _Controller2_RegisterDebuggee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RegisterDebuggeeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(Controller2Server).RegisterDebuggee(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouddebugger.v2.Controller2/RegisterDebuggee",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(Controller2Server).RegisterDebuggee(ctx, req.(*RegisterDebuggeeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Controller2_ListActiveBreakpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListActiveBreakpointsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(Controller2Server).ListActiveBreakpoints(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouddebugger.v2.Controller2/ListActiveBreakpoints",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(Controller2Server).ListActiveBreakpoints(ctx, req.(*ListActiveBreakpointsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Controller2_UpdateActiveBreakpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateActiveBreakpointRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(Controller2Server).UpdateActiveBreakpoint(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouddebugger.v2.Controller2/UpdateActiveBreakpoint",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(Controller2Server).UpdateActiveBreakpoint(ctx, req.(*UpdateActiveBreakpointRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Controller2_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.clouddebugger.v2.Controller2",
HandlerType: (*Controller2Server)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "RegisterDebuggee",
Handler: _Controller2_RegisterDebuggee_Handler,
},
{
MethodName: "ListActiveBreakpoints",
Handler: _Controller2_ListActiveBreakpoints_Handler,
},
{
MethodName: "UpdateActiveBreakpoint",
Handler: _Controller2_UpdateActiveBreakpoint_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/clouddebugger/v2/controller.proto",
}
func init() { proto.RegisterFile("google/devtools/clouddebugger/v2/controller.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 589 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, 0xf6, 0x44, 0x69, 0x19, 0x50, 0x43, 0x6c, 0x75, 0x1b, 0xa4, 0x94, 0x5a,
0x32, 0x18, 0xbd, 0x71, 0x05, 0x7f, 0xb6, 0x6a, 0x11, 0x5a, 0x2d, 0x4b, 0x55, 0xf0, 0x66, 0xc9,
0x26, 0xc7, 0x30, 0x34, 0x9d, 0x89, 0x99, 0xc9, 0x5a, 0x29, 0xbd, 0xf1, 0x56, 0xf1, 0xc6, 0x47,
0xf0, 0xce, 0x17, 0x10, 0x7c, 0x0d, 0x7d, 0x04, 0xaf, 0x7c, 0x0a, 0xc9, 0xdf, 0xee, 0xf6, 0x67,
0x9b, 0x76, 0xf1, 0x32, 0xdf, 0x9c, 0xef, 0x3b, 0xdf, 0x37, 0x39, 0x73, 0xe0, 0x56, 0x28, 0x65,
0x18, 0x21, 0x0b, 0xb0, 0xa7, 0xa5, 0x8c, 0x14, 0xf3, 0x23, 0x99, 0x06, 0x01, 0x76, 0xd3, 0x30,
0xc4, 0x84, 0xf5, 0x5c, 0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48, 0x4f, 0xe1, 0xeb, 0xc4, 0x69, 0xb4, 0x1e, 0x8e, 0x2f, 0x50, 0x26, 0xdb, 0xc8,
0x93, 0xad, 0x59, 0xad, 0xb3, 0x27, 0x63, 0x7b, 0x83, 0x0f, 0x87, 0x07, 0xfb, 0x4d, 0xb2, 0xdc,
0xfa, 0x46, 0xe0, 0x86, 0x2f, 0x77, 0x6a, 0x6d, 0xb5, 0x66, 0x06, 0x33, 0xbb, 0x99, 0x6d, 0xe3,
0x4d, 0xf2, 0x66, 0xa3, 0x24, 0x85, 0x32, 0xf2, 0x44, 0xe8, 0xc8, 0x24, 0x64, 0x21, 0x8a, 0x7c,
0x57, 0xb3, 0xe2, 0xc8, 0x8b, 0xb9, 0x1a, 0xbd, 0xf8, 0xef, 0x1d, 0x00, 0xbe, 0x4f, 0x98, 0x6b,
0x85, 0xde, 0x6a, 0x06, 0x57, 0x9b, 0x33, 0x71, 0x5e, 0xb9, 0xdd, 0xf3, 0xb9, 0xe8, 0xed, 0x7f,
0x01, 0x00, 0x00, 0xff, 0xff, 0x05, 0xef, 0x37, 0xb4, 0xbf, 0x06, 0x00, 0x00,
}

View File

@ -0,0 +1,889 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouddebugger/v2/data.proto
package clouddebugger
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
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"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Enumerates references to which the message applies.
type StatusMessage_Reference int32
const (
// Status doesn't refer to any particular input.
StatusMessage_UNSPECIFIED StatusMessage_Reference = 0
// Status applies to the breakpoint and is related to its location.
StatusMessage_BREAKPOINT_SOURCE_LOCATION StatusMessage_Reference = 3
// Status applies to the breakpoint and is related to its condition.
StatusMessage_BREAKPOINT_CONDITION StatusMessage_Reference = 4
// Status applies to the breakpoint and is related to its expressions.
StatusMessage_BREAKPOINT_EXPRESSION StatusMessage_Reference = 7
// Status applies to the breakpoint and is related to its age.
StatusMessage_BREAKPOINT_AGE StatusMessage_Reference = 8
// Status applies to the entire variable.
StatusMessage_VARIABLE_NAME StatusMessage_Reference = 5
// Status applies to variable value (variable name is valid).
StatusMessage_VARIABLE_VALUE StatusMessage_Reference = 6
)
var StatusMessage_Reference_name = map[int32]string{
0: "UNSPECIFIED",
3: "BREAKPOINT_SOURCE_LOCATION",
4: "BREAKPOINT_CONDITION",
7: "BREAKPOINT_EXPRESSION",
8: "BREAKPOINT_AGE",
5: "VARIABLE_NAME",
6: "VARIABLE_VALUE",
}
var StatusMessage_Reference_value = map[string]int32{
"UNSPECIFIED": 0,
"BREAKPOINT_SOURCE_LOCATION": 3,
"BREAKPOINT_CONDITION": 4,
"BREAKPOINT_EXPRESSION": 7,
"BREAKPOINT_AGE": 8,
"VARIABLE_NAME": 5,
"VARIABLE_VALUE": 6,
}
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} }
// Actions that can be taken when a breakpoint hits.
// Agents should reject breakpoints with unsupported or unknown action values.
type Breakpoint_Action int32
const (
// Capture stack frame and variables and update the breakpoint.
// The data is only captured once. After that the breakpoint is set
// in a final state.
Breakpoint_CAPTURE Breakpoint_Action = 0
// Log each breakpoint hit. The breakpoint remains active until
// deleted or expired.
Breakpoint_LOG Breakpoint_Action = 1
)
var Breakpoint_Action_name = map[int32]string{
0: "CAPTURE",
1: "LOG",
}
var Breakpoint_Action_value = map[string]int32{
"CAPTURE": 0,
"LOG": 1,
}
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} }
// Log severity levels.
type Breakpoint_LogLevel int32
const (
// Information log message.
Breakpoint_INFO Breakpoint_LogLevel = 0
// Warning log message.
Breakpoint_WARNING Breakpoint_LogLevel = 1
// Error log message.
Breakpoint_ERROR Breakpoint_LogLevel = 2
)
var Breakpoint_LogLevel_name = map[int32]string{
0: "INFO",
1: "WARNING",
2: "ERROR",
}
var Breakpoint_LogLevel_value = map[string]int32{
"INFO": 0,
"WARNING": 1,
"ERROR": 2,
}
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} }
// Represents a message with parameters.
type FormatMessage struct {
// Format template for the message. The `format` uses placeholders `$0`,
// `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
// character.
//
// Examples:
//
// * `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"`
// Optional parameters to be embedded into the message.
Parameters []string `protobuf:"bytes,2,rep,name=parameters" json:"parameters,omitempty"`
}
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) GetFormat() string {
if m != nil {
return m.Format
}
return ""
}
func (m *FormatMessage) GetParameters() []string {
if m != nil {
return m.Parameters
}
return nil
}
// Represents a contextual status message.
// The message can indicate an error or informational status, and refer to
// specific parts of the containing object.
// For example, the `Breakpoint.status` field can indicate an error referring
// 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"`
// 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"`
// Status message text.
Description *FormatMessage `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
}
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) GetIsError() bool {
if m != nil {
return m.IsError
}
return false
}
func (m *StatusMessage) GetRefersTo() StatusMessage_Reference {
if m != nil {
return m.RefersTo
}
return StatusMessage_UNSPECIFIED
}
func (m *StatusMessage) GetDescription() *FormatMessage {
if m != nil {
return m.Description
}
return nil
}
// 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"`
// 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"`
}
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) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *SourceLocation) GetLine() int32 {
if m != nil {
return m.Line
}
return 0
}
// Represents a variable or an argument possibly of a compound object type.
// Note how the following variables are represented:
//
// 1) A simple variable:
//
// int x = 5
//
// { name: "x", value: "5", type: "int" } // Captured variable
//
// 2) A compound object:
//
// struct T {
// int m1;
// int m2;
// };
// T x = { 3, 7 };
//
// { // Captured variable
// name: "x",
// type: "T",
// members { name: "m1", value: "3", type: "int" },
// members { name: "m2", value: "7", type: "int" }
// }
//
// 3) A pointer where the pointee was captured:
//
// T x = { 3, 7 };
// T* p = &x;
//
// { // Captured variable
// name: "p",
// type: "T*",
// value: "0x00500500",
// members { name: "m1", value: "3", type: "int" },
// members { name: "m2", value: "7", type: "int" }
// }
//
// 4) A pointer where the pointee was not captured:
//
// T* p = new T;
//
// { // Captured variable
// name: "p",
// type: "T*",
// value: "0x00400400"
// status { is_error: true, description { format: "unavailable" } }
// }
//
// The status should describe the reason for the missing value,
// such as `<optimized out>`, `<inaccessible>`, `<pointers limit reached>`.
//
// Note that a null pointer should not have members.
//
// 5) An unnamed value:
//
// int* p = new int(7);
//
// { // Captured variable
// name: "p",
// value: "0x00500500",
// type: "int*",
// members { value: "7", type: "int" } }
//
// 6) An unnamed pointer where the pointee was not captured:
//
// int* p = new int(7);
// int** pp = &p;
//
// { // Captured variable
// name: "pp",
// value: "0x00500500",
// type: "int**",
// members {
// value: "0x00400400",
// type: "int*"
// status {
// is_error: true,
// description: { format: "unavailable" } }
// }
// }
// }
//
// To optimize computation, memory and network traffic, variables that
// repeat in the output multiple times can be stored once in a shared
// variable table and be referenced using the `var_table_index` field. The
// variables stored in the shared table are nameless and are essentially
// a partition of the complete variable. To reconstruct the complete
// variable, merge the referencing variable with the referenced variable.
//
// When using the shared variable table, the following variables:
//
// T x = { 3, 7 };
// T* p = &x;
// T& r = x;
//
// { name: "x", var_table_index: 3, type: "T" } // Captured variables
// { name: "p", value "0x00500500", type="T*", var_table_index: 3 }
// { name: "r", type="T&", var_table_index: 3 }
//
// { // Shared variable table entry #3:
// members { name: "m1", value: "3", type: "int" },
// members { name: "m2", value: "7", type: "int" }
// }
//
// Note that the pointer address is stored with the referencing variable
// and not with the referenced variable. This allows the referenced variable
// to be shared between pointers and references.
//
// 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"`
// Simple value of the variable.
Value string `protobuf:"bytes,2,opt,name=value" 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"`
// Members contained or pointed to by the variable.
Members []*Variable `protobuf:"bytes,3,rep,name=members" 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"`
// 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
// might be reported in error state even when breakpoint is not in final
// state.
//
// The message may refer to variable name with `refers_to` set to
// `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.
// In either case variable value and members will be unset.
//
// Example of error message applied to name: `Invalid expression syntax`.
//
// Example of information message applied to value: `Not captured`.
//
// Examples of error message applied to value:
//
// * `Malformed string`,
// * `Field f not found in class C`
// * `Null pointer dereference`
Status *StatusMessage `protobuf:"bytes,5,opt,name=status" json:"status,omitempty"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Variable) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *Variable) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *Variable) GetMembers() []*Variable {
if m != nil {
return m.Members
}
return nil
}
func (m *Variable) GetVarTableIndex() *google_protobuf2.Int32Value {
if m != nil {
return m.VarTableIndex
}
return nil
}
func (m *Variable) GetStatus() *StatusMessage {
if m != nil {
return m.Status
}
return nil
}
// 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"`
// Source location of the call site.
Location *SourceLocation `protobuf:"bytes,2,opt,name=location" 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"`
// 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"`
}
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) GetFunction() string {
if m != nil {
return m.Function
}
return ""
}
func (m *StackFrame) GetLocation() *SourceLocation {
if m != nil {
return m.Location
}
return nil
}
func (m *StackFrame) GetArguments() []*Variable {
if m != nil {
return m.Arguments
}
return nil
}
func (m *StackFrame) GetLocals() []*Variable {
if m != nil {
return m.Locals
}
return nil
}
// 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"`
// 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"`
// Breakpoint source location.
Location *SourceLocation `protobuf:"bytes,2,opt,name=location" 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"`
// 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"`
// 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
// of the appropriate expression. Expressions not referenced in
// `log_message_format` are not logged.
//
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// Breakpoint status.
//
// The status includes an error flag and a human readable message.
// This field is usually unset. The message can be either
// informational or an error message. Regardless, clients should always
// display the text message back to the user.
//
// Error status indicates complete failure of the breakpoint.
//
// Example (non-final state): `Still loading symbols...`
//
// Examples (final state):
//
// * `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"`
// The stack at breakpoint time.
StackFrames []*StackFrame `protobuf:"bytes,7,rep,name=stack_frames,json=stackFrames" 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.
// The `name` field holds the original expression text, the `value` or
// `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"`
// 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
// `variable_table` itself.
// For example, the same `this` object, which may appear at many levels of
// the stack, can have all of its data stored once in this table. The
// stack frame variables then would hold only a reference to it.
//
// The variable `var_table_index` field is an index into this repeated field.
// 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"`
// 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"`
}
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) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Breakpoint) GetAction() Breakpoint_Action {
if m != nil {
return m.Action
}
return Breakpoint_CAPTURE
}
func (m *Breakpoint) GetLocation() *SourceLocation {
if m != nil {
return m.Location
}
return nil
}
func (m *Breakpoint) GetCondition() string {
if m != nil {
return m.Condition
}
return ""
}
func (m *Breakpoint) GetExpressions() []string {
if m != nil {
return m.Expressions
}
return nil
}
func (m *Breakpoint) GetLogMessageFormat() string {
if m != nil {
return m.LogMessageFormat
}
return ""
}
func (m *Breakpoint) GetLogLevel() Breakpoint_LogLevel {
if m != nil {
return m.LogLevel
}
return Breakpoint_INFO
}
func (m *Breakpoint) GetIsFinalState() bool {
if m != nil {
return m.IsFinalState
}
return false
}
func (m *Breakpoint) GetCreateTime() *google_protobuf1.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Breakpoint) GetFinalTime() *google_protobuf1.Timestamp {
if m != nil {
return m.FinalTime
}
return nil
}
func (m *Breakpoint) GetUserEmail() string {
if m != nil {
return m.UserEmail
}
return ""
}
func (m *Breakpoint) GetStatus() *StatusMessage {
if m != nil {
return m.Status
}
return nil
}
func (m *Breakpoint) GetStackFrames() []*StackFrame {
if m != nil {
return m.StackFrames
}
return nil
}
func (m *Breakpoint) GetEvaluatedExpressions() []*Variable {
if m != nil {
return m.EvaluatedExpressions
}
return nil
}
func (m *Breakpoint) GetVariableTable() []*Variable {
if m != nil {
return m.VariableTable
}
return nil
}
func (m *Breakpoint) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
// Represents the debugged application. The application may include one or more
// replicated processes executing the same code. Each of these processes is
// attached with a debugger agent, carrying out the debugging commands.
// Agents attached to the same debuggee identify themselves as such by using
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
}
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) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Debuggee) GetProject() string {
if m != nil {
return m.Project
}
return ""
}
func (m *Debuggee) GetUniquifier() string {
if m != nil {
return m.Uniquifier
}
return ""
}
func (m *Debuggee) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Debuggee) GetIsInactive() bool {
if m != nil {
return m.IsInactive
}
return false
}
func (m *Debuggee) GetAgentVersion() string {
if m != nil {
return m.AgentVersion
}
return ""
}
func (m *Debuggee) GetIsDisabled() bool {
if m != nil {
return m.IsDisabled
}
return false
}
func (m *Debuggee) GetStatus() *StatusMessage {
if m != nil {
return m.Status
}
return nil
}
func (m *Debuggee) GetSourceContexts() []*google_devtools_source_v1.SourceContext {
if m != nil {
return m.SourceContexts
}
return nil
}
func (m *Debuggee) GetExtSourceContexts() []*google_devtools_source_v1.ExtendedSourceContext {
if m != nil {
return m.ExtSourceContexts
}
return nil
}
func (m *Debuggee) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
func init() {
proto.RegisterType((*FormatMessage)(nil), "google.devtools.clouddebugger.v2.FormatMessage")
proto.RegisterType((*StatusMessage)(nil), "google.devtools.clouddebugger.v2.StatusMessage")
proto.RegisterType((*SourceLocation)(nil), "google.devtools.clouddebugger.v2.SourceLocation")
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.RegisterType((*Debuggee)(nil), "google.devtools.clouddebugger.v2.Debuggee")
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) }
var fileDescriptor1 = []byte{
// 1251 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xdd, 0x72, 0xda, 0x46,
0x14, 0x0e, 0x3f, 0x06, 0xe9, 0x60, 0x30, 0xd9, 0x26, 0x1d, 0xc5, 0x4d, 0x1d, 0x86, 0xe6, 0xc2,
0xd3, 0x66, 0x20, 0x21, 0xd3, 0x4e, 0xd2, 0x5c, 0x61, 0x2c, 0xbb, 0x4c, 0x08, 0x90, 0xc5, 0xa6,
0x9d, 0xde, 0xa8, 0x6b, 0x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xe1, 0xda, 0xb8, 0x15, 0x25, 0xfa, 0xd5, 0xf6, 0x5f, 0x9f, 0x9a, 0xe1,
0x03, 0xdb, 0xf6, 0xe8, 0xb7, 0x1c, 0xdc, 0x9d, 0x45, 0x8b, 0xad, 0x0f, 0x70, 0x64, 0x1e, 0x13,
0x41, 0xc6, 0x72, 0xf8, 0x8d, 0x73, 0xdf, 0x3f, 0xd3, 0x74, 0x2f, 0x0a, 0x48, 0xe8, 0xb5, 0x22,
0xe6, 0xb5, 0x3d, 0x1a, 0xaa, 0xd1, 0xd8, 0x4e, 0xb6, 0x48, 0xec, 0xf3, 0x7f, 0xff, 0xb7, 0xf0,
0x64, 0x03, 0xf8, 0x3d, 0x6f, 0x9d, 0x26, 0x7a, 0x3d, 0x09, 0xa7, 0xbf, 0x95, 0xb5, 0xa6, 0x9d,
0x8b, 0x92, 0x12, 0x7d, 0xf8, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x06, 0xfd, 0x4c, 0xc8, 0x81,
0x0c, 0x00, 0x00,
}

View File

@ -0,0 +1,647 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouddebugger/v2/debugger.proto
package clouddebugger
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf3 "github.com/golang/protobuf/ptypes/empty"
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
// 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"`
// Breakpoint specification to set.
// The field `location` of the breakpoint must be set.
Breakpoint *Breakpoint `protobuf:"bytes,2,opt,name=breakpoint" 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"`
}
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) GetDebuggeeId() string {
if m != nil {
return m.DebuggeeId
}
return ""
}
func (m *SetBreakpointRequest) GetBreakpoint() *Breakpoint {
if m != nil {
return m.Breakpoint
}
return nil
}
func (m *SetBreakpointRequest) GetClientVersion() string {
if m != nil {
return m.ClientVersion
}
return ""
}
// Response for setting a breakpoint.
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"`
}
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) GetBreakpoint() *Breakpoint {
if m != nil {
return m.Breakpoint
}
return nil
}
// 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"`
// ID of the breakpoint to get.
BreakpointId string `protobuf:"bytes,2,opt,name=breakpoint_id,json=breakpointId" 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"`
}
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) GetDebuggeeId() string {
if m != nil {
return m.DebuggeeId
}
return ""
}
func (m *GetBreakpointRequest) GetBreakpointId() string {
if m != nil {
return m.BreakpointId
}
return ""
}
func (m *GetBreakpointRequest) GetClientVersion() string {
if m != nil {
return m.ClientVersion
}
return ""
}
// Response for getting breakpoint information.
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"`
}
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) GetBreakpoint() *Breakpoint {
if m != nil {
return m.Breakpoint
}
return nil
}
// 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"`
// ID of the breakpoint to delete.
BreakpointId string `protobuf:"bytes,2,opt,name=breakpoint_id,json=breakpointId" 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"`
}
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) GetDebuggeeId() string {
if m != nil {
return m.DebuggeeId
}
return ""
}
func (m *DeleteBreakpointRequest) GetBreakpointId() string {
if m != nil {
return m.BreakpointId
}
return ""
}
func (m *DeleteBreakpointRequest) GetClientVersion() string {
if m != nil {
return m.ClientVersion
}
return ""
}
// 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"`
// 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"`
// 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"`
// When set, the response includes only breakpoints with the specified action.
Action *ListBreakpointsRequest_BreakpointActionValue `protobuf:"bytes,4,opt,name=action" 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"`
// 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"`
// 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"`
}
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) GetDebuggeeId() string {
if m != nil {
return m.DebuggeeId
}
return ""
}
func (m *ListBreakpointsRequest) GetIncludeAllUsers() bool {
if m != nil {
return m.IncludeAllUsers
}
return false
}
func (m *ListBreakpointsRequest) GetIncludeInactive() bool {
if m != nil {
return m.IncludeInactive
}
return false
}
func (m *ListBreakpointsRequest) GetAction() *ListBreakpointsRequest_BreakpointActionValue {
if m != nil {
return m.Action
}
return nil
}
func (m *ListBreakpointsRequest) GetStripResults() bool {
if m != nil {
return m.StripResults
}
return false
}
func (m *ListBreakpointsRequest) GetWaitToken() string {
if m != nil {
return m.WaitToken
}
return ""
}
func (m *ListBreakpointsRequest) GetClientVersion() string {
if m != nil {
return m.ClientVersion
}
return ""
}
// Wrapper message for `Breakpoint.Action`. Defines a filter on the action
// 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"`
}
func (m *ListBreakpointsRequest_BreakpointActionValue) Reset() {
*m = ListBreakpointsRequest_BreakpointActionValue{}
}
func (m *ListBreakpointsRequest_BreakpointActionValue) String() string {
return proto.CompactTextString(m)
}
func (*ListBreakpointsRequest_BreakpointActionValue) ProtoMessage() {}
func (*ListBreakpointsRequest_BreakpointActionValue) Descriptor() ([]byte, []int) {
return fileDescriptor2, []int{5, 0}
}
func (m *ListBreakpointsRequest_BreakpointActionValue) GetValue() Breakpoint_Action {
if m != nil {
return m.Value
}
return Breakpoint_CAPTURE
}
// Response for listing breakpoints.
type ListBreakpointsResponse struct {
// List of breakpoints matching the request.
// 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"`
// 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"`
}
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) GetBreakpoints() []*Breakpoint {
if m != nil {
return m.Breakpoints
}
return nil
}
func (m *ListBreakpointsResponse) GetNextWaitToken() string {
if m != nil {
return m.NextWaitToken
}
return ""
}
// 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"`
// 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"`
// 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"`
}
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) GetProject() string {
if m != nil {
return m.Project
}
return ""
}
func (m *ListDebuggeesRequest) GetIncludeInactive() bool {
if m != nil {
return m.IncludeInactive
}
return false
}
func (m *ListDebuggeesRequest) GetClientVersion() string {
if m != nil {
return m.ClientVersion
}
return ""
}
// Response for listing debuggees.
type ListDebuggeesResponse struct {
// List of debuggees accessible to the calling user.
// 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"`
}
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) GetDebuggees() []*Debuggee {
if m != nil {
return m.Debuggees
}
return nil
}
func init() {
proto.RegisterType((*SetBreakpointRequest)(nil), "google.devtools.clouddebugger.v2.SetBreakpointRequest")
proto.RegisterType((*SetBreakpointResponse)(nil), "google.devtools.clouddebugger.v2.SetBreakpointResponse")
proto.RegisterType((*GetBreakpointRequest)(nil), "google.devtools.clouddebugger.v2.GetBreakpointRequest")
proto.RegisterType((*GetBreakpointResponse)(nil), "google.devtools.clouddebugger.v2.GetBreakpointResponse")
proto.RegisterType((*DeleteBreakpointRequest)(nil), "google.devtools.clouddebugger.v2.DeleteBreakpointRequest")
proto.RegisterType((*ListBreakpointsRequest)(nil), "google.devtools.clouddebugger.v2.ListBreakpointsRequest")
proto.RegisterType((*ListBreakpointsRequest_BreakpointActionValue)(nil), "google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue")
proto.RegisterType((*ListBreakpointsResponse)(nil), "google.devtools.clouddebugger.v2.ListBreakpointsResponse")
proto.RegisterType((*ListDebuggeesRequest)(nil), "google.devtools.clouddebugger.v2.ListDebuggeesRequest")
proto.RegisterType((*ListDebuggeesResponse)(nil), "google.devtools.clouddebugger.v2.ListDebuggeesResponse")
}
// 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
// Client API for Debugger2 service
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)
// 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.
ListDebuggees(ctx context.Context, in *ListDebuggeesRequest, opts ...grpc.CallOption) (*ListDebuggeesResponse, error)
}
type debugger2Client struct {
cc *grpc.ClientConn
}
func NewDebugger2Client(cc *grpc.ClientConn) Debugger2Client {
return &debugger2Client{cc}
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
// 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)
// Lists all breakpoints for the debuggee.
ListBreakpoints(context.Context, *ListBreakpointsRequest) (*ListBreakpointsResponse, error)
// Lists all the debuggees that the user has access to.
ListDebuggees(context.Context, *ListDebuggeesRequest) (*ListDebuggeesResponse, error)
}
func RegisterDebugger2Server(s *grpc.Server, srv Debugger2Server) {
s.RegisterService(&_Debugger2_serviceDesc, srv)
}
func _Debugger2_SetBreakpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetBreakpointRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(Debugger2Server).SetBreakpoint(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouddebugger.v2.Debugger2/SetBreakpoint",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(Debugger2Server).SetBreakpoint(ctx, req.(*SetBreakpointRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Debugger2_GetBreakpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetBreakpointRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(Debugger2Server).GetBreakpoint(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouddebugger.v2.Debugger2/GetBreakpoint",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(Debugger2Server).GetBreakpoint(ctx, req.(*GetBreakpointRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Debugger2_DeleteBreakpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteBreakpointRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(Debugger2Server).DeleteBreakpoint(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouddebugger.v2.Debugger2/DeleteBreakpoint",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(Debugger2Server).DeleteBreakpoint(ctx, req.(*DeleteBreakpointRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Debugger2_ListBreakpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListBreakpointsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(Debugger2Server).ListBreakpoints(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouddebugger.v2.Debugger2/ListBreakpoints",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(Debugger2Server).ListBreakpoints(ctx, req.(*ListBreakpointsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Debugger2_ListDebuggees_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListDebuggeesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(Debugger2Server).ListDebuggees(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouddebugger.v2.Debugger2/ListDebuggees",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(Debugger2Server).ListDebuggees(ctx, req.(*ListDebuggeesRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Debugger2_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.clouddebugger.v2.Debugger2",
HandlerType: (*Debugger2Server)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SetBreakpoint",
Handler: _Debugger2_SetBreakpoint_Handler,
},
{
MethodName: "GetBreakpoint",
Handler: _Debugger2_GetBreakpoint_Handler,
},
{
MethodName: "DeleteBreakpoint",
Handler: _Debugger2_DeleteBreakpoint_Handler,
},
{
MethodName: "ListBreakpoints",
Handler: _Debugger2_ListBreakpoints_Handler,
},
{
MethodName: "ListDebuggees",
Handler: _Debugger2_ListDebuggees_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/clouddebugger/v2/debugger.proto",
}
func init() { proto.RegisterFile("google/devtools/clouddebugger/v2/debugger.proto", fileDescriptor2) }
var fileDescriptor2 = []byte{
// 781 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcb, 0x6e, 0xd3, 0x4c,
0x18, 0xd5, 0xa4, 0x7f, 0x2f, 0xf9, 0xd2, 0xb4, 0xfd, 0x47, 0xbd, 0x58, 0xe1, 0x16, 0x99, 0x8b,
0x4a, 0x41, 0x36, 0x72, 0x11, 0xb4, 0xb0, 0xa1, 0xa1, 0x28, 0x8d, 0x54, 0xaa, 0x2a, 0x40, 0x91,
0xd8, 0x44, 0x4e, 0x3c, 0xb5, 0x4c, 0x5d, 0x8f, 0xf1, 0x8c, 0x03, 0xa8, 0xea, 0xa6, 0x48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x33, 0x07, 0x5d, 0x73, 0xf2, 0x10,
0x7f, 0x41, 0x30, 0xd3, 0x3b, 0x76, 0xf1, 0xea, 0x20, 0x7b, 0x9e, 0x3a, 0xaa, 0x4b, 0xf3, 0x71,
0x69, 0x7c, 0xcf, 0x2b, 0x0f, 0x82, 0x7b, 0x3e, 0x56, 0xbc, 0x74, 0x72, 0xc5, 0xdf, 0x10, 0x4c,
0xf7, 0x9c, 0x6a, 0xbc, 0x32, 0xec, 0x40, 0x2c, 0xad, 0x0e, 0x51, 0x29, 0x36, 0x61, 0x25, 0xb4,
0xa4, 0xe1, 0x1b, 0x59, 0x2d, 0xe1, 0x0f, 0x08, 0x8a, 0x5d, 0x07, 0x70, 0x90, 0x0e, 0x4a, 0x9b,
0x1a, 0x83, 0x74, 0x50, 0xea, 0x49, 0x97, 0xcf, 0x87, 0xe2, 0x25, 0x3c, 0x9f, 0x2e, 0xbe, 0xf2,
0x11, 0xc1, 0xa5, 0x16, 0xdd, 0xef, 0x4b, 0x5f, 0x29, 0xc6, 0xa7, 0x7c, 0x3b, 0xd8, 0xf0, 0x6d,
0xf4, 0xec, 0xa1, 0x28, 0x31, 0xa9, 0xad, 0x3b, 0xa6, 0x42, 0x3d, 0x53, 0x35, 0x89, 0x13, 0xb6,
0x83, 0xf8, 0x42, 0xd5, 0x5d, 0x8b, 0xfd, 0xfd, 0xa3, 0xf1, 0x6e, 0x17, 0xf0, 0x29, 0x27, 0x55,
0x23, 0xbe, 0xfb, 0x01, 0x1c, 0xcf, 0x1a, 0x4f, 0xd9, 0xd1, 0x9a, 0x63, 0x21, 0xe9, 0xf2, 0xef,
0x00, 0x00, 0x00, 0xff, 0xff, 0x66, 0xf8, 0x5d, 0x68, 0xf9, 0x0a, 0x00, 0x00,
}

View File

@ -0,0 +1,434 @@
// 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
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
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
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
// Description of a group of similar error events.
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"`
// 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"`
// Associated tracking issues.
TrackingIssues []*TrackingIssue `protobuf:"bytes,3,rep,name=tracking_issues,json=trackingIssues" json:"tracking_issues,omitempty"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ErrorGroup) GetGroupId() string {
if m != nil {
return m.GroupId
}
return ""
}
func (m *ErrorGroup) GetTrackingIssues() []*TrackingIssue {
if m != nil {
return m.TrackingIssues
}
return nil
}
// Information related to tracking the progress on resolving the error.
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"`
}
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) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
// An error event which is returned by the Error Reporting system.
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"`
// The `ServiceContext` for which this error was reported.
ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext" 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"`
// Data about the context in which the error occurred.
Context *ErrorContext `protobuf:"bytes,5,opt,name=context" json:"context,omitempty"`
}
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) GetEventTime() *google_protobuf1.Timestamp {
if m != nil {
return m.EventTime
}
return nil
}
func (m *ErrorEvent) GetServiceContext() *ServiceContext {
if m != nil {
return m.ServiceContext
}
return nil
}
func (m *ErrorEvent) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *ErrorEvent) GetContext() *ErrorContext {
if m != nil {
return m.Context
}
return nil
}
// Describes a running service that sends errors.
// Its version changes over time and multiple versions can run in parallel.
type ServiceContext struct {
// An identifier of the service, such as the name of the
// executable, job, or Google App Engine service name. This field is expected
// to have a low number of values that are relatively stable over time, as
// opposed to `version`, which can be changed whenever new code is deployed.
//
// 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"`
// 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"`
// 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"`
}
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) GetService() string {
if m != nil {
return m.Service
}
return ""
}
func (m *ServiceContext) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *ServiceContext) GetResourceType() string {
if m != nil {
return m.ResourceType
}
return ""
}
// A description of the context in which an error occurred.
// This data should be provided by the application when reporting an error,
// unless the
// error report has been generated automatically from Google App Engine logs.
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"`
// 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.
// When sending an error report, leave this field empty if the user was not
// logged in. In this case the
// 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"`
// 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"`
}
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) GetHttpRequest() *HttpRequestContext {
if m != nil {
return m.HttpRequest
}
return nil
}
func (m *ErrorContext) GetUser() string {
if m != nil {
return m.User
}
return ""
}
func (m *ErrorContext) GetReportLocation() *SourceLocation {
if m != nil {
return m.ReportLocation
}
return nil
}
// HTTP request data that is related to a reported error.
// This data should be provided by the application when reporting an error,
// unless the
// 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"`
// The URL of the request.
Url string `protobuf:"bytes,2,opt,name=url" 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"`
// The referrer information that is provided with the request.
Referrer string `protobuf:"bytes,4,opt,name=referrer" 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"`
// 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"`
}
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) GetMethod() string {
if m != nil {
return m.Method
}
return ""
}
func (m *HttpRequestContext) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *HttpRequestContext) GetUserAgent() string {
if m != nil {
return m.UserAgent
}
return ""
}
func (m *HttpRequestContext) GetReferrer() string {
if m != nil {
return m.Referrer
}
return ""
}
func (m *HttpRequestContext) GetResponseStatusCode() int32 {
if m != nil {
return m.ResponseStatusCode
}
return 0
}
func (m *HttpRequestContext) GetRemoteIp() string {
if m != nil {
return m.RemoteIp
}
return ""
}
// Indicates a location in the source code of the service for which
// errors are reported.
// This data should be provided by the application when reporting an error,
// unless the error report has been generated automatically from Google App
// Engine logs. All fields are optional.
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"`
// 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"`
// 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"`
}
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) GetFilePath() string {
if m != nil {
return m.FilePath
}
return ""
}
func (m *SourceLocation) GetLineNumber() int32 {
if m != nil {
return m.LineNumber
}
return 0
}
func (m *SourceLocation) GetFunctionName() string {
if m != nil {
return m.FunctionName
}
return ""
}
func init() {
proto.RegisterType((*ErrorGroup)(nil), "google.devtools.clouderrorreporting.v1beta1.ErrorGroup")
proto.RegisterType((*TrackingIssue)(nil), "google.devtools.clouderrorreporting.v1beta1.TrackingIssue")
proto.RegisterType((*ErrorEvent)(nil), "google.devtools.clouderrorreporting.v1beta1.ErrorEvent")
proto.RegisterType((*ServiceContext)(nil), "google.devtools.clouderrorreporting.v1beta1.ServiceContext")
proto.RegisterType((*ErrorContext)(nil), "google.devtools.clouderrorreporting.v1beta1.ErrorContext")
proto.RegisterType((*HttpRequestContext)(nil), "google.devtools.clouderrorreporting.v1beta1.HttpRequestContext")
proto.RegisterType((*SourceLocation)(nil), "google.devtools.clouderrorreporting.v1beta1.SourceLocation")
}
func init() {
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/common.proto", fileDescriptor0)
}
var fileDescriptor0 = []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,
0xda, 0xa5, 0xe5, 0x42, 0xe9, 0x01, 0xd1, 0xa8, 0x2a, 0x95, 0x50, 0x55, 0x6d, 0xaa, 0x1e, 0x50,
0x85, 0xe5, 0xec, 0x4e, 0x36, 0x16, 0xbb, 0xb6, 0xb1, 0xbd, 0x11, 0x7d, 0x17, 0x0e, 0x9c, 0x79,
0x12, 0xc4, 0xb3, 0xf4, 0x21, 0x90, 0xbd, 0x76, 0x69, 0xd4, 0x1e, 0xc8, 0xcd, 0x33, 0xf3, 0xcd,
0x37, 0xf3, 0x8d, 0xc7, 0x46, 0x6f, 0x73, 0x21, 0xf2, 0x02, 0xe2, 0x0c, 0x66, 0x46, 0x88, 0x42,
0xc7, 0x69, 0x21, 0xaa, 0x0c, 0x94, 0x12, 0x4a, 0x81, 0x14, 0xca, 0x30, 0x9e, 0xc7, 0xb3, 0xbd,
0x31, 0x18, 0xba, 0x17, 0xa7, 0xa2, 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xb2, 0x99, 0x7f, 0x02, 0xea, 0xca, 0xa1, 0xae, 0xe6, 0x51, 0x57, 0x97, 0x35, 0xff, 0x78, 0xc5,
0xb5, 0xf5, 0xe6, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x24, 0x65, 0x84, 0x33, 0x41, 0x06, 0x00,
0x00,
}

View File

@ -0,0 +1,211 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto
package clouderrorreporting
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
// A request to return an individual group.
type GetGroupRequest struct {
// [Required] The group resource name. Written as
// <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
// Call
// <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
// <code>groupStats.list</code></a> to return a list of groups belonging to
// 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"`
}
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) GetGroupName() string {
if m != nil {
return m.GroupName
}
return ""
}
// 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"`
}
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) GetGroup() *ErrorGroup {
if m != nil {
return m.Group
}
return nil
}
func init() {
proto.RegisterType((*GetGroupRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.GetGroupRequest")
proto.RegisterType((*UpdateGroupRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest")
}
// 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
// Client API for ErrorGroupService service
type ErrorGroupServiceClient interface {
// Get the specified group.
GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error)
// Replace the data for the specified group.
// Fails if the group does not exist.
UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error)
}
type errorGroupServiceClient struct {
cc *grpc.ClientConn
}
func NewErrorGroupServiceClient(cc *grpc.ClientConn) ErrorGroupServiceClient {
return &errorGroupServiceClient{cc}
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ErrorGroupService service
type ErrorGroupServiceServer interface {
// Get the specified group.
GetGroup(context.Context, *GetGroupRequest) (*ErrorGroup, error)
// Replace the data for the specified group.
// Fails if the group does not exist.
UpdateGroup(context.Context, *UpdateGroupRequest) (*ErrorGroup, error)
}
func RegisterErrorGroupServiceServer(s *grpc.Server, srv ErrorGroupServiceServer) {
s.RegisterService(&_ErrorGroupService_serviceDesc, srv)
}
func _ErrorGroupService_GetGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetGroupRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ErrorGroupServiceServer).GetGroup(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ErrorGroupServiceServer).GetGroup(ctx, req.(*GetGroupRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ErrorGroupService_UpdateGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateGroupRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ErrorGroupServiceServer).UpdateGroup(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ErrorGroupServiceServer).UpdateGroup(ctx, req.(*UpdateGroupRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ErrorGroupService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.clouderrorreporting.v1beta1.ErrorGroupService",
HandlerType: (*ErrorGroupServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetGroup",
Handler: _ErrorGroupService_GetGroup_Handler,
},
{
MethodName: "UpdateGroup",
Handler: _ErrorGroupService_UpdateGroup_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/clouderrorreporting/v1beta1/error_group_service.proto",
}
func init() {
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/error_group_service.proto", fileDescriptor1)
}
var fileDescriptor1 = []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,
0x68, 0x02, 0x55, 0x76, 0x5c, 0x18, 0xbc, 0x20, 0x44, 0x42, 0x56, 0x4a, 0x88, 0x98, 0x85, 0x04,
0x43, 0xa5, 0x53, 0x14, 0x2d, 0xdd, 0x75, 0xda, 0xea, 0x4a, 0x36, 0xe2, 0xc6, 0x07, 0x70, 0xe3,
0x5b, 0xb8, 0xf6, 0x05, 0xdc, 0xba, 0xf5, 0x15, 0x7c, 0x07, 0xb7, 0xd2, 0x55, 0xb9, 0x98, 0x8b,
0x60, 0x67, 0x7b, 0x2e, 0xff, 0xff, 0xd5, 0x5f, 0x07, 0xd5, 0x05, 0x80, 0x08, 0x39, 0xed, 0xf3,
0xa1, 0x06, 0x08, 0x13, 0xea, 0x87, 0x30, 0xe8, 0x73, 0xa5, 0x40, 0x29, 0x1e, 0x83, 0xd2, 0x81,
0x14, 0x74, 0xe8, 0xf5, 0xb8, 0x66, 0x1e, 0x35, 0xe5, 0xae, 0x50, 0x30, 0x88, 0xbb, 0x09, 0x57,
0xc3, 0xc0, 0xe7, 0x24, 0x56, 0xa0, 0x01, 0x97, 0xad, 0x0c, 0x19, 0xcb, 0x90, 0x25, 0x32, 0x64,
0x24, 0xe3, 0xfe, 0x1b, 0x79, 0xb2, 0x38, 0xa0, 0x4c, 0x4a, 0xd0, 0x4c, 0x07, 0x20, 0x13, 0x2b,
0xe5, 0x56, 0xb3, 0x10, 0xf9, 0x10, 0x45, 0x20, 0xed, 0x66, 0x71, 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 0x37, 0xac, 0xc1, 0x51, 0xda, 0xb4, 0x09, 0xb4, 0x26, 0x7c, 0x6d, 0xaf, 0x96, 0x6e,
0x3e, 0x8f, 0xa7, 0x3a, 0x66, 0xaa, 0x33, 0x3b, 0xd5, 0x69, 0x5b, 0xfd, 0xde, 0x0f, 0x83, 0xb5,
0xfd, 0x1e, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x0a, 0xfa, 0x93, 0xf6, 0x03, 0x00, 0x00,
}

View File

@ -0,0 +1,910 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto
package clouderrorreporting
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
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"
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
// Specifies how the time periods of error group counts are aligned.
type TimedCountAlignment int32
const (
// No alignment specified.
TimedCountAlignment_ERROR_COUNT_ALIGNMENT_UNSPECIFIED TimedCountAlignment = 0
// The time periods shall be consecutive, have width equal to the
// requested duration, and be aligned at the `alignment_time` provided in
// the request.
// The `alignment_time` does not have to be inside the query period but
// even if it is outside, only time periods are returned which overlap
// with the query period.
// A rounded alignment will typically result in a
// different size of the first or the last time period.
TimedCountAlignment_ALIGNMENT_EQUAL_ROUNDED TimedCountAlignment = 1
// The time periods shall be consecutive, have width equal to the
// requested duration, and be aligned at the end of the requested time
// period. This can result in a different size of the
// first time period.
TimedCountAlignment_ALIGNMENT_EQUAL_AT_END TimedCountAlignment = 2
)
var TimedCountAlignment_name = map[int32]string{
0: "ERROR_COUNT_ALIGNMENT_UNSPECIFIED",
1: "ALIGNMENT_EQUAL_ROUNDED",
2: "ALIGNMENT_EQUAL_AT_END",
}
var TimedCountAlignment_value = map[string]int32{
"ERROR_COUNT_ALIGNMENT_UNSPECIFIED": 0,
"ALIGNMENT_EQUAL_ROUNDED": 1,
"ALIGNMENT_EQUAL_AT_END": 2,
}
func (x TimedCountAlignment) String() string {
return proto.EnumName(TimedCountAlignment_name, int32(x))
}
func (TimedCountAlignment) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
// A sorting order of error groups.
type ErrorGroupOrder int32
const (
// No group order specified.
ErrorGroupOrder_GROUP_ORDER_UNSPECIFIED ErrorGroupOrder = 0
// Total count of errors in the given time window in descending order.
ErrorGroupOrder_COUNT_DESC ErrorGroupOrder = 1
// Timestamp when the group was last seen in the given time window
// in descending order.
ErrorGroupOrder_LAST_SEEN_DESC ErrorGroupOrder = 2
// Timestamp when the group was created in descending order.
ErrorGroupOrder_CREATED_DESC ErrorGroupOrder = 3
// Number of affected users in the given time window in descending order.
ErrorGroupOrder_AFFECTED_USERS_DESC ErrorGroupOrder = 4
)
var ErrorGroupOrder_name = map[int32]string{
0: "GROUP_ORDER_UNSPECIFIED",
1: "COUNT_DESC",
2: "LAST_SEEN_DESC",
3: "CREATED_DESC",
4: "AFFECTED_USERS_DESC",
}
var ErrorGroupOrder_value = map[string]int32{
"GROUP_ORDER_UNSPECIFIED": 0,
"COUNT_DESC": 1,
"LAST_SEEN_DESC": 2,
"CREATED_DESC": 3,
"AFFECTED_USERS_DESC": 4,
}
func (x ErrorGroupOrder) String() string {
return proto.EnumName(ErrorGroupOrder_name, int32(x))
}
func (ErrorGroupOrder) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
// The supported time ranges.
type QueryTimeRange_Period int32
const (
// Do not use.
QueryTimeRange_PERIOD_UNSPECIFIED QueryTimeRange_Period = 0
// Retrieve data for the last hour.
// Recommended minimum timed count duration: 1 min.
QueryTimeRange_PERIOD_1_HOUR QueryTimeRange_Period = 1
// Retrieve data for the last 6 hours.
// Recommended minimum timed count duration: 10 min.
QueryTimeRange_PERIOD_6_HOURS QueryTimeRange_Period = 2
// Retrieve data for the last day.
// Recommended minimum timed count duration: 1 hour.
QueryTimeRange_PERIOD_1_DAY QueryTimeRange_Period = 3
// Retrieve data for the last week.
// Recommended minimum timed count duration: 6 hours.
QueryTimeRange_PERIOD_1_WEEK QueryTimeRange_Period = 4
// Retrieve data for the last 30 days.
// Recommended minimum timed count duration: 1 day.
QueryTimeRange_PERIOD_30_DAYS QueryTimeRange_Period = 5
)
var QueryTimeRange_Period_name = map[int32]string{
0: "PERIOD_UNSPECIFIED",
1: "PERIOD_1_HOUR",
2: "PERIOD_6_HOURS",
3: "PERIOD_1_DAY",
4: "PERIOD_1_WEEK",
5: "PERIOD_30_DAYS",
}
var QueryTimeRange_Period_value = map[string]int32{
"PERIOD_UNSPECIFIED": 0,
"PERIOD_1_HOUR": 1,
"PERIOD_6_HOURS": 2,
"PERIOD_1_DAY": 3,
"PERIOD_1_WEEK": 4,
"PERIOD_30_DAYS": 5,
}
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} }
// Specifies a set of `ErrorGroupStats` to return.
type ListGroupStatsRequest struct {
// [Required] The resource name of the Google Cloud Platform project. Written
// as <code>projects/</code> plus the
// <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
// 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"`
// [Optional] List all <code>ErrorGroupStats</code> with these IDs.
GroupId []string `protobuf:"bytes,2,rep,name=group_id,json=groupId" 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"`
// [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.
// Only <code>ErrorGroupStats</code> with a non-zero count in the given time
// 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"`
// [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"`
// [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"`
// [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"`
// [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"`
// [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"`
// [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"`
}
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) GetProjectName() string {
if m != nil {
return m.ProjectName
}
return ""
}
func (m *ListGroupStatsRequest) GetGroupId() []string {
if m != nil {
return m.GroupId
}
return nil
}
func (m *ListGroupStatsRequest) GetServiceFilter() *ServiceContextFilter {
if m != nil {
return m.ServiceFilter
}
return nil
}
func (m *ListGroupStatsRequest) GetTimeRange() *QueryTimeRange {
if m != nil {
return m.TimeRange
}
return nil
}
func (m *ListGroupStatsRequest) GetTimedCountDuration() *google_protobuf2.Duration {
if m != nil {
return m.TimedCountDuration
}
return nil
}
func (m *ListGroupStatsRequest) GetAlignment() TimedCountAlignment {
if m != nil {
return m.Alignment
}
return TimedCountAlignment_ERROR_COUNT_ALIGNMENT_UNSPECIFIED
}
func (m *ListGroupStatsRequest) GetAlignmentTime() *google_protobuf1.Timestamp {
if m != nil {
return m.AlignmentTime
}
return nil
}
func (m *ListGroupStatsRequest) GetOrder() ErrorGroupOrder {
if m != nil {
return m.Order
}
return ErrorGroupOrder_GROUP_ORDER_UNSPECIFIED
}
func (m *ListGroupStatsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListGroupStatsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// 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"`
// 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"`
// 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"`
}
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) GetErrorGroupStats() []*ErrorGroupStats {
if m != nil {
return m.ErrorGroupStats
}
return nil
}
func (m *ListGroupStatsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
func (m *ListGroupStatsResponse) GetTimeRangeBegin() *google_protobuf1.Timestamp {
if m != nil {
return m.TimeRangeBegin
}
return nil
}
// Data extracted for a specific group based on certain filter criteria,
// 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"`
// 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"`
// Approximate number of affected users in the given group that
// match the filter criteria.
// Users are distinguished by data in the `ErrorContext` of the
// individual error events, such as their login name or their remote
// IP address in case of HTTP requests.
// The number of affected users can be zero even if the number of
// errors is non-zero if no data was provided from which the
// affected user could be deduced.
// Users are counted based on data in the request
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
}
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) GetGroup() *ErrorGroup {
if m != nil {
return m.Group
}
return nil
}
func (m *ErrorGroupStats) GetCount() int64 {
if m != nil {
return m.Count
}
return 0
}
func (m *ErrorGroupStats) GetAffectedUsersCount() int64 {
if m != nil {
return m.AffectedUsersCount
}
return 0
}
func (m *ErrorGroupStats) GetTimedCounts() []*TimedCount {
if m != nil {
return m.TimedCounts
}
return nil
}
func (m *ErrorGroupStats) GetFirstSeenTime() *google_protobuf1.Timestamp {
if m != nil {
return m.FirstSeenTime
}
return nil
}
func (m *ErrorGroupStats) GetLastSeenTime() *google_protobuf1.Timestamp {
if m != nil {
return m.LastSeenTime
}
return nil
}
func (m *ErrorGroupStats) GetAffectedServices() []*ServiceContext {
if m != nil {
return m.AffectedServices
}
return nil
}
func (m *ErrorGroupStats) GetNumAffectedServices() int32 {
if m != nil {
return m.NumAffectedServices
}
return 0
}
func (m *ErrorGroupStats) GetRepresentative() *ErrorEvent {
if m != nil {
return m.Representative
}
return nil
}
// The number of errors in a given time period.
// All numbers are approximate since the error events are sampled
// 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"`
// 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"`
// 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"`
}
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) GetCount() int64 {
if m != nil {
return m.Count
}
return 0
}
func (m *TimedCount) GetStartTime() *google_protobuf1.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *TimedCount) GetEndTime() *google_protobuf1.Timestamp {
if m != nil {
return m.EndTime
}
return nil
}
// Specifies a set of error events to return.
type ListEventsRequest 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"`
// [Required] The group for which events shall be returned.
GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId" 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"`
// [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"`
// [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"`
// [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"`
}
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) GetProjectName() string {
if m != nil {
return m.ProjectName
}
return ""
}
func (m *ListEventsRequest) GetGroupId() string {
if m != nil {
return m.GroupId
}
return ""
}
func (m *ListEventsRequest) GetServiceFilter() *ServiceContextFilter {
if m != nil {
return m.ServiceFilter
}
return nil
}
func (m *ListEventsRequest) GetTimeRange() *QueryTimeRange {
if m != nil {
return m.TimeRange
}
return nil
}
func (m *ListEventsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListEventsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// 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"`
// 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"`
// 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"`
}
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) GetErrorEvents() []*ErrorEvent {
if m != nil {
return m.ErrorEvents
}
return nil
}
func (m *ListEventsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
func (m *ListEventsResponse) GetTimeRangeBegin() *google_protobuf1.Timestamp {
if m != nil {
return m.TimeRangeBegin
}
return nil
}
// Requests might be rejected or the resulting timed count durations might be
// 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"`
}
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) GetPeriod() QueryTimeRange_Period {
if m != nil {
return m.Period
}
return QueryTimeRange_PERIOD_UNSPECIFIED
}
// Specifies criteria for filtering a subset of service contexts.
// The fields in the filter correspond to the fields in `ServiceContext`.
// Only exact, case-sensitive matches are supported.
// If a field is unset or empty, it matches arbitrary values.
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"`
// [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"`
// [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"`
}
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) GetService() string {
if m != nil {
return m.Service
}
return ""
}
func (m *ServiceContextFilter) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *ServiceContextFilter) GetResourceType() string {
if m != nil {
return m.ResourceType
}
return ""
}
// Deletes all events in the project.
type DeleteEventsRequest 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"`
}
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) GetProjectName() string {
if m != nil {
return m.ProjectName
}
return ""
}
// Response message for deleting error events.
type DeleteEventsResponse struct {
}
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 init() {
proto.RegisterType((*ListGroupStatsRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest")
proto.RegisterType((*ListGroupStatsResponse)(nil), "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse")
proto.RegisterType((*ErrorGroupStats)(nil), "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats")
proto.RegisterType((*TimedCount)(nil), "google.devtools.clouderrorreporting.v1beta1.TimedCount")
proto.RegisterType((*ListEventsRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.ListEventsRequest")
proto.RegisterType((*ListEventsResponse)(nil), "google.devtools.clouderrorreporting.v1beta1.ListEventsResponse")
proto.RegisterType((*QueryTimeRange)(nil), "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange")
proto.RegisterType((*ServiceContextFilter)(nil), "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter")
proto.RegisterType((*DeleteEventsRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest")
proto.RegisterType((*DeleteEventsResponse)(nil), "google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse")
proto.RegisterEnum("google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment", TimedCountAlignment_name, TimedCountAlignment_value)
proto.RegisterEnum("google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder", ErrorGroupOrder_name, ErrorGroupOrder_value)
proto.RegisterEnum("google.devtools.clouderrorreporting.v1beta1.QueryTimeRange_Period", QueryTimeRange_Period_name, QueryTimeRange_Period_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for ErrorStatsService service
type ErrorStatsServiceClient interface {
// Lists the specified groups.
ListGroupStats(ctx context.Context, in *ListGroupStatsRequest, opts ...grpc.CallOption) (*ListGroupStatsResponse, error)
// Lists the specified events.
ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error)
// Deletes all error events of a given project.
DeleteEvents(ctx context.Context, in *DeleteEventsRequest, opts ...grpc.CallOption) (*DeleteEventsResponse, error)
}
type errorStatsServiceClient struct {
cc *grpc.ClientConn
}
func NewErrorStatsServiceClient(cc *grpc.ClientConn) ErrorStatsServiceClient {
return &errorStatsServiceClient{cc}
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ErrorStatsService service
type ErrorStatsServiceServer interface {
// Lists the specified groups.
ListGroupStats(context.Context, *ListGroupStatsRequest) (*ListGroupStatsResponse, error)
// Lists the specified events.
ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
// Deletes all error events of a given project.
DeleteEvents(context.Context, *DeleteEventsRequest) (*DeleteEventsResponse, error)
}
func RegisterErrorStatsServiceServer(s *grpc.Server, srv ErrorStatsServiceServer) {
s.RegisterService(&_ErrorStatsService_serviceDesc, srv)
}
func _ErrorStatsService_ListGroupStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListGroupStatsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ErrorStatsServiceServer).ListGroupStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListGroupStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ErrorStatsServiceServer).ListGroupStats(ctx, req.(*ListGroupStatsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ErrorStatsService_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListEventsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ErrorStatsServiceServer).ListEvents(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListEvents",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ErrorStatsServiceServer).ListEvents(ctx, req.(*ListEventsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ErrorStatsService_DeleteEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteEventsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ErrorStatsServiceServer).DeleteEvents(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/DeleteEvents",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ErrorStatsServiceServer).DeleteEvents(ctx, req.(*DeleteEventsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ErrorStatsService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.clouderrorreporting.v1beta1.ErrorStatsService",
HandlerType: (*ErrorStatsServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListGroupStats",
Handler: _ErrorStatsService_ListGroupStats_Handler,
},
{
MethodName: "ListEvents",
Handler: _ErrorStatsService_ListEvents_Handler,
},
{
MethodName: "DeleteEvents",
Handler: _ErrorStatsService_DeleteEvents_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto",
}
func init() {
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto", fileDescriptor2)
}
var fileDescriptor2 = []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,
0x0a, 0xa9, 0xb0, 0x9b, 0x54, 0xa5, 0x45, 0xe5, 0xa3, 0x8e, 0xbd, 0x09, 0x51, 0x53, 0xdb, 0x1d,
0xdb, 0x45, 0x44, 0x55, 0x57, 0x1b, 0xfb, 0xc5, 0x5d, 0xb0, 0x77, 0x97, 0xdd, 0x71, 0xd4, 0x16,
0x55, 0x42, 0xdc, 0x38, 0xc3, 0x8d, 0xff, 0x80, 0xbf, 0x82, 0x13, 0x07, 0x4e, 0x48, 0xbd, 0x73,
0xe2, 0x0e, 0xe2, 0xc2, 0x15, 0xcd, 0xc7, 0xfa, 0xab, 0x11, 0xa9, 0x1d, 0x84, 0xb8, 0xed, 0xbc,
0x37, 0xef, 0xf7, 0x3e, 0xe6, 0xf7, 0xde, 0xcc, 0x82, 0xd1, 0x76, 0xdd, 0x76, 0x07, 0xf3, 0x2d,
0x3c, 0x66, 0xae, 0xdb, 0x09, 0xf2, 0xcd, 0x8e, 0xdb, 0x6b, 0xa1, 0xef, 0xbb, 0xbe, 0x8f, 0x9e,
0xeb, 0x33, 0xdb, 0x69, 0xe7, 0x8f, 0x37, 0x0f, 0x91, 0x59, 0x9b, 0x79, 0x21, 0x36, 0x03, 0x66,
0xb1, 0xc0, 0x0c, 0xd0, 0x3f, 0xb6, 0x9b, 0x98, 0xf3, 0x7c, 0x97, 0xb9, 0xe4, 0x8a, 0x84, 0xc9,
0x85, 0x30, 0xb9, 0x13, 0x60, 0x72, 0x0a, 0x26, 0xf3, 0xaa, 0xf2, 0x69, 0x79, 0x76, 0xde, 0x72,
0x1c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0x74, 0x50, 0xe4, 0x4a, 0x79, 0xc5, 0xd0, 0x7e, 0x7c, 0xf7, 0x37, 0xb7, 0xb9, 0xe5,
0xcf, 0xe1, 0xae, 0x07, 0x62, 0xd7, 0x83, 0xd1, 0x5d, 0x0f, 0xee, 0x4b, 0xfc, 0xc3, 0x59, 0x11,
0xd6, 0xb5, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x90, 0xe3, 0x06, 0x1a, 0x10, 0x00, 0x00,
}

View File

@ -0,0 +1,243 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
package clouderrorreporting
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/timestamp"
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
// 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"`
// [Required] The error event to be reported.
Event *ReportedErrorEvent `protobuf:"bytes,2,opt,name=event" json:"event,omitempty"`
}
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) GetProjectName() string {
if m != nil {
return m.ProjectName
}
return ""
}
func (m *ReportErrorEventRequest) GetEvent() *ReportedErrorEvent {
if m != nil {
return m.Event
}
return nil
}
// Response for reporting an individual error event.
// Data may be added to this message in the future.
type ReportErrorEventResponse struct {
}
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} }
// 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"`
// [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"`
// [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"`
// [Optional] A description of the context in which the error occurred.
Context *ErrorContext `protobuf:"bytes,4,opt,name=context" json:"context,omitempty"`
}
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) GetEventTime() *google_protobuf1.Timestamp {
if m != nil {
return m.EventTime
}
return nil
}
func (m *ReportedErrorEvent) GetServiceContext() *ServiceContext {
if m != nil {
return m.ServiceContext
}
return nil
}
func (m *ReportedErrorEvent) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *ReportedErrorEvent) GetContext() *ErrorContext {
if m != nil {
return m.Context
}
return nil
}
func init() {
proto.RegisterType((*ReportErrorEventRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest")
proto.RegisterType((*ReportErrorEventResponse)(nil), "google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse")
proto.RegisterType((*ReportedErrorEvent)(nil), "google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent")
}
// 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
// Client API for ReportErrorsService service
type ReportErrorsServiceClient interface {
// Report an individual error event.
//
// This endpoint accepts <strong>either</strong> an OAuth token,
// <strong>or</strong> an
// <a href="https://support.google.com/cloud/answer/6158862">API key</a>
// for authentication. To use an API key, append it to the URL as the value of
// a `key` parameter. For example:
// <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre>
ReportErrorEvent(ctx context.Context, in *ReportErrorEventRequest, opts ...grpc.CallOption) (*ReportErrorEventResponse, error)
}
type reportErrorsServiceClient struct {
cc *grpc.ClientConn
}
func NewReportErrorsServiceClient(cc *grpc.ClientConn) ReportErrorsServiceClient {
return &reportErrorsServiceClient{cc}
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ReportErrorsService service
type ReportErrorsServiceServer interface {
// Report an individual error event.
//
// This endpoint accepts <strong>either</strong> an OAuth token,
// <strong>or</strong> an
// <a href="https://support.google.com/cloud/answer/6158862">API key</a>
// for authentication. To use an API key, append it to the URL as the value of
// a `key` parameter. For example:
// <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre>
ReportErrorEvent(context.Context, *ReportErrorEventRequest) (*ReportErrorEventResponse, error)
}
func RegisterReportErrorsServiceServer(s *grpc.Server, srv ReportErrorsServiceServer) {
s.RegisterService(&_ReportErrorsService_serviceDesc, srv)
}
func _ReportErrorsService_ReportErrorEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ReportErrorEventRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ReportErrorsServiceServer).ReportErrorEvent(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.clouderrorreporting.v1beta1.ReportErrorsService/ReportErrorEvent",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ReportErrorsServiceServer).ReportErrorEvent(ctx, req.(*ReportErrorEventRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ReportErrorsService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.clouderrorreporting.v1beta1.ReportErrorsService",
HandlerType: (*ReportErrorsServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ReportErrorEvent",
Handler: _ReportErrorsService_ReportErrorEvent_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto",
}
func init() {
proto.RegisterFile("google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto", fileDescriptor3)
}
var fileDescriptor3 = []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,
0x30, 0x6d, 0xe2, 0xc5, 0xec, 0x22, 0x0b, 0x59, 0xc3, 0xde, 0x64, 0x99, 0xd5, 0x3d, 0x48, 0x70,
0xe8, 0x4c, 0xca, 0x61, 0x24, 0xd3, 0x35, 0x76, 0x77, 0x82, 0x20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20, 0xec, 0x4d, 0x31, 0xf7,
0xc4, 0x9b, 0x4a, 0xfd, 0xd5, 0xdf, 0xb9, 0xbf, 0xe1, 0xed, 0x4b, 0xe7, 0xfe, 0x91, 0x13, 0x38,
0x34, 0x8f, 0x6e, 0x9f, 0xd9, 0xb9, 0xc3, 0xd3, 0xfe, 0xc8, 0x54, 0x7e, 0x0d, 0x59, 0x13, 0x9b,
0x35, 0xb9, 0x98, 0x35, 0x39, 0x75, 0xfc, 0xe9, 0x55, 0x6b, 0xeb, 0xf1, 0xef, 0x00, 0x00, 0x00,
0xff, 0xff, 0x2c, 0xd1, 0x8e, 0x76, 0xc7, 0x04, 0x00, 0x00,
}

View File

@ -0,0 +1,469 @@
// 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
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 _ "github.com/golang/protobuf/ptypes/timestamp"
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
// ProfileType is type of profiling data.
// NOTE: the enumeration member names are used (in lowercase) as unique string
// identifiers of profile types, so they must not be renamed.
type ProfileType int32
const (
// Unspecified profile type.
ProfileType_PROFILE_TYPE_UNSPECIFIED ProfileType = 0
// Thread CPU time sampling.
ProfileType_CPU ProfileType = 1
// Wallclock time sampling. More expensive as stops all threads.
ProfileType_WALL ProfileType = 2
// Heap allocation sampling.
ProfileType_HEAP ProfileType = 3
// Single-shot collection of all thread stacks.
ProfileType_THREADS ProfileType = 4
// Synchronization contention profile.
ProfileType_CONTENTION ProfileType = 5
)
var ProfileType_name = map[int32]string{
0: "PROFILE_TYPE_UNSPECIFIED",
1: "CPU",
2: "WALL",
3: "HEAP",
4: "THREADS",
5: "CONTENTION",
}
var ProfileType_value = map[string]int32{
"PROFILE_TYPE_UNSPECIFIED": 0,
"CPU": 1,
"WALL": 2,
"HEAP": 3,
"THREADS": 4,
"CONTENTION": 5,
}
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 (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} }
func (m *CreateProfileRequest) GetDeployment() *Deployment {
if m != nil {
return m.Deployment
}
return nil
}
func (m *CreateProfileRequest) GetProfileType() []ProfileType {
if m != nil {
return m.ProfileType
}
return nil
}
func (m *CreateProfileRequest) GetProfile() *Profile {
if m != nil {
return m.Profile
}
return nil
}
// UpdateProfileRequest contains the profile to update.
type UpdateProfileRequest struct {
// Profile to update
Profile *Profile `protobuf:"bytes,1,opt,name=profile" json:"profile,omitempty"`
}
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) GetProfile() *Profile {
if m != nil {
return m.Profile
}
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"`
// 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"`
// Deployment this profile corresponds to.
Deployment *Deployment `protobuf:"bytes,3,opt,name=deployment" 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.
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"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Profile) GetProfileType() ProfileType {
if m != nil {
return m.ProfileType
}
return ProfileType_PROFILE_TYPE_UNSPECIFIED
}
func (m *Profile) GetDeployment() *Deployment {
if m != nil {
return m.Deployment
}
return nil
}
func (m *Profile) GetDuration() *google_protobuf1.Duration {
if m != nil {
return m.Duration
}
return nil
}
func (m *Profile) GetProfileBytes() []byte {
if m != nil {
return m.ProfileBytes
}
return nil
}
func (m *Profile) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
// Deployment contains the deployment identification information.
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"`
// 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"`
// 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
// size of all label names and values must be <= 1024 bytes.
//
// Label named "language" can be used to record the programming language of
// the profiled deployment. The standard choices for the value include "java",
// "go", "python", "ruby", "nodejs", "php", "dotnet".
//
// For deployments running on Google Cloud Platform, "zone" or "region" label
// 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"`
}
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) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *Deployment) GetTarget() string {
if m != nil {
return m.Target
}
return ""
}
func (m *Deployment) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
func init() {
proto.RegisterType((*CreateProfileRequest)(nil), "google.devtools.cloudprofiler.v2.CreateProfileRequest")
proto.RegisterType((*UpdateProfileRequest)(nil), "google.devtools.cloudprofiler.v2.UpdateProfileRequest")
proto.RegisterType((*Profile)(nil), "google.devtools.cloudprofiler.v2.Profile")
proto.RegisterType((*Deployment)(nil), "google.devtools.cloudprofiler.v2.Deployment")
proto.RegisterEnum("google.devtools.cloudprofiler.v2.ProfileType", ProfileType_name, ProfileType_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for ProfilerService service
type ProfilerServiceClient interface {
// CreateProfile creates a new profile resource.
//
// 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".
//
// In the offline creation mode:
// * The client provides the profile to create along with the profile bytes,
// the server records it.
CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*Profile, error)
// UpdateProfile updates the profile bytes and labels on the profile resource
// created in the online mode.
UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*Profile, error)
}
type profilerServiceClient struct {
cc *grpc.ClientConn
}
func NewProfilerServiceClient(cc *grpc.ClientConn) ProfilerServiceClient {
return &profilerServiceClient{cc}
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ProfilerService service
type ProfilerServiceServer interface {
// CreateProfile creates a new profile resource.
//
// 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".
//
// In the offline creation mode:
// * The client provides the profile to create along with the profile bytes,
// the server records it.
CreateProfile(context.Context, *CreateProfileRequest) (*Profile, error)
// UpdateProfile updates the profile bytes and labels on the profile resource
// created in the online mode.
UpdateProfile(context.Context, *UpdateProfileRequest) (*Profile, error)
}
func RegisterProfilerServiceServer(s *grpc.Server, srv ProfilerServiceServer) {
s.RegisterService(&_ProfilerService_serviceDesc, srv)
}
func _ProfilerService_CreateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateProfileRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProfilerServiceServer).CreateProfile(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.cloudprofiler.v2.ProfilerService/CreateProfile",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProfilerServiceServer).CreateProfile(ctx, req.(*CreateProfileRequest))
}
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 {
return nil, err
}
if interceptor == nil {
return srv.(ProfilerServiceServer).UpdateProfile(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.cloudprofiler.v2.ProfilerService/UpdateProfile",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProfilerServiceServer).UpdateProfile(ctx, req.(*UpdateProfileRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ProfilerService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.cloudprofiler.v2.ProfilerService",
HandlerType: (*ProfilerServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateProfile",
Handler: _ProfilerService_CreateProfile_Handler,
},
{
MethodName: "UpdateProfile",
Handler: _ProfilerService_UpdateProfile_Handler,
},
},
Streams: []grpc.StreamDesc{},
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, 0x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, 0xb6,
0x5a, 0x89, 0xe4, 0x5e, 0xf2, 0x0a, 0x39, 0xb2, 0x84, 0x17, 0x63, 0xf1, 0xd5, 0xb1, 0x4c, 0xa5,
0x7a, 0xb5, 0x9f, 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,
}

View File

@ -0,0 +1,724 @@
// 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
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/empty"
import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
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
// Type of span. Can be used to specify additional relationships between spans
// in addition to a parent/child relationship.
type TraceSpan_SpanKind int32
const (
// Unspecified.
TraceSpan_SPAN_KIND_UNSPECIFIED TraceSpan_SpanKind = 0
// Indicates that the span covers server-side handling of an RPC or other
// remote network request.
TraceSpan_RPC_SERVER TraceSpan_SpanKind = 1
// Indicates that the span covers the client-side wrapper around an RPC or
// other remote request.
TraceSpan_RPC_CLIENT TraceSpan_SpanKind = 2
)
var TraceSpan_SpanKind_name = map[int32]string{
0: "SPAN_KIND_UNSPECIFIED",
1: "RPC_SERVER",
2: "RPC_CLIENT",
}
var TraceSpan_SpanKind_value = map[string]int32{
"SPAN_KIND_UNSPECIFIED": 0,
"RPC_SERVER": 1,
"RPC_CLIENT": 2,
}
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} }
// Type of data returned for traces in the list.
type ListTracesRequest_ViewType int32
const (
// Default is `MINIMAL` if unspecified.
ListTracesRequest_VIEW_TYPE_UNSPECIFIED ListTracesRequest_ViewType = 0
// Minimal view of the trace record that contains only the project
// and trace IDs.
ListTracesRequest_MINIMAL ListTracesRequest_ViewType = 1
// Root span view of the trace record that returns the root spans along
// with the minimal trace data.
ListTracesRequest_ROOTSPAN ListTracesRequest_ViewType = 2
// Complete view of the trace record that contains the actual trace data.
// This is equivalent to calling the REST `get` or RPC `GetTrace` method
// using the ID of each listed trace.
ListTracesRequest_COMPLETE ListTracesRequest_ViewType = 3
)
var ListTracesRequest_ViewType_name = map[int32]string{
0: "VIEW_TYPE_UNSPECIFIED",
1: "MINIMAL",
2: "ROOTSPAN",
3: "COMPLETE",
}
var ListTracesRequest_ViewType_value = map[string]int32{
"VIEW_TYPE_UNSPECIFIED": 0,
"MINIMAL": 1,
"ROOTSPAN": 2,
"COMPLETE": 3,
}
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}
}
// A trace describes how long it takes for an application to perform an
// operation. It consists of a set of spans, each of which represent a single
// 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"`
// 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"`
// Collection of spans in the trace.
Spans []*TraceSpan `protobuf:"bytes,3,rep,name=spans" json:"spans,omitempty"`
}
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) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *Trace) GetTraceId() string {
if m != nil {
return m.TraceId
}
return ""
}
func (m *Trace) GetSpans() []*TraceSpan {
if m != nil {
return m.Spans
}
return nil
}
// List of new or updated traces.
type Traces struct {
// List of traces.
Traces []*Trace `protobuf:"bytes,1,rep,name=traces" json:"traces,omitempty"`
}
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) GetTraces() []*Trace {
if m != nil {
return m.Traces
}
return nil
}
// A span represents a single timed event within a trace. Spans can be nested
// and form a trace tree. Often, a trace contains a root span that describes the
// end-to-end latency of an operation and, optionally, one or more subspans for
// its suboperations. Spans do not need to be contiguous. There may be gaps
// between spans in a 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"`
// 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"`
// 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 %}.
// The name may be a method name or some other per-call site name.
// 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"`
// 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"`
// 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"`
// 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"`
// 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).
//
// Some predefined label keys exist, or you may create your own. When creating
// your own, we recommend the following formats:
//
// * `/category/product/key` for agents of well-known products (e.g.
// `/db/mongodb/read_size`).
// * `short_host/path/key` for domain-specific keys (e.g.
// `foo.com/myproduct/bar`)
//
// Predefined labels include:
//
// * `/agent`
// * `/component`
// * `/error/message`
// * `/error/name`
// * `/http/client_city`
// * `/http/client_country`
// * `/http/client_protocol`
// * `/http/client_region`
// * `/http/host`
// * `/http/method`
// * `/http/redirected_url`
// * `/http/request/size`
// * `/http/response/size`
// * `/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"`
}
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) GetSpanId() uint64 {
if m != nil {
return m.SpanId
}
return 0
}
func (m *TraceSpan) GetKind() TraceSpan_SpanKind {
if m != nil {
return m.Kind
}
return TraceSpan_SPAN_KIND_UNSPECIFIED
}
func (m *TraceSpan) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *TraceSpan) GetStartTime() *google_protobuf2.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *TraceSpan) GetEndTime() *google_protobuf2.Timestamp {
if m != nil {
return m.EndTime
}
return nil
}
func (m *TraceSpan) GetParentSpanId() uint64 {
if m != nil {
return m.ParentSpanId
}
return 0
}
func (m *TraceSpan) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
// The request message for the `ListTraces` method. All fields are required
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// 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"`
// An optional filter against labels for the request.
//
// By default, searches use prefix matching. To specify exact match, prepend
// a plus symbol (`+`) to the search term.
// Multiple terms are ANDed. Syntax:
//
// * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root
// span starts with `NAME_PREFIX`.
// * `+root:NAME` or `+NAME`: Return traces where any root span's name is
// exactly `NAME`.
// * `span:NAME_PREFIX`: Return traces where any span starts with
// `NAME_PREFIX`.
// * `+span:NAME`: Return traces where any span's name is exactly
// `NAME`.
// * `latency:DURATION`: Return traces whose overall latency is
// greater or equal to than `DURATION`. Accepted units are nanoseconds
// (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For
// example, `latency:24ms` returns traces whose overall latency
// is greater than or equal to 24 milliseconds.
// * `label:LABEL_KEY`: Return all traces containing the specified
// label key (exact match, case-sensitive) regardless of the key:value
// pair's value (including empty values).
// * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified
// label key (exact match, case-sensitive) whose value starts with
// `VALUE_PREFIX`. Both a key and a value must be specified.
// * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair
// exactly matching the specified text. Both a key and a value must be
// 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"`
// Field used to sort the returned traces. Optional.
// Can be one of the following:
//
// * `trace_id`
// * `name` (`name` field of root span in the trace)
// * `duration` (difference between `end_time` and `start_time` fields of
// the root span)
// * `start` (`start_time` field of the root span)
//
// Descending order can be specified by appending `desc` to the sort field
// (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"`
}
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) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *ListTracesRequest) GetView() ListTracesRequest_ViewType {
if m != nil {
return m.View
}
return ListTracesRequest_VIEW_TYPE_UNSPECIFIED
}
func (m *ListTracesRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListTracesRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
func (m *ListTracesRequest) GetStartTime() *google_protobuf2.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *ListTracesRequest) GetEndTime() *google_protobuf2.Timestamp {
if m != nil {
return m.EndTime
}
return nil
}
func (m *ListTracesRequest) GetFilter() string {
if m != nil {
return m.Filter
}
return ""
}
func (m *ListTracesRequest) GetOrderBy() string {
if m != nil {
return m.OrderBy
}
return ""
}
// 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"`
// 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"`
}
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) GetTraces() []*Trace {
if m != nil {
return m.Traces
}
return nil
}
func (m *ListTracesResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// 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"`
// ID of the trace to return.
TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
}
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) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *GetTraceRequest) GetTraceId() string {
if m != nil {
return m.TraceId
}
return ""
}
// 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"`
// The body of the message.
Traces *Traces `protobuf:"bytes,2,opt,name=traces" json:"traces,omitempty"`
}
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) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *PatchTracesRequest) GetTraces() *Traces {
if m != nil {
return m.Traces
}
return nil
}
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.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")
proto.RegisterType((*PatchTracesRequest)(nil), "google.devtools.cloudtrace.v1.PatchTracesRequest")
proto.RegisterEnum("google.devtools.cloudtrace.v1.TraceSpan_SpanKind", TraceSpan_SpanKind_name, TraceSpan_SpanKind_value)
proto.RegisterEnum("google.devtools.cloudtrace.v1.ListTracesRequest_ViewType", ListTracesRequest_ViewType_name, ListTracesRequest_ViewType_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for TraceService service
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)
// Gets a single trace by its ID.
GetTrace(ctx context.Context, in *GetTraceRequest, opts ...grpc.CallOption) (*Trace, error)
// Sends new traces to Stackdriver Trace or updates existing traces. If the ID
// of a trace that you send matches that of an existing trace, any fields
// 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)
}
type traceServiceClient struct {
cc *grpc.ClientConn
}
func NewTraceServiceClient(cc *grpc.ClientConn) TraceServiceClient {
return &traceServiceClient{cc}
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
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...)
if err != nil {
return nil, err
}
return out, nil
}
// 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)
// Gets a single trace by its ID.
GetTrace(context.Context, *GetTraceRequest) (*Trace, error)
// Sends new traces to Stackdriver Trace or updates existing traces. If the ID
// of a trace that you send matches that of an existing trace, any fields
// 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)
}
func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer) {
s.RegisterService(&_TraceService_serviceDesc, srv)
}
func _TraceService_ListTraces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListTracesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TraceServiceServer).ListTraces(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.cloudtrace.v1.TraceService/ListTraces",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TraceServiceServer).ListTraces(ctx, req.(*ListTracesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TraceService_GetTrace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetTraceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TraceServiceServer).GetTrace(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.cloudtrace.v1.TraceService/GetTrace",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TraceServiceServer).GetTrace(ctx, req.(*GetTraceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TraceService_PatchTraces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PatchTracesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TraceServiceServer).PatchTraces(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.cloudtrace.v1.TraceService/PatchTraces",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TraceServiceServer).PatchTraces(ctx, req.(*PatchTracesRequest))
}
return interceptor(ctx, in, info, handler)
}
var _TraceService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.cloudtrace.v1.TraceService",
HandlerType: (*TraceServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListTraces",
Handler: _TraceService_ListTraces_Handler,
},
{
MethodName: "GetTrace",
Handler: _TraceService_GetTrace_Handler,
},
{
MethodName: "PatchTraces",
Handler: _TraceService_PatchTraces_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/cloudtrace/v1/trace.proto",
}
func init() { proto.RegisterFile("google/devtools/cloudtrace/v1/trace.proto", fileDescriptor0) }
var fileDescriptor0 = []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,
0x03, 0x62, 0xb7, 0x76, 0x41, 0x22, 0xe5, 0x47, 0x6a, 0xdc, 0x6d, 0xb4, 0x8a, 0xe3, 0xac, 0xd6,
0xc6, 0x08, 0x14, 0x69, 0x35, 0xf1, 0x4e, 0xcd, 0x12, 0x7b, 0x66, 0xd9, 0x99, 0xb8, 0x38, 0x55,
0x2f, 0xe0, 0x92, 0x5b, 0xc4, 0x15, 0x6f, 0xd0, 0x4b, 0x1e, 0x83, 0x3b, 0xc4, 0x2b, 0x20, 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xbb, 0x7c, 0x84, 0x6d, 0x50, 0xed, 0x7d, 0xd9, 0xcc, 0x37, 0xbe, 0xd9, 0xc9, 0x82,
0x27, 0x6c, 0x8a, 0xe9, 0xc4, 0x66, 0xe9, 0xc4, 0x99, 0x10, 0xaa, 0x46, 0x71, 0xf4, 0x15, 0x4e,
0x62, 0xfe, 0x92, 0x1f, 0x1d, 0x9f, 0x9e, 0x5a, 0xcf, 0x0b, 0xd7, 0x77, 0x74, 0xa5, 0xae, 0xf4,
0x69, 0x4c, 0xed, 0x51, 0xfb, 0x8f, 0xdc, 0x7f, 0xa0, 0xfc, 0x07, 0xca, 0x7f, 0x30, 0x6a, 0x1f,
0x9a, 0xaa, 0xc7, 0xbd, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x08, 0xd9, 0xf5, 0xea, 0xd7, 0x08,
0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,197 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/cloudtrace/v2/tracing.proto
package cloudtrace
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 _ "github.com/golang/protobuf/ptypes/timestamp"
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
// 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"`
// 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"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *BatchWriteSpansRequest) GetSpans() []*Span {
if m != nil {
return m.Spans
}
return nil
}
func init() {
proto.RegisterType((*BatchWriteSpansRequest)(nil), "google.devtools.cloudtrace.v2.BatchWriteSpansRequest")
}
// 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
// Client API for TraceService service
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)
// Creates a new span.
CreateSpan(ctx context.Context, in *Span, opts ...grpc.CallOption) (*Span, error)
}
type traceServiceClient struct {
cc *grpc.ClientConn
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
// 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)
// Creates a new span.
CreateSpan(context.Context, *Span) (*Span, error)
}
func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer) {
s.RegisterService(&_TraceService_serviceDesc, srv)
}
func _TraceService_BatchWriteSpans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchWriteSpansRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TraceServiceServer).BatchWriteSpans(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TraceServiceServer).BatchWriteSpans(ctx, req.(*BatchWriteSpansRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TraceService_CreateSpan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Span)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TraceServiceServer).CreateSpan(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.cloudtrace.v2.TraceService/CreateSpan",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TraceServiceServer).CreateSpan(ctx, req.(*Span))
}
return interceptor(ctx, in, info, handler)
}
var _TraceService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.cloudtrace.v2.TraceService",
HandlerType: (*TraceServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "BatchWriteSpans",
Handler: _TraceService_BatchWriteSpans_Handler,
},
{
MethodName: "CreateSpan",
Handler: _TraceService_CreateSpan_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/cloudtrace/v2/tracing.proto",
}
func init() { proto.RegisterFile("google/devtools/cloudtrace/v2/tracing.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 404 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b,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fb, 0x76, 0x78, 0x1a, 0x5f, 0xd5, 0xfd, 0x99, 0xeb, 0xcf, 0x5c, 0x7f, 0x36,
0x8d, 0xe7, 0x8f, 0xdd, 0x8d, 0xcf, 0xb7, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x94, 0x51, 0x1d,
0x25, 0x03, 0x00, 0x00,
}

View File

@ -0,0 +1,329 @@
// 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
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Instruction set architectures supported by various package managers.
type PackageManager_Architecture int32
const (
// Unknown architecture
PackageManager_ARCHITECTURE_UNSPECIFIED PackageManager_Architecture = 0
// X86 architecture
PackageManager_X86 PackageManager_Architecture = 1
// X64 architecture
PackageManager_X64 PackageManager_Architecture = 2
)
var PackageManager_Architecture_name = map[int32]string{
0: "ARCHITECTURE_UNSPECIFIED",
1: "X86",
2: "X64",
}
var PackageManager_Architecture_value = map[string]int32{
"ARCHITECTURE_UNSPECIFIED": 0,
"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}
}
// PackageManager provides metadata about available / installed packages.
type PackageManager struct {
}
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} }
// 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"`
// 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"`
// 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"`
// A freeform string denoting the maintainer of this package.
Maintainer string `protobuf:"bytes,4,opt,name=maintainer" json:"maintainer,omitempty"`
// The distribution channel-specific homepage for this package.
Url string `protobuf:"bytes,6,opt,name=url" json:"url,omitempty"`
// The distribution channel-specific description of this package.
Description string `protobuf:"bytes,7,opt,name=description" json:"description,omitempty"`
}
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) GetCpeUri() string {
if m != nil {
return m.CpeUri
}
return ""
}
func (m *PackageManager_Distribution) GetArchitecture() PackageManager_Architecture {
if m != nil {
return m.Architecture
}
return PackageManager_ARCHITECTURE_UNSPECIFIED
}
func (m *PackageManager_Distribution) GetLatestVersion() *VulnerabilityType_Version {
if m != nil {
return m.LatestVersion
}
return nil
}
func (m *PackageManager_Distribution) GetMaintainer() string {
if m != nil {
return m.Maintainer
}
return ""
}
func (m *PackageManager_Distribution) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *PackageManager_Distribution) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
// An occurrence of a particular package installation found within a
// system's filesystem.
// e.g. glibc was found in /var/lib/dpkg/status
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"`
// The version installed at this location.
Version *VulnerabilityType_Version `protobuf:"bytes,2,opt,name=version" 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"`
}
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) GetCpeUri() string {
if m != nil {
return m.CpeUri
}
return ""
}
func (m *PackageManager_Location) GetVersion() *VulnerabilityType_Version {
if m != nil {
return m.Version
}
return nil
}
func (m *PackageManager_Location) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
// This represents a particular package that is distributed over
// various channels.
// 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"`
// The various channels by which a package is distributed.
Distribution []*PackageManager_Distribution `protobuf:"bytes,10,rep,name=distribution" json:"distribution,omitempty"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PackageManager_Package) GetDistribution() []*PackageManager_Distribution {
if m != nil {
return m.Distribution
}
return nil
}
// This represents how a particular software package may be installed on
// 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"`
// 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"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PackageManager_Installation) GetLocation() []*PackageManager_Location {
if m != nil {
return m.Location
}
return nil
}
func init() {
proto.RegisterType((*PackageManager)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager")
proto.RegisterType((*PackageManager_Distribution)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Distribution")
proto.RegisterType((*PackageManager_Location)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Location")
proto.RegisterType((*PackageManager_Package)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Package")
proto.RegisterType((*PackageManager_Installation)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Installation")
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture", PackageManager_Architecture_name, PackageManager_Architecture_value)
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto", fileDescriptor0)
}
var fileDescriptor0 = []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,
0x42, 0xf1, 0x22, 0x61, 0x57, 0x59, 0x04, 0x41, 0xe8, 0x76, 0xbb, 0x6b, 0x41, 0xa5, 0xc4, 0x76,
0x11, 0xbd, 0x08, 0xa7, 0xe9, 0x98, 0x0e, 0x3b, 0x9d, 0x09, 0x93, 0x49, 0xa1, 0xd7, 0xde, 0x89,
0x0f, 0xe0, 0xb5, 0x0f, 0xa5, 0xaf, 0x23, 0x99, 0x24, 0x92, 0xb2, 0x2a, 0xbb, 0xac, 0x77, 0x27,
0xf3, 0x85, 0xdf, 0xf9, 0xce, 0x77, 0x66, 0xe0, 0x2c, 0x96, 0x32, 0xe6, 0xd4, 0x5f, 0xd2, 0x8d,
0x96, 0x92, 0xa7, 0x7e, 0x24, 0x85, 0x46, 0x26, 0xa8, 0x42, 0x81, 0x7c, 0x9b, 0xb2, 0xd4, 0xdf,
0x1c, 0x23, 0x4f, 0x56, 0x78, 0xec, 0x2f, 0x18, 0xe7, 0xa1, 0xfc, 0x18, 0xae, 0x51, 0x53, 0xc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 0x86, 0xf4, 0xcd, 0x6e, 0x5c, 0x8e, 0x86, 0x8b, 0xa6, 0xa1, 0x3d, 0xf9, 0x19, 0x00, 0x00,
0xff, 0xff, 0xfa, 0x4f, 0xa4, 0x56, 0xc7, 0x04, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,324 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/image_basis.proto
package containeranalysis
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Instructions from dockerfile
type DockerImage_Layer_Directive int32
const (
// Default value for unsupported/missing directive
DockerImage_Layer_DIRECTIVE_UNSPECIFIED DockerImage_Layer_Directive = 0
// https://docs.docker.com/reference/builder/#maintainer
DockerImage_Layer_MAINTAINER DockerImage_Layer_Directive = 1
// https://docs.docker.com/reference/builder/#run
DockerImage_Layer_RUN DockerImage_Layer_Directive = 2
// https://docs.docker.com/reference/builder/#cmd
DockerImage_Layer_CMD DockerImage_Layer_Directive = 3
// https://docs.docker.com/reference/builder/#label
DockerImage_Layer_LABEL DockerImage_Layer_Directive = 4
// https://docs.docker.com/reference/builder/#expose
DockerImage_Layer_EXPOSE DockerImage_Layer_Directive = 5
// https://docs.docker.com/reference/builder/#env
DockerImage_Layer_ENV DockerImage_Layer_Directive = 6
// https://docs.docker.com/reference/builder/#add
DockerImage_Layer_ADD DockerImage_Layer_Directive = 7
// https://docs.docker.com/reference/builder/#copy
DockerImage_Layer_COPY DockerImage_Layer_Directive = 8
// https://docs.docker.com/reference/builder/#entrypoint
DockerImage_Layer_ENTRYPOINT DockerImage_Layer_Directive = 9
// https://docs.docker.com/reference/builder/#volume
DockerImage_Layer_VOLUME DockerImage_Layer_Directive = 10
// https://docs.docker.com/reference/builder/#user
DockerImage_Layer_USER DockerImage_Layer_Directive = 11
// https://docs.docker.com/reference/builder/#workdir
DockerImage_Layer_WORKDIR DockerImage_Layer_Directive = 12
// https://docs.docker.com/reference/builder/#arg
DockerImage_Layer_ARG DockerImage_Layer_Directive = 13
// https://docs.docker.com/reference/builder/#onbuild
DockerImage_Layer_ONBUILD DockerImage_Layer_Directive = 14
// https://docs.docker.com/reference/builder/#stopsignal
DockerImage_Layer_STOPSIGNAL DockerImage_Layer_Directive = 15
// https://docs.docker.com/reference/builder/#healthcheck
DockerImage_Layer_HEALTHCHECK DockerImage_Layer_Directive = 16
// https://docs.docker.com/reference/builder/#shell
DockerImage_Layer_SHELL DockerImage_Layer_Directive = 17
)
var DockerImage_Layer_Directive_name = map[int32]string{
0: "DIRECTIVE_UNSPECIFIED",
1: "MAINTAINER",
2: "RUN",
3: "CMD",
4: "LABEL",
5: "EXPOSE",
6: "ENV",
7: "ADD",
8: "COPY",
9: "ENTRYPOINT",
10: "VOLUME",
11: "USER",
12: "WORKDIR",
13: "ARG",
14: "ONBUILD",
15: "STOPSIGNAL",
16: "HEALTHCHECK",
17: "SHELL",
}
var DockerImage_Layer_Directive_value = map[string]int32{
"DIRECTIVE_UNSPECIFIED": 0,
"MAINTAINER": 1,
"RUN": 2,
"CMD": 3,
"LABEL": 4,
"EXPOSE": 5,
"ENV": 6,
"ADD": 7,
"COPY": 8,
"ENTRYPOINT": 9,
"VOLUME": 10,
"USER": 11,
"WORKDIR": 12,
"ARG": 13,
"ONBUILD": 14,
"STOPSIGNAL": 15,
"HEALTHCHECK": 16,
"SHELL": 17,
}
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}
}
// DockerImage holds types defining base image notes
// and derived image occurrences.
type DockerImage struct {
}
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} }
// 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"`
// The recovered arguments to the Dockerfile directive.
Arguments string `protobuf:"bytes,2,opt,name=arguments" json:"arguments,omitempty"`
}
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) GetDirective() DockerImage_Layer_Directive {
if m != nil {
return m.Directive
}
return DockerImage_Layer_DIRECTIVE_UNSPECIFIED
}
func (m *DockerImage_Layer) GetArguments() string {
if m != nil {
return m.Arguments
}
return ""
}
// A set of properties that uniquely identify a given Docker image.
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"`
// 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"`
// 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"`
}
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) GetV1Name() string {
if m != nil {
return m.V1Name
}
return ""
}
func (m *DockerImage_Fingerprint) GetV2Blob() []string {
if m != nil {
return m.V2Blob
}
return nil
}
func (m *DockerImage_Fingerprint) GetV2Name() string {
if m != nil {
return m.V2Name
}
return ""
}
// Basis describes the base image portion (Note) of the DockerImage
// relationship. Linked occurrences are derived from this or an
// equivalent image via:
// FROM <Basis.resource_url>
// Or an equivalent reference, e.g. a tag of the resource_url.
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"`
}
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) GetResourceUrl() string {
if m != nil {
return m.ResourceUrl
}
return ""
}
func (m *DockerImage_Basis) GetFingerprint() *DockerImage_Fingerprint {
if m != nil {
return m.Fingerprint
}
return nil
}
// Derived describes the derived image portion (Occurrence) of the
// 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"`
}
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) GetFingerprint() *DockerImage_Fingerprint {
if m != nil {
return m.Fingerprint
}
return nil
}
func (m *DockerImage_Derived) GetDistance() uint32 {
if m != nil {
return m.Distance
}
return 0
}
func (m *DockerImage_Derived) GetLayerInfo() []*DockerImage_Layer {
if m != nil {
return m.LayerInfo
}
return nil
}
func (m *DockerImage_Derived) GetBaseResourceUrl() string {
if m != nil {
return m.BaseResourceUrl
}
return ""
}
func init() {
proto.RegisterType((*DockerImage)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage")
proto.RegisterType((*DockerImage_Layer)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Layer")
proto.RegisterType((*DockerImage_Fingerprint)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Fingerprint")
proto.RegisterType((*DockerImage_Basis)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Basis")
proto.RegisterType((*DockerImage_Derived)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Derived")
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive", DockerImage_Layer_Directive_name, DockerImage_Layer_Directive_value)
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/image_basis.proto", fileDescriptor2)
}
var fileDescriptor2 = []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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 0x3f, 0x47, 0xf6, 0x8c, 0xf7,
0x1f, 0x96, 0x9b, 0x42, 0x19, 0x33, 0x11, 0xda, 0x52, 0x85, 0xb5, 0x90, 0x8b, 0xec, 0x0f, 0x5e,
0xbb, 0x95, 0xd8, 0x3c, 0x4a, 0x1e, 0xf3, 0xad, 0x79, 0xfd, 0x40, 0xfa, 0x96, 0xcb, 0xb7, 0x9d,
0xe6, 0xb8, 0x98, 0xd1, 0x5e, 0xfd, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xc3, 0xd1, 0xf4, 0x9a, 0xb8,
0x04, 0x00, 0x00,
}

View File

@ -0,0 +1,468 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto
package containeranalysis
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Note provider-assigned severity/impact ranking
type VulnerabilityType_Severity int32
const (
// Unknown Impact
VulnerabilityType_SEVERITY_UNSPECIFIED VulnerabilityType_Severity = 0
// Minimal Impact
VulnerabilityType_MINIMAL VulnerabilityType_Severity = 1
// Low Impact
VulnerabilityType_LOW VulnerabilityType_Severity = 2
// Medium Impact
VulnerabilityType_MEDIUM VulnerabilityType_Severity = 3
// High Impact
VulnerabilityType_HIGH VulnerabilityType_Severity = 4
// Critical Impact
VulnerabilityType_CRITICAL VulnerabilityType_Severity = 5
)
var VulnerabilityType_Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "MINIMAL",
2: "LOW",
3: "MEDIUM",
4: "HIGH",
5: "CRITICAL",
}
var VulnerabilityType_Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"MINIMAL": 1,
"LOW": 2,
"MEDIUM": 3,
"HIGH": 4,
"CRITICAL": 5,
}
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}
}
// Whether this is an ordinary package version or a
// sentinel MIN/MAX version.
type VulnerabilityType_Version_VersionKind int32
const (
// A standard package version, defined by the other fields.
VulnerabilityType_Version_NORMAL VulnerabilityType_Version_VersionKind = 0
// A special version representing negative infinity,
// other fields are ignored.
VulnerabilityType_Version_MINIMUM VulnerabilityType_Version_VersionKind = 1
// A special version representing positive infinity,
// other fields are ignored.
VulnerabilityType_Version_MAXIMUM VulnerabilityType_Version_VersionKind = 2
)
var VulnerabilityType_Version_VersionKind_name = map[int32]string{
0: "NORMAL",
1: "MINIMUM",
2: "MAXIMUM",
}
var VulnerabilityType_Version_VersionKind_value = map[string]int32{
"NORMAL": 0,
"MINIMUM": 1,
"MAXIMUM": 2,
}
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}
}
// 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"`
// 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"`
// 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"`
}
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) GetCvssScore() float32 {
if m != nil {
return m.CvssScore
}
return 0
}
func (m *VulnerabilityType) GetSeverity() VulnerabilityType_Severity {
if m != nil {
return m.Severity
}
return VulnerabilityType_SEVERITY_UNSPECIFIED
}
func (m *VulnerabilityType) GetDetails() []*VulnerabilityType_Detail {
if m != nil {
return m.Details
}
return nil
}
// Version contains structured information about the version of the package.
// For a discussion of this in Debian/Ubuntu:
// http://serverfault.com/questions/604541/debian-packages-version-convention
// For a discussion of this in Redhat/Fedora/Centos:
// 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"`
// The main part of the version name.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
// The iteration of the package build from the above version.
Revision string `protobuf:"bytes,3,opt,name=revision" 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"`
}
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) GetEpoch() int32 {
if m != nil {
return m.Epoch
}
return 0
}
func (m *VulnerabilityType_Version) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *VulnerabilityType_Version) GetRevision() string {
if m != nil {
return m.Revision
}
return ""
}
func (m *VulnerabilityType_Version) GetKind() VulnerabilityType_Version_VersionKind {
if m != nil {
return m.Kind
}
return VulnerabilityType_Version_NORMAL
}
// Identifies all occurrences of this vulnerability in the package for a
// specific distro/location
// For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
type VulnerabilityType_Detail struct {
// The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
// 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"`
// 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"`
// 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"`
// 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"`
// The severity (eg: distro assigned severity) for this vulnerability.
SeverityName string `protobuf:"bytes,4,opt,name=severity_name,json=severityName" json:"severity_name,omitempty"`
// A vendor-specific description of this note.
Description string `protobuf:"bytes,9,opt,name=description" 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"`
// 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"`
}
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) GetCpeUri() string {
if m != nil {
return m.CpeUri
}
return ""
}
func (m *VulnerabilityType_Detail) GetPackage() string {
if m != nil {
return m.Package
}
return ""
}
func (m *VulnerabilityType_Detail) GetMinAffectedVersion() *VulnerabilityType_Version {
if m != nil {
return m.MinAffectedVersion
}
return nil
}
func (m *VulnerabilityType_Detail) GetMaxAffectedVersion() *VulnerabilityType_Version {
if m != nil {
return m.MaxAffectedVersion
}
return nil
}
func (m *VulnerabilityType_Detail) GetSeverityName() string {
if m != nil {
return m.SeverityName
}
return ""
}
func (m *VulnerabilityType_Detail) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *VulnerabilityType_Detail) GetFixedLocation() *VulnerabilityType_VulnerabilityLocation {
if m != nil {
return m.FixedLocation
}
return nil
}
func (m *VulnerabilityType_Detail) GetPackageType() string {
if m != nil {
return m.PackageType
}
return ""
}
// 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"`
// 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"`
// 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"`
// 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"`
}
func (m *VulnerabilityType_VulnerabilityDetails) Reset() {
*m = VulnerabilityType_VulnerabilityDetails{}
}
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}
}
func (m *VulnerabilityType_VulnerabilityDetails) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *VulnerabilityType_VulnerabilityDetails) GetSeverity() VulnerabilityType_Severity {
if m != nil {
return m.Severity
}
return VulnerabilityType_SEVERITY_UNSPECIFIED
}
func (m *VulnerabilityType_VulnerabilityDetails) GetCvssScore() float32 {
if m != nil {
return m.CvssScore
}
return 0
}
func (m *VulnerabilityType_VulnerabilityDetails) GetPackageIssue() []*VulnerabilityType_PackageIssue {
if m != nil {
return m.PackageIssue
}
return nil
}
// This message wraps a location affected by a vulnerability and its
// 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"`
// The location of the available fix for vulnerability.
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,2,opt,name=fixed_location,json=fixedLocation" 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"`
}
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}
}
func (m *VulnerabilityType_PackageIssue) GetAffectedLocation() *VulnerabilityType_VulnerabilityLocation {
if m != nil {
return m.AffectedLocation
}
return nil
}
func (m *VulnerabilityType_PackageIssue) GetFixedLocation() *VulnerabilityType_VulnerabilityLocation {
if m != nil {
return m.FixedLocation
}
return nil
}
func (m *VulnerabilityType_PackageIssue) GetSeverityName() string {
if m != nil {
return m.SeverityName
}
return ""
}
// The location of the vulnerability
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"`
// The package being described.
Package string `protobuf:"bytes,2,opt,name=package" 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"`
}
func (m *VulnerabilityType_VulnerabilityLocation) Reset() {
*m = VulnerabilityType_VulnerabilityLocation{}
}
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}
}
func (m *VulnerabilityType_VulnerabilityLocation) GetCpeUri() string {
if m != nil {
return m.CpeUri
}
return ""
}
func (m *VulnerabilityType_VulnerabilityLocation) GetPackage() string {
if m != nil {
return m.Package
}
return ""
}
func (m *VulnerabilityType_VulnerabilityLocation) GetVersion() *VulnerabilityType_Version {
if m != nil {
return m.Version
}
return nil
}
func init() {
proto.RegisterType((*VulnerabilityType)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType")
proto.RegisterType((*VulnerabilityType_Version)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.Version")
proto.RegisterType((*VulnerabilityType_Detail)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.Detail")
proto.RegisterType((*VulnerabilityType_VulnerabilityDetails)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.VulnerabilityDetails")
proto.RegisterType((*VulnerabilityType_PackageIssue)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.PackageIssue")
proto.RegisterType((*VulnerabilityType_VulnerabilityLocation)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.VulnerabilityLocation")
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity", VulnerabilityType_Severity_name, VulnerabilityType_Severity_value)
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind", VulnerabilityType_Version_VersionKind_name, VulnerabilityType_Version_VersionKind_value)
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto", fileDescriptor3)
}
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, 0x86, 0xbd, 0x31, 0x63,
0x63, 0x97, 0xd4, 0x47, 0x64, 0x1a, 0x31, 0xe6, 0x86, 0x75, 0x87, 0x79, 0x11, 0xa6, 0x1e, 0x09,
0xb0, 0x87, 0xdd, 0x59, 0x48, 0xc3, 0xfa, 0x74, 0x07, 0xbb, 0xfe, 0x05, 0xde, 0xa9, 0xfb, 0xd8,
0xb9, 0xc4, 0x63, 0x62, 0x4f, 0xaf, 0xdc, 0x38, 0x7e, 0x46, 0x5d, 0x1a, 0xcd, 0x0c, 0x3f, 0x60,
0x11, 0x43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xbe, 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,
}

View File

@ -0,0 +1,797 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/provenance.proto
package containeranalysis
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/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Specifies the hash algorithm, if any.
type Hash_HashType int32
const (
// No hash requested.
Hash_NONE Hash_HashType = 0
// A sha256 hash.
Hash_SHA256 Hash_HashType = 1
)
var Hash_HashType_name = map[int32]string{
0: "NONE",
1: "SHA256",
}
var Hash_HashType_value = map[string]int32{
"NONE": 0,
"SHA256": 1,
}
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} }
// 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 of the project.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
// Commands requested by the build.
Commands []*Command `protobuf:"bytes,5,rep,name=commands" json:"commands,omitempty"`
// Output of the build.
BuiltArtifacts []*Artifact `protobuf:"bytes,6,rep,name=built_artifacts,json=builtArtifacts" 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"`
// 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"`
// 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"`
// 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"`
// Google Cloud Storage bucket where logs were written.
LogsBucket string `protobuf:"bytes,13,opt,name=logs_bucket,json=logsBucket" 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"`
// 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"`
// 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"`
// 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"`
}
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) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *BuildProvenance) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *BuildProvenance) GetCommands() []*Command {
if m != nil {
return m.Commands
}
return nil
}
func (m *BuildProvenance) GetBuiltArtifacts() []*Artifact {
if m != nil {
return m.BuiltArtifacts
}
return nil
}
func (m *BuildProvenance) GetCreateTime() *google_protobuf1.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *BuildProvenance) GetStartTime() *google_protobuf1.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *BuildProvenance) GetFinishTime() *google_protobuf1.Timestamp {
if m != nil {
return m.FinishTime
}
return nil
}
func (m *BuildProvenance) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *BuildProvenance) GetLogsBucket() string {
if m != nil {
return m.LogsBucket
}
return ""
}
func (m *BuildProvenance) GetSourceProvenance() *Source {
if m != nil {
return m.SourceProvenance
}
return nil
}
func (m *BuildProvenance) GetTriggerId() string {
if m != nil {
return m.TriggerId
}
return ""
}
func (m *BuildProvenance) GetBuildOptions() map[string]string {
if m != nil {
return m.BuildOptions
}
return nil
}
func (m *BuildProvenance) GetBuilderVersion() string {
if m != nil {
return m.BuilderVersion
}
return ""
}
// Source describes the location of the source used for the build.
type Source struct {
// Source location information.
//
// Types that are valid to be assigned to Source:
// *Source_StorageSource
// *Source_RepoSource
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"`
// Hash(es) of the build source, which can be used to verify that the original
// source integrity was maintained in the build.
//
// The keys to this map are file paths used as build source and the values
// contain the hash values for those files.
//
// 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"`
// If provided, the source code used for the build came from this location.
Context *SourceContext `protobuf:"bytes,7,opt,name=context" 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"`
}
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} }
type isSource_Source interface {
isSource_Source()
}
type Source_StorageSource struct {
StorageSource *StorageSource `protobuf:"bytes,1,opt,name=storage_source,json=storageSource,oneof"`
}
type Source_RepoSource struct {
RepoSource *RepoSource `protobuf:"bytes,2,opt,name=repo_source,json=repoSource,oneof"`
}
func (*Source_StorageSource) isSource_Source() {}
func (*Source_RepoSource) isSource_Source() {}
func (m *Source) GetSource() isSource_Source {
if m != nil {
return m.Source
}
return nil
}
func (m *Source) GetStorageSource() *StorageSource {
if x, ok := m.GetSource().(*Source_StorageSource); ok {
return x.StorageSource
}
return nil
}
func (m *Source) GetRepoSource() *RepoSource {
if x, ok := m.GetSource().(*Source_RepoSource); ok {
return x.RepoSource
}
return nil
}
func (m *Source) GetArtifactStorageSource() *StorageSource {
if m != nil {
return m.ArtifactStorageSource
}
return nil
}
func (m *Source) GetFileHashes() map[string]*FileHashes {
if m != nil {
return m.FileHashes
}
return nil
}
func (m *Source) GetContext() *SourceContext {
if m != nil {
return m.Context
}
return nil
}
func (m *Source) GetAdditionalContexts() []*SourceContext {
if m != nil {
return m.AdditionalContexts
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Source) 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 _Source_OneofMarshaler, _Source_OneofUnmarshaler, _Source_OneofSizer, []interface{}{
(*Source_StorageSource)(nil),
(*Source_RepoSource)(nil),
}
}
func _Source_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Source)
// source
switch x := m.Source.(type) {
case *Source_StorageSource:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.StorageSource); err != nil {
return err
}
case *Source_RepoSource:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.RepoSource); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Source.Source has unexpected type %T", x)
}
return nil
}
func _Source_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Source)
switch tag {
case 1: // source.storage_source
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(StorageSource)
err := b.DecodeMessage(msg)
m.Source = &Source_StorageSource{msg}
return true, err
case 2: // source.repo_source
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(RepoSource)
err := b.DecodeMessage(msg)
m.Source = &Source_RepoSource{msg}
return true, err
default:
return false, nil
}
}
func _Source_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Source)
// source
switch x := m.Source.(type) {
case *Source_StorageSource:
s := proto.Size(x.StorageSource)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Source_RepoSource:
s := proto.Size(x.RepoSource)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Container message for hashes of byte content of files, used in Source
// 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"`
}
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) GetFileHash() []*Hash {
if m != nil {
return m.FileHash
}
return nil
}
// 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"`
// The hash value.
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
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) GetType() Hash_HashType {
if m != nil {
return m.Type
}
return Hash_NONE
}
func (m *Hash) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
// StorageSource describes the location of the source in an archive file in
// Google Cloud Storage.
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"`
// Google Cloud Storage object containing source.
Object string `protobuf:"bytes,2,opt,name=object" json:"object,omitempty"`
// Google Cloud Storage generation for the object.
Generation int64 `protobuf:"varint,3,opt,name=generation" json:"generation,omitempty"`
}
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) GetBucket() string {
if m != nil {
return m.Bucket
}
return ""
}
func (m *StorageSource) GetObject() string {
if m != nil {
return m.Object
}
return ""
}
func (m *StorageSource) GetGeneration() int64 {
if m != nil {
return m.Generation
}
return 0
}
// RepoSource describes the location of the source in a Google Cloud Source
// 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"`
// Name of the repo.
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName" json:"repo_name,omitempty"`
// A revision within the source repository must be specified in
// one of these ways.
//
// Types that are valid to be assigned to Revision:
// *RepoSource_BranchName
// *RepoSource_TagName
// *RepoSource_CommitSha
Revision isRepoSource_Revision `protobuf_oneof:"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 fileDescriptor4, []int{5} }
type isRepoSource_Revision interface {
isRepoSource_Revision()
}
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
}
func (m *RepoSource) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *RepoSource) GetRepoName() string {
if m != nil {
return m.RepoName
}
return ""
}
func (m *RepoSource) GetBranchName() string {
if x, ok := m.GetRevision().(*RepoSource_BranchName); ok {
return x.BranchName
}
return ""
}
func (m *RepoSource) GetTagName() string {
if x, ok := m.GetRevision().(*RepoSource_TagName); ok {
return x.TagName
}
return ""
}
func (m *RepoSource) GetCommitSha() string {
if x, ok := m.GetRevision().(*RepoSource_CommitSha); ok {
return x.CommitSha
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*RepoSource) 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 _RepoSource_OneofMarshaler, _RepoSource_OneofUnmarshaler, _RepoSource_OneofSizer, []interface{}{
(*RepoSource_BranchName)(nil),
(*RepoSource_TagName)(nil),
(*RepoSource_CommitSha)(nil),
}
}
func _RepoSource_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*RepoSource)
// revision
switch x := m.Revision.(type) {
case *RepoSource_BranchName:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeStringBytes(x.BranchName)
case *RepoSource_TagName:
b.EncodeVarint(4<<3 | proto.WireBytes)
b.EncodeStringBytes(x.TagName)
case *RepoSource_CommitSha:
b.EncodeVarint(5<<3 | proto.WireBytes)
b.EncodeStringBytes(x.CommitSha)
case nil:
default:
return fmt.Errorf("RepoSource.Revision has unexpected type %T", x)
}
return nil
}
func _RepoSource_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*RepoSource)
switch tag {
case 3: // revision.branch_name
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Revision = &RepoSource_BranchName{x}
return true, err
case 4: // revision.tag_name
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Revision = &RepoSource_TagName{x}
return true, err
case 5: // revision.commit_sha
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Revision = &RepoSource_CommitSha{x}
return true, err
default:
return false, nil
}
}
func _RepoSource_OneofSizer(msg proto.Message) (n int) {
m := msg.(*RepoSource)
// revision
switch x := m.Revision.(type) {
case *RepoSource_BranchName:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.BranchName)))
n += len(x.BranchName)
case *RepoSource_TagName:
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.TagName)))
n += len(x.TagName)
case *RepoSource_CommitSha:
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.CommitSha)))
n += len(x.CommitSha)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Command describes a step performed as part of the build pipeline.
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"`
// Environment variables set before running this Command.
Env []string `protobuf:"bytes,2,rep,name=env" json:"env,omitempty"`
// Command-line arguments used when executing this Command.
Args []string `protobuf:"bytes,3,rep,name=args" 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"`
// 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"`
// 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"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Command) GetEnv() []string {
if m != nil {
return m.Env
}
return nil
}
func (m *Command) GetArgs() []string {
if m != nil {
return m.Args
}
return nil
}
func (m *Command) GetDir() string {
if m != nil {
return m.Dir
}
return ""
}
func (m *Command) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Command) GetWaitFor() []string {
if m != nil {
return m.WaitFor
}
return nil
}
// Artifact describes a build product.
type Artifact struct {
// Name of the artifact. 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`.
//
// This field is deprecated in favor of the plural `names` field; it continues
// 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"`
// 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"`
// 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"`
// 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"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Artifact) GetChecksum() string {
if m != nil {
return m.Checksum
}
return ""
}
func (m *Artifact) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Artifact) GetNames() []string {
if m != nil {
return m.Names
}
return nil
}
func init() {
proto.RegisterType((*BuildProvenance)(nil), "google.devtools.containeranalysis.v1alpha1.BuildProvenance")
proto.RegisterType((*Source)(nil), "google.devtools.containeranalysis.v1alpha1.Source")
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")
proto.RegisterType((*RepoSource)(nil), "google.devtools.containeranalysis.v1alpha1.RepoSource")
proto.RegisterType((*Command)(nil), "google.devtools.containeranalysis.v1alpha1.Command")
proto.RegisterType((*Artifact)(nil), "google.devtools.containeranalysis.v1alpha1.Artifact")
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.Hash_HashType", Hash_HashType_name, Hash_HashType_value)
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/provenance.proto", fileDescriptor4)
}
var fileDescriptor4 = []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,
0x2e, 0x6c, 0x9a, 0x42, 0x45, 0xc8, 0x45, 0x15, 0x47, 0x2d, 0xa9, 0x44, 0x92, 0x6a, 0x53, 0x21,
0x41, 0x85, 0x96, 0xf1, 0xee, 0x78, 0x3d, 0xcd, 0x7a, 0x67, 0x99, 0x19, 0x1b, 0x7c, 0xc7, 0x03,
0xc0, 0x4b, 0xf0, 0x0e, 0xdc, 0xf2, 0x2e, 0xbc, 0x09, 0x9a, 0x9f, 0xb5, 0x1d, 0xa7, 0x55, 0xbb,
0xea, 0xcd, 0x6a, 0xce, 0x37, 0xe7, 0x7c, 0x67, 0xe6, 0xcc, 0x77, 0x66, 0x16, 0x8e, 0x12, 0xc6,
0x92, 0x94, 0x0c, 0x62, 0x32, 0x97, 0x8c, 0xa5, 0x62, 0x10, 0xb1, 0x4c, 0x62, 0x9a, 0x11, 0x8e,
0x33, 0x9c, 0x2e, 0x04, 0x15, 0x83, 0xf9, 0x7d, 0x9c, 0xe6, 0x13, 0x7c, 0x7f, 0x90, 0x73, 0x36,
0x27, 0x19, 0xce, 0x22, 0xd2, 0xcf, 0x39, 0x93, 0x0c, 0x7d, 0x61, 0x82, 0xfb, 0x45, 0x70, 0xff,
0x46, 0x70, 0xbf, 0x08, 0xee, 0x7c, 0x6c, 0x13, 0xe1, 0x9c, 0x0e, 0x70, 0x96, 0x31, 0x89, 0x25,
0x65, 0x99, 0x30, 0x4c, 0x9d, 0x47, 0x25, 0x96, 0x21, 0xd8, 0x8c, 0x47, 0x24, 0x54, 0x1e, 0xe4,
0x77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 0xbd, 0xa0, 0xa9, 0xec, 0x27, 0x8c, 0xf7, 0x7e, 0x01, 0xb7,
0x78, 0xc7, 0x5f, 0xb9, 0x84, 0x0e, 0xb8, 0xd1, 0x84, 0x44, 0x57, 0x62, 0x36, 0x2d, 0x6a, 0x55,
0xd8, 0x36, 0x4d, 0x75, 0x99, 0xe6, 0x0e, 0xd4, 0x55, 0x8c, 0xf0, 0x6b, 0x3a, 0x87, 0x31, 0x86,
0x7f, 0x3a, 0xf0, 0x59, 0xc4, 0xa6, 0x85, 0xf8, 0x5e, 0xaf, 0xb9, 0x67, 0xce, 0x4f, 0x2f, 0xac,
0x53, 0xc2, 0x52, 0x9c, 0x25, 0x7d, 0xc6, 0x93, 0x41, 0x42, 0x32, 0xfd, 0x90, 0x0f, 0xcc, 0x14,
0xce, 0xa9, 0x78, 0x9b, 0x9f, 0xb7, 0xa3, 0x1b, 0x53, 0x7f, 0x57, 0xaa, 0xdf, 0x9d, 0x1c, 0x8f,
0x1a, 0x9a, 0xed, 0xc1, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x91, 0xec, 0x1b, 0x85, 0x90, 0x0a,
0x00, 0x00,
}

View File

@ -0,0 +1,751 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/source_context.proto
package containeranalysis
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// The type of an alias.
type AliasContext_Kind int32
const (
// Unknown.
AliasContext_KIND_UNSPECIFIED AliasContext_Kind = 0
// Git tag.
AliasContext_FIXED AliasContext_Kind = 1
// Git branch.
AliasContext_MOVABLE AliasContext_Kind = 2
// Used to specify non-standard aliases. For example, if a Git repo has a
// ref named "refs/foo/bar".
AliasContext_OTHER AliasContext_Kind = 4
)
var AliasContext_Kind_name = map[int32]string{
0: "KIND_UNSPECIFIED",
1: "FIXED",
2: "MOVABLE",
4: "OTHER",
}
var AliasContext_Kind_value = map[string]int32{
"KIND_UNSPECIFIED": 0,
"FIXED": 1,
"MOVABLE": 2,
"OTHER": 4,
}
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} }
// 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.
type SourceContext struct {
// A SourceContext can refer any one of the following types of repositories.
//
// Types that are valid to be assigned to Context:
// *SourceContext_CloudRepo
// *SourceContext_Gerrit
// *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"`
}
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} }
type isSourceContext_Context interface {
isSourceContext_Context()
}
type SourceContext_CloudRepo struct {
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,oneof"`
}
type SourceContext_Gerrit struct {
Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,oneof"`
}
type SourceContext_Git struct {
Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,oneof"`
}
func (*SourceContext_CloudRepo) isSourceContext_Context() {}
func (*SourceContext_Gerrit) isSourceContext_Context() {}
func (*SourceContext_Git) isSourceContext_Context() {}
func (m *SourceContext) GetContext() isSourceContext_Context {
if m != nil {
return m.Context
}
return nil
}
func (m *SourceContext) GetCloudRepo() *CloudRepoSourceContext {
if x, ok := m.GetContext().(*SourceContext_CloudRepo); ok {
return x.CloudRepo
}
return nil
}
func (m *SourceContext) GetGerrit() *GerritSourceContext {
if x, ok := m.GetContext().(*SourceContext_Gerrit); ok {
return x.Gerrit
}
return nil
}
func (m *SourceContext) GetGit() *GitSourceContext {
if x, ok := m.GetContext().(*SourceContext_Git); ok {
return x.Git
}
return nil
}
func (m *SourceContext) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*SourceContext) 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 _SourceContext_OneofMarshaler, _SourceContext_OneofUnmarshaler, _SourceContext_OneofSizer, []interface{}{
(*SourceContext_CloudRepo)(nil),
(*SourceContext_Gerrit)(nil),
(*SourceContext_Git)(nil),
}
}
func _SourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*SourceContext)
// context
switch x := m.Context.(type) {
case *SourceContext_CloudRepo:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.CloudRepo); err != nil {
return err
}
case *SourceContext_Gerrit:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Gerrit); err != nil {
return err
}
case *SourceContext_Git:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Git); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("SourceContext.Context has unexpected type %T", x)
}
return nil
}
func _SourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*SourceContext)
switch tag {
case 1: // context.cloud_repo
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CloudRepoSourceContext)
err := b.DecodeMessage(msg)
m.Context = &SourceContext_CloudRepo{msg}
return true, err
case 2: // context.gerrit
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GerritSourceContext)
err := b.DecodeMessage(msg)
m.Context = &SourceContext_Gerrit{msg}
return true, err
case 3: // context.git
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GitSourceContext)
err := b.DecodeMessage(msg)
m.Context = &SourceContext_Git{msg}
return true, err
default:
return false, nil
}
}
func _SourceContext_OneofSizer(msg proto.Message) (n int) {
m := msg.(*SourceContext)
// context
switch x := m.Context.(type) {
case *SourceContext_CloudRepo:
s := proto.Size(x.CloudRepo)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Gerrit:
s := proto.Size(x.Gerrit)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Git:
s := proto.Size(x.Git)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// 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"`
// The alias name.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}
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) GetKind() AliasContext_Kind {
if m != nil {
return m.Kind
}
return AliasContext_KIND_UNSPECIFIED
}
func (m *AliasContext) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// A CloudRepoSourceContext denotes a particular revision in a Google Cloud
// 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"`
// 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"`
}
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} }
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"`
}
func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {}
func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision {
if m != nil {
return m.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
}
return ""
}
func (m *CloudRepoSourceContext) GetAliasContext() *AliasContext {
if x, ok := m.GetRevision().(*CloudRepoSourceContext_AliasContext); ok {
return x.AliasContext
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*CloudRepoSourceContext) 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 _CloudRepoSourceContext_OneofMarshaler, _CloudRepoSourceContext_OneofUnmarshaler, _CloudRepoSourceContext_OneofSizer, []interface{}{
(*CloudRepoSourceContext_RevisionId)(nil),
(*CloudRepoSourceContext_AliasContext)(nil),
}
}
func _CloudRepoSourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*CloudRepoSourceContext)
// revision
switch x := m.Revision.(type) {
case *CloudRepoSourceContext_RevisionId:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeStringBytes(x.RevisionId)
case *CloudRepoSourceContext_AliasContext:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.AliasContext); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("CloudRepoSourceContext.Revision has unexpected type %T", x)
}
return nil
}
func _CloudRepoSourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*CloudRepoSourceContext)
switch tag {
case 2: // revision.revision_id
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Revision = &CloudRepoSourceContext_RevisionId{x}
return true, err
case 3: // revision.alias_context
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(AliasContext)
err := b.DecodeMessage(msg)
m.Revision = &CloudRepoSourceContext_AliasContext{msg}
return true, err
default:
return false, nil
}
}
func _CloudRepoSourceContext_OneofSizer(msg proto.Message) (n int) {
m := msg.(*CloudRepoSourceContext)
// revision
switch x := m.Revision.(type) {
case *CloudRepoSourceContext_RevisionId:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
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 += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// 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"`
// 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"`
// 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"`
}
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()
}
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
}
func (m *GerritSourceContext) GetHostUri() string {
if m != nil {
return m.HostUri
}
return ""
}
func (m *GerritSourceContext) GetGerritProject() string {
if m != nil {
return m.GerritProject
}
return ""
}
func (m *GerritSourceContext) GetRevisionId() string {
if x, ok := m.GetRevision().(*GerritSourceContext_RevisionId); ok {
return x.RevisionId
}
return ""
}
func (m *GerritSourceContext) GetAliasContext() *AliasContext {
if x, ok := m.GetRevision().(*GerritSourceContext_AliasContext); ok {
return x.AliasContext
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*GerritSourceContext) 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 _GerritSourceContext_OneofMarshaler, _GerritSourceContext_OneofUnmarshaler, _GerritSourceContext_OneofSizer, []interface{}{
(*GerritSourceContext_RevisionId)(nil),
(*GerritSourceContext_AliasContext)(nil),
}
}
func _GerritSourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*GerritSourceContext)
// revision
switch x := m.Revision.(type) {
case *GerritSourceContext_RevisionId:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeStringBytes(x.RevisionId)
case *GerritSourceContext_AliasContext:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.AliasContext); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("GerritSourceContext.Revision has unexpected type %T", x)
}
return nil
}
func _GerritSourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*GerritSourceContext)
switch tag {
case 3: // revision.revision_id
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Revision = &GerritSourceContext_RevisionId{x}
return true, err
case 4: // revision.alias_context
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(AliasContext)
err := b.DecodeMessage(msg)
m.Revision = &GerritSourceContext_AliasContext{msg}
return true, err
default:
return false, nil
}
}
func _GerritSourceContext_OneofSizer(msg proto.Message) (n int) {
m := msg.(*GerritSourceContext)
// revision
switch x := m.Revision.(type) {
case *GerritSourceContext_RevisionId:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
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 += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// A GitSourceContext denotes a particular revision in a third party Git
// repository (e.g., GitHub).
type GitSourceContext struct {
// Git repository URL.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
// Required.
// Git commit hash.
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId" json:"revision_id,omitempty"`
}
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) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *GitSourceContext) GetRevisionId() string {
if m != nil {
return m.RevisionId
}
return ""
}
// A unique identifier for a Cloud Repo.
type RepoId struct {
// A cloud repo can be identified by either its project ID and repository name
// combination, or its globally unique identifier.
//
// Types that are valid to be assigned to Id:
// *RepoId_ProjectRepoId
// *RepoId_Uid
Id isRepoId_Id `protobuf_oneof:"id"`
}
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} }
type isRepoId_Id interface {
isRepoId_Id()
}
type RepoId_ProjectRepoId struct {
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,oneof"`
}
type RepoId_Uid struct {
Uid string `protobuf:"bytes,2,opt,name=uid,oneof"`
}
func (*RepoId_ProjectRepoId) isRepoId_Id() {}
func (*RepoId_Uid) isRepoId_Id() {}
func (m *RepoId) GetId() isRepoId_Id {
if m != nil {
return m.Id
}
return nil
}
func (m *RepoId) GetProjectRepoId() *ProjectRepoId {
if x, ok := m.GetId().(*RepoId_ProjectRepoId); ok {
return x.ProjectRepoId
}
return nil
}
func (m *RepoId) GetUid() string {
if x, ok := m.GetId().(*RepoId_Uid); ok {
return x.Uid
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*RepoId) 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 _RepoId_OneofMarshaler, _RepoId_OneofUnmarshaler, _RepoId_OneofSizer, []interface{}{
(*RepoId_ProjectRepoId)(nil),
(*RepoId_Uid)(nil),
}
}
func _RepoId_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*RepoId)
// id
switch x := m.Id.(type) {
case *RepoId_ProjectRepoId:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ProjectRepoId); err != nil {
return err
}
case *RepoId_Uid:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeStringBytes(x.Uid)
case nil:
default:
return fmt.Errorf("RepoId.Id has unexpected type %T", x)
}
return nil
}
func _RepoId_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*RepoId)
switch tag {
case 1: // id.project_repo_id
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ProjectRepoId)
err := b.DecodeMessage(msg)
m.Id = &RepoId_ProjectRepoId{msg}
return true, err
case 2: // id.uid
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Id = &RepoId_Uid{x}
return true, err
default:
return false, nil
}
}
func _RepoId_OneofSizer(msg proto.Message) (n int) {
m := msg.(*RepoId)
// id
switch x := m.Id.(type) {
case *RepoId_ProjectRepoId:
s := proto.Size(x.ProjectRepoId)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *RepoId_Uid:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.Uid)))
n += len(x.Uid)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Selects a repo using a Google Cloud Platform project ID (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"`
// 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"`
}
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) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *ProjectRepoId) GetRepoName() string {
if m != nil {
return m.RepoName
}
return ""
}
func init() {
proto.RegisterType((*SourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.SourceContext")
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")
proto.RegisterType((*GitSourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.GitSourceContext")
proto.RegisterType((*RepoId)(nil), "google.devtools.containeranalysis.v1alpha1.RepoId")
proto.RegisterType((*ProjectRepoId)(nil), "google.devtools.containeranalysis.v1alpha1.ProjectRepoId")
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value)
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/source_context.proto", fileDescriptor5)
}
var fileDescriptor5 = []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,
0x4b, 0x48, 0xa8, 0x0f, 0xb6, 0x48, 0x5f, 0xa0, 0x1f, 0x42, 0x24, 0x18, 0x62, 0x85, 0x42, 0x6a,
0x4a, 0xd5, 0x0f, 0x55, 0xd6, 0x60, 0x8f, 0xcc, 0x14, 0xe3, 0xb1, 0xc6, 0x76, 0x54, 0x56, 0xd0,
0x97, 0xae, 0xa2, 0x8b, 0xe8, 0x12, 0xba, 0x95, 0xae, 0xa0, 0xef, 0xd5, 0x8c, 0x6d, 0xc9, 0x01,
0x2a, 0x91, 0x4a, 0x7d, 0xca, 0xcc, 0x99, 0x99, 0xdf, 0xf9, 0x9f, 0x33, 0xff, 0x89, 0x61, 0x27,
0x60, 0x2c, 0x08, 0x89, 0xe9, 0x93, 0x69, 0xca, 0x58, 0x98, 0x98, 0x1e, 0x8b, 0x52, 0x4c, 0x23,
0xc2, 0x71, 0x84, 0xc3, 0xab, 0x84, 0x26, 0xe6, 0x74, 0x13, 0x87, 0xf1, 0x39, 0xde, 0x34, 0x13,
0x96, 0x71, 0x8f, 0xb8, 0x62, 0x07, 0xf9, 0x98, 0x1a, 0x31, 0x67, 0x29, 0x43, 0x0f, 0x73, 0x80,
0x51, 0x02, 0x8c, 0x1b, 0x00, 0xa3, 0x04, 0xac, 0xfe, 0x5f, 0x24, 0xc3, 0x31, 0x35, 0x71, 0x14,
0xb1, 0x14, 0xa7, 0x94, 0x45, 0x49, 0x4e, 0xd2, 0xbf, 0xa9, 0xd0, 0x39, 0x91, 0x29, 0x86, 0x79,
0x06, 0xe4, 0x01, 0x78, 0x21, 0xcb, 0x7c, 0x97, 0x93, 0x98, 0xf5, 0x94, 0x35, 0x65, 0xa3, 0xdd,
0x1f, 0x18, 0x77, 0x4f, 0x68, 0x0c, 0xc5, 0x69, 0x87, 0xc4, 0x6c, 0x86, 0x3b, 0xaa, 0x39, 0x9a,
0x57, 0xae, 0xa0, 0x37, 0xd0, 0x0c, 0x08, 0xe7, 0x34, 0xed, 0xd5, 0x65, 0x82, 0x9d, 0x79, 0x12,
0x1c, 0xc8, 0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 0x11, 0xdb, 0x47, 0xff, 0x81, 0x26, 0x65, 0x56, 0x1e, 0xcf, 0xa2, 0x08, 0x1c, 0xe1,
0x4b, 0x32, 0xf8, 0xac, 0xc0, 0xba, 0xc7, 0x2e, 0x4b, 0xe1, 0xbf, 0xd6, 0x3b, 0x51, 0xde, 0xbe,
0x2b, 0x36, 0x05, 0x2c, 0xc4, 0x51, 0x60, 0x30, 0x1e, 0x98, 0x01, 0x89, 0xe4, 0x3f, 0xb9, 0x99,
0x2f, 0xe1, 0x98, 0x26, 0x77, 0xf9, 0xae, 0x3c, 0xb9, 0xb1, 0xf4, 0xa5, 0xae, 0x1e, 0x0c, 0x77,
0xcf, 0x9a, 0x92, 0xf6, 0xe8, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xcf, 0x59, 0x43, 0xa4,
0x06, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,945 @@
// 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
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The type of an Alias.
type AliasContext_Kind int32
const (
// Do not use.
AliasContext_ANY AliasContext_Kind = 0
// Git tag
AliasContext_FIXED AliasContext_Kind = 1
// Git branch
AliasContext_MOVABLE AliasContext_Kind = 2
// OTHER is used to specify non-standard aliases, those not of the kinds
// above. For example, if a Git repo has a ref named "refs/foo/bar", it
// is considered to be of kind OTHER.
AliasContext_OTHER AliasContext_Kind = 4
)
var AliasContext_Kind_name = map[int32]string{
0: "ANY",
1: "FIXED",
2: "MOVABLE",
4: "OTHER",
}
var AliasContext_Kind_value = map[string]int32{
"ANY": 0,
"FIXED": 1,
"MOVABLE": 2,
"OTHER": 4,
}
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} }
// 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.
type SourceContext struct {
// A SourceContext can refer any one of the following types of repositories.
//
// Types that are valid to be assigned to Context:
// *SourceContext_CloudRepo
// *SourceContext_CloudWorkspace
// *SourceContext_Gerrit
// *SourceContext_Git
Context isSourceContext_Context `protobuf_oneof:"context"`
}
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} }
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"`
}
func (*SourceContext_CloudRepo) isSourceContext_Context() {}
func (*SourceContext_CloudWorkspace) isSourceContext_Context() {}
func (*SourceContext_Gerrit) isSourceContext_Context() {}
func (*SourceContext_Git) isSourceContext_Context() {}
func (m *SourceContext) GetContext() isSourceContext_Context {
if m != nil {
return m.Context
}
return nil
}
func (m *SourceContext) GetCloudRepo() *CloudRepoSourceContext {
if x, ok := m.GetContext().(*SourceContext_CloudRepo); ok {
return x.CloudRepo
}
return nil
}
func (m *SourceContext) GetCloudWorkspace() *CloudWorkspaceSourceContext {
if x, ok := m.GetContext().(*SourceContext_CloudWorkspace); ok {
return x.CloudWorkspace
}
return nil
}
func (m *SourceContext) GetGerrit() *GerritSourceContext {
if x, ok := m.GetContext().(*SourceContext_Gerrit); ok {
return x.Gerrit
}
return nil
}
func (m *SourceContext) GetGit() *GitSourceContext {
if x, ok := m.GetContext().(*SourceContext_Git); ok {
return x.Git
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*SourceContext) 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 _SourceContext_OneofMarshaler, _SourceContext_OneofUnmarshaler, _SourceContext_OneofSizer, []interface{}{
(*SourceContext_CloudRepo)(nil),
(*SourceContext_CloudWorkspace)(nil),
(*SourceContext_Gerrit)(nil),
(*SourceContext_Git)(nil),
}
}
func _SourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*SourceContext)
// context
switch x := m.Context.(type) {
case *SourceContext_CloudRepo:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.CloudRepo); err != nil {
return err
}
case *SourceContext_CloudWorkspace:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.CloudWorkspace); err != nil {
return err
}
case *SourceContext_Gerrit:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Gerrit); err != nil {
return err
}
case *SourceContext_Git:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Git); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("SourceContext.Context has unexpected type %T", x)
}
return nil
}
func _SourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*SourceContext)
switch tag {
case 1: // context.cloud_repo
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CloudRepoSourceContext)
err := b.DecodeMessage(msg)
m.Context = &SourceContext_CloudRepo{msg}
return true, err
case 2: // context.cloud_workspace
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CloudWorkspaceSourceContext)
err := b.DecodeMessage(msg)
m.Context = &SourceContext_CloudWorkspace{msg}
return true, err
case 3: // context.gerrit
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GerritSourceContext)
err := b.DecodeMessage(msg)
m.Context = &SourceContext_Gerrit{msg}
return true, err
case 6: // context.git
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GitSourceContext)
err := b.DecodeMessage(msg)
m.Context = &SourceContext_Git{msg}
return true, err
default:
return false, nil
}
}
func _SourceContext_OneofSizer(msg proto.Message) (n int) {
m := msg.(*SourceContext)
// context
switch x := m.Context.(type) {
case *SourceContext_CloudRepo:
s := proto.Size(x.CloudRepo)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_CloudWorkspace:
s := proto.Size(x.CloudWorkspace)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Gerrit:
s := proto.Size(x.Gerrit)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Git:
s := proto.Size(x.Git)
n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// An ExtendedSourceContext is a SourceContext combined with additional
// details describing the context.
type ExtendedSourceContext struct {
// Any source context.
Context *SourceContext `protobuf:"bytes,1,opt,name=context" 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"`
}
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) GetContext() *SourceContext {
if m != nil {
return m.Context
}
return nil
}
func (m *ExtendedSourceContext) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
// 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"`
// The alias name.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}
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) GetKind() AliasContext_Kind {
if m != nil {
return m.Kind
}
return AliasContext_ANY
}
func (m *AliasContext) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// A CloudRepoSourceContext denotes a particular revision in a cloud
// 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"`
// A revision in a cloud repository can be identified by either its revision
// ID or its Alias.
//
// Types that are valid to be assigned to Revision:
// *CloudRepoSourceContext_RevisionId
// *CloudRepoSourceContext_AliasName
// *CloudRepoSourceContext_AliasContext
Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
}
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} }
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"`
}
func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
func (*CloudRepoSourceContext_AliasName) isCloudRepoSourceContext_Revision() {}
func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {}
func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision {
if m != nil {
return m.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
}
return ""
}
func (m *CloudRepoSourceContext) GetAliasName() string {
if x, ok := m.GetRevision().(*CloudRepoSourceContext_AliasName); ok {
return x.AliasName
}
return ""
}
func (m *CloudRepoSourceContext) GetAliasContext() *AliasContext {
if x, ok := m.GetRevision().(*CloudRepoSourceContext_AliasContext); ok {
return x.AliasContext
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*CloudRepoSourceContext) 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 _CloudRepoSourceContext_OneofMarshaler, _CloudRepoSourceContext_OneofUnmarshaler, _CloudRepoSourceContext_OneofSizer, []interface{}{
(*CloudRepoSourceContext_RevisionId)(nil),
(*CloudRepoSourceContext_AliasName)(nil),
(*CloudRepoSourceContext_AliasContext)(nil),
}
}
func _CloudRepoSourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*CloudRepoSourceContext)
// revision
switch x := m.Revision.(type) {
case *CloudRepoSourceContext_RevisionId:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeStringBytes(x.RevisionId)
case *CloudRepoSourceContext_AliasName:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeStringBytes(x.AliasName)
case *CloudRepoSourceContext_AliasContext:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.AliasContext); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("CloudRepoSourceContext.Revision has unexpected type %T", x)
}
return nil
}
func _CloudRepoSourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*CloudRepoSourceContext)
switch tag {
case 2: // revision.revision_id
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Revision = &CloudRepoSourceContext_RevisionId{x}
return true, err
case 3: // revision.alias_name
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Revision = &CloudRepoSourceContext_AliasName{x}
return true, err
case 4: // revision.alias_context
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(AliasContext)
err := b.DecodeMessage(msg)
m.Revision = &CloudRepoSourceContext_AliasContext{msg}
return true, err
default:
return false, nil
}
}
func _CloudRepoSourceContext_OneofSizer(msg proto.Message) (n int) {
m := msg.(*CloudRepoSourceContext)
// revision
switch x := m.Revision.(type) {
case *CloudRepoSourceContext_RevisionId:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *CloudRepoSourceContext_AliasName:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
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 += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// 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"`
// 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"`
}
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) GetWorkspaceId() *CloudWorkspaceId {
if m != nil {
return m.WorkspaceId
}
return nil
}
func (m *CloudWorkspaceSourceContext) GetSnapshotId() string {
if m != nil {
return m.SnapshotId
}
return ""
}
// 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"`
// 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"`
// 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_AliasName
// *GerritSourceContext_AliasContext
Revision isGerritSourceContext_Revision `protobuf_oneof:"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 fileDescriptor0, []int{5} }
type isGerritSourceContext_Revision interface {
isGerritSourceContext_Revision()
}
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
}
func (m *GerritSourceContext) GetHostUri() string {
if m != nil {
return m.HostUri
}
return ""
}
func (m *GerritSourceContext) GetGerritProject() string {
if m != nil {
return m.GerritProject
}
return ""
}
func (m *GerritSourceContext) GetRevisionId() string {
if x, ok := m.GetRevision().(*GerritSourceContext_RevisionId); ok {
return x.RevisionId
}
return ""
}
func (m *GerritSourceContext) GetAliasName() string {
if x, ok := m.GetRevision().(*GerritSourceContext_AliasName); ok {
return x.AliasName
}
return ""
}
func (m *GerritSourceContext) GetAliasContext() *AliasContext {
if x, ok := m.GetRevision().(*GerritSourceContext_AliasContext); ok {
return x.AliasContext
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*GerritSourceContext) 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 _GerritSourceContext_OneofMarshaler, _GerritSourceContext_OneofUnmarshaler, _GerritSourceContext_OneofSizer, []interface{}{
(*GerritSourceContext_RevisionId)(nil),
(*GerritSourceContext_AliasName)(nil),
(*GerritSourceContext_AliasContext)(nil),
}
}
func _GerritSourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*GerritSourceContext)
// revision
switch x := m.Revision.(type) {
case *GerritSourceContext_RevisionId:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeStringBytes(x.RevisionId)
case *GerritSourceContext_AliasName:
b.EncodeVarint(4<<3 | proto.WireBytes)
b.EncodeStringBytes(x.AliasName)
case *GerritSourceContext_AliasContext:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.AliasContext); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("GerritSourceContext.Revision has unexpected type %T", x)
}
return nil
}
func _GerritSourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*GerritSourceContext)
switch tag {
case 3: // revision.revision_id
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Revision = &GerritSourceContext_RevisionId{x}
return true, err
case 4: // revision.alias_name
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Revision = &GerritSourceContext_AliasName{x}
return true, err
case 5: // revision.alias_context
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(AliasContext)
err := b.DecodeMessage(msg)
m.Revision = &GerritSourceContext_AliasContext{msg}
return true, err
default:
return false, nil
}
}
func _GerritSourceContext_OneofSizer(msg proto.Message) (n int) {
m := msg.(*GerritSourceContext)
// revision
switch x := m.Revision.(type) {
case *GerritSourceContext_RevisionId:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *GerritSourceContext_AliasName:
n += proto.SizeVarint(4<<3 | proto.WireBytes)
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 += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// A GitSourceContext denotes a particular revision in a third party Git
// repository (e.g. GitHub).
type GitSourceContext struct {
// Git repository URL.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
// Git commit hash.
// required.
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId" json:"revision_id,omitempty"`
}
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) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *GitSourceContext) GetRevisionId() string {
if m != nil {
return m.RevisionId
}
return ""
}
// A unique identifier for a cloud repo.
type RepoId struct {
// A cloud repository can be identified by either its project ID and
// repository name combination, or its globally unique identifier.
//
// Types that are valid to be assigned to Id:
// *RepoId_ProjectRepoId
// *RepoId_Uid
Id isRepoId_Id `protobuf_oneof:"id"`
}
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} }
type isRepoId_Id interface {
isRepoId_Id()
}
type RepoId_ProjectRepoId struct {
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,oneof"`
}
type RepoId_Uid struct {
Uid string `protobuf:"bytes,2,opt,name=uid,oneof"`
}
func (*RepoId_ProjectRepoId) isRepoId_Id() {}
func (*RepoId_Uid) isRepoId_Id() {}
func (m *RepoId) GetId() isRepoId_Id {
if m != nil {
return m.Id
}
return nil
}
func (m *RepoId) GetProjectRepoId() *ProjectRepoId {
if x, ok := m.GetId().(*RepoId_ProjectRepoId); ok {
return x.ProjectRepoId
}
return nil
}
func (m *RepoId) GetUid() string {
if x, ok := m.GetId().(*RepoId_Uid); ok {
return x.Uid
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*RepoId) 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 _RepoId_OneofMarshaler, _RepoId_OneofUnmarshaler, _RepoId_OneofSizer, []interface{}{
(*RepoId_ProjectRepoId)(nil),
(*RepoId_Uid)(nil),
}
}
func _RepoId_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*RepoId)
// id
switch x := m.Id.(type) {
case *RepoId_ProjectRepoId:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ProjectRepoId); err != nil {
return err
}
case *RepoId_Uid:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeStringBytes(x.Uid)
case nil:
default:
return fmt.Errorf("RepoId.Id has unexpected type %T", x)
}
return nil
}
func _RepoId_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*RepoId)
switch tag {
case 1: // id.project_repo_id
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ProjectRepoId)
err := b.DecodeMessage(msg)
m.Id = &RepoId_ProjectRepoId{msg}
return true, err
case 2: // id.uid
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Id = &RepoId_Uid{x}
return true, err
default:
return false, nil
}
}
func _RepoId_OneofSizer(msg proto.Message) (n int) {
m := msg.(*RepoId)
// id
switch x := m.Id.(type) {
case *RepoId_ProjectRepoId:
s := proto.Size(x.ProjectRepoId)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *RepoId_Uid:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.Uid)))
n += len(x.Uid)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Selects a repo using a Google Cloud Platform project ID
// (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"`
// 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"`
}
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) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *ProjectRepoId) GetRepoName() string {
if m != nil {
return m.RepoName
}
return ""
}
// A CloudWorkspaceId is a unique identifier for a cloud workspace.
// A cloud workspace is a place associated with a repo where modified files
// 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"`
// 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"`
}
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) GetRepoId() *RepoId {
if m != nil {
return m.RepoId
}
return nil
}
func (m *CloudWorkspaceId) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func init() {
proto.RegisterType((*SourceContext)(nil), "google.devtools.source.v1.SourceContext")
proto.RegisterType((*ExtendedSourceContext)(nil), "google.devtools.source.v1.ExtendedSourceContext")
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")
proto.RegisterType((*GerritSourceContext)(nil), "google.devtools.source.v1.GerritSourceContext")
proto.RegisterType((*GitSourceContext)(nil), "google.devtools.source.v1.GitSourceContext")
proto.RegisterType((*RepoId)(nil), "google.devtools.source.v1.RepoId")
proto.RegisterType((*ProjectRepoId)(nil), "google.devtools.source.v1.ProjectRepoId")
proto.RegisterType((*CloudWorkspaceId)(nil), "google.devtools.source.v1.CloudWorkspaceId")
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) }
var fileDescriptor0 = []byte{
// 780 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcb, 0x4e, 0xdb, 0x4c,
0x14, 0x8e, 0xe3, 0x90, 0xe0, 0x13, 0x02, 0xd1, 0xfc, 0x7f, 0xab, 0x00, 0x45, 0x80, 0xa5, 0xaa,
0x48, 0x54, 0x8e, 0x92, 0x4a, 0x55, 0x4b, 0x2b, 0x51, 0x02, 0x29, 0x89, 0xa0, 0x01, 0x4d, 0x29,
0xbd, 0x6c, 0x22, 0x63, 0x8f, 0x8c, 0x8b, 0xf1, 0x58, 0xb6, 0x13, 0xe0, 0x25, 0xba, 0xe6, 0x19,
0xfa, 0x4c, 0x7d, 0x84, 0x2e, 0x2b, 0x75, 0x5b,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91, 0x09, 0xe9, 0x0e, 0xf7, 0x6f, 0xda, 0x55, 0x22, 0xb3, 0x25,
0x24, 0x5a, 0x19, 0x5c, 0x0a, 0x06, 0x0d, 0x08, 0x81, 0xda, 0x1b, 0xe8, 0x63, 0xb6, 0x69, 0xe4,
0x20, 0xeb, 0xda, 0xfa, 0x0e, 0x94, 0x86, 0xb8, 0x68, 0x01, 0x20, 0x71, 0x2f, 0x3d, 0x6b, 0x58,
0x93, 0x96, 0xb6, 0x8d, 0xe6, 0x41, 0xe3, 0x51, 0x0d, 0x4c, 0xef, 0x24, 0x33, 0xb0, 0x3c, 0xeb,
0x47, 0x50, 0x1e, 0xed, 0xa3, 0xbf, 0x1a, 0xc3, 0x31, 0xb7, 0x44, 0xe3, 0x52, 0x81, 0x05, 0x8b,
0x9e, 0xde, 0x2e, 0xd2, 0x40, 0x43, 0xc5, 0xd8, 0x67, 0x0f, 0xe2, 0xbe, 0xf2, 0x65, 0x5d, 0x12,
0x1c, 0xea, 0x99, 0xbe, 0x63, 0xd0, 0xd0, 0xa9, 0x3a, 0xc4, 0xe7, 0xcf, 0x65, 0x55, 0xfc, 0x32,
0x03, 0x37, 0x1a, 0xf3, 0x34, 0xbf, 0x12, 0xab, 0xef, 0xd9, 0xc5, 0x6d, 0xa1, 0xc0, 0x8f, 0x68,
0x6c, 0x91, 0xfe, 0x01, 0x77, 0x2c, 0xbc, 0x19, 0x87, 0xb5, 0xa3, 0x3c, 0x57, 0x7b, 0xf6, 0x27,
0x00, 0x00, 0xff, 0xff, 0x9e, 0xd0, 0x5c, 0x10, 0xe7, 0x07, 0x00, 0x00,
}

View File

@ -0,0 +1,636 @@
// 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
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
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 (
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
// A repository (or repo) is a Git repository storing versioned source content.
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"`
// 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"`
// URL to clone the repository from Google Cloud Source Repositories.
// Read-only field.
Url string `protobuf:"bytes,3,opt,name=url" 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"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Repo) GetSize() int64 {
if m != nil {
return m.Size
}
return 0
}
func (m *Repo) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *Repo) GetMirrorConfig() *MirrorConfig {
if m != nil {
return m.MirrorConfig
}
return nil
}
// Configuration to automatically mirror a repository from another
// 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"`
// 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"`
// 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"`
}
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) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *MirrorConfig) GetWebhookId() string {
if m != nil {
return m.WebhookId
}
return ""
}
func (m *MirrorConfig) GetDeployKeyId() string {
if m != nil {
return m.DeployKeyId
}
return ""
}
// Request for GetRepo.
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"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request for ListRepos.
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"`
// 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"`
// 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"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ListReposRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListReposRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// 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"`
// 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"`
}
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) GetRepos() []*Repo {
if m != nil {
return m.Repos
}
return nil
}
func (m *ListReposResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// Request for CreateRepo
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"`
// 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"`
}
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) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateRepoRequest) GetRepo() *Repo {
if m != nil {
return m.Repo
}
return nil
}
// Request for DeleteRepo.
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"`
}
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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func init() {
proto.RegisterType((*Repo)(nil), "google.devtools.sourcerepo.v1.Repo")
proto.RegisterType((*MirrorConfig)(nil), "google.devtools.sourcerepo.v1.MirrorConfig")
proto.RegisterType((*GetRepoRequest)(nil), "google.devtools.sourcerepo.v1.GetRepoRequest")
proto.RegisterType((*ListReposRequest)(nil), "google.devtools.sourcerepo.v1.ListReposRequest")
proto.RegisterType((*ListReposResponse)(nil), "google.devtools.sourcerepo.v1.ListReposResponse")
proto.RegisterType((*CreateRepoRequest)(nil), "google.devtools.sourcerepo.v1.CreateRepoRequest")
proto.RegisterType((*DeleteRepoRequest)(nil), "google.devtools.sourcerepo.v1.DeleteRepoRequest")
}
// 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
// Client API for SourceRepo service
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.
ListRepos(ctx context.Context, in *ListReposRequest, opts ...grpc.CallOption) (*ListReposResponse, error)
// Returns information about a repo.
GetRepo(ctx context.Context, in *GetRepoRequest, opts ...grpc.CallOption) (*Repo, error)
// Creates a repo in the given project with the given name.
//
// If the named repository already exists, `CreateRepo` returns
// `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)
// 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)
// 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)
// 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)
}
type sourceRepoClient struct {
cc *grpc.ClientConn
}
func NewSourceRepoClient(cc *grpc.ClientConn) SourceRepoClient {
return &sourceRepoClient{cc}
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
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...)
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...)
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...)
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...)
if err != nil {
return nil, err
}
return out, nil
}
// 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.
ListRepos(context.Context, *ListReposRequest) (*ListReposResponse, error)
// Returns information about a repo.
GetRepo(context.Context, *GetRepoRequest) (*Repo, error)
// Creates a repo in the given project with the given name.
//
// If the named repository already exists, `CreateRepo` returns
// `ALREADY_EXISTS`.
CreateRepo(context.Context, *CreateRepoRequest) (*Repo, error)
// Deletes a repo.
DeleteRepo(context.Context, *DeleteRepoRequest) (*google_protobuf1.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)
// 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)
// 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)
}
func RegisterSourceRepoServer(s *grpc.Server, srv SourceRepoServer) {
s.RegisterService(&_SourceRepo_serviceDesc, srv)
}
func _SourceRepo_ListRepos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListReposRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).ListRepos(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/ListRepos",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).ListRepos(ctx, req.(*ListReposRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_GetRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRepoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).GetRepo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/GetRepo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).GetRepo(ctx, req.(*GetRepoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_CreateRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateRepoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).CreateRepo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/CreateRepo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).CreateRepo(ctx, req.(*CreateRepoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_DeleteRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteRepoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).DeleteRepo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/DeleteRepo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).DeleteRepo(ctx, req.(*DeleteRepoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(google_iam_v11.SetIamPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).SetIamPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
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 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)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).GetIamPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
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 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)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).TestIamPermissions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
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 interceptor(ctx, in, info, handler)
}
var _SourceRepo_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.sourcerepo.v1.SourceRepo",
HandlerType: (*SourceRepoServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListRepos",
Handler: _SourceRepo_ListRepos_Handler,
},
{
MethodName: "GetRepo",
Handler: _SourceRepo_GetRepo_Handler,
},
{
MethodName: "CreateRepo",
Handler: _SourceRepo_CreateRepo_Handler,
},
{
MethodName: "DeleteRepo",
Handler: _SourceRepo_DeleteRepo_Handler,
},
{
MethodName: "SetIamPolicy",
Handler: _SourceRepo_SetIamPolicy_Handler,
},
{
MethodName: "GetIamPolicy",
Handler: _SourceRepo_GetIamPolicy_Handler,
},
{
MethodName: "TestIamPermissions",
Handler: _SourceRepo_TestIamPermissions_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/sourcerepo/v1/sourcerepo.proto",
}
func init() { proto.RegisterFile("google/devtools/sourcerepo/v1/sourcerepo.proto", fileDescriptor0) }
var fileDescriptor0 = []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,
0x7b, 0x29, 0x21, 0x15, 0x36, 0x2d, 0xa0, 0x8a, 0x20, 0x24, 0xd4, 0x82, 0xa2, 0x0a, 0x90, 0xa2,
0xb4, 0x4f, 0xbc, 0x44, 0x4e, 0x32, 0x35, 0xa6, 0xb6, 0xd7, 0x78, 0x37, 0x81, 0x80, 0x0a, 0x52,
0xa5, 0xbe, 0x23, 0xfa, 0x19, 0x7c, 0x0e, 0xbf, 0xc0, 0x47, 0xf0, 0x88, 0x76, 0x6d, 0x37, 0x4e,
0x13, 0x12, 0xbf, 0xed, 0xce, 0x9c, 0x99, 0x73, 0xf6, 0xec, 0x78, 0x0d, 0xba, 0xc5, 0x98, 0xe5,
0xa0, 0xd1, 0xc5, 0xbe, 0x60, 0xcc, 0xe1, 0x06, 0x67, 0xbd, 0xa0, 0x83, 0x01, 0xfa, 0xcc, 0xe8,
0xef, 0x26, 0x76, 0xba, 0x1f, 0x30, 0xc1, 0x68, 0x29, 0xc4, 0xeb, 0x31, 0x5e, 0x4f, 0x20, 0xfa,
0xbb, 0xc5, 0x7f, 0xa3, 0x76, 0xa6, 0x6f, 0x1b, 0xa6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