update vendor

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-09-25 12:27:46 -04:00
parent 19a32db84d
commit 94d1cfbfbf
No known key found for this signature in database
GPG key ID: 18F3685C0022BFF3
10501 changed files with 2307943 additions and 29279 deletions

File diff suppressed because it is too large Load diff

View file

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

View file

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

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,586 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouddebugger/v2/controller.proto
package clouddebugger
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/empty"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
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,proto3" json:"debuggee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterDebuggeeRequest) Reset() { *m = RegisterDebuggeeRequest{} }
func (m *RegisterDebuggeeRequest) String() string { return proto.CompactTextString(m) }
func (*RegisterDebuggeeRequest) ProtoMessage() {}
func (*RegisterDebuggeeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_694192a34270926f, []int{0}
}
func (m *RegisterDebuggeeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RegisterDebuggeeRequest.Unmarshal(m, b)
}
func (m *RegisterDebuggeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RegisterDebuggeeRequest.Marshal(b, m, deterministic)
}
func (m *RegisterDebuggeeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterDebuggeeRequest.Merge(m, src)
}
func (m *RegisterDebuggeeRequest) XXX_Size() int {
return xxx_messageInfo_RegisterDebuggeeRequest.Size(m)
}
func (m *RegisterDebuggeeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterDebuggeeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterDebuggeeRequest proto.InternalMessageInfo
func (m *RegisterDebuggeeRequest) GetDebuggee() *Debuggee {
if m != nil {
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,proto3" json:"debuggee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterDebuggeeResponse) Reset() { *m = RegisterDebuggeeResponse{} }
func (m *RegisterDebuggeeResponse) String() string { return proto.CompactTextString(m) }
func (*RegisterDebuggeeResponse) ProtoMessage() {}
func (*RegisterDebuggeeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_694192a34270926f, []int{1}
}
func (m *RegisterDebuggeeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RegisterDebuggeeResponse.Unmarshal(m, b)
}
func (m *RegisterDebuggeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RegisterDebuggeeResponse.Marshal(b, m, deterministic)
}
func (m *RegisterDebuggeeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterDebuggeeResponse.Merge(m, src)
}
func (m *RegisterDebuggeeResponse) XXX_Size() int {
return xxx_messageInfo_RegisterDebuggeeResponse.Size(m)
}
func (m *RegisterDebuggeeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterDebuggeeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterDebuggeeResponse proto.InternalMessageInfo
func (m *RegisterDebuggeeResponse) GetDebuggee() *Debuggee {
if m != nil {
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,proto3" json:"debuggee_id,omitempty"`
// A token that, if specified, blocks the method call until the list
// of active breakpoints has changed, or a server-selected timeout has
// expired. The value should be set from the `next_wait_token` field in
// the last response. The initial value should be set to `"init"`.
WaitToken string `protobuf:"bytes,2,opt,name=wait_token,json=waitToken,proto3" json:"wait_token,omitempty"`
// If set to `true` (recommended), returns `google.rpc.Code.OK` status and
// sets the `wait_expired` response field to `true` when the server-selected
// timeout has expired.
//
// If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status
// when the server-selected timeout has expired.
SuccessOnTimeout bool `protobuf:"varint,3,opt,name=success_on_timeout,json=successOnTimeout,proto3" json:"success_on_timeout,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListActiveBreakpointsRequest) Reset() { *m = ListActiveBreakpointsRequest{} }
func (m *ListActiveBreakpointsRequest) String() string { return proto.CompactTextString(m) }
func (*ListActiveBreakpointsRequest) ProtoMessage() {}
func (*ListActiveBreakpointsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_694192a34270926f, []int{2}
}
func (m *ListActiveBreakpointsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListActiveBreakpointsRequest.Unmarshal(m, b)
}
func (m *ListActiveBreakpointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListActiveBreakpointsRequest.Marshal(b, m, deterministic)
}
func (m *ListActiveBreakpointsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListActiveBreakpointsRequest.Merge(m, src)
}
func (m *ListActiveBreakpointsRequest) XXX_Size() int {
return xxx_messageInfo_ListActiveBreakpointsRequest.Size(m)
}
func (m *ListActiveBreakpointsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListActiveBreakpointsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListActiveBreakpointsRequest proto.InternalMessageInfo
func (m *ListActiveBreakpointsRequest) GetDebuggeeId() string {
if m != nil {
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,proto3" json:"breakpoints,omitempty"`
// A token that can be used in the next method call to block until
// the list of breakpoints changes.
NextWaitToken string `protobuf:"bytes,2,opt,name=next_wait_token,json=nextWaitToken,proto3" json:"next_wait_token,omitempty"`
// If set to `true`, indicates that there is no change to the
// list of active breakpoints and the server-selected timeout has expired.
// The `breakpoints` field would be empty and should be ignored.
WaitExpired bool `protobuf:"varint,3,opt,name=wait_expired,json=waitExpired,proto3" json:"wait_expired,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListActiveBreakpointsResponse) Reset() { *m = ListActiveBreakpointsResponse{} }
func (m *ListActiveBreakpointsResponse) String() string { return proto.CompactTextString(m) }
func (*ListActiveBreakpointsResponse) ProtoMessage() {}
func (*ListActiveBreakpointsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_694192a34270926f, []int{3}
}
func (m *ListActiveBreakpointsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListActiveBreakpointsResponse.Unmarshal(m, b)
}
func (m *ListActiveBreakpointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListActiveBreakpointsResponse.Marshal(b, m, deterministic)
}
func (m *ListActiveBreakpointsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListActiveBreakpointsResponse.Merge(m, src)
}
func (m *ListActiveBreakpointsResponse) XXX_Size() int {
return xxx_messageInfo_ListActiveBreakpointsResponse.Size(m)
}
func (m *ListActiveBreakpointsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListActiveBreakpointsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListActiveBreakpointsResponse proto.InternalMessageInfo
func (m *ListActiveBreakpointsResponse) GetBreakpoints() []*Breakpoint {
if m != nil {
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,proto3" json:"debuggee_id,omitempty"`
// Updated breakpoint information.
// The field `id` must be set.
// The agent must echo all Breakpoint specification fields in the update.
Breakpoint *Breakpoint `protobuf:"bytes,2,opt,name=breakpoint,proto3" json:"breakpoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateActiveBreakpointRequest) Reset() { *m = UpdateActiveBreakpointRequest{} }
func (m *UpdateActiveBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateActiveBreakpointRequest) ProtoMessage() {}
func (*UpdateActiveBreakpointRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_694192a34270926f, []int{4}
}
func (m *UpdateActiveBreakpointRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateActiveBreakpointRequest.Unmarshal(m, b)
}
func (m *UpdateActiveBreakpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateActiveBreakpointRequest.Marshal(b, m, deterministic)
}
func (m *UpdateActiveBreakpointRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateActiveBreakpointRequest.Merge(m, src)
}
func (m *UpdateActiveBreakpointRequest) XXX_Size() int {
return xxx_messageInfo_UpdateActiveBreakpointRequest.Size(m)
}
func (m *UpdateActiveBreakpointRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateActiveBreakpointRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateActiveBreakpointRequest proto.InternalMessageInfo
func (m *UpdateActiveBreakpointRequest) GetDebuggeeId() string {
if m != nil {
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 {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateActiveBreakpointResponse) Reset() { *m = UpdateActiveBreakpointResponse{} }
func (m *UpdateActiveBreakpointResponse) String() string { return proto.CompactTextString(m) }
func (*UpdateActiveBreakpointResponse) ProtoMessage() {}
func (*UpdateActiveBreakpointResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_694192a34270926f, []int{5}
}
func (m *UpdateActiveBreakpointResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateActiveBreakpointResponse.Unmarshal(m, b)
}
func (m *UpdateActiveBreakpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateActiveBreakpointResponse.Marshal(b, m, deterministic)
}
func (m *UpdateActiveBreakpointResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateActiveBreakpointResponse.Merge(m, src)
}
func (m *UpdateActiveBreakpointResponse) XXX_Size() int {
return xxx_messageInfo_UpdateActiveBreakpointResponse.Size(m)
}
func (m *UpdateActiveBreakpointResponse) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateActiveBreakpointResponse.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateActiveBreakpointResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*RegisterDebuggeeRequest)(nil), "google.devtools.clouddebugger.v2.RegisterDebuggeeRequest")
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
// Controller2Client is the client API for Controller2 service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type Controller2Client interface {
// Registers the debuggee with the controller service.
//
// 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 := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Controller2/RegisterDebuggee", in, out, 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 := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Controller2/ListActiveBreakpoints", in, out, 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 := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Controller2/UpdateActiveBreakpoint", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Controller2Server is the 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", fileDescriptor_694192a34270926f)
}
var fileDescriptor_694192a34270926f = []byte{
// 602 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xdd, 0x6a, 0xd4, 0x40,
0x14, 0x66, 0x5a, 0x94, 0x76, 0xa2, 0xb4, 0x0c, 0xa8, 0x21, 0xb6, 0xba, 0x0d, 0x52, 0x96, 0x75,
0xc9, 0x60, 0xf4, 0xc6, 0x15, 0xfc, 0xd9, 0xaa, 0x45, 0x68, 0xb5, 0x2c, 0xb5, 0x82, 0x2c, 0x2c,
0xd9, 0xe4, 0x18, 0x86, 0x66, 0x67, 0x62, 0x66, 0xb2, 0x56, 0x4a, 0x6f, 0xbc, 0x55, 0xbc, 0xf1,
0x2d, 0x7c, 0x01, 0xc1, 0x0b, 0x1f, 0xc0, 0x5b, 0x7d, 0x04, 0xa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x50, 0x8d, 0xfc, 0x46, 0xf8,
0xd2, 0xb1, 0x93, 0x43, 0xee, 0x97, 0x7b, 0x38, 0xe9, 0x05, 0x18, 0x0f, 0xa6, 0xe6, 0xe7, 0x41,
0x1a, 0x69, 0x90, 0x3b, 0xc4, 0x9e, 0x18, 0x64, 0x7f, 0x64, 0x2a, 0x0e, 0xe8, 0xe8, 0x78, 0xfe,
0x45, 0xf8, 0xf2, 0xf1, 0xff, 0x90, 0x9c, 0xc2, 0xd7, 0x89, 0xd3, 0x68, 0x3c, 0x9c, 0x5e, 0x20,
0x4f, 0xb6, 0x99, 0x26, 0x5b, 0x37, 0x9a, 0x67, 0x4f, 0x46, 0xf7, 0x87, 0x1f, 0x16, 0xf3, 0x0e,
0x1a, 0xa8, 0xd6, 0xfc, 0x81, 0xf0, 0x0d, 0x57, 0xf4, 0x4a, 0x6d, 0x35, 0x17, 0x86, 0x33, 0xbb,
0x95, 0x6c, 0xe3, 0x2d, 0xf4, 0x7a, 0x33, 0x27, 0xf9, 0x22, 0x70, 0xb8, 0x6f, 0x89, 0xc8, 0xa7,
0x3e, 0xf0, 0x74, 0x57, 0xd3, 0xac, 0xe4, 0x84, 0x4c, 0x4e, 0x5e, 0xfc, 0xf7, 0xc6, 0x80, 0xaf,
0x33, 0xfa, 0x7a, 0xa6, 0xb7, 0x96, 0xc0, 0xc5, 0xe6, 0x8c, 0xac, 0x1d, 0xfb, 0x67, 0x51, 0x6a,
0xa7, 0xa5, 0x76, 0x51, 0x6a, 0xef, 0xd8, 0xdd, 0xf3, 0x69, 0xbf, 0xdb, 0xff, 0x02, 0x00, 0x00,
0xff, 0xff, 0x54, 0xe1, 0x5c, 0x2a, 0xda, 0x06, 0x00, 0x00,
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,886 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouddebugger/v2/debugger.proto
package clouddebugger
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
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 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,proto3" json:"debuggee_id,omitempty"`
// Breakpoint specification to set.
// The field `location` of the breakpoint must be set.
Breakpoint *Breakpoint `protobuf:"bytes,2,opt,name=breakpoint,proto3" json:"breakpoint,omitempty"`
// The client version making the call.
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
ClientVersion string `protobuf:"bytes,4,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetBreakpointRequest) Reset() { *m = SetBreakpointRequest{} }
func (m *SetBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*SetBreakpointRequest) ProtoMessage() {}
func (*SetBreakpointRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_682c945d4794189b, []int{0}
}
func (m *SetBreakpointRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetBreakpointRequest.Unmarshal(m, b)
}
func (m *SetBreakpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetBreakpointRequest.Marshal(b, m, deterministic)
}
func (m *SetBreakpointRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetBreakpointRequest.Merge(m, src)
}
func (m *SetBreakpointRequest) XXX_Size() int {
return xxx_messageInfo_SetBreakpointRequest.Size(m)
}
func (m *SetBreakpointRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetBreakpointRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetBreakpointRequest proto.InternalMessageInfo
func (m *SetBreakpointRequest) GetDebuggeeId() string {
if m != nil {
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,proto3" json:"breakpoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetBreakpointResponse) Reset() { *m = SetBreakpointResponse{} }
func (m *SetBreakpointResponse) String() string { return proto.CompactTextString(m) }
func (*SetBreakpointResponse) ProtoMessage() {}
func (*SetBreakpointResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_682c945d4794189b, []int{1}
}
func (m *SetBreakpointResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetBreakpointResponse.Unmarshal(m, b)
}
func (m *SetBreakpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetBreakpointResponse.Marshal(b, m, deterministic)
}
func (m *SetBreakpointResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetBreakpointResponse.Merge(m, src)
}
func (m *SetBreakpointResponse) XXX_Size() int {
return xxx_messageInfo_SetBreakpointResponse.Size(m)
}
func (m *SetBreakpointResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SetBreakpointResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SetBreakpointResponse proto.InternalMessageInfo
func (m *SetBreakpointResponse) GetBreakpoint() *Breakpoint {
if m != nil {
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,proto3" json:"debuggee_id,omitempty"`
// ID of the breakpoint to get.
BreakpointId string `protobuf:"bytes,2,opt,name=breakpoint_id,json=breakpointId,proto3" json:"breakpoint_id,omitempty"`
// The client version making the call.
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
ClientVersion string `protobuf:"bytes,4,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBreakpointRequest) Reset() { *m = GetBreakpointRequest{} }
func (m *GetBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*GetBreakpointRequest) ProtoMessage() {}
func (*GetBreakpointRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_682c945d4794189b, []int{2}
}
func (m *GetBreakpointRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBreakpointRequest.Unmarshal(m, b)
}
func (m *GetBreakpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBreakpointRequest.Marshal(b, m, deterministic)
}
func (m *GetBreakpointRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBreakpointRequest.Merge(m, src)
}
func (m *GetBreakpointRequest) XXX_Size() int {
return xxx_messageInfo_GetBreakpointRequest.Size(m)
}
func (m *GetBreakpointRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetBreakpointRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetBreakpointRequest proto.InternalMessageInfo
func (m *GetBreakpointRequest) GetDebuggeeId() string {
if m != nil {
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,proto3" json:"breakpoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBreakpointResponse) Reset() { *m = GetBreakpointResponse{} }
func (m *GetBreakpointResponse) String() string { return proto.CompactTextString(m) }
func (*GetBreakpointResponse) ProtoMessage() {}
func (*GetBreakpointResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_682c945d4794189b, []int{3}
}
func (m *GetBreakpointResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBreakpointResponse.Unmarshal(m, b)
}
func (m *GetBreakpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBreakpointResponse.Marshal(b, m, deterministic)
}
func (m *GetBreakpointResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBreakpointResponse.Merge(m, src)
}
func (m *GetBreakpointResponse) XXX_Size() int {
return xxx_messageInfo_GetBreakpointResponse.Size(m)
}
func (m *GetBreakpointResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetBreakpointResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetBreakpointResponse proto.InternalMessageInfo
func (m *GetBreakpointResponse) GetBreakpoint() *Breakpoint {
if m != nil {
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,proto3" json:"debuggee_id,omitempty"`
// ID of the breakpoint to delete.
BreakpointId string `protobuf:"bytes,2,opt,name=breakpoint_id,json=breakpointId,proto3" json:"breakpoint_id,omitempty"`
// The client version making the call.
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
ClientVersion string `protobuf:"bytes,3,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteBreakpointRequest) Reset() { *m = DeleteBreakpointRequest{} }
func (m *DeleteBreakpointRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteBreakpointRequest) ProtoMessage() {}
func (*DeleteBreakpointRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_682c945d4794189b, []int{4}
}
func (m *DeleteBreakpointRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteBreakpointRequest.Unmarshal(m, b)
}
func (m *DeleteBreakpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteBreakpointRequest.Marshal(b, m, deterministic)
}
func (m *DeleteBreakpointRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteBreakpointRequest.Merge(m, src)
}
func (m *DeleteBreakpointRequest) XXX_Size() int {
return xxx_messageInfo_DeleteBreakpointRequest.Size(m)
}
func (m *DeleteBreakpointRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteBreakpointRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteBreakpointRequest proto.InternalMessageInfo
func (m *DeleteBreakpointRequest) GetDebuggeeId() string {
if m != nil {
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,proto3" json:"debuggee_id,omitempty"`
// When set to `true`, the response includes the list of breakpoints set by
// any user. Otherwise, it includes only breakpoints set by the caller.
IncludeAllUsers bool `protobuf:"varint,2,opt,name=include_all_users,json=includeAllUsers,proto3" json:"include_all_users,omitempty"`
// When set to `true`, the response includes active and inactive
// breakpoints. Otherwise, it includes only active breakpoints.
IncludeInactive bool `protobuf:"varint,3,opt,name=include_inactive,json=includeInactive,proto3" json:"include_inactive,omitempty"`
// When set, the response includes only breakpoints with the specified action.
Action *ListBreakpointsRequest_BreakpointActionValue `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"`
// This field is deprecated. The following fields are always stripped out of
// the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
StripResults bool `protobuf:"varint,5,opt,name=strip_results,json=stripResults,proto3" json:"strip_results,omitempty"`
// A wait token that, if specified, blocks the call until the breakpoints
// list has changed, or a server selected timeout has expired. The value
// should be set from the last response. The error code
// `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
// should be called again with the same `wait_token`.
WaitToken string `protobuf:"bytes,6,opt,name=wait_token,json=waitToken,proto3" json:"wait_token,omitempty"`
// The client version making the call.
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
ClientVersion string `protobuf:"bytes,8,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListBreakpointsRequest) Reset() { *m = ListBreakpointsRequest{} }
func (m *ListBreakpointsRequest) String() string { return proto.CompactTextString(m) }
func (*ListBreakpointsRequest) ProtoMessage() {}
func (*ListBreakpointsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_682c945d4794189b, []int{5}
}
func (m *ListBreakpointsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListBreakpointsRequest.Unmarshal(m, b)
}
func (m *ListBreakpointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListBreakpointsRequest.Marshal(b, m, deterministic)
}
func (m *ListBreakpointsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListBreakpointsRequest.Merge(m, src)
}
func (m *ListBreakpointsRequest) XXX_Size() int {
return xxx_messageInfo_ListBreakpointsRequest.Size(m)
}
func (m *ListBreakpointsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListBreakpointsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListBreakpointsRequest proto.InternalMessageInfo
func (m *ListBreakpointsRequest) GetDebuggeeId() string {
if m != nil {
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,proto3,enum=google.devtools.clouddebugger.v2.Breakpoint_Action" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListBreakpointsRequest_BreakpointActionValue) Reset() {
*m = ListBreakpointsRequest_BreakpointActionValue{}
}
func (m *ListBreakpointsRequest_BreakpointActionValue) String() string {
return proto.CompactTextString(m)
}
func (*ListBreakpointsRequest_BreakpointActionValue) ProtoMessage() {}
func (*ListBreakpointsRequest_BreakpointActionValue) Descriptor() ([]byte, []int) {
return fileDescriptor_682c945d4794189b, []int{5, 0}
}
func (m *ListBreakpointsRequest_BreakpointActionValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue.Unmarshal(m, b)
}
func (m *ListBreakpointsRequest_BreakpointActionValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue.Marshal(b, m, deterministic)
}
func (m *ListBreakpointsRequest_BreakpointActionValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue.Merge(m, src)
}
func (m *ListBreakpointsRequest_BreakpointActionValue) XXX_Size() int {
return xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue.Size(m)
}
func (m *ListBreakpointsRequest_BreakpointActionValue) XXX_DiscardUnknown() {
xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue.DiscardUnknown(m)
}
var xxx_messageInfo_ListBreakpointsRequest_BreakpointActionValue proto.InternalMessageInfo
func (m *ListBreakpointsRequest_BreakpointActionValue) GetValue() Breakpoint_Action {
if m != nil {
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,proto3" json:"breakpoints,omitempty"`
// A wait token that can be used in the next call to `list` (REST) or
// `ListBreakpoints` (RPC) to block until the list of breakpoints has changes.
NextWaitToken string `protobuf:"bytes,2,opt,name=next_wait_token,json=nextWaitToken,proto3" json:"next_wait_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListBreakpointsResponse) Reset() { *m = ListBreakpointsResponse{} }
func (m *ListBreakpointsResponse) String() string { return proto.CompactTextString(m) }
func (*ListBreakpointsResponse) ProtoMessage() {}
func (*ListBreakpointsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_682c945d4794189b, []int{6}
}
func (m *ListBreakpointsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListBreakpointsResponse.Unmarshal(m, b)
}
func (m *ListBreakpointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListBreakpointsResponse.Marshal(b, m, deterministic)
}
func (m *ListBreakpointsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListBreakpointsResponse.Merge(m, src)
}
func (m *ListBreakpointsResponse) XXX_Size() int {
return xxx_messageInfo_ListBreakpointsResponse.Size(m)
}
func (m *ListBreakpointsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListBreakpointsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListBreakpointsResponse proto.InternalMessageInfo
func (m *ListBreakpointsResponse) GetBreakpoints() []*Breakpoint {
if m != nil {
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,proto3" json:"project,omitempty"`
// When set to `true`, the result includes all debuggees. Otherwise, the
// result includes only debuggees that are active.
IncludeInactive bool `protobuf:"varint,3,opt,name=include_inactive,json=includeInactive,proto3" json:"include_inactive,omitempty"`
// The client version making the call.
// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
ClientVersion string `protobuf:"bytes,4,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListDebuggeesRequest) Reset() { *m = ListDebuggeesRequest{} }
func (m *ListDebuggeesRequest) String() string { return proto.CompactTextString(m) }
func (*ListDebuggeesRequest) ProtoMessage() {}
func (*ListDebuggeesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_682c945d4794189b, []int{7}
}
func (m *ListDebuggeesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDebuggeesRequest.Unmarshal(m, b)
}
func (m *ListDebuggeesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDebuggeesRequest.Marshal(b, m, deterministic)
}
func (m *ListDebuggeesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDebuggeesRequest.Merge(m, src)
}
func (m *ListDebuggeesRequest) XXX_Size() int {
return xxx_messageInfo_ListDebuggeesRequest.Size(m)
}
func (m *ListDebuggeesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListDebuggeesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListDebuggeesRequest proto.InternalMessageInfo
func (m *ListDebuggeesRequest) GetProject() string {
if m != nil {
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,proto3" json:"debuggees,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListDebuggeesResponse) Reset() { *m = ListDebuggeesResponse{} }
func (m *ListDebuggeesResponse) String() string { return proto.CompactTextString(m) }
func (*ListDebuggeesResponse) ProtoMessage() {}
func (*ListDebuggeesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_682c945d4794189b, []int{8}
}
func (m *ListDebuggeesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDebuggeesResponse.Unmarshal(m, b)
}
func (m *ListDebuggeesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDebuggeesResponse.Marshal(b, m, deterministic)
}
func (m *ListDebuggeesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDebuggeesResponse.Merge(m, src)
}
func (m *ListDebuggeesResponse) XXX_Size() int {
return xxx_messageInfo_ListDebuggeesResponse.Size(m)
}
func (m *ListDebuggeesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListDebuggeesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListDebuggeesResponse proto.InternalMessageInfo
func (m *ListDebuggeesResponse) GetDebuggees() []*Debuggee {
if m != nil {
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
// Debugger2Client is the client API for Debugger2 service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type Debugger2Client interface {
// Sets the breakpoint to the debuggee.
SetBreakpoint(ctx context.Context, in *SetBreakpointRequest, opts ...grpc.CallOption) (*SetBreakpointResponse, error)
// Gets breakpoint information.
GetBreakpoint(ctx context.Context, in *GetBreakpointRequest, opts ...grpc.CallOption) (*GetBreakpointResponse, error)
// Deletes the breakpoint from the debuggee.
DeleteBreakpoint(ctx context.Context, in *DeleteBreakpointRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Lists all breakpoints for the debuggee.
ListBreakpoints(ctx context.Context, in *ListBreakpointsRequest, opts ...grpc.CallOption) (*ListBreakpointsResponse, error)
// Lists all the debuggees that the user has access to.
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 := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/SetBreakpoint", in, out, 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 := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/GetBreakpoint", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *debugger2Client) DeleteBreakpoint(ctx context.Context, in *DeleteBreakpointRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/DeleteBreakpoint", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *debugger2Client) ListBreakpoints(ctx context.Context, in *ListBreakpointsRequest, opts ...grpc.CallOption) (*ListBreakpointsResponse, error) {
out := new(ListBreakpointsResponse)
err := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/ListBreakpoints", in, out, 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 := c.cc.Invoke(ctx, "/google.devtools.clouddebugger.v2.Debugger2/ListDebuggees", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Debugger2Server is the server API for Debugger2 service.
type Debugger2Server interface {
// Sets the breakpoint to the debuggee.
SetBreakpoint(context.Context, *SetBreakpointRequest) (*SetBreakpointResponse, error)
// Gets breakpoint information.
GetBreakpoint(context.Context, *GetBreakpointRequest) (*GetBreakpointResponse, error)
// Deletes the breakpoint from the debuggee.
DeleteBreakpoint(context.Context, *DeleteBreakpointRequest) (*empty.Empty, error)
// Lists all breakpoints for the debuggee.
ListBreakpoints(context.Context, *ListBreakpointsRequest) (*ListBreakpointsResponse, error)
// Lists all the debuggees that the user has access to.
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", fileDescriptor_682c945d4794189b)
}
var fileDescriptor_682c945d4794189b = []byte{
// 797 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xdd, 0x6a, 0xdb, 0x48,
0x14, 0x66, 0x9c, 0xcd, 0x8f, 0x8f, 0xe3, 0x24, 0x3b, 0xe4, 0x47, 0x78, 0xff, 0x8c,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x0e, 0xa2, 0xa9, 0x03, 0x39, 0x75, 0xd0, 0x30, 0x5a, 0x53, 0xd1, 0x7e, 0xeb, 0x9f,
0x02, 0x00, 0x00, 0xff, 0xff, 0x52, 0x23, 0xb7, 0x95, 0x14, 0x0b, 0x00, 0x00,
}

View file

@ -0,0 +1,564 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/common.proto
package clouderrorreporting
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
_ "google.golang.org/genproto/googleapis/api/monitoredres"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// 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,proto3" json:"name,omitempty"`
// Group IDs are unique for a given project. If the same kind of error
// occurs in different service contexts, it will receive the same group ID.
GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
// Associated tracking issues.
TrackingIssues []*TrackingIssue `protobuf:"bytes,3,rep,name=tracking_issues,json=trackingIssues,proto3" json:"tracking_issues,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ErrorGroup) Reset() { *m = ErrorGroup{} }
func (m *ErrorGroup) String() string { return proto.CompactTextString(m) }
func (*ErrorGroup) ProtoMessage() {}
func (*ErrorGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_d0e89497b32fa506, []int{0}
}
func (m *ErrorGroup) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ErrorGroup.Unmarshal(m, b)
}
func (m *ErrorGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ErrorGroup.Marshal(b, m, deterministic)
}
func (m *ErrorGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_ErrorGroup.Merge(m, src)
}
func (m *ErrorGroup) XXX_Size() int {
return xxx_messageInfo_ErrorGroup.Size(m)
}
func (m *ErrorGroup) XXX_DiscardUnknown() {
xxx_messageInfo_ErrorGroup.DiscardUnknown(m)
}
var xxx_messageInfo_ErrorGroup proto.InternalMessageInfo
func (m *ErrorGroup) GetName() string {
if m != nil {
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,proto3" json:"url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TrackingIssue) Reset() { *m = TrackingIssue{} }
func (m *TrackingIssue) String() string { return proto.CompactTextString(m) }
func (*TrackingIssue) ProtoMessage() {}
func (*TrackingIssue) Descriptor() ([]byte, []int) {
return fileDescriptor_d0e89497b32fa506, []int{1}
}
func (m *TrackingIssue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TrackingIssue.Unmarshal(m, b)
}
func (m *TrackingIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TrackingIssue.Marshal(b, m, deterministic)
}
func (m *TrackingIssue) XXX_Merge(src proto.Message) {
xxx_messageInfo_TrackingIssue.Merge(m, src)
}
func (m *TrackingIssue) XXX_Size() int {
return xxx_messageInfo_TrackingIssue.Size(m)
}
func (m *TrackingIssue) XXX_DiscardUnknown() {
xxx_messageInfo_TrackingIssue.DiscardUnknown(m)
}
var xxx_messageInfo_TrackingIssue proto.InternalMessageInfo
func (m *TrackingIssue) GetUrl() string {
if m != nil {
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 *timestamp.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
// The `ServiceContext` for which this error was reported.
ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
// The stack trace that was reported or logged by the service.
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// Data about the context in which the error occurred.
Context *ErrorContext `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ErrorEvent) Reset() { *m = ErrorEvent{} }
func (m *ErrorEvent) String() string { return proto.CompactTextString(m) }
func (*ErrorEvent) ProtoMessage() {}
func (*ErrorEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_d0e89497b32fa506, []int{2}
}
func (m *ErrorEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ErrorEvent.Unmarshal(m, b)
}
func (m *ErrorEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ErrorEvent.Marshal(b, m, deterministic)
}
func (m *ErrorEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ErrorEvent.Merge(m, src)
}
func (m *ErrorEvent) XXX_Size() int {
return xxx_messageInfo_ErrorEvent.Size(m)
}
func (m *ErrorEvent) XXX_DiscardUnknown() {
xxx_messageInfo_ErrorEvent.DiscardUnknown(m)
}
var xxx_messageInfo_ErrorEvent proto.InternalMessageInfo
func (m *ErrorEvent) GetEventTime() *timestamp.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,proto3" json:"service,omitempty"`
// Represents the source code version that the developer provided,
// which could represent a version label or a Git SHA-1 hash, for example.
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// Type of the MonitoredResource. List of possible values:
// https://cloud.google.com/monitoring/api/resources
//
// Value is set automatically for incoming errors and must not be set when
// reporting errors.
ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServiceContext) Reset() { *m = ServiceContext{} }
func (m *ServiceContext) String() string { return proto.CompactTextString(m) }
func (*ServiceContext) ProtoMessage() {}
func (*ServiceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_d0e89497b32fa506, []int{3}
}
func (m *ServiceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceContext.Unmarshal(m, b)
}
func (m *ServiceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceContext.Marshal(b, m, deterministic)
}
func (m *ServiceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceContext.Merge(m, src)
}
func (m *ServiceContext) XXX_Size() int {
return xxx_messageInfo_ServiceContext.Size(m)
}
func (m *ServiceContext) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceContext.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceContext proto.InternalMessageInfo
func (m *ServiceContext) GetService() string {
if m != nil {
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,proto3" json:"http_request,omitempty"`
// The user who caused or was affected by the crash.
// This can be a user ID, an email address, or an arbitrary token that
// uniquely identifies the user.
// 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,proto3" json:"user,omitempty"`
// The location in the source code where the decision was made to
// report the error, usually the place where it was logged.
// For a logged exception this would be the source line where the
// exception is logged, usually close to the place where it was
// caught. This value is in contrast to `Exception.cause_location`,
// which describes the source line where the exception was thrown.
ReportLocation *SourceLocation `protobuf:"bytes,3,opt,name=report_location,json=reportLocation,proto3" json:"report_location,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ErrorContext) Reset() { *m = ErrorContext{} }
func (m *ErrorContext) String() string { return proto.CompactTextString(m) }
func (*ErrorContext) ProtoMessage() {}
func (*ErrorContext) Descriptor() ([]byte, []int) {
return fileDescriptor_d0e89497b32fa506, []int{4}
}
func (m *ErrorContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ErrorContext.Unmarshal(m, b)
}
func (m *ErrorContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ErrorContext.Marshal(b, m, deterministic)
}
func (m *ErrorContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_ErrorContext.Merge(m, src)
}
func (m *ErrorContext) XXX_Size() int {
return xxx_messageInfo_ErrorContext.Size(m)
}
func (m *ErrorContext) XXX_DiscardUnknown() {
xxx_messageInfo_ErrorContext.DiscardUnknown(m)
}
var xxx_messageInfo_ErrorContext proto.InternalMessageInfo
func (m *ErrorContext) GetHttpRequest() *HttpRequestContext {
if m != nil {
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,proto3" json:"method,omitempty"`
// The URL of the request.
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// The user agent information that is provided with the request.
UserAgent string `protobuf:"bytes,3,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
// The referrer information that is provided with the request.
Referrer string `protobuf:"bytes,4,opt,name=referrer,proto3" json:"referrer,omitempty"`
// The HTTP response status code for the request.
ResponseStatusCode int32 `protobuf:"varint,5,opt,name=response_status_code,json=responseStatusCode,proto3" json:"response_status_code,omitempty"`
// The IP address from which the request originated.
// This can be IPv4, IPv6, or a token which is derived from the
// IP address, depending on the data that has been provided
// in the error report.
RemoteIp string `protobuf:"bytes,6,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HttpRequestContext) Reset() { *m = HttpRequestContext{} }
func (m *HttpRequestContext) String() string { return proto.CompactTextString(m) }
func (*HttpRequestContext) ProtoMessage() {}
func (*HttpRequestContext) Descriptor() ([]byte, []int) {
return fileDescriptor_d0e89497b32fa506, []int{5}
}
func (m *HttpRequestContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HttpRequestContext.Unmarshal(m, b)
}
func (m *HttpRequestContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HttpRequestContext.Marshal(b, m, deterministic)
}
func (m *HttpRequestContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_HttpRequestContext.Merge(m, src)
}
func (m *HttpRequestContext) XXX_Size() int {
return xxx_messageInfo_HttpRequestContext.Size(m)
}
func (m *HttpRequestContext) XXX_DiscardUnknown() {
xxx_messageInfo_HttpRequestContext.DiscardUnknown(m)
}
var xxx_messageInfo_HttpRequestContext proto.InternalMessageInfo
func (m *HttpRequestContext) GetMethod() string {
if m != nil {
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,proto3" json:"file_path,omitempty"`
// 1-based. 0 indicates that the line number is unknown.
LineNumber int32 `protobuf:"varint,2,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
// Human-readable name of a function or method.
// The value can include optional context like the class or package name.
// For example, `my.package.MyClass.method` in case of Java.
FunctionName string `protobuf:"bytes,4,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SourceLocation) Reset() { *m = SourceLocation{} }
func (m *SourceLocation) String() string { return proto.CompactTextString(m) }
func (*SourceLocation) ProtoMessage() {}
func (*SourceLocation) Descriptor() ([]byte, []int) {
return fileDescriptor_d0e89497b32fa506, []int{6}
}
func (m *SourceLocation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SourceLocation.Unmarshal(m, b)
}
func (m *SourceLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SourceLocation.Marshal(b, m, deterministic)
}
func (m *SourceLocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_SourceLocation.Merge(m, src)
}
func (m *SourceLocation) XXX_Size() int {
return xxx_messageInfo_SourceLocation.Size(m)
}
func (m *SourceLocation) XXX_DiscardUnknown() {
xxx_messageInfo_SourceLocation.DiscardUnknown(m)
}
var xxx_messageInfo_SourceLocation proto.InternalMessageInfo
func (m *SourceLocation) GetFilePath() string {
if m != nil {
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", fileDescriptor_d0e89497b32fa506)
}
var fileDescriptor_d0e89497b32fa506 = []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, 0x2c, 0x05, 0x8f, 0xa4, 0x12, 0x46, 0xe0, 0x57, 0x75, 0x66,
0x14, 0x32, 0xa3, 0x07, 0x32, 0x23, 0x9f, 0xd9, 0x7f, 0xee, 0xcb, 0x50, 0xc9, 0x62, 0xca, 0xb9,
0x30, 0xd4, 0x30, 0xc1, 0x75, 0x4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,
}

View file

@ -0,0 +1,265 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto
package clouderrorreporting
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
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 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,proto3" json:"group_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetGroupRequest) Reset() { *m = GetGroupRequest{} }
func (m *GetGroupRequest) String() string { return proto.CompactTextString(m) }
func (*GetGroupRequest) ProtoMessage() {}
func (*GetGroupRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cada5d349d61e784, []int{0}
}
func (m *GetGroupRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetGroupRequest.Unmarshal(m, b)
}
func (m *GetGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetGroupRequest.Marshal(b, m, deterministic)
}
func (m *GetGroupRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetGroupRequest.Merge(m, src)
}
func (m *GetGroupRequest) XXX_Size() int {
return xxx_messageInfo_GetGroupRequest.Size(m)
}
func (m *GetGroupRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetGroupRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetGroupRequest proto.InternalMessageInfo
func (m *GetGroupRequest) GetGroupName() string {
if m != nil {
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,proto3" json:"group,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateGroupRequest) Reset() { *m = UpdateGroupRequest{} }
func (m *UpdateGroupRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateGroupRequest) ProtoMessage() {}
func (*UpdateGroupRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cada5d349d61e784, []int{1}
}
func (m *UpdateGroupRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateGroupRequest.Unmarshal(m, b)
}
func (m *UpdateGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateGroupRequest.Marshal(b, m, deterministic)
}
func (m *UpdateGroupRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateGroupRequest.Merge(m, src)
}
func (m *UpdateGroupRequest) XXX_Size() int {
return xxx_messageInfo_UpdateGroupRequest.Size(m)
}
func (m *UpdateGroupRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateGroupRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateGroupRequest proto.InternalMessageInfo
func (m *UpdateGroupRequest) GetGroup() *ErrorGroup {
if m != nil {
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
// ErrorGroupServiceClient is the client API for ErrorGroupService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ErrorGroupServiceClient interface {
// Get the specified group.
GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*ErrorGroup, error)
// 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 := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup", in, out, 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 := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ErrorGroupServiceServer is the 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", fileDescriptor_cada5d349d61e784)
}
var fileDescriptor_cada5d349d61e784 = []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, 0x0b, 0xfd, 0x6a, 0x70, 0xdd,
0x48, 0xf1, 0x5a, 0xfc, 0x6a, 0xc0, 0x13, 0x8d, 0xff, 0x23, 0x64, 0x71, 0x25, 0x8b,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, 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,
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,320 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
package clouderrorreporting
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
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 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,proto3" json:"project_name,omitempty"`
// [Required] The error event to be reported.
Event *ReportedErrorEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReportErrorEventRequest) Reset() { *m = ReportErrorEventRequest{} }
func (m *ReportErrorEventRequest) String() string { return proto.CompactTextString(m) }
func (*ReportErrorEventRequest) ProtoMessage() {}
func (*ReportErrorEventRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_575af94d0209aede, []int{0}
}
func (m *ReportErrorEventRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReportErrorEventRequest.Unmarshal(m, b)
}
func (m *ReportErrorEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReportErrorEventRequest.Marshal(b, m, deterministic)
}
func (m *ReportErrorEventRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReportErrorEventRequest.Merge(m, src)
}
func (m *ReportErrorEventRequest) XXX_Size() int {
return xxx_messageInfo_ReportErrorEventRequest.Size(m)
}
func (m *ReportErrorEventRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ReportErrorEventRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ReportErrorEventRequest proto.InternalMessageInfo
func (m *ReportErrorEventRequest) GetProjectName() string {
if m != nil {
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 {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReportErrorEventResponse) Reset() { *m = ReportErrorEventResponse{} }
func (m *ReportErrorEventResponse) String() string { return proto.CompactTextString(m) }
func (*ReportErrorEventResponse) ProtoMessage() {}
func (*ReportErrorEventResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_575af94d0209aede, []int{1}
}
func (m *ReportErrorEventResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReportErrorEventResponse.Unmarshal(m, b)
}
func (m *ReportErrorEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReportErrorEventResponse.Marshal(b, m, deterministic)
}
func (m *ReportErrorEventResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReportErrorEventResponse.Merge(m, src)
}
func (m *ReportErrorEventResponse) XXX_Size() int {
return xxx_messageInfo_ReportErrorEventResponse.Size(m)
}
func (m *ReportErrorEventResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ReportErrorEventResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ReportErrorEventResponse proto.InternalMessageInfo
// An error event which is reported to the Error Reporting system.
type ReportedErrorEvent struct {
// [Optional] Time when the event occurred.
// If not provided, the time when the event was received by the
// Error Reporting system will be used.
EventTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
// [Required] The service context in which this error has occurred.
ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
// [Required] A message describing the error. The message can contain an
// exception stack in one of the supported programming languages and formats.
// In that case, the message is parsed and detailed exception information
// is returned when retrieving the error event again.
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// [Optional] A description of the context in which the error occurred.
Context *ErrorContext `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReportedErrorEvent) Reset() { *m = ReportedErrorEvent{} }
func (m *ReportedErrorEvent) String() string { return proto.CompactTextString(m) }
func (*ReportedErrorEvent) ProtoMessage() {}
func (*ReportedErrorEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_575af94d0209aede, []int{2}
}
func (m *ReportedErrorEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReportedErrorEvent.Unmarshal(m, b)
}
func (m *ReportedErrorEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReportedErrorEvent.Marshal(b, m, deterministic)
}
func (m *ReportedErrorEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReportedErrorEvent.Merge(m, src)
}
func (m *ReportedErrorEvent) XXX_Size() int {
return xxx_messageInfo_ReportedErrorEvent.Size(m)
}
func (m *ReportedErrorEvent) XXX_DiscardUnknown() {
xxx_messageInfo_ReportedErrorEvent.DiscardUnknown(m)
}
var xxx_messageInfo_ReportedErrorEvent proto.InternalMessageInfo
func (m *ReportedErrorEvent) GetEventTime() *timestamp.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
// ReportErrorsServiceClient is the client API for ReportErrorsService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ReportErrorsServiceClient interface {
// Report an individual error event.
//
// 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 := c.cc.Invoke(ctx, "/google.devtools.clouderrorreporting.v1beta1.ReportErrorsService/ReportErrorEvent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ReportErrorsServiceServer is the 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", fileDescriptor_575af94d0209aede)
}
var fileDescriptor_575af94d0209aede = []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, 0x5e, 0x7c, 0x85, 0x7d, 0x05,
0x4f, 0x3e, 0x8a, 0x57, 0x5f, 0xc0, 0x83, 0x0f, 0xa1, 0x37, 0xe9, 0xaf, 0x25, 0x6b, 0x72, 0x70,
0xf4, 0x58, 0xd3, 0x55, 0xbf, 0xff, 0xbf, 0x3e, 0x86, 0x1c, 0x95, 0x88, 0xe5, 0x1c, 0xd8, 0x0c,
0x96, 0x1a, 0x71, 0xae, 0x58, 0x31, 0xc7, 0xc5, 0x0c, 0xa4, 0x44, 0x29, 0xa1, 0x41, 0xa9, 0x2b,
0x51, 0xb2, 0x65, 0x7f, 0x0a, 0x9a, 0xf7, 0x99, 0xfb, 0x92, 0xdb, 0x57, 0x95, 0x2b, 0x90, 0xcb,
0xaa, 0x80, 0xb4, 0x91, 0xa8, 0x91, 0x3e, 0x74, 0xa0, 0x34, 0x80, 0xd2, 0x0d, 0xa0, 0xd4, 0x83,
0x92, 0x3b, 0x5e, 0x95, 0x37, 0x15, 0xe3, 0x42, 0xa0, 0xe6, 0xba, 0x42, 0xa1, 0x1c, 0x2a,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0xcc, 0x50, 0x79, 0x77, 0xf4, 0x7b, 0x44, 0x6e,
0xfe, 0x39, 0x5b, 0xfa, 0xec, 0x1f, 0xf6, 0xb6, 0x76, 0x2f, 0xc9, 0xf8, 0x3f, 0x29, 0x7e, 0xc1,
0x07, 0x9f, 0xbe, 0xfd, 0x38, 0xeb, 0x0c, 0x7b, 0x8f, 0xce, 0x4f, 0xfa, 0xc3, 0xea, 0x19, 0x3e,
0xf5, 0x81, 0x62, 0x0f, 0x3e, 0x32, 0xbb, 0x44, 0xb5, 0xe7, 0xe8, 0x7b, 0xee, 0x7a, 0x46, 0xbf,
0x22, 0x62, 0xfe, 0x82, 0x36, 0x6e, 0x46, 0xf1, 0x86, 0x59, 0x1d, 0x9b, 0xab, 0x39, 0x8e, 0x5e,
0xbd, 0xf6, 0xa0, 0x12, 0xe7, 0x5c, 0x94, 0x29, 0xca, 0x92, 0x95, 0x20, 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,676 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/cloudprofiler/v2/profiler.proto
package cloudprofiler
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
_ "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
field_mask "google.golang.org/genproto/protobuf/field_mask"
math "math"
)
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
// In-use heap profile. Represents a snapshot of the allocations that are
// live at the time of the profiling.
ProfileType_HEAP ProfileType = 3
// Single-shot collection of all thread stacks.
ProfileType_THREADS ProfileType = 4
// Synchronization contention profile.
ProfileType_CONTENTION ProfileType = 5
// Peak heap profile.
ProfileType_PEAK_HEAP ProfileType = 6
// Heap allocation profile. It represents the aggregation of all allocations
// made over the duration of the profile. All allocations are included,
// including those that might have been freed by the end of the profiling
// interval. The profile is in particular useful for garbage collecting
// languages to understand which parts of the code create most of the garbage
// collection pressure to see if those can be optimized.
ProfileType_HEAP_ALLOC ProfileType = 7
)
var ProfileType_name = map[int32]string{
0: "PROFILE_TYPE_UNSPECIFIED",
1: "CPU",
2: "WALL",
3: "HEAP",
4: "THREADS",
5: "CONTENTION",
6: "PEAK_HEAP",
7: "HEAP_ALLOC",
}
var ProfileType_value = map[string]int32{
"PROFILE_TYPE_UNSPECIFIED": 0,
"CPU": 1,
"WALL": 2,
"HEAP": 3,
"THREADS": 4,
"CONTENTION": 5,
"PEAK_HEAP": 6,
"HEAP_ALLOC": 7,
}
func (x ProfileType) String() string {
return proto.EnumName(ProfileType_name, int32(x))
}
func (ProfileType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_74a10a5851161432, []int{0}
}
// CreateProfileRequest describes a profile resource online creation request.
// The deployment field must be populated. The profile_type specifies the list
// of profile types supported by the agent. The creation call will hang until a
// profile of one of these types needs to be collected.
type CreateProfileRequest struct {
// Parent project to create the profile in.
Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
// Deployment details.
Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
// One or more profile types that the agent is capable of providing.
ProfileType []ProfileType `protobuf:"varint,2,rep,packed,name=profile_type,json=profileType,proto3,enum=google.devtools.cloudprofiler.v2.ProfileType" json:"profile_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateProfileRequest) Reset() { *m = CreateProfileRequest{} }
func (m *CreateProfileRequest) String() string { return proto.CompactTextString(m) }
func (*CreateProfileRequest) ProtoMessage() {}
func (*CreateProfileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_74a10a5851161432, []int{0}
}
func (m *CreateProfileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateProfileRequest.Unmarshal(m, b)
}
func (m *CreateProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateProfileRequest.Marshal(b, m, deterministic)
}
func (m *CreateProfileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateProfileRequest.Merge(m, src)
}
func (m *CreateProfileRequest) XXX_Size() int {
return xxx_messageInfo_CreateProfileRequest.Size(m)
}
func (m *CreateProfileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateProfileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateProfileRequest proto.InternalMessageInfo
func (m *CreateProfileRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateProfileRequest) GetDeployment() *Deployment {
if m != nil {
return m.Deployment
}
return nil
}
func (m *CreateProfileRequest) GetProfileType() []ProfileType {
if m != nil {
return m.ProfileType
}
return nil
}
// CreateOfflineProfileRequest describes a profile resource offline creation
// request. Profile field must be set.
type CreateOfflineProfileRequest struct {
// Parent project to create the profile in.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Contents of the profile to create.
Profile *Profile `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateOfflineProfileRequest) Reset() { *m = CreateOfflineProfileRequest{} }
func (m *CreateOfflineProfileRequest) String() string { return proto.CompactTextString(m) }
func (*CreateOfflineProfileRequest) ProtoMessage() {}
func (*CreateOfflineProfileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_74a10a5851161432, []int{1}
}
func (m *CreateOfflineProfileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateOfflineProfileRequest.Unmarshal(m, b)
}
func (m *CreateOfflineProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateOfflineProfileRequest.Marshal(b, m, deterministic)
}
func (m *CreateOfflineProfileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateOfflineProfileRequest.Merge(m, src)
}
func (m *CreateOfflineProfileRequest) XXX_Size() int {
return xxx_messageInfo_CreateOfflineProfileRequest.Size(m)
}
func (m *CreateOfflineProfileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateOfflineProfileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateOfflineProfileRequest proto.InternalMessageInfo
func (m *CreateOfflineProfileRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateOfflineProfileRequest) GetProfile() *Profile {
if m != nil {
return m.Profile
}
return nil
}
// UpdateProfileRequest contains the profile to update.
type UpdateProfileRequest struct {
// Profile to update
Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
// Field mask used to specify the fields to be overwritten. Currently only
// profile_bytes and labels fields are supported by UpdateProfile, so only
// those fields can be specified in the mask. When no mask is provided, all
// fields are overwritten.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateProfileRequest) Reset() { *m = UpdateProfileRequest{} }
func (m *UpdateProfileRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateProfileRequest) ProtoMessage() {}
func (*UpdateProfileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_74a10a5851161432, []int{2}
}
func (m *UpdateProfileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateProfileRequest.Unmarshal(m, b)
}
func (m *UpdateProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateProfileRequest.Marshal(b, m, deterministic)
}
func (m *UpdateProfileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateProfileRequest.Merge(m, src)
}
func (m *UpdateProfileRequest) XXX_Size() int {
return xxx_messageInfo_UpdateProfileRequest.Size(m)
}
func (m *UpdateProfileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateProfileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateProfileRequest proto.InternalMessageInfo
func (m *UpdateProfileRequest) GetProfile() *Profile {
if m != nil {
return m.Profile
}
return nil
}
func (m *UpdateProfileRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// Profile resource.
type Profile struct {
// Output only. Opaque, server-assigned, unique ID for this profile.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Type of profile.
// For offline mode, this must be specified when creating the profile. For
// online mode it is assigned and returned by the server.
ProfileType ProfileType `protobuf:"varint,2,opt,name=profile_type,json=profileType,proto3,enum=google.devtools.cloudprofiler.v2.ProfileType" json:"profile_type,omitempty"`
// Deployment this profile corresponds to.
Deployment *Deployment `protobuf:"bytes,3,opt,name=deployment,proto3" json:"deployment,omitempty"`
// Duration of the profiling session.
// Input (for the offline mode) or output (for the online mode).
// The field represents requested profiling duration. It may slightly differ
// from the effective profiling duration, which is recorded in the profile
// data, in case the profiling can't be stopped immediately (e.g. in case
// stopping the profiling is handled asynchronously).
Duration *duration.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"`
// Input only. Profile bytes, as a gzip compressed serialized proto, the
// format is https://github.com/google/pprof/blob/master/proto/profile.proto.
ProfileBytes []byte `protobuf:"bytes,5,opt,name=profile_bytes,json=profileBytes,proto3" json:"profile_bytes,omitempty"`
// Input only. Labels associated to this specific profile. These labels will
// get merged with the deployment labels for the final data set. See
// documentation on deployment labels for validation rules and limits.
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Profile) Reset() { *m = Profile{} }
func (m *Profile) String() string { return proto.CompactTextString(m) }
func (*Profile) ProtoMessage() {}
func (*Profile) Descriptor() ([]byte, []int) {
return fileDescriptor_74a10a5851161432, []int{3}
}
func (m *Profile) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Profile.Unmarshal(m, b)
}
func (m *Profile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Profile.Marshal(b, m, deterministic)
}
func (m *Profile) XXX_Merge(src proto.Message) {
xxx_messageInfo_Profile.Merge(m, src)
}
func (m *Profile) XXX_Size() int {
return xxx_messageInfo_Profile.Size(m)
}
func (m *Profile) XXX_DiscardUnknown() {
xxx_messageInfo_Profile.DiscardUnknown(m)
}
var xxx_messageInfo_Profile proto.InternalMessageInfo
func (m *Profile) GetName() string {
if m != nil {
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() *duration.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,proto3" json:"project_id,omitempty"`
// Target is the service name used to group related deployments:
// * Service name for GAE Flex / Standard.
// * Cluster and container name for GKE.
// * User-specified string for direct GCE profiling (e.g. Java).
// * Job name for Dataflow.
// Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
// Labels identify the deployment within the user universe and same target.
// Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
// Value for an individual label must be <= 512 bytes, the total
// 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,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Deployment) Reset() { *m = Deployment{} }
func (m *Deployment) String() string { return proto.CompactTextString(m) }
func (*Deployment) ProtoMessage() {}
func (*Deployment) Descriptor() ([]byte, []int) {
return fileDescriptor_74a10a5851161432, []int{4}
}
func (m *Deployment) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Deployment.Unmarshal(m, b)
}
func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Deployment.Marshal(b, m, deterministic)
}
func (m *Deployment) XXX_Merge(src proto.Message) {
xxx_messageInfo_Deployment.Merge(m, src)
}
func (m *Deployment) XXX_Size() int {
return xxx_messageInfo_Deployment.Size(m)
}
func (m *Deployment) XXX_DiscardUnknown() {
xxx_messageInfo_Deployment.DiscardUnknown(m)
}
var xxx_messageInfo_Deployment proto.InternalMessageInfo
func (m *Deployment) GetProjectId() string {
if m != nil {
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.RegisterEnum("google.devtools.cloudprofiler.v2.ProfileType", ProfileType_name, ProfileType_value)
proto.RegisterType((*CreateProfileRequest)(nil), "google.devtools.cloudprofiler.v2.CreateProfileRequest")
proto.RegisterType((*CreateOfflineProfileRequest)(nil), "google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest")
proto.RegisterType((*UpdateProfileRequest)(nil), "google.devtools.cloudprofiler.v2.UpdateProfileRequest")
proto.RegisterType((*Profile)(nil), "google.devtools.cloudprofiler.v2.Profile")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.cloudprofiler.v2.Profile.LabelsEntry")
proto.RegisterType((*Deployment)(nil), "google.devtools.cloudprofiler.v2.Deployment")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.cloudprofiler.v2.Deployment.LabelsEntry")
}
// 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
// ProfilerServiceClient is the client API for ProfilerService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ProfilerServiceClient interface {
// CreateProfile creates a new profile resource in the online 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".
CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*Profile, error)
// CreateOfflineProfile creates a new profile resource in the offline mode.
// The client provides the profile to create along with the profile bytes, the
// server records it.
CreateOfflineProfile(ctx context.Context, in *CreateOfflineProfileRequest, opts ...grpc.CallOption) (*Profile, error)
// UpdateProfile updates the profile bytes and labels on the profile resource
// created in the online mode. Updating the bytes for profiles created in the
// offline mode is currently not supported: the profile content must be
// provided at the time of the profile creation.
UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*Profile, error)
}
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 := c.cc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/CreateProfile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *profilerServiceClient) CreateOfflineProfile(ctx context.Context, in *CreateOfflineProfileRequest, opts ...grpc.CallOption) (*Profile, error) {
out := new(Profile)
err := c.cc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/CreateOfflineProfile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *profilerServiceClient) UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*Profile, error) {
out := new(Profile)
err := c.cc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/UpdateProfile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ProfilerServiceServer is the server API for ProfilerService service.
type ProfilerServiceServer interface {
// CreateProfile creates a new profile resource in the online 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".
CreateProfile(context.Context, *CreateProfileRequest) (*Profile, error)
// CreateOfflineProfile creates a new profile resource in the offline mode.
// The client provides the profile to create along with the profile bytes, the
// server records it.
CreateOfflineProfile(context.Context, *CreateOfflineProfileRequest) (*Profile, error)
// UpdateProfile updates the profile bytes and labels on the profile resource
// created in the online mode. Updating the bytes for profiles created in the
// offline mode is currently not supported: the profile content must be
// provided at the time of the profile creation.
UpdateProfile(context.Context, *UpdateProfileRequest) (*Profile, error)
}
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_CreateOfflineProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateOfflineProfileRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProfilerServiceServer).CreateOfflineProfile(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.cloudprofiler.v2.ProfilerService/CreateOfflineProfile",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProfilerServiceServer).CreateOfflineProfile(ctx, req.(*CreateOfflineProfileRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ProfilerService_UpdateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateProfileRequest)
if err := dec(in); err != nil {
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: "CreateOfflineProfile",
Handler: _ProfilerService_CreateOfflineProfile_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", fileDescriptor_74a10a5851161432)
}
var fileDescriptor_74a10a5851161432 = []byte{
// 786 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5f, 0x6f, 0xda, 0x56,
0x14, 0xdf, 0xc5, 0x04, 0xc2, 0x71, 0xc8, 0xac, 0xab, 0x68, 0x62, 0x2c, 0xdb, 0x2c, 0x4f, 0x93,
0x18, 0xdb, 0x6c, 0xc9, 0x51, 0xa6, 0xfc, 0x51, 0x34, 0x11, 0x70, 0x14, 0x34, 0x02, 0x96, 0x43,
0x34, 0x6d, 0x2f, 0xc8, 0xe0, 0x0b, 0x72, 0x63, 0x6c, 0xd7, 0x36, 0x48, 0xb4, 0xca, 0x4b, 0xd5,
0x6f, 0xd0, 0x97, 0xbe, 0xf5, 0xa1, 0x0f, 0x7d, 0xea, 0x87, 0xe8, 0x17, 0xa8, 0x2a, 0xf5, 0x2b,
0xf4, 0x83, 0x54, 0xb6, 0xaf, 0x09, 0x24, 0x44, 0x90, 0xa6, 0x6f, 0xe7, 0xde, 0x7b, 0xce, 0xcf,
0xbf, 0xdf, 0xb9, 0xc7, 0x3f, 0x1b, 0xa4, 0x81, 0xe3, 0x0c, 0x2c, 0x22, 0x19, 0x64, 0x1c, 0x38,
0x8e, 0xe5, 0x4b, 0x3d, 0xcb, 0x19, 0x19, 0xae, 0xe7, 0xf4, 0x4d, 0x8b, 0x78, 0xd2, 0x58, 0x96,
0x92, 0x58, 0x74, 0x3d, 0x27, 0x70, 0x30, 0x1f, 0x17, 0x88, 0x49, 0x81, 0x38, 0x57, 0x20, 0x8e,
0xe5, 0xe2, 0x36, 0x85, 0xd4, 0x5d, 0x53, 0xd2, 0x6d, 0xdb, 0x09, 0xf4, 0xc0, 0x74, 0x6c, 0x3f,
0xae, 0x2f, 0xfe, 0x44, 0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, 0x35, 0x7d, 0x5b, 0x43, 0xa7, 0x9b, 0xe1, 0x3e, 0xa5, 0x2e, 0x95, 0xaf, 0xa6, 0x7c,
0x8f, 0x5b, 0xff, 0x9f, 0xd1, 0xc7, 0x0c, 0x1c, 0x4b, 0xb7, 0x07, 0xa2, 0xe3, 0x0d, 0xa4, 0x01,
0xb1, 0x23, 0x9b, 0xa1, 0xbf, 0x00, 0xba, 0x6b, 0xfa, 0x77, 0xff, 0x06, 0x1c, 0xce, 0x6d, 0x74,
0x33, 0x51, 0xe5, 0xce, 0xe7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0c, 0x08, 0x2b, 0x60, 0x3f, 0x08,
0x00, 0x00,
}

View file

@ -0,0 +1,883 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/cloudtrace/v1/trace.proto
package cloudtrace
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
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 fileDescriptor_91f8d9fbc62846cf, []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 fileDescriptor_91f8d9fbc62846cf, []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,proto3" json:"project_id,omitempty"`
// Globally unique identifier for the trace. This identifier is a 128-bit
// numeric value formatted as a 32-byte hex string.
TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
// Collection of spans in the trace.
Spans []*TraceSpan `protobuf:"bytes,3,rep,name=spans,proto3" json:"spans,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Trace) Reset() { *m = Trace{} }
func (m *Trace) String() string { return proto.CompactTextString(m) }
func (*Trace) ProtoMessage() {}
func (*Trace) Descriptor() ([]byte, []int) {
return fileDescriptor_91f8d9fbc62846cf, []int{0}
}
func (m *Trace) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Trace.Unmarshal(m, b)
}
func (m *Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Trace.Marshal(b, m, deterministic)
}
func (m *Trace) XXX_Merge(src proto.Message) {
xxx_messageInfo_Trace.Merge(m, src)
}
func (m *Trace) XXX_Size() int {
return xxx_messageInfo_Trace.Size(m)
}
func (m *Trace) XXX_DiscardUnknown() {
xxx_messageInfo_Trace.DiscardUnknown(m)
}
var xxx_messageInfo_Trace proto.InternalMessageInfo
func (m *Trace) GetProjectId() string {
if m != nil {
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,proto3" json:"traces,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Traces) Reset() { *m = Traces{} }
func (m *Traces) String() string { return proto.CompactTextString(m) }
func (*Traces) ProtoMessage() {}
func (*Traces) Descriptor() ([]byte, []int) {
return fileDescriptor_91f8d9fbc62846cf, []int{1}
}
func (m *Traces) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Traces.Unmarshal(m, b)
}
func (m *Traces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Traces.Marshal(b, m, deterministic)
}
func (m *Traces) XXX_Merge(src proto.Message) {
xxx_messageInfo_Traces.Merge(m, src)
}
func (m *Traces) XXX_Size() int {
return xxx_messageInfo_Traces.Size(m)
}
func (m *Traces) XXX_DiscardUnknown() {
xxx_messageInfo_Traces.DiscardUnknown(m)
}
var xxx_messageInfo_Traces proto.InternalMessageInfo
func (m *Traces) GetTraces() []*Trace {
if m != nil {
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,proto3" json:"span_id,omitempty"`
// Distinguishes between spans generated in a particular context. For example,
// two spans with the same name may be distinguished using `RPC_CLIENT`
// and `RPC_SERVER` to identify queueing latency associated with the span.
Kind TraceSpan_SpanKind `protobuf:"varint,2,opt,name=kind,proto3,enum=google.devtools.cloudtrace.v1.TraceSpan_SpanKind" json:"kind,omitempty"`
// Name of the span. Must be less than 128 bytes. The span name is sanitized
// and displayed in the Stackdriver Trace tool in the
// {% dynamic print site_values.console_name %}.
// 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,proto3" json:"name,omitempty"`
// Start time of the span in nanoseconds from the UNIX epoch.
StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// End time of the span in nanoseconds from the UNIX epoch.
EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// ID of the parent span, if any. Optional.
ParentSpanId uint64 `protobuf:"fixed64,6,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"`
// Collection of labels associated with the span. Label keys must be less than
// 128 bytes. Label values must be less than 16 kilobytes (10MB for
// `/stacktrace` values).
//
// 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/path`
// * `/http/redirected_url`
// * `/http/request/size`
// * `/http/response/size`
// * `/http/route`
// * `/http/status_code`
// * `/http/url`
// * `/http/user_agent`
// * `/pid`
// * `/stacktrace`
// * `/tid`
Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TraceSpan) Reset() { *m = TraceSpan{} }
func (m *TraceSpan) String() string { return proto.CompactTextString(m) }
func (*TraceSpan) ProtoMessage() {}
func (*TraceSpan) Descriptor() ([]byte, []int) {
return fileDescriptor_91f8d9fbc62846cf, []int{2}
}
func (m *TraceSpan) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TraceSpan.Unmarshal(m, b)
}
func (m *TraceSpan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TraceSpan.Marshal(b, m, deterministic)
}
func (m *TraceSpan) XXX_Merge(src proto.Message) {
xxx_messageInfo_TraceSpan.Merge(m, src)
}
func (m *TraceSpan) XXX_Size() int {
return xxx_messageInfo_TraceSpan.Size(m)
}
func (m *TraceSpan) XXX_DiscardUnknown() {
xxx_messageInfo_TraceSpan.DiscardUnknown(m)
}
var xxx_messageInfo_TraceSpan proto.InternalMessageInfo
func (m *TraceSpan) GetSpanId() uint64 {
if m != nil {
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() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *TraceSpan) GetEndTime() *timestamp.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,proto3" json:"project_id,omitempty"`
// Type of data returned for traces in the list. Optional. Default is
// `MINIMAL`.
View ListTracesRequest_ViewType `protobuf:"varint,2,opt,name=view,proto3,enum=google.devtools.cloudtrace.v1.ListTracesRequest_ViewType" json:"view,omitempty"`
// Maximum number of traces to return. If not specified or <= 0, the
// implementation selects a reasonable value. The implementation may
// return fewer traces than the requested page size. Optional.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Token identifying the page of results to return. If provided, use the
// value of the `next_page_token` field from a previous request. Optional.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Start of the time interval (inclusive) during which the trace data was
// collected from the application.
StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// End of the time interval (inclusive) during which the trace data was
// collected from the application.
EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// An optional filter against labels for the request.
//
// By default, searches use prefix matching. To specify exact match, prepend
// 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,proto3" 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,proto3" json:"order_by,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListTracesRequest) Reset() { *m = ListTracesRequest{} }
func (m *ListTracesRequest) String() string { return proto.CompactTextString(m) }
func (*ListTracesRequest) ProtoMessage() {}
func (*ListTracesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_91f8d9fbc62846cf, []int{3}
}
func (m *ListTracesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListTracesRequest.Unmarshal(m, b)
}
func (m *ListTracesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListTracesRequest.Marshal(b, m, deterministic)
}
func (m *ListTracesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListTracesRequest.Merge(m, src)
}
func (m *ListTracesRequest) XXX_Size() int {
return xxx_messageInfo_ListTracesRequest.Size(m)
}
func (m *ListTracesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListTracesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListTracesRequest proto.InternalMessageInfo
func (m *ListTracesRequest) GetProjectId() string {
if m != nil {
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() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *ListTracesRequest) GetEndTime() *timestamp.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,proto3" json:"traces,omitempty"`
// If defined, indicates that there are more traces that match the request
// and that this value should be passed to the next request to continue
// retrieving additional traces.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListTracesResponse) Reset() { *m = ListTracesResponse{} }
func (m *ListTracesResponse) String() string { return proto.CompactTextString(m) }
func (*ListTracesResponse) ProtoMessage() {}
func (*ListTracesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_91f8d9fbc62846cf, []int{4}
}
func (m *ListTracesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListTracesResponse.Unmarshal(m, b)
}
func (m *ListTracesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListTracesResponse.Marshal(b, m, deterministic)
}
func (m *ListTracesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListTracesResponse.Merge(m, src)
}
func (m *ListTracesResponse) XXX_Size() int {
return xxx_messageInfo_ListTracesResponse.Size(m)
}
func (m *ListTracesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListTracesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListTracesResponse proto.InternalMessageInfo
func (m *ListTracesResponse) GetTraces() []*Trace {
if m != nil {
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,proto3" json:"project_id,omitempty"`
// ID of the trace to return.
TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetTraceRequest) Reset() { *m = GetTraceRequest{} }
func (m *GetTraceRequest) String() string { return proto.CompactTextString(m) }
func (*GetTraceRequest) ProtoMessage() {}
func (*GetTraceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_91f8d9fbc62846cf, []int{5}
}
func (m *GetTraceRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetTraceRequest.Unmarshal(m, b)
}
func (m *GetTraceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetTraceRequest.Marshal(b, m, deterministic)
}
func (m *GetTraceRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetTraceRequest.Merge(m, src)
}
func (m *GetTraceRequest) XXX_Size() int {
return xxx_messageInfo_GetTraceRequest.Size(m)
}
func (m *GetTraceRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetTraceRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetTraceRequest proto.InternalMessageInfo
func (m *GetTraceRequest) GetProjectId() string {
if m != nil {
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,proto3" json:"project_id,omitempty"`
// The body of the message.
Traces *Traces `protobuf:"bytes,2,opt,name=traces,proto3" json:"traces,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PatchTracesRequest) Reset() { *m = PatchTracesRequest{} }
func (m *PatchTracesRequest) String() string { return proto.CompactTextString(m) }
func (*PatchTracesRequest) ProtoMessage() {}
func (*PatchTracesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_91f8d9fbc62846cf, []int{6}
}
func (m *PatchTracesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PatchTracesRequest.Unmarshal(m, b)
}
func (m *PatchTracesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PatchTracesRequest.Marshal(b, m, deterministic)
}
func (m *PatchTracesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PatchTracesRequest.Merge(m, src)
}
func (m *PatchTracesRequest) XXX_Size() int {
return xxx_messageInfo_PatchTracesRequest.Size(m)
}
func (m *PatchTracesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PatchTracesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PatchTracesRequest proto.InternalMessageInfo
func (m *PatchTracesRequest) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *PatchTracesRequest) GetTraces() *Traces {
if m != nil {
return m.Traces
}
return nil
}
func init() {
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)
proto.RegisterType((*Trace)(nil), "google.devtools.cloudtrace.v1.Trace")
proto.RegisterType((*Traces)(nil), "google.devtools.cloudtrace.v1.Traces")
proto.RegisterType((*TraceSpan)(nil), "google.devtools.cloudtrace.v1.TraceSpan")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry")
proto.RegisterType((*ListTracesRequest)(nil), "google.devtools.cloudtrace.v1.ListTracesRequest")
proto.RegisterType((*ListTracesResponse)(nil), "google.devtools.cloudtrace.v1.ListTracesResponse")
proto.RegisterType((*GetTraceRequest)(nil), "google.devtools.cloudtrace.v1.GetTraceRequest")
proto.RegisterType((*PatchTracesRequest)(nil), "google.devtools.cloudtrace.v1.PatchTracesRequest")
}
// 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
// TraceServiceClient is the client API for TraceService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TraceServiceClient interface {
// Returns of a list of traces that match the specified filter conditions.
ListTraces(ctx context.Context, in *ListTracesRequest, opts ...grpc.CallOption) (*ListTracesResponse, error)
// 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) (*empty.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 := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/ListTraces", in, out, 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 := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/GetTrace", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *traceServiceClient) PatchTraces(ctx context.Context, in *PatchTracesRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/PatchTraces", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// TraceServiceServer is the server API for TraceService service.
type TraceServiceServer interface {
// Returns of a list of traces that match the specified filter conditions.
ListTraces(context.Context, *ListTracesRequest) (*ListTracesResponse, error)
// 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) (*empty.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", fileDescriptor_91f8d9fbc62846cf)
}
var fileDescriptor_91f8d9fbc62846cf = []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, 0xf1,
0x1a, 0x68, 0x66, 0x76, 0x9b, 0x28, 0x51, 0x63, 0x07, 0x6e, 0xa2, 0x39, 0x67, 0xce, 0xef,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x6c, 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,230 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/cloudtrace/v2/tracing.proto
package cloudtrace
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_ "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The 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,proto3" json:"name,omitempty"`
// A list of new spans. The span names must not match existing
// spans, or the results are undefined.
Spans []*Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchWriteSpansRequest) Reset() { *m = BatchWriteSpansRequest{} }
func (m *BatchWriteSpansRequest) String() string { return proto.CompactTextString(m) }
func (*BatchWriteSpansRequest) ProtoMessage() {}
func (*BatchWriteSpansRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d1f9b588db05fdc6, []int{0}
}
func (m *BatchWriteSpansRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchWriteSpansRequest.Unmarshal(m, b)
}
func (m *BatchWriteSpansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchWriteSpansRequest.Marshal(b, m, deterministic)
}
func (m *BatchWriteSpansRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchWriteSpansRequest.Merge(m, src)
}
func (m *BatchWriteSpansRequest) XXX_Size() int {
return xxx_messageInfo_BatchWriteSpansRequest.Size(m)
}
func (m *BatchWriteSpansRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchWriteSpansRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchWriteSpansRequest proto.InternalMessageInfo
func (m *BatchWriteSpansRequest) GetName() string {
if m != nil {
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
// TraceServiceClient is the client API for TraceService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TraceServiceClient interface {
// Sends new spans to new or existing traces. You cannot update
// existing spans.
BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*empty.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) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *traceServiceClient) CreateSpan(ctx context.Context, in *Span, opts ...grpc.CallOption) (*Span, error) {
out := new(Span)
err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v2.TraceService/CreateSpan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// TraceServiceServer is the server API for TraceService service.
type TraceServiceServer interface {
// Sends new spans to new or existing traces. You cannot update
// existing spans.
BatchWriteSpans(context.Context, *BatchWriteSpansRequest) (*empty.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", fileDescriptor_d1f9b588db05fdc6)
}
var fileDescriptor_d1f9b588db05fdc6 = []byte{
// 404 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xdd, 0x6a, 0xdb, 0x30,
0x14, 0x46, 0xde, 0x0f, 0x4c, 0x1b, 0x0c, 0x04, 0x0b, 0xc1, 0xdb, 0x58, 0xe6, 0x0d, 0x96, 0x64,
0x43, 0x02, 0x8f, 0x5d, 0x2c, 0x63, 0x37, 0x09, 0x23, 0xb7, 0x21, 0x19, 0x19, 0x8c, 0xdc, 0x28,
0x8e, 0xa6, 0x69, 0xd8, 0x92, 0x67, 0x29, 0x86, 0x52, 0x7a, 0xd3, 0x9b, 0x3e, 0x40, 0xfb, 0x14,
0xa5, 0xd0, 0xf7, 0xe8, 0x6d, 0x5f, 0xa1, 0x0f, 0x52, 0x24, 0xd9, 0x0d, 0x84, 0x34, 0xc9, 0x9d,
0xce, 0x39, 0xdf, 0xf9,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0x1d, 0x5a, 0x07,
0xdf, 0xf3, 0x42, 0xfd, 0x63, 0x89, 0xd1, 0xa4, 0x7b, 0xe4, 0x53, 0xd4, 0xbd, 0xf9, 0x1d, 0x69,
0x0f, 0x74, 0xd1, 0x09, 0x80, 0x70, 0x50, 0x30, 0xea, 0x4f, 0xa0, 0x7d, 0x2c, 0x86, 0xfb, 0x80,
0x22, 0xe2, 0xc4, 0x74, 0xa2, 0xf7, 0x9b, 0xc4, 0x54, 0x5a, 0xac, 0x2a, 0x17, 0x57, 0x0f, 0x74,
0xfb, 0x17, 0x00, 0xbe, 0x4d, 0x54, 0xb6, 0x9d, 0xbb, 0xef, 0x42, 0x15, 0x92, 0x8f, 0xac, 0xf5,
0x11, 0xf8, 0x3d, 0xac, 0xe0, 0x5c, 0xa5, 0x54, 0x72, 0xac, 0x0a, 0x4e, 0x38, 0x93, 0x2e, 0x18,
0xe2, 0x47, 0x34, 0x17, 0xfa, 0x9e, 0x1f, 0xeb, 0xdb, 0xaa, 0x3a, 0x0f, 0x5e, 0x0c, 0x3d, 0xd3,
0xc0, 0xf6, 0xb0, 0xfb, 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,392 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto
package containeranalysis
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// 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 fileDescriptor_7bcf14fe966f6fd8, []int{0, 0}
}
// PackageManager provides metadata about available / installed packages.
type PackageManager struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager) Reset() { *m = PackageManager{} }
func (m *PackageManager) String() string { return proto.CompactTextString(m) }
func (*PackageManager) ProtoMessage() {}
func (*PackageManager) Descriptor() ([]byte, []int) {
return fileDescriptor_7bcf14fe966f6fd8, []int{0}
}
func (m *PackageManager) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager.Unmarshal(m, b)
}
func (m *PackageManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager.Marshal(b, m, deterministic)
}
func (m *PackageManager) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager.Merge(m, src)
}
func (m *PackageManager) XXX_Size() int {
return xxx_messageInfo_PackageManager.Size(m)
}
func (m *PackageManager) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager proto.InternalMessageInfo
// This represents a particular channel of distribution for a given package.
// e.g. Debian's jessie-backports dpkg mirror
type PackageManager_Distribution struct {
// The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
// denoting the package manager version distributing a package.
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
// The CPU architecture for which packages in this distribution
// channel were built
Architecture PackageManager_Architecture `protobuf:"varint,2,opt,name=architecture,proto3,enum=google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture" json:"architecture,omitempty"`
// The latest available version of this package in
// this distribution channel.
LatestVersion *VulnerabilityType_Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"`
// A freeform string denoting the maintainer of this package.
Maintainer string `protobuf:"bytes,4,opt,name=maintainer,proto3" json:"maintainer,omitempty"`
// The distribution channel-specific homepage for this package.
Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"`
// The distribution channel-specific description of this package.
Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Distribution) Reset() { *m = PackageManager_Distribution{} }
func (m *PackageManager_Distribution) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Distribution) ProtoMessage() {}
func (*PackageManager_Distribution) Descriptor() ([]byte, []int) {
return fileDescriptor_7bcf14fe966f6fd8, []int{0, 0}
}
func (m *PackageManager_Distribution) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Distribution.Unmarshal(m, b)
}
func (m *PackageManager_Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Distribution.Marshal(b, m, deterministic)
}
func (m *PackageManager_Distribution) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Distribution.Merge(m, src)
}
func (m *PackageManager_Distribution) XXX_Size() int {
return xxx_messageInfo_PackageManager_Distribution.Size(m)
}
func (m *PackageManager_Distribution) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Distribution.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Distribution proto.InternalMessageInfo
func (m *PackageManager_Distribution) GetCpeUri() string {
if m != nil {
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,proto3" json:"cpe_uri,omitempty"`
// The version installed at this location.
Version *VulnerabilityType_Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// The path from which we gathered that this package/version is installed.
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Location) Reset() { *m = PackageManager_Location{} }
func (m *PackageManager_Location) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Location) ProtoMessage() {}
func (*PackageManager_Location) Descriptor() ([]byte, []int) {
return fileDescriptor_7bcf14fe966f6fd8, []int{0, 1}
}
func (m *PackageManager_Location) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Location.Unmarshal(m, b)
}
func (m *PackageManager_Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Location.Marshal(b, m, deterministic)
}
func (m *PackageManager_Location) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Location.Merge(m, src)
}
func (m *PackageManager_Location) XXX_Size() int {
return xxx_messageInfo_PackageManager_Location.Size(m)
}
func (m *PackageManager_Location) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Location.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Location proto.InternalMessageInfo
func (m *PackageManager_Location) GetCpeUri() string {
if m != nil {
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,proto3" json:"name,omitempty"`
// The various channels by which a package is distributed.
Distribution []*PackageManager_Distribution `protobuf:"bytes,10,rep,name=distribution,proto3" json:"distribution,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Package) Reset() { *m = PackageManager_Package{} }
func (m *PackageManager_Package) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Package) ProtoMessage() {}
func (*PackageManager_Package) Descriptor() ([]byte, []int) {
return fileDescriptor_7bcf14fe966f6fd8, []int{0, 2}
}
func (m *PackageManager_Package) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Package.Unmarshal(m, b)
}
func (m *PackageManager_Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Package.Marshal(b, m, deterministic)
}
func (m *PackageManager_Package) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Package.Merge(m, src)
}
func (m *PackageManager_Package) XXX_Size() int {
return xxx_messageInfo_PackageManager_Package.Size(m)
}
func (m *PackageManager_Package) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Package.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Package proto.InternalMessageInfo
func (m *PackageManager_Package) GetName() string {
if m != nil {
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,proto3" json:"name,omitempty"`
// All of the places within the filesystem versions of this package
// have been found.
Location []*PackageManager_Location `protobuf:"bytes,2,rep,name=location,proto3" json:"location,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Installation) Reset() { *m = PackageManager_Installation{} }
func (m *PackageManager_Installation) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Installation) ProtoMessage() {}
func (*PackageManager_Installation) Descriptor() ([]byte, []int) {
return fileDescriptor_7bcf14fe966f6fd8, []int{0, 3}
}
func (m *PackageManager_Installation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Installation.Unmarshal(m, b)
}
func (m *PackageManager_Installation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Installation.Marshal(b, m, deterministic)
}
func (m *PackageManager_Installation) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Installation.Merge(m, src)
}
func (m *PackageManager_Installation) XXX_Size() int {
return xxx_messageInfo_PackageManager_Installation.Size(m)
}
func (m *PackageManager_Installation) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Installation.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Installation proto.InternalMessageInfo
func (m *PackageManager_Installation) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PackageManager_Installation) GetLocation() []*PackageManager_Location {
if m != nil {
return m.Location
}
return nil
}
func init() {
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture", PackageManager_Architecture_name, PackageManager_Architecture_value)
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")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto", fileDescriptor_7bcf14fe966f6fd8)
}
var fileDescriptor_7bcf14fe966f6fd8 = []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, 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0x65, 0xea, 0xcf, 0x5e, 0xa6, 0xd6, 0xfb, 0x0f, 0xe5, 0x4f, 0xb1, 0xe4, 0x28, 0x62,
0x4f, 0xaa, 0xd8, 0x8f, 0xa9, 0x30, 0x2f, 0xd4, 0x2f, 0x24, 0x4c, 0x58, 0x7a, 0x9b, 0xc7, 0xfe,
0xfc, 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,448 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/image_basis.proto
package containeranalysis
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// 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 fileDescriptor_8cf422f4020c41c0, []int{0, 0, 0}
}
// DockerImage holds types defining base image notes
// and derived image occurrences.
type DockerImage struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage) Reset() { *m = DockerImage{} }
func (m *DockerImage) String() string { return proto.CompactTextString(m) }
func (*DockerImage) ProtoMessage() {}
func (*DockerImage) Descriptor() ([]byte, []int) {
return fileDescriptor_8cf422f4020c41c0, []int{0}
}
func (m *DockerImage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage.Unmarshal(m, b)
}
func (m *DockerImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage.Marshal(b, m, deterministic)
}
func (m *DockerImage) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage.Merge(m, src)
}
func (m *DockerImage) XXX_Size() int {
return xxx_messageInfo_DockerImage.Size(m)
}
func (m *DockerImage) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage proto.InternalMessageInfo
// Layer holds metadata specific to a layer of a Docker image.
type DockerImage_Layer struct {
// The recovered Dockerfile directive used to construct this layer.
Directive DockerImage_Layer_Directive `protobuf:"varint,1,opt,name=directive,proto3,enum=google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive" json:"directive,omitempty"`
// The recovered arguments to the Dockerfile directive.
Arguments string `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Layer) Reset() { *m = DockerImage_Layer{} }
func (m *DockerImage_Layer) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Layer) ProtoMessage() {}
func (*DockerImage_Layer) Descriptor() ([]byte, []int) {
return fileDescriptor_8cf422f4020c41c0, []int{0, 0}
}
func (m *DockerImage_Layer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Layer.Unmarshal(m, b)
}
func (m *DockerImage_Layer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Layer.Marshal(b, m, deterministic)
}
func (m *DockerImage_Layer) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Layer.Merge(m, src)
}
func (m *DockerImage_Layer) XXX_Size() int {
return xxx_messageInfo_DockerImage_Layer.Size(m)
}
func (m *DockerImage_Layer) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Layer.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Layer proto.InternalMessageInfo
func (m *DockerImage_Layer) GetDirective() DockerImage_Layer_Directive {
if m != nil {
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,proto3" json:"v1_name,omitempty"`
// The ordered list of v2 blobs that represent a given image.
V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob,proto3" json:"v2_blob,omitempty"`
// Output only. The name of the image's v2 blobs computed via:
// [bottom] := v2_blob[bottom]
// [N] := sha256(v2_blob[N] + " " + v2_name[N+1])
// Only the name of the final blob is kept.
// This field can be used as a filter in list requests.
V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name,proto3" json:"v2_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Fingerprint) Reset() { *m = DockerImage_Fingerprint{} }
func (m *DockerImage_Fingerprint) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Fingerprint) ProtoMessage() {}
func (*DockerImage_Fingerprint) Descriptor() ([]byte, []int) {
return fileDescriptor_8cf422f4020c41c0, []int{0, 1}
}
func (m *DockerImage_Fingerprint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Fingerprint.Unmarshal(m, b)
}
func (m *DockerImage_Fingerprint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Fingerprint.Marshal(b, m, deterministic)
}
func (m *DockerImage_Fingerprint) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Fingerprint.Merge(m, src)
}
func (m *DockerImage_Fingerprint) XXX_Size() int {
return xxx_messageInfo_DockerImage_Fingerprint.Size(m)
}
func (m *DockerImage_Fingerprint) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Fingerprint.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Fingerprint proto.InternalMessageInfo
func (m *DockerImage_Fingerprint) GetV1Name() string {
if m != nil {
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,proto3" json:"resource_url,omitempty"`
// The fingerprint of the base image.
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Basis) Reset() { *m = DockerImage_Basis{} }
func (m *DockerImage_Basis) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Basis) ProtoMessage() {}
func (*DockerImage_Basis) Descriptor() ([]byte, []int) {
return fileDescriptor_8cf422f4020c41c0, []int{0, 2}
}
func (m *DockerImage_Basis) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Basis.Unmarshal(m, b)
}
func (m *DockerImage_Basis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Basis.Marshal(b, m, deterministic)
}
func (m *DockerImage_Basis) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Basis.Merge(m, src)
}
func (m *DockerImage_Basis) XXX_Size() int {
return xxx_messageInfo_DockerImage_Basis.Size(m)
}
func (m *DockerImage_Basis) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Basis.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Basis proto.InternalMessageInfo
func (m *DockerImage_Basis) GetResourceUrl() string {
if m != nil {
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,proto3" json:"fingerprint,omitempty"`
// Output only. The number of layers by which this image differs from the
// associated image basis.
Distance uint32 `protobuf:"varint,2,opt,name=distance,proto3" json:"distance,omitempty"`
// This contains layer-specific metadata, if populated it has length
// "distance" and is ordered with [distance] being the layer immediately
// following the base image and [1] being the final layer.
LayerInfo []*DockerImage_Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo,proto3" json:"layer_info,omitempty"`
// Output only. This contains the base image URL for the derived image
// occurrence.
BaseResourceUrl string `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl,proto3" json:"base_resource_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Derived) Reset() { *m = DockerImage_Derived{} }
func (m *DockerImage_Derived) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Derived) ProtoMessage() {}
func (*DockerImage_Derived) Descriptor() ([]byte, []int) {
return fileDescriptor_8cf422f4020c41c0, []int{0, 3}
}
func (m *DockerImage_Derived) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Derived.Unmarshal(m, b)
}
func (m *DockerImage_Derived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Derived.Marshal(b, m, deterministic)
}
func (m *DockerImage_Derived) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Derived.Merge(m, src)
}
func (m *DockerImage_Derived) XXX_Size() int {
return xxx_messageInfo_DockerImage_Derived.Size(m)
}
func (m *DockerImage_Derived) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Derived.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Derived proto.InternalMessageInfo
func (m *DockerImage_Derived) GetFingerprint() *DockerImage_Fingerprint {
if m != nil {
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.RegisterEnum("google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive", DockerImage_Layer_Directive_name, DockerImage_Layer_Directive_value)
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")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/image_basis.proto", fileDescriptor_8cf422f4020c41c0)
}
var fileDescriptor_8cf422f4020c41c0 = []byte{
// 627 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xdf, 0x6e, 0xda, 0x30,
0x14, 0xc6, 0x17, 0x28, 0xd0, 0x9c, 0xf4, 0x8f, 0x6b, 0x69, 0x1a, 0x43, 0xbd, 0x60, 0x95, 0x26,
0x55, 0xbd, 0x08, 0x82, 0x5d, 0x6e, 0xbb, 0x80, 0xc4, 0x85, 0xa8, 0x69, 0x40, 0x06, 0xba, 0x76,
0x9b, 0x84, 0x0c, 0xb8, 0x59, 0xb4, 0x60, 0x23, 0x27, 0x45, 0xea, 0x3b, 0xec, 0x66, 0x37, 0x7d,
0x80, 0x3d, 0xe1, 0xde, 0x60, 0x93, 0x53, 0x28, 0xdd, 0xaa, 0x49, 0xd5, 0xa6, 0xdd, 0x99, 0xf3,
0xf9, 0xfb, 0x7d, 0xf6, 0xf1, 0x21, 0xf0, 0x26, 0x94, 0x32, 0x8c, 0x79, 0x6d, 0xca, 0x17, 0xa9,
0x94, 0x71, 0x52, 0x9b, 0x48, 0x91, 0xb2, 0x48, 0x70, 0xc5, 0x04, 0x8b, 0xaf, 0x93, 0x28, 0xa9,
0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c, 0xbf, 0x1d, 0x80, 0x7b, 0x37, 0xa2, 0xf7, 0xb9, 0x95, 0x9b, 0x1c, 0x94, 0x5c, 0xae, 0xa2,
0x05, 0x9f, 0xfe, 0x1e, 0x69, 0xfc, 0x9f, 0x48, 0x5c, 0x81, 0xcd, 0x69, 0x94, 0xa4, 0x4c, 0x4c,
0x78, 0x76, 0xad, 0x6d, 0x7a, 0xf7, 0x1b, 0x7f, 0x04, 0x88, 0xf5, 0xac, 0x8e, 0x22, 0x71, 0x29,
0xcb, 0xf9, 0x6a, 0xfe, 0xd0, 0x6a, 0xbc, 0xfd, 0xa7, 0xa9, 0xa7, 0x66, 0x06, 0xf4, 0xc4, 0xa5,
0xc4, 0x47, 0xb0, 0x37, 0x66, 0x09, 0x1f, 0xfd, 0xd2, 0xfb, 0x8d, 0xac, 0xf7, 0xbb, 0x5a, 0xa0,
0xeb, 0xfe, 0xb7, 0xbe, 0x18, 0xf0, 0x72, 0x22, 0x67, 0xab, 0xec, 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,624 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto
package containeranalysis
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// 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 fileDescriptor_9c85f6a1c26e0b81, []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 fileDescriptor_9c85f6a1c26e0b81, []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,proto3" json:"cvss_score,omitempty"`
// Note provider assigned impact of the vulnerability
Severity VulnerabilityType_Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
// All information about the package to specifically identify this
// vulnerability. One entry per (version range and cpe_uri) the
// package vulnerability has manifested in.
Details []*VulnerabilityType_Detail `protobuf:"bytes,4,rep,name=details,proto3" json:"details,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType) Reset() { *m = VulnerabilityType{} }
func (m *VulnerabilityType) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType) ProtoMessage() {}
func (*VulnerabilityType) Descriptor() ([]byte, []int) {
return fileDescriptor_9c85f6a1c26e0b81, []int{0}
}
func (m *VulnerabilityType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType.Unmarshal(m, b)
}
func (m *VulnerabilityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType.Marshal(b, m, deterministic)
}
func (m *VulnerabilityType) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType.Merge(m, src)
}
func (m *VulnerabilityType) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType.Size(m)
}
func (m *VulnerabilityType) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType proto.InternalMessageInfo
func (m *VulnerabilityType) GetCvssScore() float32 {
if m != nil {
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,proto3" json:"epoch,omitempty"`
// The main part of the version name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// The iteration of the package build from the above version.
Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
// Distinguish between sentinel MIN/MAX versions and normal versions.
// If kind is not NORMAL, then the other fields are ignored.
Kind VulnerabilityType_Version_VersionKind `protobuf:"varint,5,opt,name=kind,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind" json:"kind,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_Version) Reset() { *m = VulnerabilityType_Version{} }
func (m *VulnerabilityType_Version) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_Version) ProtoMessage() {}
func (*VulnerabilityType_Version) Descriptor() ([]byte, []int) {
return fileDescriptor_9c85f6a1c26e0b81, []int{0, 0}
}
func (m *VulnerabilityType_Version) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_Version.Unmarshal(m, b)
}
func (m *VulnerabilityType_Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_Version.Marshal(b, m, deterministic)
}
func (m *VulnerabilityType_Version) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_Version.Merge(m, src)
}
func (m *VulnerabilityType_Version) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_Version.Size(m)
}
func (m *VulnerabilityType_Version) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_Version.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_Version proto.InternalMessageInfo
func (m *VulnerabilityType_Version) GetEpoch() int32 {
if m != nil {
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,proto3" json:"cpe_uri,omitempty"`
// The name of the package where the vulnerability was found.
// This field can be used as a filter in list requests.
Package string `protobuf:"bytes,8,opt,name=package,proto3" json:"package,omitempty"`
// The min version of the package in which the vulnerability exists.
MinAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,6,opt,name=min_affected_version,json=minAffectedVersion,proto3" json:"min_affected_version,omitempty"`
// The max version of the package in which the vulnerability exists.
// This field can be used as a filter in list requests.
MaxAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,7,opt,name=max_affected_version,json=maxAffectedVersion,proto3" json:"max_affected_version,omitempty"`
// The severity (eg: distro assigned severity) for this vulnerability.
SeverityName string `protobuf:"bytes,4,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
// A vendor-specific description of this note.
Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
// The fix for this specific package version.
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,5,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
// The type of package; whether native or non native(ruby gems,
// node.js packages etc)
PackageType string `protobuf:"bytes,10,opt,name=package_type,json=packageType,proto3" json:"package_type,omitempty"`
// Whether this Detail is obsolete. Occurrences are expected not to point to
// obsolete details.
IsObsolete bool `protobuf:"varint,11,opt,name=is_obsolete,json=isObsolete,proto3" json:"is_obsolete,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_Detail) Reset() { *m = VulnerabilityType_Detail{} }
func (m *VulnerabilityType_Detail) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_Detail) ProtoMessage() {}
func (*VulnerabilityType_Detail) Descriptor() ([]byte, []int) {
return fileDescriptor_9c85f6a1c26e0b81, []int{0, 1}
}
func (m *VulnerabilityType_Detail) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_Detail.Unmarshal(m, b)
}
func (m *VulnerabilityType_Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_Detail.Marshal(b, m, deterministic)
}
func (m *VulnerabilityType_Detail) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_Detail.Merge(m, src)
}
func (m *VulnerabilityType_Detail) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_Detail.Size(m)
}
func (m *VulnerabilityType_Detail) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_Detail.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_Detail proto.InternalMessageInfo
func (m *VulnerabilityType_Detail) GetCpeUri() string {
if m != nil {
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 ""
}
func (m *VulnerabilityType_Detail) GetIsObsolete() bool {
if m != nil {
return m.IsObsolete
}
return false
}
// Used by Occurrence to point to where the vulnerability exists and how
// to fix it.
type VulnerabilityType_VulnerabilityDetails struct {
// The type of package; whether native or non native(ruby gems,
// node.js packages etc)
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
// Output only. The note provider assigned Severity of the vulnerability.
Severity VulnerabilityType_Severity `protobuf:"varint,4,opt,name=severity,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
// Output only. The CVSS score of this vulnerability. CVSS score is on a
// scale of 0-10 where 0 indicates low severity and 10 indicates high
// severity.
CvssScore float32 `protobuf:"fixed32,5,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
// The set of affected locations and their fixes (if available) within
// the associated resource.
PackageIssue []*VulnerabilityType_PackageIssue `protobuf:"bytes,6,rep,name=package_issue,json=packageIssue,proto3" json:"package_issue,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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 fileDescriptor_9c85f6a1c26e0b81, []int{0, 2}
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Unmarshal(m, b)
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Marshal(b, m, deterministic)
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Merge(m, src)
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Size(m)
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_VulnerabilityDetails proto.InternalMessageInfo
func (m *VulnerabilityType_VulnerabilityDetails) GetType() string {
if m != nil {
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,proto3" json:"affected_location,omitempty"`
// The location of the available fix for vulnerability.
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,2,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
// The severity (eg: distro assigned severity) for this vulnerability.
SeverityName string `protobuf:"bytes,3,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_PackageIssue) Reset() { *m = VulnerabilityType_PackageIssue{} }
func (m *VulnerabilityType_PackageIssue) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_PackageIssue) ProtoMessage() {}
func (*VulnerabilityType_PackageIssue) Descriptor() ([]byte, []int) {
return fileDescriptor_9c85f6a1c26e0b81, []int{0, 3}
}
func (m *VulnerabilityType_PackageIssue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_PackageIssue.Unmarshal(m, b)
}
func (m *VulnerabilityType_PackageIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_PackageIssue.Marshal(b, m, deterministic)
}
func (m *VulnerabilityType_PackageIssue) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_PackageIssue.Merge(m, src)
}
func (m *VulnerabilityType_PackageIssue) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_PackageIssue.Size(m)
}
func (m *VulnerabilityType_PackageIssue) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_PackageIssue.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_PackageIssue proto.InternalMessageInfo
func (m *VulnerabilityType_PackageIssue) GetAffectedLocation() *VulnerabilityType_VulnerabilityLocation {
if m != nil {
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,proto3" json:"cpe_uri,omitempty"`
// The package being described.
Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
// The version of the package being described.
// This field can be used as a filter in list requests.
Version *VulnerabilityType_Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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 fileDescriptor_9c85f6a1c26e0b81, []int{0, 4}
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Unmarshal(m, b)
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Marshal(b, m, deterministic)
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Merge(m, src)
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Size(m)
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_VulnerabilityLocation proto.InternalMessageInfo
func (m *VulnerabilityType_VulnerabilityLocation) GetCpeUri() string {
if m != nil {
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.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)
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")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto", fileDescriptor_9c85f6a1c26e0b81)
}
var fileDescriptor_9c85f6a1c26e0b81 = []byte{
// 769 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6e, 0xfa, 0x46,
0x10, 0xae, 0x8d, 0xc1, 0x30, 0x26, 0x91, 0xb3, 0xa2, 0xaa, 0x85, 0x5a, 0x95, 0xa6, 0xaa, 0x84,
0x7a, 0x30, 0x0a, 0x39, 0xf6, 0x44, 0x81, 0x24, 0x6e, 0x81, 0xa4, 0x26, 0xa4, 0xff, 0xa4, 0x58,
0x8b, 0xd9, 0x90, 0x55, 0x8c, 0xd7, 0xf2, 0x3a, 0x34, 0xf4, 0xd4, 0x07, 0xe8, 0x33, 0xf4, 0xd0,
0x6b, 0x6f, 0x55, 0xdf, 0xaa, 0x0f, 0xd1, 0xca, 0x6b, 0x2f, 0x82, 0xd0, 0x4a, 0x91, 0x48, 0x7e,
0x27, 0x3c, 0x33, 0xe6, 0xfb, 0x66, 0x76, 0xbf, 0xf9, 0x00, 0xce, 0xe6, 0x8c, 0xcd, 0x03, 0xd2,
0x9a, 0x91, 0x65, 0xc2, 0x58, 0xc0, 0x5b, 0x3e, 0x0b, 0x13, 0x4c, 0x43, 0x12, 0xe3, 0x10, 0x07,
0x2b, 0x4e, 0x79, 0x6b, 0x79, 0x82, 0x83, 0xe8, 0x1e, 0x9f, 0xb4, 0x22, 0xec, 0x3f, 0xe0, 0x39,
0xf1, 0x96, 0x8f, 0x41, 0x5a, 0x9f, 0xd2, 0x80, 0x26, 0x2b, 0x3b, 0x8a, 0x59, 0xc2, 0xd0, 0xe7,
0x19, 0x8e, 0x2d, 0x71, 0xec, 0x1d, 0x1c, 0x5b, 0xe2, 0xd4, 0x3f, 0xcc, 0x39, 0x71, 0x44, 0x5b,
0x38, 0x0c, 0x59, 0x82, 0x13, 0xca, 0x42, 0x9e, 0x21, 0x1d, 0xff, 0x73, 0x08, 0x47, 0x37, 0x9b,
0x0c, 0xd7, 0xab, 0x88, 0x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0x88, 0xf2, 0x97, 0xfc, 0xbd, 0xf8, 0x62, 0xa7, 0xf4, 0xbb, 0x5a, 0x38, 0xef, 0x76, 0xa6, 0x25,
0x81, 0x76, 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x66, 0xf8, 0xb7, 0x2f, 0xab, 0x08, 0x00,
0x00,
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,935 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/source_context.proto
package containeranalysis
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The 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 fileDescriptor_49411dfe5c54cc3e, []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,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SourceContext) Reset() { *m = SourceContext{} }
func (m *SourceContext) String() string { return proto.CompactTextString(m) }
func (*SourceContext) ProtoMessage() {}
func (*SourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_49411dfe5c54cc3e, []int{0}
}
func (m *SourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SourceContext.Unmarshal(m, b)
}
func (m *SourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SourceContext.Marshal(b, m, deterministic)
}
func (m *SourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_SourceContext.Merge(m, src)
}
func (m *SourceContext) XXX_Size() int {
return xxx_messageInfo_SourceContext.Size(m)
}
func (m *SourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_SourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_SourceContext proto.InternalMessageInfo
type isSourceContext_Context interface {
isSourceContext_Context()
}
type SourceContext_CloudRepo struct {
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"`
}
type SourceContext_Gerrit struct {
Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,proto3,oneof"`
}
type SourceContext_Git struct {
Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,proto3,oneof"`
}
func (*SourceContext_CloudRepo) isSourceContext_Context() {}
func (*SourceContext_Gerrit) isSourceContext_Context() {}
func (*SourceContext_Git) isSourceContext_Context() {}
func (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 += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Gerrit:
s := proto.Size(x.Gerrit)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Git:
s := proto.Size(x.Git)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// An alias to a repo revision.
type AliasContext struct {
// The alias kind.
Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.devtools.containeranalysis.v1alpha1.AliasContext_Kind" json:"kind,omitempty"`
// The alias name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AliasContext) Reset() { *m = AliasContext{} }
func (m *AliasContext) String() string { return proto.CompactTextString(m) }
func (*AliasContext) ProtoMessage() {}
func (*AliasContext) Descriptor() ([]byte, []int) {
return fileDescriptor_49411dfe5c54cc3e, []int{1}
}
func (m *AliasContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AliasContext.Unmarshal(m, b)
}
func (m *AliasContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AliasContext.Marshal(b, m, deterministic)
}
func (m *AliasContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_AliasContext.Merge(m, src)
}
func (m *AliasContext) XXX_Size() int {
return xxx_messageInfo_AliasContext.Size(m)
}
func (m *AliasContext) XXX_DiscardUnknown() {
xxx_messageInfo_AliasContext.DiscardUnknown(m)
}
var xxx_messageInfo_AliasContext proto.InternalMessageInfo
func (m *AliasContext) GetKind() AliasContext_Kind {
if m != nil {
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,proto3" json:"repo_id,omitempty"`
// A revision in a Cloud Repo can be identified by either its revision ID or
// its alias.
//
// Types that are valid to be assigned to Revision:
// *CloudRepoSourceContext_RevisionId
// *CloudRepoSourceContext_AliasContext
Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} }
func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) }
func (*CloudRepoSourceContext) ProtoMessage() {}
func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_49411dfe5c54cc3e, []int{2}
}
func (m *CloudRepoSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CloudRepoSourceContext.Unmarshal(m, b)
}
func (m *CloudRepoSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CloudRepoSourceContext.Marshal(b, m, deterministic)
}
func (m *CloudRepoSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloudRepoSourceContext.Merge(m, src)
}
func (m *CloudRepoSourceContext) XXX_Size() int {
return xxx_messageInfo_CloudRepoSourceContext.Size(m)
}
func (m *CloudRepoSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_CloudRepoSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_CloudRepoSourceContext proto.InternalMessageInfo
func (m *CloudRepoSourceContext) GetRepoId() *RepoId {
if m != nil {
return m.RepoId
}
return nil
}
type isCloudRepoSourceContext_Revision interface {
isCloudRepoSourceContext_Revision()
}
type CloudRepoSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
type CloudRepoSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,3,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {}
func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision {
if m != nil {
return m.Revision
}
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 += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *CloudRepoSourceContext_AliasContext:
s := proto.Size(x.AliasContext)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// 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,proto3" json:"host_uri,omitempty"`
// The full project name within the host. Projects may be nested, so
// "project/subproject" is a valid project name. The "repo name" is
// the hostURI/project.
GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject,proto3" json:"gerrit_project,omitempty"`
// A revision in a Gerrit project can be identified by either its revision ID
// or its alias.
//
// Types that are valid to be assigned to Revision:
// *GerritSourceContext_RevisionId
// *GerritSourceContext_AliasContext
Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} }
func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) }
func (*GerritSourceContext) ProtoMessage() {}
func (*GerritSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_49411dfe5c54cc3e, []int{3}
}
func (m *GerritSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GerritSourceContext.Unmarshal(m, b)
}
func (m *GerritSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GerritSourceContext.Marshal(b, m, deterministic)
}
func (m *GerritSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_GerritSourceContext.Merge(m, src)
}
func (m *GerritSourceContext) XXX_Size() int {
return xxx_messageInfo_GerritSourceContext.Size(m)
}
func (m *GerritSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_GerritSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_GerritSourceContext proto.InternalMessageInfo
func (m *GerritSourceContext) GetHostUri() string {
if m != nil {
return m.HostUri
}
return ""
}
func (m *GerritSourceContext) GetGerritProject() string {
if m != nil {
return m.GerritProject
}
return ""
}
type isGerritSourceContext_Revision interface {
isGerritSourceContext_Revision()
}
type GerritSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
type GerritSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {}
func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {}
func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision {
if m != nil {
return m.Revision
}
return nil
}
func (m *GerritSourceContext) GetRevisionId() string {
if x, ok := m.GetRevision().(*GerritSourceContext_RevisionId); ok {
return x.RevisionId
}
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 += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *GerritSourceContext_AliasContext:
s := proto.Size(x.AliasContext)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// 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,proto3" json:"url,omitempty"`
// Required.
// Git commit hash.
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GitSourceContext) Reset() { *m = GitSourceContext{} }
func (m *GitSourceContext) String() string { return proto.CompactTextString(m) }
func (*GitSourceContext) ProtoMessage() {}
func (*GitSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_49411dfe5c54cc3e, []int{4}
}
func (m *GitSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GitSourceContext.Unmarshal(m, b)
}
func (m *GitSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GitSourceContext.Marshal(b, m, deterministic)
}
func (m *GitSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_GitSourceContext.Merge(m, src)
}
func (m *GitSourceContext) XXX_Size() int {
return xxx_messageInfo_GitSourceContext.Size(m)
}
func (m *GitSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_GitSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_GitSourceContext proto.InternalMessageInfo
func (m *GitSourceContext) GetUrl() string {
if m != nil {
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepoId) Reset() { *m = RepoId{} }
func (m *RepoId) String() string { return proto.CompactTextString(m) }
func (*RepoId) ProtoMessage() {}
func (*RepoId) Descriptor() ([]byte, []int) {
return fileDescriptor_49411dfe5c54cc3e, []int{5}
}
func (m *RepoId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepoId.Unmarshal(m, b)
}
func (m *RepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepoId.Marshal(b, m, deterministic)
}
func (m *RepoId) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepoId.Merge(m, src)
}
func (m *RepoId) XXX_Size() int {
return xxx_messageInfo_RepoId.Size(m)
}
func (m *RepoId) XXX_DiscardUnknown() {
xxx_messageInfo_RepoId.DiscardUnknown(m)
}
var xxx_messageInfo_RepoId proto.InternalMessageInfo
type isRepoId_Id interface {
isRepoId_Id()
}
type RepoId_ProjectRepoId struct {
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"`
}
type RepoId_Uid struct {
Uid string `protobuf:"bytes,2,opt,name=uid,proto3,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 += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *RepoId_Uid:
n += 1 // tag and wire
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,proto3" json:"project_id,omitempty"`
// The name of the repo. Leave empty for the default repo.
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} }
func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) }
func (*ProjectRepoId) ProtoMessage() {}
func (*ProjectRepoId) Descriptor() ([]byte, []int) {
return fileDescriptor_49411dfe5c54cc3e, []int{6}
}
func (m *ProjectRepoId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProjectRepoId.Unmarshal(m, b)
}
func (m *ProjectRepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProjectRepoId.Marshal(b, m, deterministic)
}
func (m *ProjectRepoId) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProjectRepoId.Merge(m, src)
}
func (m *ProjectRepoId) XXX_Size() int {
return xxx_messageInfo_ProjectRepoId.Size(m)
}
func (m *ProjectRepoId) XXX_DiscardUnknown() {
xxx_messageInfo_ProjectRepoId.DiscardUnknown(m)
}
var xxx_messageInfo_ProjectRepoId proto.InternalMessageInfo
func (m *ProjectRepoId) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *ProjectRepoId) GetRepoName() string {
if m != nil {
return m.RepoName
}
return ""
}
func init() {
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value)
proto.RegisterType((*SourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.SourceContext")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.containeranalysis.v1alpha1.SourceContext.LabelsEntry")
proto.RegisterType((*AliasContext)(nil), "google.devtools.containeranalysis.v1alpha1.AliasContext")
proto.RegisterType((*CloudRepoSourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.CloudRepoSourceContext")
proto.RegisterType((*GerritSourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.GerritSourceContext")
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")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/source_context.proto", fileDescriptor_49411dfe5c54cc3e)
}
var fileDescriptor_49411dfe5c54cc3e = []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, 0x93, 0xd7, 0xe9, 0x05, 0x10, 0x4d, 0x40, 0x0d, 0x68, 0xda, 0x53, 0x25, 0xf7, 0xe9,
0x5c, 0xdc, 0x9b, 0x50, 0x81, 0x42, 0xef, 0xa1, 0x19, 0xe2, 0x33, 0x12, 0x26, 0xbd, 0xc6, 0x9a,
0xba, 0xd1, 0xee, 0x5b, 0xf3, 0x40, 0x67, 0x88, 0xc6, 0xa1, 0xe4, 0x58, 0x51, 0xca, 0xaf, 0x9c,
0x02, 0xba, 0xba, 0x0d, 0xed, 0x4a, 0x18, 0x75, 0x41, 0xbd, 0x20, 0x57, 0xb2, 0xf1, 0x9a, 0x23,
0x86, 0x68, 0x05, 0x16, 0xa6, 0x38, 0xcc, 0x88, 0xec, 0x95, 0xe6, 0xe4, 0x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 0xff, 0xcf, 0x59, 0x43, 0xa4,
0x06, 0x00, 0x00,
}

View file

@ -0,0 +1,509 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1beta1/attestation/attestation.proto
package attestation
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Type (for example schema) of the attestation payload that was signed.
type PgpSignedAttestation_ContentType int32
const (
// `ContentType` is not set.
PgpSignedAttestation_CONTENT_TYPE_UNSPECIFIED PgpSignedAttestation_ContentType = 0
// Atomic format attestation signature. See
// https://github.com/containers/image/blob/8a5d2f82a6e3263290c8e0276c3e0f64e77723e7/docs/atomic-signature.md
// The payload extracted from `signature` is a JSON blob conforming to the
// linked schema.
PgpSignedAttestation_SIMPLE_SIGNING_JSON PgpSignedAttestation_ContentType = 1
)
var PgpSignedAttestation_ContentType_name = map[int32]string{
0: "CONTENT_TYPE_UNSPECIFIED",
1: "SIMPLE_SIGNING_JSON",
}
var PgpSignedAttestation_ContentType_value = map[string]int32{
"CONTENT_TYPE_UNSPECIFIED": 0,
"SIMPLE_SIGNING_JSON": 1,
}
func (x PgpSignedAttestation_ContentType) String() string {
return proto.EnumName(PgpSignedAttestation_ContentType_name, int32(x))
}
func (PgpSignedAttestation_ContentType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_a004b79c48a9c453, []int{0, 0}
}
// An attestation wrapper with a PGP-compatible signature. This message only
// supports `ATTACHED` signatures, where the payload that is signed is included
// alongside the signature itself in the same file.
type PgpSignedAttestation struct {
// The raw content of the signature, as output by GNU Privacy Guard (GPG) or
// equivalent. Since this message only supports attached signatures, the
// payload that was signed must be attached. While the signature format
// supported is dependent on the verification implementation, currently only
// ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
// `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
// --output=signature.gpg payload.json` will create the signature content
// expected in this field in `signature.gpg` for the `payload.json`
// attestation payload.
Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
// Type (for example schema) of the attestation payload that was signed.
// The verifier must ensure that the provided type is one that the verifier
// supports, and that the attestation payload is a valid instantiation of that
// type (for example by validating a JSON schema).
ContentType PgpSignedAttestation_ContentType `protobuf:"varint,3,opt,name=content_type,json=contentType,proto3,enum=grafeas.v1beta1.attestation.PgpSignedAttestation_ContentType" json:"content_type,omitempty"`
// This field is used by verifiers to select the public key used to validate
// the signature. Note that the policy of the verifier ultimately determines
// which public keys verify a signature based on the context of the
// verification. There is no guarantee validation will succeed if the
// verifier has no key matching this ID, even if it has a key under a
// different ID that would verify the signature. Note that this ID should also
// be present in the signature content above, but that is not expected to be
// used by the verifier.
//
// Types that are valid to be assigned to KeyId:
// *PgpSignedAttestation_PgpKeyId
KeyId isPgpSignedAttestation_KeyId `protobuf_oneof:"key_id"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PgpSignedAttestation) Reset() { *m = PgpSignedAttestation{} }
func (m *PgpSignedAttestation) String() string { return proto.CompactTextString(m) }
func (*PgpSignedAttestation) ProtoMessage() {}
func (*PgpSignedAttestation) Descriptor() ([]byte, []int) {
return fileDescriptor_a004b79c48a9c453, []int{0}
}
func (m *PgpSignedAttestation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PgpSignedAttestation.Unmarshal(m, b)
}
func (m *PgpSignedAttestation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PgpSignedAttestation.Marshal(b, m, deterministic)
}
func (m *PgpSignedAttestation) XXX_Merge(src proto.Message) {
xxx_messageInfo_PgpSignedAttestation.Merge(m, src)
}
func (m *PgpSignedAttestation) XXX_Size() int {
return xxx_messageInfo_PgpSignedAttestation.Size(m)
}
func (m *PgpSignedAttestation) XXX_DiscardUnknown() {
xxx_messageInfo_PgpSignedAttestation.DiscardUnknown(m)
}
var xxx_messageInfo_PgpSignedAttestation proto.InternalMessageInfo
func (m *PgpSignedAttestation) GetSignature() string {
if m != nil {
return m.Signature
}
return ""
}
func (m *PgpSignedAttestation) GetContentType() PgpSignedAttestation_ContentType {
if m != nil {
return m.ContentType
}
return PgpSignedAttestation_CONTENT_TYPE_UNSPECIFIED
}
type isPgpSignedAttestation_KeyId interface {
isPgpSignedAttestation_KeyId()
}
type PgpSignedAttestation_PgpKeyId struct {
PgpKeyId string `protobuf:"bytes,2,opt,name=pgp_key_id,json=pgpKeyId,proto3,oneof"`
}
func (*PgpSignedAttestation_PgpKeyId) isPgpSignedAttestation_KeyId() {}
func (m *PgpSignedAttestation) GetKeyId() isPgpSignedAttestation_KeyId {
if m != nil {
return m.KeyId
}
return nil
}
func (m *PgpSignedAttestation) GetPgpKeyId() string {
if x, ok := m.GetKeyId().(*PgpSignedAttestation_PgpKeyId); ok {
return x.PgpKeyId
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*PgpSignedAttestation) 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 _PgpSignedAttestation_OneofMarshaler, _PgpSignedAttestation_OneofUnmarshaler, _PgpSignedAttestation_OneofSizer, []interface{}{
(*PgpSignedAttestation_PgpKeyId)(nil),
}
}
func _PgpSignedAttestation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*PgpSignedAttestation)
// key_id
switch x := m.KeyId.(type) {
case *PgpSignedAttestation_PgpKeyId:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeStringBytes(x.PgpKeyId)
case nil:
default:
return fmt.Errorf("PgpSignedAttestation.KeyId has unexpected type %T", x)
}
return nil
}
func _PgpSignedAttestation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*PgpSignedAttestation)
switch tag {
case 2: // key_id.pgp_key_id
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.KeyId = &PgpSignedAttestation_PgpKeyId{x}
return true, err
default:
return false, nil
}
}
func _PgpSignedAttestation_OneofSizer(msg proto.Message) (n int) {
m := msg.(*PgpSignedAttestation)
// key_id
switch x := m.KeyId.(type) {
case *PgpSignedAttestation_PgpKeyId:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.PgpKeyId)))
n += len(x.PgpKeyId)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Note kind that represents a logical attestation "role" or "authority". For
// example, an organization might have one `Authority` for "QA" and one for
// "build". This Note is intended to act strictly as a grouping mechanism for
// the attached Occurrences (Attestations). This grouping mechanism also
// provides a security boundary, since IAM ACLs gate the ability for a principle
// to attach an Occurrence to a given Note. It also provides a single point of
// lookup to find all attached Attestation Occurrences, even if they don't all
// live in the same project.
type Authority struct {
// Hint hints at the purpose of the attestation authority.
Hint *Authority_Hint `protobuf:"bytes,1,opt,name=hint,proto3" json:"hint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Authority) Reset() { *m = Authority{} }
func (m *Authority) String() string { return proto.CompactTextString(m) }
func (*Authority) ProtoMessage() {}
func (*Authority) Descriptor() ([]byte, []int) {
return fileDescriptor_a004b79c48a9c453, []int{1}
}
func (m *Authority) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Authority.Unmarshal(m, b)
}
func (m *Authority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Authority.Marshal(b, m, deterministic)
}
func (m *Authority) XXX_Merge(src proto.Message) {
xxx_messageInfo_Authority.Merge(m, src)
}
func (m *Authority) XXX_Size() int {
return xxx_messageInfo_Authority.Size(m)
}
func (m *Authority) XXX_DiscardUnknown() {
xxx_messageInfo_Authority.DiscardUnknown(m)
}
var xxx_messageInfo_Authority proto.InternalMessageInfo
func (m *Authority) GetHint() *Authority_Hint {
if m != nil {
return m.Hint
}
return nil
}
// This submessage provides human-readable hints about the purpose of the
// Authority. Because the name of a Note acts as its resource reference, it is
// important to disambiguate the canonical name of the Note (which might be a
// UUID for security purposes) from "readable" names more suitable for debug
// output. Note that these hints should NOT be used to look up authorities in
// security sensitive contexts, such as when looking up Attestations to
// verify.
type Authority_Hint struct {
// The human readable name of this Attestation Authority, for example "qa".
HumanReadableName string `protobuf:"bytes,1,opt,name=human_readable_name,json=humanReadableName,proto3" json:"human_readable_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Authority_Hint) Reset() { *m = Authority_Hint{} }
func (m *Authority_Hint) String() string { return proto.CompactTextString(m) }
func (*Authority_Hint) ProtoMessage() {}
func (*Authority_Hint) Descriptor() ([]byte, []int) {
return fileDescriptor_a004b79c48a9c453, []int{1, 0}
}
func (m *Authority_Hint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Authority_Hint.Unmarshal(m, b)
}
func (m *Authority_Hint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Authority_Hint.Marshal(b, m, deterministic)
}
func (m *Authority_Hint) XXX_Merge(src proto.Message) {
xxx_messageInfo_Authority_Hint.Merge(m, src)
}
func (m *Authority_Hint) XXX_Size() int {
return xxx_messageInfo_Authority_Hint.Size(m)
}
func (m *Authority_Hint) XXX_DiscardUnknown() {
xxx_messageInfo_Authority_Hint.DiscardUnknown(m)
}
var xxx_messageInfo_Authority_Hint proto.InternalMessageInfo
func (m *Authority_Hint) GetHumanReadableName() string {
if m != nil {
return m.HumanReadableName
}
return ""
}
// Details of an attestation occurrence.
type Details struct {
// Attestation for the resource.
Attestation *Attestation `protobuf:"bytes,1,opt,name=attestation,proto3" json:"attestation,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Details) Reset() { *m = Details{} }
func (m *Details) String() string { return proto.CompactTextString(m) }
func (*Details) ProtoMessage() {}
func (*Details) Descriptor() ([]byte, []int) {
return fileDescriptor_a004b79c48a9c453, []int{2}
}
func (m *Details) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Details.Unmarshal(m, b)
}
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
}
func (m *Details) XXX_Merge(src proto.Message) {
xxx_messageInfo_Details.Merge(m, src)
}
func (m *Details) XXX_Size() int {
return xxx_messageInfo_Details.Size(m)
}
func (m *Details) XXX_DiscardUnknown() {
xxx_messageInfo_Details.DiscardUnknown(m)
}
var xxx_messageInfo_Details proto.InternalMessageInfo
func (m *Details) GetAttestation() *Attestation {
if m != nil {
return m.Attestation
}
return nil
}
// Occurrence that represents a single "attestation". The authenticity of an
// Attestation can be verified using the attached signature. If the verifier
// trusts the public key of the signer, then verifying the signature is
// sufficient to establish trust. In this circumstance, the Authority to which
// this Attestation is attached is primarily useful for look-up (how to find
// this Attestation if you already know the Authority and artifact to be
// verified) and intent (which authority was this attestation intended to sign
// for).
type Attestation struct {
// The signature, generally over the `resource_url`, that verifies this
// attestation. The semantics of the signature veracity are ultimately
// determined by the verification engine.
//
// Types that are valid to be assigned to Signature:
// *Attestation_PgpSignedAttestation
Signature isAttestation_Signature `protobuf_oneof:"signature"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Attestation) Reset() { *m = Attestation{} }
func (m *Attestation) String() string { return proto.CompactTextString(m) }
func (*Attestation) ProtoMessage() {}
func (*Attestation) Descriptor() ([]byte, []int) {
return fileDescriptor_a004b79c48a9c453, []int{3}
}
func (m *Attestation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Attestation.Unmarshal(m, b)
}
func (m *Attestation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Attestation.Marshal(b, m, deterministic)
}
func (m *Attestation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Attestation.Merge(m, src)
}
func (m *Attestation) XXX_Size() int {
return xxx_messageInfo_Attestation.Size(m)
}
func (m *Attestation) XXX_DiscardUnknown() {
xxx_messageInfo_Attestation.DiscardUnknown(m)
}
var xxx_messageInfo_Attestation proto.InternalMessageInfo
type isAttestation_Signature interface {
isAttestation_Signature()
}
type Attestation_PgpSignedAttestation struct {
PgpSignedAttestation *PgpSignedAttestation `protobuf:"bytes,1,opt,name=pgp_signed_attestation,json=pgpSignedAttestation,proto3,oneof"`
}
func (*Attestation_PgpSignedAttestation) isAttestation_Signature() {}
func (m *Attestation) GetSignature() isAttestation_Signature {
if m != nil {
return m.Signature
}
return nil
}
func (m *Attestation) GetPgpSignedAttestation() *PgpSignedAttestation {
if x, ok := m.GetSignature().(*Attestation_PgpSignedAttestation); ok {
return x.PgpSignedAttestation
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Attestation) 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 _Attestation_OneofMarshaler, _Attestation_OneofUnmarshaler, _Attestation_OneofSizer, []interface{}{
(*Attestation_PgpSignedAttestation)(nil),
}
}
func _Attestation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Attestation)
// signature
switch x := m.Signature.(type) {
case *Attestation_PgpSignedAttestation:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.PgpSignedAttestation); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Attestation.Signature has unexpected type %T", x)
}
return nil
}
func _Attestation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Attestation)
switch tag {
case 1: // signature.pgp_signed_attestation
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(PgpSignedAttestation)
err := b.DecodeMessage(msg)
m.Signature = &Attestation_PgpSignedAttestation{msg}
return true, err
default:
return false, nil
}
}
func _Attestation_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Attestation)
// signature
switch x := m.Signature.(type) {
case *Attestation_PgpSignedAttestation:
s := proto.Size(x.PgpSignedAttestation)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterEnum("grafeas.v1beta1.attestation.PgpSignedAttestation_ContentType", PgpSignedAttestation_ContentType_name, PgpSignedAttestation_ContentType_value)
proto.RegisterType((*PgpSignedAttestation)(nil), "grafeas.v1beta1.attestation.PgpSignedAttestation")
proto.RegisterType((*Authority)(nil), "grafeas.v1beta1.attestation.Authority")
proto.RegisterType((*Authority_Hint)(nil), "grafeas.v1beta1.attestation.Authority.Hint")
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.attestation.Details")
proto.RegisterType((*Attestation)(nil), "grafeas.v1beta1.attestation.Attestation")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/attestation/attestation.proto", fileDescriptor_a004b79c48a9c453)
}
var fileDescriptor_a004b79c48a9c453 = []byte{
// 452 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x5d, 0x6f, 0xd3, 0x30,
0x14, 0x6d, 0xba, 0x69, 0xac, 0x37, 0x08, 0x8d, 0x6c, 0x82, 0x0a, 0xa6, 0x69, 0xca, 0x53, 0x25,
0x24, 0x47, 0x1d, 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, 0x9f, 0x70, 0x95, 0x31, 0xc9, 0x89, 0xca, 0xb9, 0xc7, 0x51, 0x56,
0xcb, 0xec, 0xad, 0x20, 0xa6, 0x45, 0xb1, 0xe3, 0xc7, 0x78, 0x5b, 0x8b, 0xff, 0x34, 0xf7, 0x46,
0x71, 0x6f, 0x7a, 0x50, 0xa5, 0x7c, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0x69, 0x0c, 0x36, 0xf8,
0x6a, 0x03, 0x00, 0x00,
}

View file

@ -0,0 +1,294 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1beta1/build/build.proto
package build
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
provenance "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/provenance"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Public key formats
type BuildSignature_KeyType int32
const (
// `KeyType` is not set.
BuildSignature_KEY_TYPE_UNSPECIFIED BuildSignature_KeyType = 0
// `PGP ASCII Armored` public key.
BuildSignature_PGP_ASCII_ARMORED BuildSignature_KeyType = 1
// `PKIX PEM` public key.
BuildSignature_PKIX_PEM BuildSignature_KeyType = 2
)
var BuildSignature_KeyType_name = map[int32]string{
0: "KEY_TYPE_UNSPECIFIED",
1: "PGP_ASCII_ARMORED",
2: "PKIX_PEM",
}
var BuildSignature_KeyType_value = map[string]int32{
"KEY_TYPE_UNSPECIFIED": 0,
"PGP_ASCII_ARMORED": 1,
"PKIX_PEM": 2,
}
func (x BuildSignature_KeyType) String() string {
return proto.EnumName(BuildSignature_KeyType_name, int32(x))
}
func (BuildSignature_KeyType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_040ca5655a0ae0a6, []int{1, 0}
}
// Note holding the version of the provider's builder and the signature of the
// provenance message in linked BuildDetails.
type Build struct {
// Version of the builder which produced this Note.
BuilderVersion string `protobuf:"bytes,1,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
// Signature of the build in Occurrences pointing to the Note containing this
// `BuilderDetails`.
Signature *BuildSignature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Build) Reset() { *m = Build{} }
func (m *Build) String() string { return proto.CompactTextString(m) }
func (*Build) ProtoMessage() {}
func (*Build) Descriptor() ([]byte, []int) {
return fileDescriptor_040ca5655a0ae0a6, []int{0}
}
func (m *Build) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Build.Unmarshal(m, b)
}
func (m *Build) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Build.Marshal(b, m, deterministic)
}
func (m *Build) XXX_Merge(src proto.Message) {
xxx_messageInfo_Build.Merge(m, src)
}
func (m *Build) XXX_Size() int {
return xxx_messageInfo_Build.Size(m)
}
func (m *Build) XXX_DiscardUnknown() {
xxx_messageInfo_Build.DiscardUnknown(m)
}
var xxx_messageInfo_Build proto.InternalMessageInfo
func (m *Build) GetBuilderVersion() string {
if m != nil {
return m.BuilderVersion
}
return ""
}
func (m *Build) GetSignature() *BuildSignature {
if m != nil {
return m.Signature
}
return nil
}
// Message encapsulating the signature of the verified build.
type BuildSignature struct {
// Public key of the builder which can be used to verify that the related
// findings are valid and unchanged. If `key_type` is empty, this defaults
// to PEM encoded public keys.
//
// This field may be empty if `key_id` references an external key.
//
// For Cloud Container Builder based signatures, this is a PEM encoded public
// key. To verify the Cloud Container Builder signature, place the contents of
// this field into a file (public.pem). The signature field is base64-decoded
// into its binary representation in signature.bin, and the provenance bytes
// from `BuildDetails` are base64-decoded into a binary representation in
// signed.bin. OpenSSL can then verify the signature:
// `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
// Signature of the related `BuildProvenance`. In JSON, this is base-64
// encoded.
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// An ID for the key used to sign. This could be either an Id for the key
// stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
// CN for a cert), or a reference to an external key (such as a reference to a
// key in Cloud Key Management Service).
KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
// The type of the key, either stored in `public_key` or referenced in
// `key_id`
KeyType BuildSignature_KeyType `protobuf:"varint,4,opt,name=key_type,json=keyType,proto3,enum=grafeas.v1beta1.build.BuildSignature_KeyType" json:"key_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildSignature) Reset() { *m = BuildSignature{} }
func (m *BuildSignature) String() string { return proto.CompactTextString(m) }
func (*BuildSignature) ProtoMessage() {}
func (*BuildSignature) Descriptor() ([]byte, []int) {
return fileDescriptor_040ca5655a0ae0a6, []int{1}
}
func (m *BuildSignature) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildSignature.Unmarshal(m, b)
}
func (m *BuildSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildSignature.Marshal(b, m, deterministic)
}
func (m *BuildSignature) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildSignature.Merge(m, src)
}
func (m *BuildSignature) XXX_Size() int {
return xxx_messageInfo_BuildSignature.Size(m)
}
func (m *BuildSignature) XXX_DiscardUnknown() {
xxx_messageInfo_BuildSignature.DiscardUnknown(m)
}
var xxx_messageInfo_BuildSignature proto.InternalMessageInfo
func (m *BuildSignature) GetPublicKey() string {
if m != nil {
return m.PublicKey
}
return ""
}
func (m *BuildSignature) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func (m *BuildSignature) GetKeyId() string {
if m != nil {
return m.KeyId
}
return ""
}
func (m *BuildSignature) GetKeyType() BuildSignature_KeyType {
if m != nil {
return m.KeyType
}
return BuildSignature_KEY_TYPE_UNSPECIFIED
}
// Details of a build occurrence.
type Details struct {
// The actual provenance for the build.
Provenance *provenance.BuildProvenance `protobuf:"bytes,1,opt,name=provenance,proto3" json:"provenance,omitempty"`
// Serialized JSON representation of the provenance, used in generating the
// `BuildSignature` in the corresponding Result. After verifying the
// signature, `provenance_bytes` can be unmarshalled and compared to the
// provenance to confirm that it is unchanged. A base64-encoded string
// representation of the provenance bytes is used for the signature in order
// to interoperate with openssl which expects this format for signature
// verification.
//
// The serialized form is captured both to avoid ambiguity in how the
// provenance is marshalled to json as well to prevent incompatibilities with
// future changes.
ProvenanceBytes string `protobuf:"bytes,2,opt,name=provenance_bytes,json=provenanceBytes,proto3" json:"provenance_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Details) Reset() { *m = Details{} }
func (m *Details) String() string { return proto.CompactTextString(m) }
func (*Details) ProtoMessage() {}
func (*Details) Descriptor() ([]byte, []int) {
return fileDescriptor_040ca5655a0ae0a6, []int{2}
}
func (m *Details) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Details.Unmarshal(m, b)
}
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
}
func (m *Details) XXX_Merge(src proto.Message) {
xxx_messageInfo_Details.Merge(m, src)
}
func (m *Details) XXX_Size() int {
return xxx_messageInfo_Details.Size(m)
}
func (m *Details) XXX_DiscardUnknown() {
xxx_messageInfo_Details.DiscardUnknown(m)
}
var xxx_messageInfo_Details proto.InternalMessageInfo
func (m *Details) GetProvenance() *provenance.BuildProvenance {
if m != nil {
return m.Provenance
}
return nil
}
func (m *Details) GetProvenanceBytes() string {
if m != nil {
return m.ProvenanceBytes
}
return ""
}
func init() {
proto.RegisterEnum("grafeas.v1beta1.build.BuildSignature_KeyType", BuildSignature_KeyType_name, BuildSignature_KeyType_value)
proto.RegisterType((*Build)(nil), "grafeas.v1beta1.build.Build")
proto.RegisterType((*BuildSignature)(nil), "grafeas.v1beta1.build.BuildSignature")
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.build.Details")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/build/build.proto", fileDescriptor_040ca5655a0ae0a6)
}
var fileDescriptor_040ca5655a0ae0a6 = []byte{
// 434 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6f, 0xd3, 0x40,
0x10, 0xc5, 0x29, 0x6d, 0x9a, 0x69, 0x95, 0x86, 0x15, 0x91, 0x2c, 0x04, 0x52, 0x14, 0x09, 0x11,
0x84, 0xb0, 0xd5, 0x70, 0xec, 0x29, 0x1f, 0xa6, 0xb5, 0xac, 0x82, 0xe5, 0x04, 0x44, 0xb9, 0xac,
0xd6, 0xc9, 0x60, 0xad, 0x62, 0xed, 0x5a, 0xde, 0x4d, 0xc4, 0x1e, 0xf9, 0x2b, 0xfc, 0x4a, 0x8e,
0x28, 0xeb, 0x40, 0x0c, 0xed, 0x21, 0x97, 0xd5, 0xcc, 0x9b, 0x99, 0x37, 0x6f, 0x67, 0x06, 0xae,
0x32, 0x29, 0xb3, 0x1c, 0xfd, 0x25, 0x6e, 0xb4, 0x94, 0xb9, 0xf2, 0x17, 0x52, 0x68, 0xc6, 0x05,
0x96, 0x4c, 0xb0, 0xdc, 0x28, 0xae, 0xfc, 0xcd, 0x65, 0x8a, 0x9a, 0x5d, 0xfa, 0xe9, 0x9a, 0xe7,
0xcb, 0xea, 0xf5, 0x8a, 0x52, 0x6a, 0x49, 0xba, 0x59, 0xc9, 0xbe,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, 0xa4, 0xa3, 0xe4, 0xf6, 0x63, 0x12, 0x4c, 0x3b, 0x0e, 0x39, 0x87, 0xd3, 0x38,
0x0a, 0xbf, 0xd0, 0x38, 0xb8, 0xed, 0x34, 0xfa, 0x3f, 0x1c, 0x68, 0x4e, 0x51, 0x33, 0x9e, 0x2b,
0x12, 0x01, 0xec, 0x37, 0x62, 0xff, 0x7c, 0x36, 0x7c, 0x73, 0x4f, 0x61, 0x6d, 0x69, 0x56, 0x66,
0xfc, 0xd7, 0x4f, 0x6a, 0xe5, 0xe4, 0x35, 0x74, 0xf6, 0x1e, 0x4d, 0x8d, 0x46, 0x65, 0x07, 0xd5,
0x4a, 0x2e, 0xf6, 0xf8, 0x78, 0x0b, 0x8f, 0xbf, 0x83, 0xcb, 0xe5, 0xc3, 0x93, 0x88, 0x9d, 0xaf,
0xf3, 0xea, 0xb4, 0xbc, 0x4c, 0xe6, 0x4c, 0x64, 0x9e, 0x2c, 0x33, 0x3f, 0x43, 0x61, 0xef, 0xc5,
0xaf, 0x42, 0xac, 0xe0, 0xea, 0xe0, 0x6b, 0xbe, 0xb2, 0xef, 0xcf, 0xc6, 0xd1, 0x75, 0x32, 0x4a,
0x4f, 0x2c, 0xcd, 0xbb, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x06, 0x5a, 0x03, 0x5d, 0x13, 0x03,
0x00, 0x00,
}

View file

@ -0,0 +1,157 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1beta1/common/common.proto
package common
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Kind represents the kinds of notes supported.
type NoteKind int32
const (
// Unknown.
NoteKind_NOTE_KIND_UNSPECIFIED NoteKind = 0
// The note and occurrence represent a package vulnerability.
NoteKind_VULNERABILITY NoteKind = 1
// The note and occurrence assert build provenance.
NoteKind_BUILD NoteKind = 2
// This represents an image basis relationship.
NoteKind_IMAGE NoteKind = 3
// This represents a package installed via a package manager.
NoteKind_PACKAGE NoteKind = 4
// The note and occurrence track deployment events.
NoteKind_DEPLOYMENT NoteKind = 5
// The note and occurrence track the initial discovery status of a resource.
NoteKind_DISCOVERY NoteKind = 6
// This represents a logical "role" that can attest to artifacts.
NoteKind_ATTESTATION NoteKind = 7
)
var NoteKind_name = map[int32]string{
0: "NOTE_KIND_UNSPECIFIED",
1: "VULNERABILITY",
2: "BUILD",
3: "IMAGE",
4: "PACKAGE",
5: "DEPLOYMENT",
6: "DISCOVERY",
7: "ATTESTATION",
}
var NoteKind_value = map[string]int32{
"NOTE_KIND_UNSPECIFIED": 0,
"VULNERABILITY": 1,
"BUILD": 2,
"IMAGE": 3,
"PACKAGE": 4,
"DEPLOYMENT": 5,
"DISCOVERY": 6,
"ATTESTATION": 7,
}
func (x NoteKind) String() string {
return proto.EnumName(NoteKind_name, int32(x))
}
func (NoteKind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_baf5189c00300310, []int{0}
}
// Metadata for any related URL information.
type RelatedUrl struct {
// Specific URL associated with the resource.
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// Label to describe usage of the URL.
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RelatedUrl) Reset() { *m = RelatedUrl{} }
func (m *RelatedUrl) String() string { return proto.CompactTextString(m) }
func (*RelatedUrl) ProtoMessage() {}
func (*RelatedUrl) Descriptor() ([]byte, []int) {
return fileDescriptor_baf5189c00300310, []int{0}
}
func (m *RelatedUrl) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RelatedUrl.Unmarshal(m, b)
}
func (m *RelatedUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RelatedUrl.Marshal(b, m, deterministic)
}
func (m *RelatedUrl) XXX_Merge(src proto.Message) {
xxx_messageInfo_RelatedUrl.Merge(m, src)
}
func (m *RelatedUrl) XXX_Size() int {
return xxx_messageInfo_RelatedUrl.Size(m)
}
func (m *RelatedUrl) XXX_DiscardUnknown() {
xxx_messageInfo_RelatedUrl.DiscardUnknown(m)
}
var xxx_messageInfo_RelatedUrl proto.InternalMessageInfo
func (m *RelatedUrl) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *RelatedUrl) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
func init() {
proto.RegisterEnum("grafeas.v1beta1.NoteKind", NoteKind_name, NoteKind_value)
proto.RegisterType((*RelatedUrl)(nil), "grafeas.v1beta1.RelatedUrl")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/common/common.proto", fileDescriptor_baf5189c00300310)
}
var fileDescriptor_baf5189c00300310 = []byte{
// 322 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x41, 0x6b, 0xea, 0x40,
0x14, 0x85, 0x5f, 0xf4, 0xa9, 0xcf, 0x2b, 0x3e, 0xa7, 0x43, 0x0b, 0xba, 0x2b, 0x5d, 0x95, 0x2e,
0x12, 0xa4, 0xdd, 0x95, 0x2e, 0xa2, 0x99, 0xca, 0x60, 0x9c, 0x84, 0x38, 0x11, 0xec, 0x46, 0x46,
0x9d, 0x0e, 0x81, 0x71, 0x46, 0x92, 0x54, 0x28, 0xfd, 0x09, 0xfd, 0x17, 0xfd, 0xa5, 0x45, 0xe3,
0xaa, 0xab, 0xae, 0xce, 0x39, 0xf7, 0x5e, 0x2e, 0x9c, 0x0f, 0x9e, 0x94, 0xb5, 0x4a, 0x4b, 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x03, 0x06, 0x99, 0x75, 0x7f, 0x34, 0x73, 0xab, 0xde, 0xb1,
0xf3, 0xb2, 0xa8, 0x90, 0xb9, 0xca, 0x6a, 0x61, 0x94, 0x6b, 0x73, 0xe5, 0x29, 0x69, 0x4e, 0x3c,
0xbc, 0x6a, 0x25, 0xf6, 0x59, 0xf1, 0x7b, 0xa2, 0x8f, 0x95, 0x7c, 0xd5, 0xea, 0x93, 0xc4, 0x5f,
0x37, 0x4f, 0x8f, 0xee, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x0a, 0x57, 0x94, 0x99, 0x01,
0x00, 0x00,
}

View file

@ -0,0 +1,677 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1beta1/containeranalysis.proto
package containeranalysis
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
v1 "google.golang.org/genproto/googleapis/iam/v1"
math "math"
)
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 scan configuration specifies whether Cloud components in a project have a
// particular type of analysis being run. For example, it can configure whether
// vulnerability scanning is being done on Docker images or not.
type ScanConfig struct {
// Output only. The name of the scan configuration in the form of
// `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. A human-readable description of what the scan configuration
// does.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Whether the scan is enabled.
Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
// Output only. The time this scan config was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time this scan config was last updated.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ScanConfig) Reset() { *m = ScanConfig{} }
func (m *ScanConfig) String() string { return proto.CompactTextString(m) }
func (*ScanConfig) ProtoMessage() {}
func (*ScanConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_20a7ff65c4c4547f, []int{0}
}
func (m *ScanConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ScanConfig.Unmarshal(m, b)
}
func (m *ScanConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ScanConfig.Marshal(b, m, deterministic)
}
func (m *ScanConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_ScanConfig.Merge(m, src)
}
func (m *ScanConfig) XXX_Size() int {
return xxx_messageInfo_ScanConfig.Size(m)
}
func (m *ScanConfig) XXX_DiscardUnknown() {
xxx_messageInfo_ScanConfig.DiscardUnknown(m)
}
var xxx_messageInfo_ScanConfig proto.InternalMessageInfo
func (m *ScanConfig) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ScanConfig) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *ScanConfig) GetEnabled() bool {
if m != nil {
return m.Enabled
}
return false
}
func (m *ScanConfig) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *ScanConfig) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
// Request to get a scan configuration.
type GetScanConfigRequest struct {
// The name of the scan configuration in the form of
// `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetScanConfigRequest) Reset() { *m = GetScanConfigRequest{} }
func (m *GetScanConfigRequest) String() string { return proto.CompactTextString(m) }
func (*GetScanConfigRequest) ProtoMessage() {}
func (*GetScanConfigRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_20a7ff65c4c4547f, []int{1}
}
func (m *GetScanConfigRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetScanConfigRequest.Unmarshal(m, b)
}
func (m *GetScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetScanConfigRequest.Marshal(b, m, deterministic)
}
func (m *GetScanConfigRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetScanConfigRequest.Merge(m, src)
}
func (m *GetScanConfigRequest) XXX_Size() int {
return xxx_messageInfo_GetScanConfigRequest.Size(m)
}
func (m *GetScanConfigRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetScanConfigRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetScanConfigRequest proto.InternalMessageInfo
func (m *GetScanConfigRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request to list scan configurations.
type ListScanConfigsRequest struct {
// The name of the project to list scan configurations for in the form of
// `projects/[PROJECT_ID]`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The filter expression.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// The number of scan configs to return in the list.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Token to provide to skip to a particular spot in the list.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListScanConfigsRequest) Reset() { *m = ListScanConfigsRequest{} }
func (m *ListScanConfigsRequest) String() string { return proto.CompactTextString(m) }
func (*ListScanConfigsRequest) ProtoMessage() {}
func (*ListScanConfigsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_20a7ff65c4c4547f, []int{2}
}
func (m *ListScanConfigsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListScanConfigsRequest.Unmarshal(m, b)
}
func (m *ListScanConfigsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListScanConfigsRequest.Marshal(b, m, deterministic)
}
func (m *ListScanConfigsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListScanConfigsRequest.Merge(m, src)
}
func (m *ListScanConfigsRequest) XXX_Size() int {
return xxx_messageInfo_ListScanConfigsRequest.Size(m)
}
func (m *ListScanConfigsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListScanConfigsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListScanConfigsRequest proto.InternalMessageInfo
func (m *ListScanConfigsRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ListScanConfigsRequest) GetFilter() string {
if m != nil {
return m.Filter
}
return ""
}
func (m *ListScanConfigsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListScanConfigsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// Response for listing scan configurations.
type ListScanConfigsResponse struct {
// The scan configurations requested.
ScanConfigs []*ScanConfig `protobuf:"bytes,1,rep,name=scan_configs,json=scanConfigs,proto3" json:"scan_configs,omitempty"`
// The next pagination token in the list response. It should be used as
// `page_token` for the following request. An empty value means no more
// results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListScanConfigsResponse) Reset() { *m = ListScanConfigsResponse{} }
func (m *ListScanConfigsResponse) String() string { return proto.CompactTextString(m) }
func (*ListScanConfigsResponse) ProtoMessage() {}
func (*ListScanConfigsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_20a7ff65c4c4547f, []int{3}
}
func (m *ListScanConfigsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListScanConfigsResponse.Unmarshal(m, b)
}
func (m *ListScanConfigsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListScanConfigsResponse.Marshal(b, m, deterministic)
}
func (m *ListScanConfigsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListScanConfigsResponse.Merge(m, src)
}
func (m *ListScanConfigsResponse) XXX_Size() int {
return xxx_messageInfo_ListScanConfigsResponse.Size(m)
}
func (m *ListScanConfigsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListScanConfigsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListScanConfigsResponse proto.InternalMessageInfo
func (m *ListScanConfigsResponse) GetScanConfigs() []*ScanConfig {
if m != nil {
return m.ScanConfigs
}
return nil
}
func (m *ListScanConfigsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// A request to update a scan configuration.
type UpdateScanConfigRequest struct {
// The name of the scan configuration in the form of
// `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The updated scan configuration.
ScanConfig *ScanConfig `protobuf:"bytes,2,opt,name=scan_config,json=scanConfig,proto3" json:"scan_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateScanConfigRequest) Reset() { *m = UpdateScanConfigRequest{} }
func (m *UpdateScanConfigRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateScanConfigRequest) ProtoMessage() {}
func (*UpdateScanConfigRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_20a7ff65c4c4547f, []int{4}
}
func (m *UpdateScanConfigRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateScanConfigRequest.Unmarshal(m, b)
}
func (m *UpdateScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateScanConfigRequest.Marshal(b, m, deterministic)
}
func (m *UpdateScanConfigRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateScanConfigRequest.Merge(m, src)
}
func (m *UpdateScanConfigRequest) XXX_Size() int {
return xxx_messageInfo_UpdateScanConfigRequest.Size(m)
}
func (m *UpdateScanConfigRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateScanConfigRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateScanConfigRequest proto.InternalMessageInfo
func (m *UpdateScanConfigRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *UpdateScanConfigRequest) GetScanConfig() *ScanConfig {
if m != nil {
return m.ScanConfig
}
return nil
}
func init() {
proto.RegisterType((*ScanConfig)(nil), "google.devtools.containeranalysis.v1beta1.ScanConfig")
proto.RegisterType((*GetScanConfigRequest)(nil), "google.devtools.containeranalysis.v1beta1.GetScanConfigRequest")
proto.RegisterType((*ListScanConfigsRequest)(nil), "google.devtools.containeranalysis.v1beta1.ListScanConfigsRequest")
proto.RegisterType((*ListScanConfigsResponse)(nil), "google.devtools.containeranalysis.v1beta1.ListScanConfigsResponse")
proto.RegisterType((*UpdateScanConfigRequest)(nil), "google.devtools.containeranalysis.v1beta1.UpdateScanConfigRequest")
}
// 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
// ContainerAnalysisV1Beta1Client is the client API for ContainerAnalysisV1Beta1 service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ContainerAnalysisV1Beta1Client interface {
// Sets the access control policy on the specified note or occurrence.
// Requires `containeranalysis.notes.setIamPolicy` or
// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
// a note or an occurrence, respectively.
//
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
// occurrences.
SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
// Gets the access control policy for a note or an occurrence resource.
// Requires `containeranalysis.notes.setIamPolicy` or
// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
// a note or occurrence, respectively.
//
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
// occurrences.
GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
// Returns the permissions that a caller has on the specified note or
// occurrence. Requires list permission on the project (for example,
// `containeranalysis.notes.list`).
//
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
// occurrences.
TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
// Gets the specified scan configuration.
GetScanConfig(ctx context.Context, in *GetScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error)
// Lists scan configurations for the specified project.
ListScanConfigs(ctx context.Context, in *ListScanConfigsRequest, opts ...grpc.CallOption) (*ListScanConfigsResponse, error)
// Updates the specified scan configuration.
UpdateScanConfig(ctx context.Context, in *UpdateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error)
}
type containerAnalysisV1Beta1Client struct {
cc *grpc.ClientConn
}
func NewContainerAnalysisV1Beta1Client(cc *grpc.ClientConn) ContainerAnalysisV1Beta1Client {
return &containerAnalysisV1Beta1Client{cc}
}
func (c *containerAnalysisV1Beta1Client) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
out := new(v1.Policy)
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/SetIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *containerAnalysisV1Beta1Client) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
out := new(v1.Policy)
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *containerAnalysisV1Beta1Client) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) {
out := new(v1.TestIamPermissionsResponse)
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/TestIamPermissions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *containerAnalysisV1Beta1Client) GetScanConfig(ctx context.Context, in *GetScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) {
out := new(ScanConfig)
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetScanConfig", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *containerAnalysisV1Beta1Client) ListScanConfigs(ctx context.Context, in *ListScanConfigsRequest, opts ...grpc.CallOption) (*ListScanConfigsResponse, error) {
out := new(ListScanConfigsResponse)
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/ListScanConfigs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *containerAnalysisV1Beta1Client) UpdateScanConfig(ctx context.Context, in *UpdateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) {
out := new(ScanConfig)
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/UpdateScanConfig", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ContainerAnalysisV1Beta1Server is the server API for ContainerAnalysisV1Beta1 service.
type ContainerAnalysisV1Beta1Server interface {
// Sets the access control policy on the specified note or occurrence.
// Requires `containeranalysis.notes.setIamPolicy` or
// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
// a note or an occurrence, respectively.
//
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
// occurrences.
SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
// Gets the access control policy for a note or an occurrence resource.
// Requires `containeranalysis.notes.setIamPolicy` or
// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
// a note or occurrence, respectively.
//
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
// occurrences.
GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
// Returns the permissions that a caller has on the specified note or
// occurrence. Requires list permission on the project (for example,
// `containeranalysis.notes.list`).
//
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
// occurrences.
TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
// Gets the specified scan configuration.
GetScanConfig(context.Context, *GetScanConfigRequest) (*ScanConfig, error)
// Lists scan configurations for the specified project.
ListScanConfigs(context.Context, *ListScanConfigsRequest) (*ListScanConfigsResponse, error)
// Updates the specified scan configuration.
UpdateScanConfig(context.Context, *UpdateScanConfigRequest) (*ScanConfig, error)
}
func RegisterContainerAnalysisV1Beta1Server(s *grpc.Server, srv ContainerAnalysisV1Beta1Server) {
s.RegisterService(&_ContainerAnalysisV1Beta1_serviceDesc, srv)
}
func _ContainerAnalysisV1Beta1_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.SetIamPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContainerAnalysisV1Beta1Server).SetIamPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/SetIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerAnalysisV1Beta1Server).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ContainerAnalysisV1Beta1_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.GetIamPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContainerAnalysisV1Beta1Server).GetIamPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerAnalysisV1Beta1Server).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ContainerAnalysisV1Beta1_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.TestIamPermissionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContainerAnalysisV1Beta1Server).TestIamPermissions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/TestIamPermissions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerAnalysisV1Beta1Server).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ContainerAnalysisV1Beta1_GetScanConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetScanConfigRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContainerAnalysisV1Beta1Server).GetScanConfig(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetScanConfig",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerAnalysisV1Beta1Server).GetScanConfig(ctx, req.(*GetScanConfigRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ContainerAnalysisV1Beta1_ListScanConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListScanConfigsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContainerAnalysisV1Beta1Server).ListScanConfigs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/ListScanConfigs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerAnalysisV1Beta1Server).ListScanConfigs(ctx, req.(*ListScanConfigsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ContainerAnalysisV1Beta1_UpdateScanConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateScanConfigRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContainerAnalysisV1Beta1Server).UpdateScanConfig(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/UpdateScanConfig",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerAnalysisV1Beta1Server).UpdateScanConfig(ctx, req.(*UpdateScanConfigRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ContainerAnalysisV1Beta1_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1",
HandlerType: (*ContainerAnalysisV1Beta1Server)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SetIamPolicy",
Handler: _ContainerAnalysisV1Beta1_SetIamPolicy_Handler,
},
{
MethodName: "GetIamPolicy",
Handler: _ContainerAnalysisV1Beta1_GetIamPolicy_Handler,
},
{
MethodName: "TestIamPermissions",
Handler: _ContainerAnalysisV1Beta1_TestIamPermissions_Handler,
},
{
MethodName: "GetScanConfig",
Handler: _ContainerAnalysisV1Beta1_GetScanConfig_Handler,
},
{
MethodName: "ListScanConfigs",
Handler: _ContainerAnalysisV1Beta1_ListScanConfigs_Handler,
},
{
MethodName: "UpdateScanConfig",
Handler: _ContainerAnalysisV1Beta1_UpdateScanConfig_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/containeranalysis/v1beta1/containeranalysis.proto",
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/containeranalysis.proto", fileDescriptor_20a7ff65c4c4547f)
}
var fileDescriptor_20a7ff65c4c4547f = []byte{
// 766 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x4e, 0x1b, 0x49,
0x10, 0x56, 0xf3, 0xb7, 0xd0, 0x06, 0xb1, 0x6a, 0xed, 0x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 0x69, 0x37, 0x09, 0x00, 0x00,
}

View file

@ -0,0 +1,279 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1beta1/deployment/deployment.proto
package deployment
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Types of platforms.
type Deployment_Platform int32
const (
// Unknown.
Deployment_PLATFORM_UNSPECIFIED Deployment_Platform = 0
// Google Container Engine.
Deployment_GKE Deployment_Platform = 1
// Google App Engine: Flexible Environment.
Deployment_FLEX Deployment_Platform = 2
// Custom user-defined platform.
Deployment_CUSTOM Deployment_Platform = 3
)
var Deployment_Platform_name = map[int32]string{
0: "PLATFORM_UNSPECIFIED",
1: "GKE",
2: "FLEX",
3: "CUSTOM",
}
var Deployment_Platform_value = map[string]int32{
"PLATFORM_UNSPECIFIED": 0,
"GKE": 1,
"FLEX": 2,
"CUSTOM": 3,
}
func (x Deployment_Platform) String() string {
return proto.EnumName(Deployment_Platform_name, int32(x))
}
func (Deployment_Platform) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_27c2fb509818da47, []int{2, 0}
}
// An artifact that can be deployed in some runtime.
type Deployable struct {
// Resource URI for the artifact being deployed.
ResourceUri []string `protobuf:"bytes,1,rep,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Deployable) Reset() { *m = Deployable{} }
func (m *Deployable) String() string { return proto.CompactTextString(m) }
func (*Deployable) ProtoMessage() {}
func (*Deployable) Descriptor() ([]byte, []int) {
return fileDescriptor_27c2fb509818da47, []int{0}
}
func (m *Deployable) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Deployable.Unmarshal(m, b)
}
func (m *Deployable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Deployable.Marshal(b, m, deterministic)
}
func (m *Deployable) XXX_Merge(src proto.Message) {
xxx_messageInfo_Deployable.Merge(m, src)
}
func (m *Deployable) XXX_Size() int {
return xxx_messageInfo_Deployable.Size(m)
}
func (m *Deployable) XXX_DiscardUnknown() {
xxx_messageInfo_Deployable.DiscardUnknown(m)
}
var xxx_messageInfo_Deployable proto.InternalMessageInfo
func (m *Deployable) GetResourceUri() []string {
if m != nil {
return m.ResourceUri
}
return nil
}
// Details of a deployment occurrence.
type Details struct {
// Deployment history for the resource.
Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Details) Reset() { *m = Details{} }
func (m *Details) String() string { return proto.CompactTextString(m) }
func (*Details) ProtoMessage() {}
func (*Details) Descriptor() ([]byte, []int) {
return fileDescriptor_27c2fb509818da47, []int{1}
}
func (m *Details) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Details.Unmarshal(m, b)
}
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
}
func (m *Details) XXX_Merge(src proto.Message) {
xxx_messageInfo_Details.Merge(m, src)
}
func (m *Details) XXX_Size() int {
return xxx_messageInfo_Details.Size(m)
}
func (m *Details) XXX_DiscardUnknown() {
xxx_messageInfo_Details.DiscardUnknown(m)
}
var xxx_messageInfo_Details proto.InternalMessageInfo
func (m *Details) GetDeployment() *Deployment {
if m != nil {
return m.Deployment
}
return nil
}
// The period during which some deployable was active in a runtime.
type Deployment struct {
// Identity of the user that triggered this deployment.
UserEmail string `protobuf:"bytes,1,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
// Beginning of the lifetime of this deployment.
DeployTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=deploy_time,json=deployTime,proto3" json:"deploy_time,omitempty"`
// End of the lifetime of this deployment.
UndeployTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=undeploy_time,json=undeployTime,proto3" json:"undeploy_time,omitempty"`
// Configuration used to create this deployment.
Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
// Address of the runtime element hosting this deployment.
Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
// Output only. Resource URI for the artifact being deployed taken from
// the deployable field with the same name.
ResourceUri []string `protobuf:"bytes,6,rep,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
// Platform hosting this deployment.
Platform Deployment_Platform `protobuf:"varint,7,opt,name=platform,proto3,enum=grafeas.v1beta1.deployment.Deployment_Platform" json:"platform,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Deployment) Reset() { *m = Deployment{} }
func (m *Deployment) String() string { return proto.CompactTextString(m) }
func (*Deployment) ProtoMessage() {}
func (*Deployment) Descriptor() ([]byte, []int) {
return fileDescriptor_27c2fb509818da47, []int{2}
}
func (m *Deployment) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Deployment.Unmarshal(m, b)
}
func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Deployment.Marshal(b, m, deterministic)
}
func (m *Deployment) XXX_Merge(src proto.Message) {
xxx_messageInfo_Deployment.Merge(m, src)
}
func (m *Deployment) XXX_Size() int {
return xxx_messageInfo_Deployment.Size(m)
}
func (m *Deployment) XXX_DiscardUnknown() {
xxx_messageInfo_Deployment.DiscardUnknown(m)
}
var xxx_messageInfo_Deployment proto.InternalMessageInfo
func (m *Deployment) GetUserEmail() string {
if m != nil {
return m.UserEmail
}
return ""
}
func (m *Deployment) GetDeployTime() *timestamp.Timestamp {
if m != nil {
return m.DeployTime
}
return nil
}
func (m *Deployment) GetUndeployTime() *timestamp.Timestamp {
if m != nil {
return m.UndeployTime
}
return nil
}
func (m *Deployment) GetConfig() string {
if m != nil {
return m.Config
}
return ""
}
func (m *Deployment) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *Deployment) GetResourceUri() []string {
if m != nil {
return m.ResourceUri
}
return nil
}
func (m *Deployment) GetPlatform() Deployment_Platform {
if m != nil {
return m.Platform
}
return Deployment_PLATFORM_UNSPECIFIED
}
func init() {
proto.RegisterEnum("grafeas.v1beta1.deployment.Deployment_Platform", Deployment_Platform_name, Deployment_Platform_value)
proto.RegisterType((*Deployable)(nil), "grafeas.v1beta1.deployment.Deployable")
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.deployment.Details")
proto.RegisterType((*Deployment)(nil), "grafeas.v1beta1.deployment.Deployment")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/deployment/deployment.proto", fileDescriptor_27c2fb509818da47)
}
var fileDescriptor_27c2fb509818da47 = []byte{
// 434 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x4d, 0x6b, 0xdb, 0x40,
0x10, 0xad, 0xac, 0xd4, 0x1f, 0xe3, 0xb4, 0x98, 0xa5, 0x14, 0x61, 0x08, 0x75, 0x7d, 0x28, 0x3e,
0xed, 0x92, 0xf4, 0x98, 0x43, 0x49, 0x6d, 0x39, 0x84, 0x24, 0x8d, 0xab, 0xd8, 0x50, 0x7a, 0xa8,
0x59, 0xdb, 0x63, 0xb1, 0xb0, 0xd2, 0x8a, 0xdd, 0x55, 0x20, 0xbf, 0xa0, 0xd7, 0xfe, 0x86, 0xfe,
0xd2, 0xa2, 0x95, 0x14, 0x1b, 0x4c, 0xbf, 0x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e9, 0x3e, 0xdd, 0xff, 0x2b, 0xfd, 0xb8, 0x26, 0xb8, 0x05, 0xaf, 0xa1, 0xb9, 0x56, 0xe9,
0x56, 0xc4, 0xc1, 0x91, 0x13, 0x56, 0x75, 0x24, 0x80, 0x16, 0xdf, 0x6c, 0x34, 0x1a, 0x13, 0x3c,
0x77, 0x0f, 0x75, 0x7b, 0x90, 0x69, 0xf3, 0x20, 0x53, 0x72, 0x0d, 0xed, 0x4c, 0x72, 0xbb, 0x55,
0x3a, 0x09, 0x5a, 0x03, 0x6f, 0xf4, 0xf2, 0x8c, 0xfd, 0x5b, 0x8c, 0x74, 0x56, 0xd1, 0xa2, 0xa7,
0x05, 0xc3, 0x31, 0xb4, 0x6b, 0x94, 0x04, 0xf0, 0x6a, 0x76, 0x73, 0x31, 0x9f, 0xde, 0x45, 0xb7,
0xcb, 0xc5, 0xa7, 0xfb, 0x59, 0x38, 0xbe, 0x9a, 0x5e, 0x85, 0x93, 0xde, 0x33, 0xd2, 0x02, 0xff,
0xf2, 0x3a, 0xec, 0x79, 0xa4, 0x0d, 0x47, 0xd3, 0x9b, 0xf0, 0x4b, 0xaf, 0x41, 0x00, 0x9a, 0xe3,
0xc5, 0xfd, 0xfc, 0xee, 0xb6, 0xe7, 0x7f, 0xfc, 0xee, 0xc1, 0x89, 0x50, 0x7f, 0x10, 0x31, 0xf3,
0xbe, 0x7e, 0xab, 0x32, 0x8b, 0x95, 0xe4, 0x69, 0x4c, 0x95, 0x8e, 0x59, 0x8c, 0xa9, 0x4b, 0x90,
0x95, 0x4f, 0x3c, 0x13, 0xe6, 0xff, 0x7e, 0xf7, 0xf9, 0xae, 0xfc, 0xd9, 0xf0, 0x2f, 0xa3, 0x8b,
0x55, 0xd3, 0x2d, 0x7c, 0xff, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x59, 0xd5, 0x23, 0x2d, 0x03,
0x00, 0x00,
}

View file

@ -0,0 +1,306 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1beta1/discovery/discovery.proto
package discovery
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
common "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/common"
status "google.golang.org/genproto/googleapis/rpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Whether the resource is continuously analyzed.
type Discovered_ContinuousAnalysis int32
const (
// Unknown.
Discovered_CONTINUOUS_ANALYSIS_UNSPECIFIED Discovered_ContinuousAnalysis = 0
// The resource is continuously analyzed.
Discovered_ACTIVE Discovered_ContinuousAnalysis = 1
// The resource is ignored for continuous analysis.
Discovered_INACTIVE Discovered_ContinuousAnalysis = 2
)
var Discovered_ContinuousAnalysis_name = map[int32]string{
0: "CONTINUOUS_ANALYSIS_UNSPECIFIED",
1: "ACTIVE",
2: "INACTIVE",
}
var Discovered_ContinuousAnalysis_value = map[string]int32{
"CONTINUOUS_ANALYSIS_UNSPECIFIED": 0,
"ACTIVE": 1,
"INACTIVE": 2,
}
func (x Discovered_ContinuousAnalysis) String() string {
return proto.EnumName(Discovered_ContinuousAnalysis_name, int32(x))
}
func (Discovered_ContinuousAnalysis) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6ec5519deb85e465, []int{2, 0}
}
// Analysis status for a resource. Currently for initial analysis only (not
// updated in continuous analysis).
type Discovered_AnalysisStatus int32
const (
// Unknown.
Discovered_ANALYSIS_STATUS_UNSPECIFIED Discovered_AnalysisStatus = 0
// Resource is known but no action has been taken yet.
Discovered_PENDING Discovered_AnalysisStatus = 1
// Resource is being analyzed.
Discovered_SCANNING Discovered_AnalysisStatus = 2
// Analysis has finished successfully.
Discovered_FINISHED_SUCCESS Discovered_AnalysisStatus = 3
// Analysis has finished unsuccessfully, the analysis itself is in a bad
// state.
Discovered_FINISHED_FAILED Discovered_AnalysisStatus = 4
// The resource is known not to be supported
Discovered_FINISHED_UNSUPPORTED Discovered_AnalysisStatus = 5
)
var Discovered_AnalysisStatus_name = map[int32]string{
0: "ANALYSIS_STATUS_UNSPECIFIED",
1: "PENDING",
2: "SCANNING",
3: "FINISHED_SUCCESS",
4: "FINISHED_FAILED",
5: "FINISHED_UNSUPPORTED",
}
var Discovered_AnalysisStatus_value = map[string]int32{
"ANALYSIS_STATUS_UNSPECIFIED": 0,
"PENDING": 1,
"SCANNING": 2,
"FINISHED_SUCCESS": 3,
"FINISHED_FAILED": 4,
"FINISHED_UNSUPPORTED": 5,
}
func (x Discovered_AnalysisStatus) String() string {
return proto.EnumName(Discovered_AnalysisStatus_name, int32(x))
}
func (Discovered_AnalysisStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6ec5519deb85e465, []int{2, 1}
}
// A note that indicates a type of analysis a provider would perform. This note
// exists in a provider's project. A `Discovery` occurrence is created in a
// consumer's project at the start of analysis.
type Discovery struct {
// The kind of analysis that is handled by this discovery.
AnalysisKind common.NoteKind `protobuf:"varint,1,opt,name=analysis_kind,json=analysisKind,proto3,enum=grafeas.v1beta1.NoteKind" json:"analysis_kind,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Discovery) Reset() { *m = Discovery{} }
func (m *Discovery) String() string { return proto.CompactTextString(m) }
func (*Discovery) ProtoMessage() {}
func (*Discovery) Descriptor() ([]byte, []int) {
return fileDescriptor_6ec5519deb85e465, []int{0}
}
func (m *Discovery) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Discovery.Unmarshal(m, b)
}
func (m *Discovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Discovery.Marshal(b, m, deterministic)
}
func (m *Discovery) XXX_Merge(src proto.Message) {
xxx_messageInfo_Discovery.Merge(m, src)
}
func (m *Discovery) XXX_Size() int {
return xxx_messageInfo_Discovery.Size(m)
}
func (m *Discovery) XXX_DiscardUnknown() {
xxx_messageInfo_Discovery.DiscardUnknown(m)
}
var xxx_messageInfo_Discovery proto.InternalMessageInfo
func (m *Discovery) GetAnalysisKind() common.NoteKind {
if m != nil {
return m.AnalysisKind
}
return common.NoteKind_NOTE_KIND_UNSPECIFIED
}
// Details of a discovery occurrence.
type Details struct {
// Analysis status for the discovered resource.
Discovered *Discovered `protobuf:"bytes,1,opt,name=discovered,proto3" json:"discovered,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Details) Reset() { *m = Details{} }
func (m *Details) String() string { return proto.CompactTextString(m) }
func (*Details) ProtoMessage() {}
func (*Details) Descriptor() ([]byte, []int) {
return fileDescriptor_6ec5519deb85e465, []int{1}
}
func (m *Details) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Details.Unmarshal(m, b)
}
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
}
func (m *Details) XXX_Merge(src proto.Message) {
xxx_messageInfo_Details.Merge(m, src)
}
func (m *Details) XXX_Size() int {
return xxx_messageInfo_Details.Size(m)
}
func (m *Details) XXX_DiscardUnknown() {
xxx_messageInfo_Details.DiscardUnknown(m)
}
var xxx_messageInfo_Details proto.InternalMessageInfo
func (m *Details) GetDiscovered() *Discovered {
if m != nil {
return m.Discovered
}
return nil
}
// Provides information about the analysis status of a discovered resource.
type Discovered struct {
// Whether the resource is continuously analyzed.
ContinuousAnalysis Discovered_ContinuousAnalysis `protobuf:"varint,1,opt,name=continuous_analysis,json=continuousAnalysis,proto3,enum=grafeas.v1beta1.discovery.Discovered_ContinuousAnalysis" json:"continuous_analysis,omitempty"`
// The last time continuous analysis was done for this resource.
LastAnalysisTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_analysis_time,json=lastAnalysisTime,proto3" json:"last_analysis_time,omitempty"`
// The status of discovery for the resource.
AnalysisStatus Discovered_AnalysisStatus `protobuf:"varint,3,opt,name=analysis_status,json=analysisStatus,proto3,enum=grafeas.v1beta1.discovery.Discovered_AnalysisStatus" json:"analysis_status,omitempty"`
// When an error is encountered this will contain a LocalizedMessage under
// details to show to the user. The LocalizedMessage is output only and
// populated by the API.
AnalysisStatusError *status.Status `protobuf:"bytes,4,opt,name=analysis_status_error,json=analysisStatusError,proto3" json:"analysis_status_error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Discovered) Reset() { *m = Discovered{} }
func (m *Discovered) String() string { return proto.CompactTextString(m) }
func (*Discovered) ProtoMessage() {}
func (*Discovered) Descriptor() ([]byte, []int) {
return fileDescriptor_6ec5519deb85e465, []int{2}
}
func (m *Discovered) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Discovered.Unmarshal(m, b)
}
func (m *Discovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Discovered.Marshal(b, m, deterministic)
}
func (m *Discovered) XXX_Merge(src proto.Message) {
xxx_messageInfo_Discovered.Merge(m, src)
}
func (m *Discovered) XXX_Size() int {
return xxx_messageInfo_Discovered.Size(m)
}
func (m *Discovered) XXX_DiscardUnknown() {
xxx_messageInfo_Discovered.DiscardUnknown(m)
}
var xxx_messageInfo_Discovered proto.InternalMessageInfo
func (m *Discovered) GetContinuousAnalysis() Discovered_ContinuousAnalysis {
if m != nil {
return m.ContinuousAnalysis
}
return Discovered_CONTINUOUS_ANALYSIS_UNSPECIFIED
}
func (m *Discovered) GetLastAnalysisTime() *timestamp.Timestamp {
if m != nil {
return m.LastAnalysisTime
}
return nil
}
func (m *Discovered) GetAnalysisStatus() Discovered_AnalysisStatus {
if m != nil {
return m.AnalysisStatus
}
return Discovered_ANALYSIS_STATUS_UNSPECIFIED
}
func (m *Discovered) GetAnalysisStatusError() *status.Status {
if m != nil {
return m.AnalysisStatusError
}
return nil
}
func init() {
proto.RegisterEnum("grafeas.v1beta1.discovery.Discovered_ContinuousAnalysis", Discovered_ContinuousAnalysis_name, Discovered_ContinuousAnalysis_value)
proto.RegisterEnum("grafeas.v1beta1.discovery.Discovered_AnalysisStatus", Discovered_AnalysisStatus_name, Discovered_AnalysisStatus_value)
proto.RegisterType((*Discovery)(nil), "grafeas.v1beta1.discovery.Discovery")
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.discovery.Details")
proto.RegisterType((*Discovered)(nil), "grafeas.v1beta1.discovery.Discovered")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/discovery/discovery.proto", fileDescriptor_6ec5519deb85e465)
}
var fileDescriptor_6ec5519deb85e465 = []byte{
// 541 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdf, 0x6a, 0xdb, 0x4c,
0x10, 0xc5, 0x3f, 0x39, 0xf9, 0x92, 0x76, 0x92, 0x3a, 0x62, 0x9d, 0x52, 0xc7, 0x2d, 0xb8, 0xb8,
0x14, 0x7a, 0xb5, 0x22, 0x69, 0x2f, 0x0a, 0xa5, 0x05, 0x55, 0x92, 0x13, 0x91, 0xb0, 0x16, 0x5a,
0xa9, 0xd0, 0xd2, 0x22, 0xd6, 0xf2, 0x46, 0x88, 0xca, 0x5a, 0xa3, 0x95, 0x0d, 0xb9, 0xef, 0x0b,
0xf4, 0x15, 0xfa, 0x46, 0x7d, 0xa3, 0xa2, 0xbf, 0xa9, 0x1d, 0x02, 0xee, 0x95, 0x77, 0x66, 0xcf,
0xfc, 0xe6, 0xec, 0x31, 0x08, 0x8c, 0x48, 0x88, 0x28, 0xe1, 0xda, 0x8c, 0xaf, 0x72, 0x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d,
0xd4, 0x87, 0xe3, 0xb6, 0xe9, 0x13, 0xea, 0x3b, 0xce, 0xc4, 0xf5, 0x2c, 0x53, 0xfd, 0xff, 0xe3,
0x0f, 0x05, 0x9e, 0xc5, 0xe2, 0xfe, 0xec, 0x1d, 0xe5, 0xcb, 0xd7, 0x3a, 0xb3, 0x48, 0x24, 0x2c,
0x8d, 0xb0, 0xc8, 0x22, 0x2d, 0xe2, 0x69, 0xf9, 0x6f, 0x6b, 0xd5, 0x15, 0x5b, 0xc4, 0xf2, 0x9f,
0xbe, 0x06, 0xef, 0xda, 0xd3, 0xaf, 0xce, 0xce, 0xb9, 0xab, 0x4f, 0xf7, 0x4a, 0xdc, 0xeb, 0x3f,
0x01, 0x00, 0x00, 0xff, 0xff, 0xaf, 0x60, 0x55, 0x7f, 0x5b, 0x04, 0x00, 0x00,
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,451 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1beta1/image/image.proto
package image
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Instructions from Dockerfile.
type Layer_Directive int32
const (
// Default value for unsupported/missing directive.
Layer_DIRECTIVE_UNSPECIFIED Layer_Directive = 0
// https://docs.docker.com/reference/builder/#maintainer
Layer_MAINTAINER Layer_Directive = 1
// https://docs.docker.com/reference/builder/#run
Layer_RUN Layer_Directive = 2
// https://docs.docker.com/reference/builder/#cmd
Layer_CMD Layer_Directive = 3
// https://docs.docker.com/reference/builder/#label
Layer_LABEL Layer_Directive = 4
// https://docs.docker.com/reference/builder/#expose
Layer_EXPOSE Layer_Directive = 5
// https://docs.docker.com/reference/builder/#env
Layer_ENV Layer_Directive = 6
// https://docs.docker.com/reference/builder/#add
Layer_ADD Layer_Directive = 7
// https://docs.docker.com/reference/builder/#copy
Layer_COPY Layer_Directive = 8
// https://docs.docker.com/reference/builder/#entrypoint
Layer_ENTRYPOINT Layer_Directive = 9
// https://docs.docker.com/reference/builder/#volume
Layer_VOLUME Layer_Directive = 10
// https://docs.docker.com/reference/builder/#user
Layer_USER Layer_Directive = 11
// https://docs.docker.com/reference/builder/#workdir
Layer_WORKDIR Layer_Directive = 12
// https://docs.docker.com/reference/builder/#arg
Layer_ARG Layer_Directive = 13
// https://docs.docker.com/reference/builder/#onbuild
Layer_ONBUILD Layer_Directive = 14
// https://docs.docker.com/reference/builder/#stopsignal
Layer_STOPSIGNAL Layer_Directive = 15
// https://docs.docker.com/reference/builder/#healthcheck
Layer_HEALTHCHECK Layer_Directive = 16
// https://docs.docker.com/reference/builder/#shell
Layer_SHELL Layer_Directive = 17
)
var 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 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 Layer_Directive) String() string {
return proto.EnumName(Layer_Directive_name, int32(x))
}
func (Layer_Directive) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_ab0486c83d3ae0f1, []int{0, 0}
}
// Layer holds metadata specific to a layer of a Docker image.
type Layer struct {
// The recovered Dockerfile directive used to construct this layer.
Directive Layer_Directive `protobuf:"varint,1,opt,name=directive,proto3,enum=grafeas.v1beta1.image.Layer_Directive" json:"directive,omitempty"`
// The recovered arguments to the Dockerfile directive.
Arguments string `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Layer) Reset() { *m = Layer{} }
func (m *Layer) String() string { return proto.CompactTextString(m) }
func (*Layer) ProtoMessage() {}
func (*Layer) Descriptor() ([]byte, []int) {
return fileDescriptor_ab0486c83d3ae0f1, []int{0}
}
func (m *Layer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Layer.Unmarshal(m, b)
}
func (m *Layer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Layer.Marshal(b, m, deterministic)
}
func (m *Layer) XXX_Merge(src proto.Message) {
xxx_messageInfo_Layer.Merge(m, src)
}
func (m *Layer) XXX_Size() int {
return xxx_messageInfo_Layer.Size(m)
}
func (m *Layer) XXX_DiscardUnknown() {
xxx_messageInfo_Layer.DiscardUnknown(m)
}
var xxx_messageInfo_Layer proto.InternalMessageInfo
func (m *Layer) GetDirective() Layer_Directive {
if m != nil {
return m.Directive
}
return Layer_DIRECTIVE_UNSPECIFIED
}
func (m *Layer) GetArguments() string {
if m != nil {
return m.Arguments
}
return ""
}
// A set of properties that uniquely identify a given Docker image.
type Fingerprint struct {
// The layer-id of the final layer in the Docker image's v1 representation.
V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name,proto3" json:"v1_name,omitempty"`
// The ordered list of v2 blobs that represent a given image.
V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob,proto3" json:"v2_blob,omitempty"`
// Output only. The name of the image's v2 blobs computed via:
// [bottom] := v2_blob[bottom]
// [N] := sha256(v2_blob[N] + " " + v2_name[N+1])
// Only the name of the final blob is kept.
V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name,proto3" json:"v2_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Fingerprint) Reset() { *m = Fingerprint{} }
func (m *Fingerprint) String() string { return proto.CompactTextString(m) }
func (*Fingerprint) ProtoMessage() {}
func (*Fingerprint) Descriptor() ([]byte, []int) {
return fileDescriptor_ab0486c83d3ae0f1, []int{1}
}
func (m *Fingerprint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Fingerprint.Unmarshal(m, b)
}
func (m *Fingerprint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Fingerprint.Marshal(b, m, deterministic)
}
func (m *Fingerprint) XXX_Merge(src proto.Message) {
xxx_messageInfo_Fingerprint.Merge(m, src)
}
func (m *Fingerprint) XXX_Size() int {
return xxx_messageInfo_Fingerprint.Size(m)
}
func (m *Fingerprint) XXX_DiscardUnknown() {
xxx_messageInfo_Fingerprint.DiscardUnknown(m)
}
var xxx_messageInfo_Fingerprint proto.InternalMessageInfo
func (m *Fingerprint) GetV1Name() string {
if m != nil {
return m.V1Name
}
return ""
}
func (m *Fingerprint) GetV2Blob() []string {
if m != nil {
return m.V2Blob
}
return nil
}
func (m *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 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,proto3" json:"resource_url,omitempty"`
// The fingerprint of the base image.
Fingerprint *Fingerprint `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Basis) Reset() { *m = Basis{} }
func (m *Basis) String() string { return proto.CompactTextString(m) }
func (*Basis) ProtoMessage() {}
func (*Basis) Descriptor() ([]byte, []int) {
return fileDescriptor_ab0486c83d3ae0f1, []int{2}
}
func (m *Basis) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Basis.Unmarshal(m, b)
}
func (m *Basis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Basis.Marshal(b, m, deterministic)
}
func (m *Basis) XXX_Merge(src proto.Message) {
xxx_messageInfo_Basis.Merge(m, src)
}
func (m *Basis) XXX_Size() int {
return xxx_messageInfo_Basis.Size(m)
}
func (m *Basis) XXX_DiscardUnknown() {
xxx_messageInfo_Basis.DiscardUnknown(m)
}
var xxx_messageInfo_Basis proto.InternalMessageInfo
func (m *Basis) GetResourceUrl() string {
if m != nil {
return m.ResourceUrl
}
return ""
}
func (m *Basis) GetFingerprint() *Fingerprint {
if m != nil {
return m.Fingerprint
}
return nil
}
// Details of an image occurrence.
type Details struct {
// The child image derived from the base image.
DerivedImage *Derived `protobuf:"bytes,1,opt,name=derived_image,json=derivedImage,proto3" json:"derived_image,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Details) Reset() { *m = Details{} }
func (m *Details) String() string { return proto.CompactTextString(m) }
func (*Details) ProtoMessage() {}
func (*Details) Descriptor() ([]byte, []int) {
return fileDescriptor_ab0486c83d3ae0f1, []int{3}
}
func (m *Details) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Details.Unmarshal(m, b)
}
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
}
func (m *Details) XXX_Merge(src proto.Message) {
xxx_messageInfo_Details.Merge(m, src)
}
func (m *Details) XXX_Size() int {
return xxx_messageInfo_Details.Size(m)
}
func (m *Details) XXX_DiscardUnknown() {
xxx_messageInfo_Details.DiscardUnknown(m)
}
var xxx_messageInfo_Details proto.InternalMessageInfo
func (m *Details) GetDerivedImage() *Derived {
if m != nil {
return m.DerivedImage
}
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 Derived struct {
// The fingerprint of the derived image.
Fingerprint *Fingerprint `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
// Output only. The number of layers by which this image differs from the
// associated image basis.
Distance int32 `protobuf:"varint,2,opt,name=distance,proto3" json:"distance,omitempty"`
// This contains layer-specific metadata, if populated it has length
// "distance" and is ordered with [distance] being the layer immediately
// following the base image and [1] being the final layer.
LayerInfo []*Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo,proto3" json:"layer_info,omitempty"`
// Output only. This contains the base image URL for the derived image
// occurrence.
BaseResourceUrl string `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl,proto3" json:"base_resource_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Derived) Reset() { *m = Derived{} }
func (m *Derived) String() string { return proto.CompactTextString(m) }
func (*Derived) ProtoMessage() {}
func (*Derived) Descriptor() ([]byte, []int) {
return fileDescriptor_ab0486c83d3ae0f1, []int{4}
}
func (m *Derived) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Derived.Unmarshal(m, b)
}
func (m *Derived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Derived.Marshal(b, m, deterministic)
}
func (m *Derived) XXX_Merge(src proto.Message) {
xxx_messageInfo_Derived.Merge(m, src)
}
func (m *Derived) XXX_Size() int {
return xxx_messageInfo_Derived.Size(m)
}
func (m *Derived) XXX_DiscardUnknown() {
xxx_messageInfo_Derived.DiscardUnknown(m)
}
var xxx_messageInfo_Derived proto.InternalMessageInfo
func (m *Derived) GetFingerprint() *Fingerprint {
if m != nil {
return m.Fingerprint
}
return nil
}
func (m *Derived) GetDistance() int32 {
if m != nil {
return m.Distance
}
return 0
}
func (m *Derived) GetLayerInfo() []*Layer {
if m != nil {
return m.LayerInfo
}
return nil
}
func (m *Derived) GetBaseResourceUrl() string {
if m != nil {
return m.BaseResourceUrl
}
return ""
}
func init() {
proto.RegisterEnum("grafeas.v1beta1.image.Layer_Directive", Layer_Directive_name, Layer_Directive_value)
proto.RegisterType((*Layer)(nil), "grafeas.v1beta1.image.Layer")
proto.RegisterType((*Fingerprint)(nil), "grafeas.v1beta1.image.Fingerprint")
proto.RegisterType((*Basis)(nil), "grafeas.v1beta1.image.Basis")
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.image.Details")
proto.RegisterType((*Derived)(nil), "grafeas.v1beta1.image.Derived")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/image/image.proto", fileDescriptor_ab0486c83d3ae0f1)
}
var fileDescriptor_ab0486c83d3ae0f1 = []byte{
// 613 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0x6e, 0xda, 0x40,
0x10, 0xc6, 0x6b, 0x08, 0x10, 0x8f, 0xf3, 0x67, 0xb3, 0x52, 0x54, 0x5a, 0x45, 0x15, 0xe5, 0x50,
0x45, 0x3d, 0x18, 0x41, 0x8f, 0x39, 0x01, 0xde, 0x04, 0x2b, 0x8e, 0x8d, 0x16, 0x93, 0x26, 0xbd,
0x58, 0x0b, 0x2c, 0xd6, 0x4a, 0xc6, 0x8b, 0xd6, 0x0e, 0x6a, 0x5e, 0xa7, 0xcf, 0xd4, 0x73, 0x9f,
0xa1, 0x8f, 0x50, 0x79, 0x21, 0x21, 0xad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source: google/devtools/containeranalysis/v1beta1/package/package.proto
package _package
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Instruction set architectures supported by various package managers.
type Architecture int32
const (
// Unknown architecture.
Architecture_ARCHITECTURE_UNSPECIFIED Architecture = 0
// X86 architecture.
Architecture_X86 Architecture = 1
// X64 architecture.
Architecture_X64 Architecture = 2
)
var Architecture_name = map[int32]string{
0: "ARCHITECTURE_UNSPECIFIED",
1: "X86",
2: "X64",
}
var Architecture_value = map[string]int32{
"ARCHITECTURE_UNSPECIFIED": 0,
"X86": 1,
"X64": 2,
}
func (x Architecture) String() string {
return proto.EnumName(Architecture_name, int32(x))
}
func (Architecture) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_a2db18e408c1243f, []int{0}
}
// Whether this is an ordinary package version or a sentinel MIN/MAX version.
type Version_VersionKind int32
const (
// Unknown.
Version_VERSION_KIND_UNSPECIFIED Version_VersionKind = 0
// A standard package version, defined by the other fields.
Version_NORMAL Version_VersionKind = 1
// A special version representing negative infinity, other fields are
// ignored.
Version_MINIMUM Version_VersionKind = 2
// A special version representing positive infinity, other fields are
// ignored.
Version_MAXIMUM Version_VersionKind = 3
)
var Version_VersionKind_name = map[int32]string{
0: "VERSION_KIND_UNSPECIFIED",
1: "NORMAL",
2: "MINIMUM",
3: "MAXIMUM",
}
var Version_VersionKind_value = map[string]int32{
"VERSION_KIND_UNSPECIFIED": 0,
"NORMAL": 1,
"MINIMUM": 2,
"MAXIMUM": 3,
}
func (x Version_VersionKind) String() string {
return proto.EnumName(Version_VersionKind_name, int32(x))
}
func (Version_VersionKind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_a2db18e408c1243f, []int{5, 0}
}
// This represents a particular channel of distribution for a given package.
// E.g., Debian's jessie-backports dpkg mirror.
type 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,proto3" json:"cpe_uri,omitempty"`
// The CPU architecture for which packages in this distribution channel were
// built.
Architecture Architecture `protobuf:"varint,2,opt,name=architecture,proto3,enum=grafeas.v1beta1.package.Architecture" json:"architecture,omitempty"`
// The latest available version of this package in this distribution
// channel.
LatestVersion *Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"`
// A freeform string denoting the maintainer of this package.
Maintainer string `protobuf:"bytes,4,opt,name=maintainer,proto3" json:"maintainer,omitempty"`
// The distribution channel-specific homepage for this package.
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
// The distribution channel-specific description of this package.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Distribution) Reset() { *m = Distribution{} }
func (m *Distribution) String() string { return proto.CompactTextString(m) }
func (*Distribution) ProtoMessage() {}
func (*Distribution) Descriptor() ([]byte, []int) {
return fileDescriptor_a2db18e408c1243f, []int{0}
}
func (m *Distribution) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Distribution.Unmarshal(m, b)
}
func (m *Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Distribution.Marshal(b, m, deterministic)
}
func (m *Distribution) XXX_Merge(src proto.Message) {
xxx_messageInfo_Distribution.Merge(m, src)
}
func (m *Distribution) XXX_Size() int {
return xxx_messageInfo_Distribution.Size(m)
}
func (m *Distribution) XXX_DiscardUnknown() {
xxx_messageInfo_Distribution.DiscardUnknown(m)
}
var xxx_messageInfo_Distribution proto.InternalMessageInfo
func (m *Distribution) GetCpeUri() string {
if m != nil {
return m.CpeUri
}
return ""
}
func (m *Distribution) GetArchitecture() Architecture {
if m != nil {
return m.Architecture
}
return Architecture_ARCHITECTURE_UNSPECIFIED
}
func (m *Distribution) GetLatestVersion() *Version {
if m != nil {
return m.LatestVersion
}
return nil
}
func (m *Distribution) GetMaintainer() string {
if m != nil {
return m.Maintainer
}
return ""
}
func (m *Distribution) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *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 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,proto3" json:"cpe_uri,omitempty"`
// The version installed at this location.
Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// The path from which we gathered that this package/version is installed.
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Location) Reset() { *m = Location{} }
func (m *Location) String() string { return proto.CompactTextString(m) }
func (*Location) ProtoMessage() {}
func (*Location) Descriptor() ([]byte, []int) {
return fileDescriptor_a2db18e408c1243f, []int{1}
}
func (m *Location) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Location.Unmarshal(m, b)
}
func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Location.Marshal(b, m, deterministic)
}
func (m *Location) XXX_Merge(src proto.Message) {
xxx_messageInfo_Location.Merge(m, src)
}
func (m *Location) XXX_Size() int {
return xxx_messageInfo_Location.Size(m)
}
func (m *Location) XXX_DiscardUnknown() {
xxx_messageInfo_Location.DiscardUnknown(m)
}
var xxx_messageInfo_Location proto.InternalMessageInfo
func (m *Location) GetCpeUri() string {
if m != nil {
return m.CpeUri
}
return ""
}
func (m *Location) GetVersion() *Version {
if m != nil {
return m.Version
}
return nil
}
func (m *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 Package struct {
// The name of the package.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The various channels by which a package is distributed.
Distribution []*Distribution `protobuf:"bytes,10,rep,name=distribution,proto3" json:"distribution,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Package) Reset() { *m = Package{} }
func (m *Package) String() string { return proto.CompactTextString(m) }
func (*Package) ProtoMessage() {}
func (*Package) Descriptor() ([]byte, []int) {
return fileDescriptor_a2db18e408c1243f, []int{2}
}
func (m *Package) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Package.Unmarshal(m, b)
}
func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Package.Marshal(b, m, deterministic)
}
func (m *Package) XXX_Merge(src proto.Message) {
xxx_messageInfo_Package.Merge(m, src)
}
func (m *Package) XXX_Size() int {
return xxx_messageInfo_Package.Size(m)
}
func (m *Package) XXX_DiscardUnknown() {
xxx_messageInfo_Package.DiscardUnknown(m)
}
var xxx_messageInfo_Package proto.InternalMessageInfo
func (m *Package) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Package) GetDistribution() []*Distribution {
if m != nil {
return m.Distribution
}
return nil
}
// Details of a package occurrence.
type Details struct {
// Where the package was installed.
Installation *Installation `protobuf:"bytes,1,opt,name=installation,proto3" json:"installation,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Details) Reset() { *m = Details{} }
func (m *Details) String() string { return proto.CompactTextString(m) }
func (*Details) ProtoMessage() {}
func (*Details) Descriptor() ([]byte, []int) {
return fileDescriptor_a2db18e408c1243f, []int{3}
}
func (m *Details) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Details.Unmarshal(m, b)
}
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
}
func (m *Details) XXX_Merge(src proto.Message) {
xxx_messageInfo_Details.Merge(m, src)
}
func (m *Details) XXX_Size() int {
return xxx_messageInfo_Details.Size(m)
}
func (m *Details) XXX_DiscardUnknown() {
xxx_messageInfo_Details.DiscardUnknown(m)
}
var xxx_messageInfo_Details proto.InternalMessageInfo
func (m *Details) GetInstallation() *Installation {
if m != nil {
return m.Installation
}
return nil
}
// This represents how a particular software package may be installed on a
// system.
type Installation struct {
// Output only. The name of the installed package.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// All of the places within the filesystem versions of this package
// have been found.
Location []*Location `protobuf:"bytes,2,rep,name=location,proto3" json:"location,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Installation) Reset() { *m = Installation{} }
func (m *Installation) String() string { return proto.CompactTextString(m) }
func (*Installation) ProtoMessage() {}
func (*Installation) Descriptor() ([]byte, []int) {
return fileDescriptor_a2db18e408c1243f, []int{4}
}
func (m *Installation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Installation.Unmarshal(m, b)
}
func (m *Installation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Installation.Marshal(b, m, deterministic)
}
func (m *Installation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Installation.Merge(m, src)
}
func (m *Installation) XXX_Size() int {
return xxx_messageInfo_Installation.Size(m)
}
func (m *Installation) XXX_DiscardUnknown() {
xxx_messageInfo_Installation.DiscardUnknown(m)
}
var xxx_messageInfo_Installation proto.InternalMessageInfo
func (m *Installation) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Installation) GetLocation() []*Location {
if m != nil {
return m.Location
}
return nil
}
// Version contains structured information about the version of a package.
type Version struct {
// Used to correct mistakes in the version numbering scheme.
Epoch int32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
// The main part of the version name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// The iteration of the package build from the above version.
Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
// Distinguish between sentinel MIN/MAX versions and normal versions. If
// kind is not NORMAL, then the other fields are ignored.
Kind Version_VersionKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1beta1.package.Version_VersionKind" json:"kind,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Version) Reset() { *m = Version{} }
func (m *Version) String() string { return proto.CompactTextString(m) }
func (*Version) ProtoMessage() {}
func (*Version) Descriptor() ([]byte, []int) {
return fileDescriptor_a2db18e408c1243f, []int{5}
}
func (m *Version) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Version.Unmarshal(m, b)
}
func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Version.Marshal(b, m, deterministic)
}
func (m *Version) XXX_Merge(src proto.Message) {
xxx_messageInfo_Version.Merge(m, src)
}
func (m *Version) XXX_Size() int {
return xxx_messageInfo_Version.Size(m)
}
func (m *Version) XXX_DiscardUnknown() {
xxx_messageInfo_Version.DiscardUnknown(m)
}
var xxx_messageInfo_Version proto.InternalMessageInfo
func (m *Version) GetEpoch() int32 {
if m != nil {
return m.Epoch
}
return 0
}
func (m *Version) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Version) GetRevision() string {
if m != nil {
return m.Revision
}
return ""
}
func (m *Version) GetKind() Version_VersionKind {
if m != nil {
return m.Kind
}
return Version_VERSION_KIND_UNSPECIFIED
}
func init() {
proto.RegisterEnum("grafeas.v1beta1.package.Architecture", Architecture_name, Architecture_value)
proto.RegisterEnum("grafeas.v1beta1.package.Version_VersionKind", Version_VersionKind_name, Version_VersionKind_value)
proto.RegisterType((*Distribution)(nil), "grafeas.v1beta1.package.Distribution")
proto.RegisterType((*Location)(nil), "grafeas.v1beta1.package.Location")
proto.RegisterType((*Package)(nil), "grafeas.v1beta1.package.Package")
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.package.Details")
proto.RegisterType((*Installation)(nil), "grafeas.v1beta1.package.Installation")
proto.RegisterType((*Version)(nil), "grafeas.v1beta1.package.Version")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/package/package.proto", fileDescriptor_a2db18e408c1243f)
}
var fileDescriptor_a2db18e408c1243f = []byte{
// 575 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xff, 0x6a, 0xd4, 0x40,
0x10, 0x36, 0x49, 0x7b, 0x69, 0xe7, 0xce, 0x12, 0x16, 0xb1, 0x41, 0x44, 0x62, 0x40, 0x38, 0x44,
0x12, 0x5a, 0xa5, 0x88, 0xe2, 0x8f, 0xb3, 0x77, 0xd6, 0xd0, 0xde, 0xb5, 0x6e, 0x7b, 0xa5, 0xf8,
0xcf, 0xb1, 0xcd, 0xad, 0xb9, 0xa5, 0x69, 0x36, 0xec, 0xee, 0x1d, 0xe8, 0x4b, 0xf8, 0x0e, 0x3e,
0x9b, 0x0f, 0x22, 0xd9, 0x24, 0x47, 0xaa, 0xb6, 0xea, 0x5f, 0x3b, 0xb3, 0x33, 0xdf, 0x37, 0xfb,
0xcd, 0x24, 0x03, 0x6f, 0x12, 0xce, 0x93, 0x94, 0x86, 0x53, 0xba, 0x50, 0x9c, 0xa7, 0x32, 0x8c,
0x79, 0xa6, 0x08, 0xcb, 0xa8, 0x20, 0x19, 0x49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7, 0xd4, 0x4e, 0xef, 0x4c, 0x3b, 0xd6,
0xe3, 0xd7, 0xd0, 0x69, 0xfe, 0x39, 0x05, 0x67, 0x0f, 0xef, 0x7e, 0x88, 0x4e, 0x06, 0xbb, 0x27,
0x63, 0x3c, 0xf8, 0x85, 0xd3, 0x06, 0xeb, 0xec, 0xf9, 0x8e, 0x63, 0x68, 0x63, 0xe7, 0x99, 0x63,
0xbe, 0xfb, 0x0a, 0x77, 0x19, 0xff, 0x5d, 0xca, 0x45, 0x72, 0x64, 0x7c, 0x3a, 0x2b, 0xd7, 0x48,
0x90, 0xf0, 0x94, 0x64, 0x49, 0xc0, 0x45, 0x12, 0x26, 0x34, 0xd3, 0x1b, 0x22, 0x2c, 0x43, 0x24,
0x67, 0xf2, 0x3f, 0xb6, 0xcc, 0xcb, 0xea, 0xfc, 0x6e, 0x5a, 0x7b, 0xb8, 0x77, 0xde, 0xd2, 0x54,
0x4f, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0x78, 0xac, 0x5c, 0xdf, 0xaf, 0x04, 0x00, 0x00,
}

View file

@ -0,0 +1,602 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1beta1/provenance/provenance.proto
package provenance
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
source "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/source"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Specifies the hash algorithm, if any.
type Hash_HashType int32
const (
// Unknown.
Hash_HASH_TYPE_UNSPECIFIED Hash_HashType = 0
// A SHA-256 hash.
Hash_SHA256 Hash_HashType = 1
)
var Hash_HashType_name = map[int32]string{
0: "HASH_TYPE_UNSPECIFIED",
1: "SHA256",
}
var Hash_HashType_value = map[string]int32{
"HASH_TYPE_UNSPECIFIED": 0,
"SHA256": 1,
}
func (x Hash_HashType) String() string {
return proto.EnumName(Hash_HashType_name, int32(x))
}
func (Hash_HashType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4ab6101dd6eab75c, []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,proto3" json:"id,omitempty"`
// ID of the project.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Commands requested by the build.
Commands []*Command `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands,omitempty"`
// Output of the build.
BuiltArtifacts []*Artifact `protobuf:"bytes,4,rep,name=built_artifacts,json=builtArtifacts,proto3" json:"built_artifacts,omitempty"`
// Time at which the build was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Time at which execution of the build was started.
StartTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Time at which execution of the build was finished.
EndTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_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,8,opt,name=creator,proto3" json:"creator,omitempty"`
// URI where any logs for this provenance were written.
LogsUri string `protobuf:"bytes,9,opt,name=logs_uri,json=logsUri,proto3" json:"logs_uri,omitempty"`
// Details of the Source input to the build.
SourceProvenance *Source `protobuf:"bytes,10,opt,name=source_provenance,json=sourceProvenance,proto3" json:"source_provenance,omitempty"`
// Trigger identifier if the build was triggered automatically; empty if not.
TriggerId string `protobuf:"bytes,11,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"`
// Special options applied to this build. This is a catch-all field where
// build providers can enter any desired additional details.
BuildOptions map[string]string `protobuf:"bytes,12,rep,name=build_options,json=buildOptions,proto3" json:"build_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Version string of the builder at the time this build was executed.
BuilderVersion string `protobuf:"bytes,13,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildProvenance) Reset() { *m = BuildProvenance{} }
func (m *BuildProvenance) String() string { return proto.CompactTextString(m) }
func (*BuildProvenance) ProtoMessage() {}
func (*BuildProvenance) Descriptor() ([]byte, []int) {
return fileDescriptor_4ab6101dd6eab75c, []int{0}
}
func (m *BuildProvenance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildProvenance.Unmarshal(m, b)
}
func (m *BuildProvenance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildProvenance.Marshal(b, m, deterministic)
}
func (m *BuildProvenance) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildProvenance.Merge(m, src)
}
func (m *BuildProvenance) XXX_Size() int {
return xxx_messageInfo_BuildProvenance.Size(m)
}
func (m *BuildProvenance) XXX_DiscardUnknown() {
xxx_messageInfo_BuildProvenance.DiscardUnknown(m)
}
var xxx_messageInfo_BuildProvenance proto.InternalMessageInfo
func (m *BuildProvenance) GetId() string {
if m != nil {
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() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *BuildProvenance) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *BuildProvenance) GetEndTime() *timestamp.Timestamp {
if m != nil {
return m.EndTime
}
return nil
}
func (m *BuildProvenance) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *BuildProvenance) GetLogsUri() string {
if m != nil {
return m.LogsUri
}
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 {
// If provided, the input binary artifacts for the build came from this
// location.
ArtifactStorageSourceUri string `protobuf:"bytes,1,opt,name=artifact_storage_source_uri,json=artifactStorageSourceUri,proto3" json:"artifact_storage_source_uri,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,2,rep,name=file_hashes,json=fileHashes,proto3" json:"file_hashes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// If provided, the source code used for the build came from this location.
Context *source.SourceContext `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"`
// If provided, some of the source code used for the build may be found in
// these locations, in the case where the source repository had multiple
// remotes or submodules. This list will not include the context specified in
// the context field.
AdditionalContexts []*source.SourceContext `protobuf:"bytes,4,rep,name=additional_contexts,json=additionalContexts,proto3" json:"additional_contexts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Source) Reset() { *m = Source{} }
func (m *Source) String() string { return proto.CompactTextString(m) }
func (*Source) ProtoMessage() {}
func (*Source) Descriptor() ([]byte, []int) {
return fileDescriptor_4ab6101dd6eab75c, []int{1}
}
func (m *Source) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Source.Unmarshal(m, b)
}
func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Source.Marshal(b, m, deterministic)
}
func (m *Source) XXX_Merge(src proto.Message) {
xxx_messageInfo_Source.Merge(m, src)
}
func (m *Source) XXX_Size() int {
return xxx_messageInfo_Source.Size(m)
}
func (m *Source) XXX_DiscardUnknown() {
xxx_messageInfo_Source.DiscardUnknown(m)
}
var xxx_messageInfo_Source proto.InternalMessageInfo
func (m *Source) GetArtifactStorageSourceUri() string {
if m != nil {
return m.ArtifactStorageSourceUri
}
return ""
}
func (m *Source) GetFileHashes() map[string]*FileHashes {
if m != nil {
return m.FileHashes
}
return nil
}
func (m *Source) GetContext() *source.SourceContext {
if m != nil {
return m.Context
}
return nil
}
func (m *Source) GetAdditionalContexts() []*source.SourceContext {
if m != nil {
return m.AdditionalContexts
}
return nil
}
// 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,proto3" json:"file_hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FileHashes) Reset() { *m = FileHashes{} }
func (m *FileHashes) String() string { return proto.CompactTextString(m) }
func (*FileHashes) ProtoMessage() {}
func (*FileHashes) Descriptor() ([]byte, []int) {
return fileDescriptor_4ab6101dd6eab75c, []int{2}
}
func (m *FileHashes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FileHashes.Unmarshal(m, b)
}
func (m *FileHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FileHashes.Marshal(b, m, deterministic)
}
func (m *FileHashes) XXX_Merge(src proto.Message) {
xxx_messageInfo_FileHashes.Merge(m, src)
}
func (m *FileHashes) XXX_Size() int {
return xxx_messageInfo_FileHashes.Size(m)
}
func (m *FileHashes) XXX_DiscardUnknown() {
xxx_messageInfo_FileHashes.DiscardUnknown(m)
}
var xxx_messageInfo_FileHashes proto.InternalMessageInfo
func (m *FileHashes) GetFileHash() []*Hash {
if m != nil {
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,proto3,enum=grafeas.v1beta1.provenance.Hash_HashType" json:"type,omitempty"`
// The hash value.
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Hash) Reset() { *m = Hash{} }
func (m *Hash) String() string { return proto.CompactTextString(m) }
func (*Hash) ProtoMessage() {}
func (*Hash) Descriptor() ([]byte, []int) {
return fileDescriptor_4ab6101dd6eab75c, []int{3}
}
func (m *Hash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Hash.Unmarshal(m, b)
}
func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Hash.Marshal(b, m, deterministic)
}
func (m *Hash) XXX_Merge(src proto.Message) {
xxx_messageInfo_Hash.Merge(m, src)
}
func (m *Hash) XXX_Size() int {
return xxx_messageInfo_Hash.Size(m)
}
func (m *Hash) XXX_DiscardUnknown() {
xxx_messageInfo_Hash.DiscardUnknown(m)
}
var xxx_messageInfo_Hash proto.InternalMessageInfo
func (m *Hash) GetType() Hash_HashType {
if m != nil {
return m.Type
}
return Hash_HASH_TYPE_UNSPECIFIED
}
func (m *Hash) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
// 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,proto3" json:"name,omitempty"`
// Environment variables set before running this command.
Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
// Command-line arguments used when executing this command.
Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
// Working directory (relative to project source root) used when running this
// command.
Dir string `protobuf:"bytes,4,opt,name=dir,proto3" json:"dir,omitempty"`
// Optional unique identifier for this command, used in wait_for to reference
// this command as a dependency.
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
// The ID(s) of the command(s) that this command depends on.
WaitFor []string `protobuf:"bytes,6,rep,name=wait_for,json=waitFor,proto3" json:"wait_for,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Command) Reset() { *m = Command{} }
func (m *Command) String() string { return proto.CompactTextString(m) }
func (*Command) ProtoMessage() {}
func (*Command) Descriptor() ([]byte, []int) {
return fileDescriptor_4ab6101dd6eab75c, []int{4}
}
func (m *Command) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Command.Unmarshal(m, b)
}
func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Command.Marshal(b, m, deterministic)
}
func (m *Command) XXX_Merge(src proto.Message) {
xxx_messageInfo_Command.Merge(m, src)
}
func (m *Command) XXX_Size() int {
return xxx_messageInfo_Command.Size(m)
}
func (m *Command) XXX_DiscardUnknown() {
xxx_messageInfo_Command.DiscardUnknown(m)
}
var xxx_messageInfo_Command proto.InternalMessageInfo
func (m *Command) GetName() string {
if m != nil {
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 {
// Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
// container.
Checksum string `protobuf:"bytes,1,opt,name=checksum,proto3" json:"checksum,omitempty"`
// Artifact ID, if any; for container images, this will be a URL by digest
// like `gcr.io/projectID/imagename@sha256:123456`.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// Related artifact names. This may be the path to a binary or jar file, or in
// the case of a container build, the name used to push the container image to
// Google Container Registry, as presented to `docker push`. Note that a
// single Artifact ID can have multiple names, for example if two tags are
// applied to one image.
Names []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Artifact) Reset() { *m = Artifact{} }
func (m *Artifact) String() string { return proto.CompactTextString(m) }
func (*Artifact) ProtoMessage() {}
func (*Artifact) Descriptor() ([]byte, []int) {
return fileDescriptor_4ab6101dd6eab75c, []int{5}
}
func (m *Artifact) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Artifact.Unmarshal(m, b)
}
func (m *Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Artifact.Marshal(b, m, deterministic)
}
func (m *Artifact) XXX_Merge(src proto.Message) {
xxx_messageInfo_Artifact.Merge(m, src)
}
func (m *Artifact) XXX_Size() int {
return xxx_messageInfo_Artifact.Size(m)
}
func (m *Artifact) XXX_DiscardUnknown() {
xxx_messageInfo_Artifact.DiscardUnknown(m)
}
var xxx_messageInfo_Artifact proto.InternalMessageInfo
func (m *Artifact) 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.RegisterEnum("grafeas.v1beta1.provenance.Hash_HashType", Hash_HashType_name, Hash_HashType_value)
proto.RegisterType((*BuildProvenance)(nil), "grafeas.v1beta1.provenance.BuildProvenance")
proto.RegisterMapType((map[string]string)(nil), "grafeas.v1beta1.provenance.BuildProvenance.BuildOptionsEntry")
proto.RegisterType((*Source)(nil), "grafeas.v1beta1.provenance.Source")
proto.RegisterMapType((map[string]*FileHashes)(nil), "grafeas.v1beta1.provenance.Source.FileHashesEntry")
proto.RegisterType((*FileHashes)(nil), "grafeas.v1beta1.provenance.FileHashes")
proto.RegisterType((*Hash)(nil), "grafeas.v1beta1.provenance.Hash")
proto.RegisterType((*Command)(nil), "grafeas.v1beta1.provenance.Command")
proto.RegisterType((*Artifact)(nil), "grafeas.v1beta1.provenance.Artifact")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/provenance/provenance.proto", fileDescriptor_4ab6101dd6eab75c)
}
var fileDescriptor_4ab6101dd6eab75c = []byte{
// 848 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4b, 0x6f, 0x23, 0x45,
0x10, 0x66, 0xfc, 0x1c, 0x97, 0xb3, 0x49, 0xb6, 0x59, 0xa4, 0x8e, 0x51, 0x44, 0x64, 0x5e, 0xe1,
0x32, 0x56, 0x8c, 0x16, 0x01, 0x8b, 0x15, 0x65, 0x83, 0x43, 0x22, 0x1e, 0x1b, 0x8d, 0xb3, 0x2b,
0xc1, 0x81, 0x51, 0x7b, 0xba, 0x3d, 0x69, 0x76, 0x3c, 0x6d, 0x75, 0xb7, 0x0d, 0xbe, 0x71, 0xe3,
0xc6, 0x2f, 0xe0, 0xc4, 0x4f, 0xe4, 0x17, 0xa0, 0x7e, 0x8c, 0x6d, 0x76, 0xc1, 0x09, 0x97, 0xa4,
0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0x73, 0x8f, 0xc8, 0x8c,
0xab, 0xff, 0xf7, 0x43, 0xfa, 0x64, 0x7d, 0xfc, 0xb3, 0x52, 0xfd, 0x2a, 0x3e, 0x1b, 0x37, 0xac,
0xe0, 0xc7, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x7b, 0x4e, 0x7a, 0xbc, 0x98, 0x07, 0x00, 0x00,
}

View file

@ -0,0 +1,930 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1beta1/source/source.proto
package source
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The 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 fileDescriptor_9e8da9cb20b4f843, []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,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SourceContext) Reset() { *m = SourceContext{} }
func (m *SourceContext) String() string { return proto.CompactTextString(m) }
func (*SourceContext) ProtoMessage() {}
func (*SourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_9e8da9cb20b4f843, []int{0}
}
func (m *SourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SourceContext.Unmarshal(m, b)
}
func (m *SourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SourceContext.Marshal(b, m, deterministic)
}
func (m *SourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_SourceContext.Merge(m, src)
}
func (m *SourceContext) XXX_Size() int {
return xxx_messageInfo_SourceContext.Size(m)
}
func (m *SourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_SourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_SourceContext proto.InternalMessageInfo
type isSourceContext_Context interface {
isSourceContext_Context()
}
type SourceContext_CloudRepo struct {
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"`
}
type SourceContext_Gerrit struct {
Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,proto3,oneof"`
}
type SourceContext_Git struct {
Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,proto3,oneof"`
}
func (*SourceContext_CloudRepo) isSourceContext_Context() {}
func (*SourceContext_Gerrit) isSourceContext_Context() {}
func (*SourceContext_Git) isSourceContext_Context() {}
func (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 += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Gerrit:
s := proto.Size(x.Gerrit)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Git:
s := proto.Size(x.Git)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// An alias to a repo revision.
type AliasContext struct {
// The alias kind.
Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=grafeas.v1beta1.source.AliasContext_Kind" json:"kind,omitempty"`
// The alias name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AliasContext) Reset() { *m = AliasContext{} }
func (m *AliasContext) String() string { return proto.CompactTextString(m) }
func (*AliasContext) ProtoMessage() {}
func (*AliasContext) Descriptor() ([]byte, []int) {
return fileDescriptor_9e8da9cb20b4f843, []int{1}
}
func (m *AliasContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AliasContext.Unmarshal(m, b)
}
func (m *AliasContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AliasContext.Marshal(b, m, deterministic)
}
func (m *AliasContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_AliasContext.Merge(m, src)
}
func (m *AliasContext) XXX_Size() int {
return xxx_messageInfo_AliasContext.Size(m)
}
func (m *AliasContext) XXX_DiscardUnknown() {
xxx_messageInfo_AliasContext.DiscardUnknown(m)
}
var xxx_messageInfo_AliasContext proto.InternalMessageInfo
func (m *AliasContext) GetKind() AliasContext_Kind {
if m != nil {
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,proto3" json:"repo_id,omitempty"`
// A revision in a Cloud Repo can be identified by either its revision ID or
// its alias.
//
// Types that are valid to be assigned to Revision:
// *CloudRepoSourceContext_RevisionId
// *CloudRepoSourceContext_AliasContext
Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} }
func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) }
func (*CloudRepoSourceContext) ProtoMessage() {}
func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_9e8da9cb20b4f843, []int{2}
}
func (m *CloudRepoSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CloudRepoSourceContext.Unmarshal(m, b)
}
func (m *CloudRepoSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CloudRepoSourceContext.Marshal(b, m, deterministic)
}
func (m *CloudRepoSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloudRepoSourceContext.Merge(m, src)
}
func (m *CloudRepoSourceContext) XXX_Size() int {
return xxx_messageInfo_CloudRepoSourceContext.Size(m)
}
func (m *CloudRepoSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_CloudRepoSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_CloudRepoSourceContext proto.InternalMessageInfo
func (m *CloudRepoSourceContext) GetRepoId() *RepoId {
if m != nil {
return m.RepoId
}
return nil
}
type isCloudRepoSourceContext_Revision interface {
isCloudRepoSourceContext_Revision()
}
type CloudRepoSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
type CloudRepoSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,3,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {}
func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision {
if m != nil {
return m.Revision
}
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 += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *CloudRepoSourceContext_AliasContext:
s := proto.Size(x.AliasContext)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// 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,proto3" json:"host_uri,omitempty"`
// The full project name within the host. Projects may be nested, so
// "project/subproject" is a valid project name. The "repo name" is the
// hostURI/project.
GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject,proto3" json:"gerrit_project,omitempty"`
// A revision in a Gerrit project can be identified by either its revision ID
// or its alias.
//
// Types that are valid to be assigned to Revision:
// *GerritSourceContext_RevisionId
// *GerritSourceContext_AliasContext
Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} }
func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) }
func (*GerritSourceContext) ProtoMessage() {}
func (*GerritSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_9e8da9cb20b4f843, []int{3}
}
func (m *GerritSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GerritSourceContext.Unmarshal(m, b)
}
func (m *GerritSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GerritSourceContext.Marshal(b, m, deterministic)
}
func (m *GerritSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_GerritSourceContext.Merge(m, src)
}
func (m *GerritSourceContext) XXX_Size() int {
return xxx_messageInfo_GerritSourceContext.Size(m)
}
func (m *GerritSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_GerritSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_GerritSourceContext proto.InternalMessageInfo
func (m *GerritSourceContext) GetHostUri() string {
if m != nil {
return m.HostUri
}
return ""
}
func (m *GerritSourceContext) GetGerritProject() string {
if m != nil {
return m.GerritProject
}
return ""
}
type isGerritSourceContext_Revision interface {
isGerritSourceContext_Revision()
}
type GerritSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
type GerritSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {}
func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {}
func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision {
if m != nil {
return m.Revision
}
return nil
}
func (m *GerritSourceContext) GetRevisionId() string {
if x, ok := m.GetRevision().(*GerritSourceContext_RevisionId); ok {
return x.RevisionId
}
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 += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *GerritSourceContext_AliasContext:
s := proto.Size(x.AliasContext)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// 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,proto3" json:"url,omitempty"`
// Git commit hash.
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GitSourceContext) Reset() { *m = GitSourceContext{} }
func (m *GitSourceContext) String() string { return proto.CompactTextString(m) }
func (*GitSourceContext) ProtoMessage() {}
func (*GitSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_9e8da9cb20b4f843, []int{4}
}
func (m *GitSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GitSourceContext.Unmarshal(m, b)
}
func (m *GitSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GitSourceContext.Marshal(b, m, deterministic)
}
func (m *GitSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_GitSourceContext.Merge(m, src)
}
func (m *GitSourceContext) XXX_Size() int {
return xxx_messageInfo_GitSourceContext.Size(m)
}
func (m *GitSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_GitSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_GitSourceContext proto.InternalMessageInfo
func (m *GitSourceContext) GetUrl() string {
if m != nil {
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepoId) Reset() { *m = RepoId{} }
func (m *RepoId) String() string { return proto.CompactTextString(m) }
func (*RepoId) ProtoMessage() {}
func (*RepoId) Descriptor() ([]byte, []int) {
return fileDescriptor_9e8da9cb20b4f843, []int{5}
}
func (m *RepoId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepoId.Unmarshal(m, b)
}
func (m *RepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepoId.Marshal(b, m, deterministic)
}
func (m *RepoId) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepoId.Merge(m, src)
}
func (m *RepoId) XXX_Size() int {
return xxx_messageInfo_RepoId.Size(m)
}
func (m *RepoId) XXX_DiscardUnknown() {
xxx_messageInfo_RepoId.DiscardUnknown(m)
}
var xxx_messageInfo_RepoId proto.InternalMessageInfo
type isRepoId_Id interface {
isRepoId_Id()
}
type RepoId_ProjectRepoId struct {
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"`
}
type RepoId_Uid struct {
Uid string `protobuf:"bytes,2,opt,name=uid,proto3,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 += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *RepoId_Uid:
n += 1 // tag and wire
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,proto3" json:"project_id,omitempty"`
// The name of the repo. Leave empty for the default repo.
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} }
func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) }
func (*ProjectRepoId) ProtoMessage() {}
func (*ProjectRepoId) Descriptor() ([]byte, []int) {
return fileDescriptor_9e8da9cb20b4f843, []int{6}
}
func (m *ProjectRepoId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProjectRepoId.Unmarshal(m, b)
}
func (m *ProjectRepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProjectRepoId.Marshal(b, m, deterministic)
}
func (m *ProjectRepoId) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProjectRepoId.Merge(m, src)
}
func (m *ProjectRepoId) XXX_Size() int {
return xxx_messageInfo_ProjectRepoId.Size(m)
}
func (m *ProjectRepoId) XXX_DiscardUnknown() {
xxx_messageInfo_ProjectRepoId.DiscardUnknown(m)
}
var xxx_messageInfo_ProjectRepoId proto.InternalMessageInfo
func (m *ProjectRepoId) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *ProjectRepoId) GetRepoName() string {
if m != nil {
return m.RepoName
}
return ""
}
func init() {
proto.RegisterEnum("grafeas.v1beta1.source.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value)
proto.RegisterType((*SourceContext)(nil), "grafeas.v1beta1.source.SourceContext")
proto.RegisterMapType((map[string]string)(nil), "grafeas.v1beta1.source.SourceContext.LabelsEntry")
proto.RegisterType((*AliasContext)(nil), "grafeas.v1beta1.source.AliasContext")
proto.RegisterType((*CloudRepoSourceContext)(nil), "grafeas.v1beta1.source.CloudRepoSourceContext")
proto.RegisterType((*GerritSourceContext)(nil), "grafeas.v1beta1.source.GerritSourceContext")
proto.RegisterType((*GitSourceContext)(nil), "grafeas.v1beta1.source.GitSourceContext")
proto.RegisterType((*RepoId)(nil), "grafeas.v1beta1.source.RepoId")
proto.RegisterType((*ProjectRepoId)(nil), "grafeas.v1beta1.source.ProjectRepoId")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/source/source.proto", fileDescriptor_9e8da9cb20b4f843)
}
var fileDescriptor_9e8da9cb20b4f843 = []byte{
// 640 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xdd, 0x4e, 0xdb, 0x30,
0x18, 0x6d, 0xda, 0xd0, 0x92, 0xaf, 0x94, 0x45, 0x1e, 0x42, 0x65, 0xd3, 0x36, 0x16, 0x0d, 0x89,
0x69, 0x52, 0x2a, 0xd8, 0xc5, 0x7e, 0xd1, 0x44, 0x21, 0xd0, 0xa8, 0x8c, 0xa2, 0x30, 0xd0, 0xb4,
0x9b, 0xc8, 0x34, 0x5e, 0xe6, 0x11, 0xe2, 0xca, 0x49, 0xaa, 0xa1, 0xbd, 0x0d, 0xef, 0xb3, 0xab,
0xbd, 0xcb, 0xae, 0x27, 0x3b, 0x8e, 0x94, 0xb2, 0x46, 0xe2, 0x62, 0x57, 0xb6, 0x8f, 0xbf, 0x73,
0xfc, 0xfd, 0x1c, 0x19, 0x76, 0x42, 0xc6, 0xc2, 0x88, 0xf4, 0x02, 0x32, 0x4d, 0x19, 0x8b, 0x92,
0xde, 0x98, 0xc5, 0x29, 0xa6, 0x31, 0xe1, 0x38, 0xc6, 0xd1, 0x75, 0x42, 0x93, 0xde, 0x74, 0xeb,
0x82, 0xa4, 0x78, 0xab, 0x97, 0xb0, 0x8c, 0x8f, 0x89, 0x5a, 0xec, 0x09, 0x67, 0x29, 0x43, 0xab,
0x21, 0xc7, 0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, 0x3c, 0x2a, 0x5c, 0x99, 0xf1, 0x08, 0x3d, 0x99, 0xd3, 0xf7, 0x72, 0x7e, 0x56,
0x02, 0xcd, 0x7c, 0x54, 0x68, 0x04, 0xf7, 0x54, 0xb1, 0xfe, 0xec, 0x8c, 0x37, 0xaa, 0x72, 0x55,
0x6d, 0xc8, 0xf9, 0x83, 0x9a, 0xd7, 0x99, 0x94, 0x01, 0x84, 0xa0, 0x91, 0x95, 0x66, 0x2d, 0x0e,
0x7d, 0x1d, 0xea, 0x34, 0xb0, 0x86, 0xd0, 0x99, 0xe1, 0xa2, 0x47, 0x00, 0xc5, 0xdb, 0xea, 0x59,
0xc3, 0x33, 0x14, 0xe2, 0x06, 0xe8, 0x21, 0x18, 0x32, 0xa5, 0x92, 0xd7, 0x17, 0x05, 0x70, 0x8c,
0xaf, 0x48, 0xff, 0x27, 0xac, 0x51, 0x56, 0x91, 0xe2, 0x89, 0xf6, 0xe5, 0x3c, 0xff, 0x42, 0xed,
0x90, 0x45, 0x38, 0x0e, 0x6d, 0xc6, 0xc3, 0x5e, 0x48, 0x62, 0xf9, 0x3f, 0xf6, 0xf2, 0x2b, 0x3c,
0xa1, 0xc9, 0xdd, 0x7f, 0xd8, 0x77, 0xf9, 0x72, 0x53, 0x6f, 0x1c, 0x7a, 0xbb, 0x17, 0x4d, 0x29,
0xf4, 0xf2, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x39, 0x33, 0xb6, 0xbe, 0xa9, 0x05, 0x00, 0x00,
}

View file

@ -0,0 +1,529 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.proto
package vulnerability
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
common "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/common"
_package "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/package"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Note provider-assigned severity/impact ranking.
type Severity int32
const (
// Unknown.
Severity_SEVERITY_UNSPECIFIED Severity = 0
// Minimal severity.
Severity_MINIMAL Severity = 1
// Low severity.
Severity_LOW Severity = 2
// Medium severity.
Severity_MEDIUM Severity = 3
// High severity.
Severity_HIGH Severity = 4
// Critical severity.
Severity_CRITICAL Severity = 5
)
var Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "MINIMAL",
2: "LOW",
3: "MEDIUM",
4: "HIGH",
5: "CRITICAL",
}
var Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"MINIMAL": 1,
"LOW": 2,
"MEDIUM": 3,
"HIGH": 4,
"CRITICAL": 5,
}
func (x Severity) String() string {
return proto.EnumName(Severity_name, int32(x))
}
func (Severity) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_2a1e5608ee0186b1, []int{0}
}
// Vulnerability provides metadata about a security vulnerability.
type Vulnerability struct {
// The CVSS score for this vulnerability.
CvssScore float32 `protobuf:"fixed32,1,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
// Note provider assigned impact of the vulnerability.
Severity Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1beta1.vulnerability.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 []*Vulnerability_Detail `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Vulnerability) Reset() { *m = Vulnerability{} }
func (m *Vulnerability) String() string { return proto.CompactTextString(m) }
func (*Vulnerability) ProtoMessage() {}
func (*Vulnerability) Descriptor() ([]byte, []int) {
return fileDescriptor_2a1e5608ee0186b1, []int{0}
}
func (m *Vulnerability) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Vulnerability.Unmarshal(m, b)
}
func (m *Vulnerability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Vulnerability.Marshal(b, m, deterministic)
}
func (m *Vulnerability) XXX_Merge(src proto.Message) {
xxx_messageInfo_Vulnerability.Merge(m, src)
}
func (m *Vulnerability) XXX_Size() int {
return xxx_messageInfo_Vulnerability.Size(m)
}
func (m *Vulnerability) XXX_DiscardUnknown() {
xxx_messageInfo_Vulnerability.DiscardUnknown(m)
}
var xxx_messageInfo_Vulnerability proto.InternalMessageInfo
func (m *Vulnerability) GetCvssScore() float32 {
if m != nil {
return m.CvssScore
}
return 0
}
func (m *Vulnerability) GetSeverity() Severity {
if m != nil {
return m.Severity
}
return Severity_SEVERITY_UNSPECIFIED
}
func (m *Vulnerability) GetDetails() []*Vulnerability_Detail {
if m != nil {
return m.Details
}
return nil
}
// 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 Vulnerability_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.
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
// The name of the package where the vulnerability was found.
Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
// The min version of the package in which the vulnerability exists.
MinAffectedVersion *_package.Version `protobuf:"bytes,3,opt,name=min_affected_version,json=minAffectedVersion,proto3" json:"min_affected_version,omitempty"`
// The max version of the package in which the vulnerability exists.
MaxAffectedVersion *_package.Version `protobuf:"bytes,4,opt,name=max_affected_version,json=maxAffectedVersion,proto3" json:"max_affected_version,omitempty"`
// The severity (eg: distro assigned severity) for this vulnerability.
SeverityName string `protobuf:"bytes,5,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
// A vendor-specific description of this note.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// The fix for this specific package version.
FixedLocation *VulnerabilityLocation `protobuf:"bytes,7,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
// The type of package; whether native or non native(ruby gems, node.js
// packages etc).
PackageType string `protobuf:"bytes,8,opt,name=package_type,json=packageType,proto3" json:"package_type,omitempty"`
// Whether this detail is obsolete. Occurrences are expected not to point to
// obsolete details.
IsObsolete bool `protobuf:"varint,9,opt,name=is_obsolete,json=isObsolete,proto3" json:"is_obsolete,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Vulnerability_Detail) Reset() { *m = Vulnerability_Detail{} }
func (m *Vulnerability_Detail) String() string { return proto.CompactTextString(m) }
func (*Vulnerability_Detail) ProtoMessage() {}
func (*Vulnerability_Detail) Descriptor() ([]byte, []int) {
return fileDescriptor_2a1e5608ee0186b1, []int{0, 0}
}
func (m *Vulnerability_Detail) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Vulnerability_Detail.Unmarshal(m, b)
}
func (m *Vulnerability_Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Vulnerability_Detail.Marshal(b, m, deterministic)
}
func (m *Vulnerability_Detail) XXX_Merge(src proto.Message) {
xxx_messageInfo_Vulnerability_Detail.Merge(m, src)
}
func (m *Vulnerability_Detail) XXX_Size() int {
return xxx_messageInfo_Vulnerability_Detail.Size(m)
}
func (m *Vulnerability_Detail) XXX_DiscardUnknown() {
xxx_messageInfo_Vulnerability_Detail.DiscardUnknown(m)
}
var xxx_messageInfo_Vulnerability_Detail proto.InternalMessageInfo
func (m *Vulnerability_Detail) GetCpeUri() string {
if m != nil {
return m.CpeUri
}
return ""
}
func (m *Vulnerability_Detail) GetPackage() string {
if m != nil {
return m.Package
}
return ""
}
func (m *Vulnerability_Detail) GetMinAffectedVersion() *_package.Version {
if m != nil {
return m.MinAffectedVersion
}
return nil
}
func (m *Vulnerability_Detail) GetMaxAffectedVersion() *_package.Version {
if m != nil {
return m.MaxAffectedVersion
}
return nil
}
func (m *Vulnerability_Detail) GetSeverityName() string {
if m != nil {
return m.SeverityName
}
return ""
}
func (m *Vulnerability_Detail) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Vulnerability_Detail) GetFixedLocation() *VulnerabilityLocation {
if m != nil {
return m.FixedLocation
}
return nil
}
func (m *Vulnerability_Detail) GetPackageType() string {
if m != nil {
return m.PackageType
}
return ""
}
func (m *Vulnerability_Detail) GetIsObsolete() bool {
if m != nil {
return m.IsObsolete
}
return false
}
// Details of a vulnerability occurrence.
type Details struct {
// The type of package; whether native or non native(ruby gems, node.js
// packages etc)
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// Output only. The note provider assigned Severity of the vulnerability.
Severity Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1beta1.vulnerability.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,3,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
// The set of affected locations and their fixes (if available) within the
// associated resource.
PackageIssue []*PackageIssue `protobuf:"bytes,4,rep,name=package_issue,json=packageIssue,proto3" json:"package_issue,omitempty"`
// Output only. A one sentence description of this vulnerability.
ShortDescription string `protobuf:"bytes,5,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"`
// Output only. A detailed description of this vulnerability.
LongDescription string `protobuf:"bytes,6,opt,name=long_description,json=longDescription,proto3" json:"long_description,omitempty"`
// Output only. URLs related to this vulnerability.
RelatedUrls []*common.RelatedUrl `protobuf:"bytes,7,rep,name=related_urls,json=relatedUrls,proto3" json:"related_urls,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Details) Reset() { *m = Details{} }
func (m *Details) String() string { return proto.CompactTextString(m) }
func (*Details) ProtoMessage() {}
func (*Details) Descriptor() ([]byte, []int) {
return fileDescriptor_2a1e5608ee0186b1, []int{1}
}
func (m *Details) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Details.Unmarshal(m, b)
}
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
}
func (m *Details) XXX_Merge(src proto.Message) {
xxx_messageInfo_Details.Merge(m, src)
}
func (m *Details) XXX_Size() int {
return xxx_messageInfo_Details.Size(m)
}
func (m *Details) XXX_DiscardUnknown() {
xxx_messageInfo_Details.DiscardUnknown(m)
}
var xxx_messageInfo_Details proto.InternalMessageInfo
func (m *Details) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *Details) GetSeverity() Severity {
if m != nil {
return m.Severity
}
return Severity_SEVERITY_UNSPECIFIED
}
func (m *Details) GetCvssScore() float32 {
if m != nil {
return m.CvssScore
}
return 0
}
func (m *Details) GetPackageIssue() []*PackageIssue {
if m != nil {
return m.PackageIssue
}
return nil
}
func (m *Details) GetShortDescription() string {
if m != nil {
return m.ShortDescription
}
return ""
}
func (m *Details) GetLongDescription() string {
if m != nil {
return m.LongDescription
}
return ""
}
func (m *Details) GetRelatedUrls() []*common.RelatedUrl {
if m != nil {
return m.RelatedUrls
}
return nil
}
// This message wraps a location affected by a vulnerability and its
// associated fix (if one is available).
type PackageIssue struct {
// The location of the vulnerability.
AffectedLocation *VulnerabilityLocation `protobuf:"bytes,1,opt,name=affected_location,json=affectedLocation,proto3" json:"affected_location,omitempty"`
// The location of the available fix for vulnerability.
FixedLocation *VulnerabilityLocation `protobuf:"bytes,2,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
// The severity (e.g., distro assigned severity) for this vulnerability.
SeverityName string `protobuf:"bytes,3,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageIssue) Reset() { *m = PackageIssue{} }
func (m *PackageIssue) String() string { return proto.CompactTextString(m) }
func (*PackageIssue) ProtoMessage() {}
func (*PackageIssue) Descriptor() ([]byte, []int) {
return fileDescriptor_2a1e5608ee0186b1, []int{2}
}
func (m *PackageIssue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageIssue.Unmarshal(m, b)
}
func (m *PackageIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageIssue.Marshal(b, m, deterministic)
}
func (m *PackageIssue) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageIssue.Merge(m, src)
}
func (m *PackageIssue) XXX_Size() int {
return xxx_messageInfo_PackageIssue.Size(m)
}
func (m *PackageIssue) XXX_DiscardUnknown() {
xxx_messageInfo_PackageIssue.DiscardUnknown(m)
}
var xxx_messageInfo_PackageIssue proto.InternalMessageInfo
func (m *PackageIssue) GetAffectedLocation() *VulnerabilityLocation {
if m != nil {
return m.AffectedLocation
}
return nil
}
func (m *PackageIssue) GetFixedLocation() *VulnerabilityLocation {
if m != nil {
return m.FixedLocation
}
return nil
}
func (m *PackageIssue) GetSeverityName() string {
if m != nil {
return m.SeverityName
}
return ""
}
// The location of the vulnerability.
type VulnerabilityLocation struct {
// The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
// format. Examples include distro or storage location for vulnerable jar.
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
// The package being described.
Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
// The version of the package being described.
Version *_package.Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityLocation) Reset() { *m = VulnerabilityLocation{} }
func (m *VulnerabilityLocation) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityLocation) ProtoMessage() {}
func (*VulnerabilityLocation) Descriptor() ([]byte, []int) {
return fileDescriptor_2a1e5608ee0186b1, []int{3}
}
func (m *VulnerabilityLocation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityLocation.Unmarshal(m, b)
}
func (m *VulnerabilityLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityLocation.Marshal(b, m, deterministic)
}
func (m *VulnerabilityLocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityLocation.Merge(m, src)
}
func (m *VulnerabilityLocation) XXX_Size() int {
return xxx_messageInfo_VulnerabilityLocation.Size(m)
}
func (m *VulnerabilityLocation) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityLocation.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityLocation proto.InternalMessageInfo
func (m *VulnerabilityLocation) GetCpeUri() string {
if m != nil {
return m.CpeUri
}
return ""
}
func (m *VulnerabilityLocation) GetPackage() string {
if m != nil {
return m.Package
}
return ""
}
func (m *VulnerabilityLocation) GetVersion() *_package.Version {
if m != nil {
return m.Version
}
return nil
}
func init() {
proto.RegisterEnum("grafeas.v1beta1.vulnerability.Severity", Severity_name, Severity_value)
proto.RegisterType((*Vulnerability)(nil), "grafeas.v1beta1.vulnerability.Vulnerability")
proto.RegisterType((*Vulnerability_Detail)(nil), "grafeas.v1beta1.vulnerability.Vulnerability.Detail")
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.vulnerability.Details")
proto.RegisterType((*PackageIssue)(nil), "grafeas.v1beta1.vulnerability.PackageIssue")
proto.RegisterType((*VulnerabilityLocation)(nil), "grafeas.v1beta1.vulnerability.VulnerabilityLocation")
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.proto", fileDescriptor_2a1e5608ee0186b1)
}
var fileDescriptor_2a1e5608ee0186b1 = []byte{
// 727 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x6e, 0xda, 0x48,
0x14, 0x5e, 0x63, 0x82, 0xe1, 0x00, 0x59, 0x67, 0x94, 0xd5, 0x5a, 0x59, 0x45, 0xeb, 0x65, 0x2f,
0x4a, 0x1b, 0xc9, 0x28, 0x49, 0xaf, 0x5a, 0xb5, 0x15, 0x05, 0x9a, 0x58, 0x85, 0x04, 0x99, 0x90,
0xaa, 0xad, 0x54, 0x6b, 0x30, 0x83, 0x3b, 0xaa, 0xf1, 0x58, 0x1e, 0x83, 0xc2, 0x0b, 0xf4, 0x3a,
0xcf, 0xd0, 0xd7, 0xe9, 0xa3, 0xf4, 0xb2, 0x2f, 0x50, 0x31, 0xb6, 0x11, 0x84, 0x2a, 0x3f, 0x6d,
0xae, 0xec, 0xf3, 0xf9, 0x9c, 0x6f, 0xbe, 0x33, 0xe7, 0xf3, 0x0c, 0xbc, 0x76, 0x19, 0x73, 0x3d,
0x52, 0x1b, 0x92, 0x69, 0xc4, 0x98, 0xc7, 0x6b, 0x0e, 0xf3, 0x23, 0x4c, 0x7d, 0x12, 0x62, 0x1f,
0x7b, 0x33, 0x4e, 0x79, 0x6d, 0xba, 0x3f, 0x20, 0x11, 0xde, 0xaf, 0x4d, 0x27, 0xde, 0x1c, 0x1e,
0x50, 0x8f, 0x46, 0xb3, 0xd5, 0xc8, 0x08, 0x42, 0x16, 0x31, 0xb4, 0xeb, 0x86, 0x78, 0x44, 0x30,
0x37, 0x92, 0x12, 0x63, 0x25, 0x69, 0xe7, 0xd9, 0xed, 0xd7, 0x72, 0xd8, 0x78, 0xcc, 0x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, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfd,
0xfb, 0x4c, 0x27, 0x67, 0x07, 0x00, 0x00,
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,958 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/remoteworkers/v1test2/bots.proto
package remoteworkers
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
empty "github.com/golang/protobuf/ptypes/empty"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
field_mask "google.golang.org/genproto/protobuf/field_mask"
math "math"
)
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 coarse description of the status of the bot that the server uses to
// determine whether to assign the bot new leases.
type BotStatus int32
const (
// Default value; do not use.
BotStatus_BOT_STATUS_UNSPECIFIED BotStatus = 0
// The bot is healthy, and will accept leases as normal.
BotStatus_OK BotStatus = 1
// The bot is unhealthy and will not accept new leases. For example, the bot
// may have detected that available disk space is too low. This situation may
// resolve itself, but will typically require human intervention.
BotStatus_UNHEALTHY BotStatus = 2
// The bot has been asked to reboot the host. The bot will not accept new
// leases; once all leases are complete, this session will no longer be
// updated but the bot will be expected to establish a new session after the
// reboot completes.
BotStatus_HOST_REBOOTING BotStatus = 3
// The bot has been asked to shut down. As with HOST_REBOOTING, once all
// leases are completed, the session will no longer be updated and the bot
// will not be expected to establish a new session.
//
// Bots are typically only asked to shut down if its host computer will be
// modified in some way, such as deleting a VM.
BotStatus_BOT_TERMINATING BotStatus = 4
)
var BotStatus_name = map[int32]string{
0: "BOT_STATUS_UNSPECIFIED",
1: "OK",
2: "UNHEALTHY",
3: "HOST_REBOOTING",
4: "BOT_TERMINATING",
}
var BotStatus_value = map[string]int32{
"BOT_STATUS_UNSPECIFIED": 0,
"OK": 1,
"UNHEALTHY": 2,
"HOST_REBOOTING": 3,
"BOT_TERMINATING": 4,
}
func (x BotStatus) String() string {
return proto.EnumName(BotStatus_name, int32(x))
}
func (BotStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_129e24cb0c941ff8, []int{0}
}
// The state of the lease. All leases start in the PENDING state. A bot can
// change PENDING to ACTIVE or (in the case of an error) COMPLETED, or from
// ACTIVE to COMPLETED. The server can change PENDING or ACTIVE to CANCELLED if
// it wants the bot to release its resources - for example, if the bot needs to
// be quarantined (it's producing bad output) or a cell needs to be drained.
type LeaseState int32
const (
// Default value; do not use.
LeaseState_LEASE_STATE_UNSPECIFIED LeaseState = 0
// Pending: the server expects the bot to accept this lease. This may only be
// set by the server.
LeaseState_PENDING LeaseState = 1
// Active: the bot has accepted this lease. This may only be set by the bot.
LeaseState_ACTIVE LeaseState = 2
// Completed: the bot is no longer leased. This may only be set by the bot,
// and the status field must be populated iff the state is COMPLETED.
LeaseState_COMPLETED LeaseState = 4
// Cancelled: The bot should immediately release all resources associated with
// the lease. This may only be set by the server.
LeaseState_CANCELLED LeaseState = 5
)
var LeaseState_name = map[int32]string{
0: "LEASE_STATE_UNSPECIFIED",
1: "PENDING",
2: "ACTIVE",
4: "COMPLETED",
5: "CANCELLED",
}
var LeaseState_value = map[string]int32{
"LEASE_STATE_UNSPECIFIED": 0,
"PENDING": 1,
"ACTIVE": 2,
"COMPLETED": 4,
"CANCELLED": 5,
}
func (x LeaseState) String() string {
return proto.EnumName(LeaseState_name, int32(x))
}
func (LeaseState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_129e24cb0c941ff8, []int{1}
}
// Possible administration actions.
type AdminTemp_Command int32
const (
// Illegal value.
AdminTemp_UNSPECIFIED AdminTemp_Command = 0
// Download and run a new version of the bot. `arg` will be a resource
// accessible via `ByteStream.Read` to obtain the new bot code.
AdminTemp_BOT_UPDATE AdminTemp_Command = 1
// Restart the bot without downloading a new version. `arg` will be a
// message to log.
AdminTemp_BOT_RESTART AdminTemp_Command = 2
// Shut down the bot. `arg` will be a task resource name (similar to those
// in tasks.proto) that the bot can use to tell the server that it is
// terminating.
AdminTemp_BOT_TERMINATE AdminTemp_Command = 3
// Restart the host computer. `arg` will be a message to log.
AdminTemp_HOST_RESTART AdminTemp_Command = 4
)
var AdminTemp_Command_name = map[int32]string{
0: "UNSPECIFIED",
1: "BOT_UPDATE",
2: "BOT_RESTART",
3: "BOT_TERMINATE",
4: "HOST_RESTART",
}
var AdminTemp_Command_value = map[string]int32{
"UNSPECIFIED": 0,
"BOT_UPDATE": 1,
"BOT_RESTART": 2,
"BOT_TERMINATE": 3,
"HOST_RESTART": 4,
}
func (x AdminTemp_Command) String() string {
return proto.EnumName(AdminTemp_Command_name, int32(x))
}
func (AdminTemp_Command) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_129e24cb0c941ff8, []int{2, 0}
}
// Types of bot events.
type PostBotEventTempRequest_Type int32
const (
// Illegal value.
PostBotEventTempRequest_UNSPECIFIED PostBotEventTempRequest_Type = 0
// Interesting but harmless event.
PostBotEventTempRequest_INFO PostBotEventTempRequest_Type = 1
// Error condition.
PostBotEventTempRequest_ERROR PostBotEventTempRequest_Type = 2
)
var PostBotEventTempRequest_Type_name = map[int32]string{
0: "UNSPECIFIED",
1: "INFO",
2: "ERROR",
}
var PostBotEventTempRequest_Type_value = map[string]int32{
"UNSPECIFIED": 0,
"INFO": 1,
"ERROR": 2,
}
func (x PostBotEventTempRequest_Type) String() string {
return proto.EnumName(PostBotEventTempRequest_Type_name, int32(x))
}
func (PostBotEventTempRequest_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_129e24cb0c941ff8, []int{5, 0}
}
// A bot session represents the state of a bot while in continuous contact with
// the server for a period of time. The session includes information about the
// worker - that is, the *worker* (the physical or virtual hardware) is
// considered to be a property of the bot (the software agent running on that
// hardware), which is the reverse of real life, but more natural from the point
// of the view of this API, which communicates solely with the bot and not
// directly with the underlying worker.
type BotSession struct {
// The bot session name, as selected by the server. Output only during a call
// to CreateBotSession.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A unique bot ID within the farm used to persistently identify this bot over
// time (i.e., over multiple sessions). This ID must be unique within a
// farm. Typically, the bot ID will be the same as the name of the primary
// device in the worker (e.g., what you'd get from typing `uname -n` on *nix),
// but this is not required since a single device may allow multiple bots to
// run on it, each with access to different resources. What is important is
// that this ID is meaningful to humans, who might need to hunt a physical
// machine down to fix it.
//
// When CreateBotSession is successfully called with a bot_id, all prior
// sessions with the same ID are invalidated. If a bot attempts to update an
// invalid session, the server must reject that request, and may also
// quarantine the other bot with the same bot IDs (ie, stop sending it new
// leases and alert an admin).
BotId string `protobuf:"bytes,2,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
// The status of the bot. This must be populated in every call to
// UpdateBotSession.
Status BotStatus `protobuf:"varint,3,opt,name=status,proto3,enum=google.devtools.remoteworkers.v1test2.BotStatus" json:"status,omitempty"`
// A description of the worker hosting this bot. The Worker message is used
// here in the Status context (see Worker for more information). If multiple
// bots are running on the worker, this field should only describe the
// resources accessible from this bot.
//
// During the call to CreateBotSession, the server may make arbitrary changes
// to the worker's `server_properties` field (see that field for more
// information). Otherwise, this field is input-only.
Worker *Worker `protobuf:"bytes,4,opt,name=worker,proto3" json:"worker,omitempty"`
// A list of all leases that are a part of this session. See the Lease message
// for details.
Leases []*Lease `protobuf:"bytes,5,rep,name=leases,proto3" json:"leases,omitempty"`
// The time at which this bot session will expire, unless the bot calls
// UpdateBotSession again. Output only.
ExpireTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
// The version of the bot code currently running. The server may use this
// information to issue an admin action to tell the bot to update itself.
Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BotSession) Reset() { *m = BotSession{} }
func (m *BotSession) String() string { return proto.CompactTextString(m) }
func (*BotSession) ProtoMessage() {}
func (*BotSession) Descriptor() ([]byte, []int) {
return fileDescriptor_129e24cb0c941ff8, []int{0}
}
func (m *BotSession) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BotSession.Unmarshal(m, b)
}
func (m *BotSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BotSession.Marshal(b, m, deterministic)
}
func (m *BotSession) XXX_Merge(src proto.Message) {
xxx_messageInfo_BotSession.Merge(m, src)
}
func (m *BotSession) XXX_Size() int {
return xxx_messageInfo_BotSession.Size(m)
}
func (m *BotSession) XXX_DiscardUnknown() {
xxx_messageInfo_BotSession.DiscardUnknown(m)
}
var xxx_messageInfo_BotSession proto.InternalMessageInfo
func (m *BotSession) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *BotSession) GetBotId() string {
if m != nil {
return m.BotId
}
return ""
}
func (m *BotSession) GetStatus() BotStatus {
if m != nil {
return m.Status
}
return BotStatus_BOT_STATUS_UNSPECIFIED
}
func (m *BotSession) GetWorker() *Worker {
if m != nil {
return m.Worker
}
return nil
}
func (m *BotSession) GetLeases() []*Lease {
if m != nil {
return m.Leases
}
return nil
}
func (m *BotSession) GetExpireTime() *timestamp.Timestamp {
if m != nil {
return m.ExpireTime
}
return nil
}
func (m *BotSession) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
// A Lease is a lease that the scheduler has assigned to this bot. If the bot
// notices (by UpdateBotSession) that it has any leases in the PENDING state, it
// should call UpdateBotSession to put the leases into the ACTIVE state and
// start executing their assignments.
//
// All fields in this message are output-only, *except* the `state` and `status`
// fields. Note that repeated fields can only be updated as a unit, so on every
// update the bot must provide an update for *all* the leases the server expects
// it to report on.
//
// The scheduler *should* ensure that all leases scheduled to a bot can actually
// be accepted, but race conditions may occur. In such cases, the bot should
// attempt to accept the leases in the order they are listed by the server, to
// allow the server to control priorities.
//
// The server will remove COMPLETED leases from time to time, after which the
// bot shouldn't report on them any more (the server will ignore superfluous
// COMPLETED records).
type Lease struct {
// A short string uniquely identifing the lease within this bot session.
Id string `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
// The actual work to be performed, if any. May be omitted by the server if
// the lease is not in the `PENDING` state. The message must be meaningful to
// the bot. Output only (must only be set by the server).
Payload *any.Any `protobuf:"bytes,8,opt,name=payload,proto3" json:"payload,omitempty"`
// Any result the bot wishes to provide about the lease. Must not be changed
// after the first call with the lease in the `COMPLETED` or `CANCELLED`
// state. Input only (must only be set by the bot, will not be echoed by the
// server).
Result *any.Any `protobuf:"bytes,9,opt,name=result,proto3" json:"result,omitempty"`
// The state of the lease. See LeaseState for more information.
State LeaseState `protobuf:"varint,2,opt,name=state,proto3,enum=google.devtools.remoteworkers.v1test2.LeaseState" json:"state,omitempty"`
// The final status of the lease (should be populated by the bot if the state
// is completed). This is the status of the lease, not of any task represented
// by the lease. For example, if the bot could not accept the lease because it
// asked for some resource the bot didn't have, this status will be
// FAILED_PRECONDITION. But if the assignment in the lease didn't execute
// correctly, this field will be `OK` while the failure of the assignment must
// communicated via the `result` field.
Status *status.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
// The requirements that are being claimed by this lease. This field may be
// omitted by the server if the lease is not pending.
Requirements *Worker `protobuf:"bytes,4,opt,name=requirements,proto3" json:"requirements,omitempty"`
// The time at which this lease expires. The server *may* extend this over
// time, but due to race conditions, the bot is not *required* to respect any
// expiry date except the first one.
ExpireTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
// DEPRECATED. The assignment should be provided to the bot via the `payload`
// field. Clients that wish to use a simple name (such as a queue of work
// provided elsewhere) should define a custom message type and encode it into
// `payload`.
Assignment string `protobuf:"bytes,1,opt,name=assignment,proto3" json:"assignment,omitempty"` // Deprecated: Do not use.
// DEPRECATED. Use `payload` instead.
InlineAssignment *any.Any `protobuf:"bytes,6,opt,name=inline_assignment,json=inlineAssignment,proto3" json:"inline_assignment,omitempty"` // Deprecated: Do not use.
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Lease) Reset() { *m = Lease{} }
func (m *Lease) String() string { return proto.CompactTextString(m) }
func (*Lease) ProtoMessage() {}
func (*Lease) Descriptor() ([]byte, []int) {
return fileDescriptor_129e24cb0c941ff8, []int{1}
}
func (m *Lease) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Lease.Unmarshal(m, b)
}
func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Lease.Marshal(b, m, deterministic)
}
func (m *Lease) XXX_Merge(src proto.Message) {
xxx_messageInfo_Lease.Merge(m, src)
}
func (m *Lease) XXX_Size() int {
return xxx_messageInfo_Lease.Size(m)
}
func (m *Lease) XXX_DiscardUnknown() {
xxx_messageInfo_Lease.DiscardUnknown(m)
}
var xxx_messageInfo_Lease proto.InternalMessageInfo
func (m *Lease) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Lease) GetPayload() *any.Any {
if m != nil {
return m.Payload
}
return nil
}
func (m *Lease) GetResult() *any.Any {
if m != nil {
return m.Result
}
return nil
}
func (m *Lease) GetState() LeaseState {
if m != nil {
return m.State
}
return LeaseState_LEASE_STATE_UNSPECIFIED
}
func (m *Lease) GetStatus() *status.Status {
if m != nil {
return m.Status
}
return nil
}
func (m *Lease) GetRequirements() *Worker {
if m != nil {
return m.Requirements
}
return nil
}
func (m *Lease) GetExpireTime() *timestamp.Timestamp {
if m != nil {
return m.ExpireTime
}
return nil
}
// Deprecated: Do not use.
func (m *Lease) GetAssignment() string {
if m != nil {
return m.Assignment
}
return ""
}
// Deprecated: Do not use.
func (m *Lease) GetInlineAssignment() *any.Any {
if m != nil {
return m.InlineAssignment
}
return nil
}
// AdminTemp is a prelimiary set of administration tasks. It's called "Temp"
// because we do not yet know the best way to represent admin tasks; it's
// possible that this will be entirely replaced in later versions of this API.
// If this message proves to be sufficient, it will be renamed in the alpha or
// beta release of this API.
//
// This message (suitably marshalled into a protobuf.Any) can be used as the
// inline_assignment field in a lease; the lease assignment field should simply
// be `"admin"` in these cases.
//
// This message is heavily based on Swarming administration tasks from the LUCI
// project (http://github.com/luci/luci-py/appengine/swarming).
type AdminTemp struct {
// The admin action; see `Command` for legal values.
Command AdminTemp_Command `protobuf:"varint,1,opt,name=command,proto3,enum=google.devtools.remoteworkers.v1test2.AdminTemp_Command" json:"command,omitempty"`
// The argument to the admin action; see `Command` for semantics.
Arg string `protobuf:"bytes,2,opt,name=arg,proto3" json:"arg,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AdminTemp) Reset() { *m = AdminTemp{} }
func (m *AdminTemp) String() string { return proto.CompactTextString(m) }
func (*AdminTemp) ProtoMessage() {}
func (*AdminTemp) Descriptor() ([]byte, []int) {
return fileDescriptor_129e24cb0c941ff8, []int{2}
}
func (m *AdminTemp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AdminTemp.Unmarshal(m, b)
}
func (m *AdminTemp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AdminTemp.Marshal(b, m, deterministic)
}
func (m *AdminTemp) XXX_Merge(src proto.Message) {
xxx_messageInfo_AdminTemp.Merge(m, src)
}
func (m *AdminTemp) XXX_Size() int {
return xxx_messageInfo_AdminTemp.Size(m)
}
func (m *AdminTemp) XXX_DiscardUnknown() {
xxx_messageInfo_AdminTemp.DiscardUnknown(m)
}
var xxx_messageInfo_AdminTemp proto.InternalMessageInfo
func (m *AdminTemp) GetCommand() AdminTemp_Command {
if m != nil {
return m.Command
}
return AdminTemp_UNSPECIFIED
}
func (m *AdminTemp) GetArg() string {
if m != nil {
return m.Arg
}
return ""
}
// Request message for CreateBotSession.
type CreateBotSessionRequest struct {
// The farm resource.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The bot session to create. Server-assigned fields like name must be unset.
BotSession *BotSession `protobuf:"bytes,2,opt,name=bot_session,json=botSession,proto3" json:"bot_session,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateBotSessionRequest) Reset() { *m = CreateBotSessionRequest{} }
func (m *CreateBotSessionRequest) String() string { return proto.CompactTextString(m) }
func (*CreateBotSessionRequest) ProtoMessage() {}
func (*CreateBotSessionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_129e24cb0c941ff8, []int{3}
}
func (m *CreateBotSessionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateBotSessionRequest.Unmarshal(m, b)
}
func (m *CreateBotSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateBotSessionRequest.Marshal(b, m, deterministic)
}
func (m *CreateBotSessionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateBotSessionRequest.Merge(m, src)
}
func (m *CreateBotSessionRequest) XXX_Size() int {
return xxx_messageInfo_CreateBotSessionRequest.Size(m)
}
func (m *CreateBotSessionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateBotSessionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateBotSessionRequest proto.InternalMessageInfo
func (m *CreateBotSessionRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateBotSessionRequest) GetBotSession() *BotSession {
if m != nil {
return m.BotSession
}
return nil
}
// Request message for UpdateBotSession.
type UpdateBotSessionRequest struct {
// The bot session name. Must match bot_session.name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The bot session resource to update.
BotSession *BotSession `protobuf:"bytes,2,opt,name=bot_session,json=botSession,proto3" json:"bot_session,omitempty"`
// The fields on the bot that should be updated. See the BotSession resource
// for which fields are updatable by which caller.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateBotSessionRequest) Reset() { *m = UpdateBotSessionRequest{} }
func (m *UpdateBotSessionRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateBotSessionRequest) ProtoMessage() {}
func (*UpdateBotSessionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_129e24cb0c941ff8, []int{4}
}
func (m *UpdateBotSessionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateBotSessionRequest.Unmarshal(m, b)
}
func (m *UpdateBotSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateBotSessionRequest.Marshal(b, m, deterministic)
}
func (m *UpdateBotSessionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateBotSessionRequest.Merge(m, src)
}
func (m *UpdateBotSessionRequest) XXX_Size() int {
return xxx_messageInfo_UpdateBotSessionRequest.Size(m)
}
func (m *UpdateBotSessionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateBotSessionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateBotSessionRequest proto.InternalMessageInfo
func (m *UpdateBotSessionRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *UpdateBotSessionRequest) GetBotSession() *BotSession {
if m != nil {
return m.BotSession
}
return nil
}
func (m *UpdateBotSessionRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// Request message for PostBotEventTemp
type PostBotEventTempRequest struct {
// The bot session name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The type of bot event.
Type PostBotEventTempRequest_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.devtools.remoteworkers.v1test2.PostBotEventTempRequest_Type" json:"type,omitempty"`
// A human-readable message.
Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PostBotEventTempRequest) Reset() { *m = PostBotEventTempRequest{} }
func (m *PostBotEventTempRequest) String() string { return proto.CompactTextString(m) }
func (*PostBotEventTempRequest) ProtoMessage() {}
func (*PostBotEventTempRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_129e24cb0c941ff8, []int{5}
}
func (m *PostBotEventTempRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PostBotEventTempRequest.Unmarshal(m, b)
}
func (m *PostBotEventTempRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PostBotEventTempRequest.Marshal(b, m, deterministic)
}
func (m *PostBotEventTempRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PostBotEventTempRequest.Merge(m, src)
}
func (m *PostBotEventTempRequest) XXX_Size() int {
return xxx_messageInfo_PostBotEventTempRequest.Size(m)
}
func (m *PostBotEventTempRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PostBotEventTempRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PostBotEventTempRequest proto.InternalMessageInfo
func (m *PostBotEventTempRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PostBotEventTempRequest) GetType() PostBotEventTempRequest_Type {
if m != nil {
return m.Type
}
return PostBotEventTempRequest_UNSPECIFIED
}
func (m *PostBotEventTempRequest) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
func init() {
proto.RegisterEnum("google.devtools.remoteworkers.v1test2.BotStatus", BotStatus_name, BotStatus_value)
proto.RegisterEnum("google.devtools.remoteworkers.v1test2.LeaseState", LeaseState_name, LeaseState_value)
proto.RegisterEnum("google.devtools.remoteworkers.v1test2.AdminTemp_Command", AdminTemp_Command_name, AdminTemp_Command_value)
proto.RegisterEnum("google.devtools.remoteworkers.v1test2.PostBotEventTempRequest_Type", PostBotEventTempRequest_Type_name, PostBotEventTempRequest_Type_value)
proto.RegisterType((*BotSession)(nil), "google.devtools.remoteworkers.v1test2.BotSession")
proto.RegisterType((*Lease)(nil), "google.devtools.remoteworkers.v1test2.Lease")
proto.RegisterType((*AdminTemp)(nil), "google.devtools.remoteworkers.v1test2.AdminTemp")
proto.RegisterType((*CreateBotSessionRequest)(nil), "google.devtools.remoteworkers.v1test2.CreateBotSessionRequest")
proto.RegisterType((*UpdateBotSessionRequest)(nil), "google.devtools.remoteworkers.v1test2.UpdateBotSessionRequest")
proto.RegisterType((*PostBotEventTempRequest)(nil), "google.devtools.remoteworkers.v1test2.PostBotEventTempRequest")
}
// 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
// BotsClient is the client API for Bots service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BotsClient interface {
// CreateBotSession is called when the bot first joins the farm, and
// establishes a session ID to ensure that multiple machines do not register
// using the same name accidentally.
CreateBotSession(ctx context.Context, in *CreateBotSessionRequest, opts ...grpc.CallOption) (*BotSession, error)
// UpdateBotSession must be called periodically by the bot (on a schedule
// determined by the server) to let the server know about its status, and to
// pick up new lease requests from the server.
UpdateBotSession(ctx context.Context, in *UpdateBotSessionRequest, opts ...grpc.CallOption) (*BotSession, error)
// PostBotEventTemp may be called by the bot to indicate that some exceptional
// event has occurred. This method is subject to change or removal in future
// revisions of this API; we may simply want to replace it with StackDriver or
// some other common interface.
PostBotEventTemp(ctx context.Context, in *PostBotEventTempRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type botsClient struct {
cc *grpc.ClientConn
}
func NewBotsClient(cc *grpc.ClientConn) BotsClient {
return &botsClient{cc}
}
func (c *botsClient) CreateBotSession(ctx context.Context, in *CreateBotSessionRequest, opts ...grpc.CallOption) (*BotSession, error) {
out := new(BotSession)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Bots/CreateBotSession", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *botsClient) UpdateBotSession(ctx context.Context, in *UpdateBotSessionRequest, opts ...grpc.CallOption) (*BotSession, error) {
out := new(BotSession)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Bots/UpdateBotSession", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *botsClient) PostBotEventTemp(ctx context.Context, in *PostBotEventTempRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Bots/PostBotEventTemp", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// BotsServer is the server API for Bots service.
type BotsServer interface {
// CreateBotSession is called when the bot first joins the farm, and
// establishes a session ID to ensure that multiple machines do not register
// using the same name accidentally.
CreateBotSession(context.Context, *CreateBotSessionRequest) (*BotSession, error)
// UpdateBotSession must be called periodically by the bot (on a schedule
// determined by the server) to let the server know about its status, and to
// pick up new lease requests from the server.
UpdateBotSession(context.Context, *UpdateBotSessionRequest) (*BotSession, error)
// PostBotEventTemp may be called by the bot to indicate that some exceptional
// event has occurred. This method is subject to change or removal in future
// revisions of this API; we may simply want to replace it with StackDriver or
// some other common interface.
PostBotEventTemp(context.Context, *PostBotEventTempRequest) (*empty.Empty, error)
}
func RegisterBotsServer(s *grpc.Server, srv BotsServer) {
s.RegisterService(&_Bots_serviceDesc, srv)
}
func _Bots_CreateBotSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateBotSessionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BotsServer).CreateBotSession(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.remoteworkers.v1test2.Bots/CreateBotSession",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BotsServer).CreateBotSession(ctx, req.(*CreateBotSessionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Bots_UpdateBotSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateBotSessionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BotsServer).UpdateBotSession(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.remoteworkers.v1test2.Bots/UpdateBotSession",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BotsServer).UpdateBotSession(ctx, req.(*UpdateBotSessionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Bots_PostBotEventTemp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PostBotEventTempRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BotsServer).PostBotEventTemp(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.remoteworkers.v1test2.Bots/PostBotEventTemp",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BotsServer).PostBotEventTemp(ctx, req.(*PostBotEventTempRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Bots_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.remoteworkers.v1test2.Bots",
HandlerType: (*BotsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateBotSession",
Handler: _Bots_CreateBotSession_Handler,
},
{
MethodName: "UpdateBotSession",
Handler: _Bots_UpdateBotSession_Handler,
},
{
MethodName: "PostBotEventTemp",
Handler: _Bots_PostBotEventTemp_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/remoteworkers/v1test2/bots.proto",
}
func init() {
proto.RegisterFile("google/devtools/remoteworkers/v1test2/bots.proto", fileDescriptor_129e24cb0c941ff8)
}
var fileDescriptor_129e24cb0c941ff8 = []byte{
// 1075 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x8e, 0xdb, 0x44,
0x14, 0xc6, 0xce, 0x5f, 0x73, 0xd2, 0xa6, 0xee, 0x00, 0x5d, 0x93, 0x22, 0x11, 0x59, 0xaa, 0xb4,
0x44, 0x8b, 0xdd, 0x0d, 0x42, 0x42, 0xad, 0x8a, 0x94, 0x1f, 0xef, 0x6e, 0x44, 0x36, 0x09, 0x13,
0x6f, 0x57, 0x70, 0x93, 0x3a, 0x9b, 0x69, 0x64, 0x6d, 0xec, 0x71, 0x3d, 0x93, 0x85, 0x15, 0xea,
0x0d, 0x12, 0x4f, 0xc0, 0x13, 0xc0, 0x15, 0xe2, 0x19, 0x10, 0x12, 0x37, 0xbc, 0x40, 0x5f, 0x81,
0xbe, 0x07, 0x9a, 0xb1, 0x93, 0x4d, 0xb2, 0xdd, 0xd6, 0x0b, 0xe2, 0x6e, 0x7e, 0xbe, 0xef, 0x9c,
0x2f, 0xe7, 0x7c, 0x67, 0x62, 0x78, 0x30, 0xa5, 0x74, 0x3a, 0x23, 0xd6, 0x84, 0x9c, 0x71, 0x4a,
0x67, 0xcc, 0x8a, 0x88, 0x4f, 0x39, 0xf9, 0x96, 0x46, 0xa7, 0x24, 0x62, 0xd6, 0xd9, 0x2e, 0x27,
0x8c, 0xd7, 0xad, 0x31, 0xe5, 0xcc, 0x0c, 0x23, 0xca, 0x29, 0xba, 0x1f, 0x33, 0xcc, 0x05, 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xff, 0xff, 0x75, 0x00, 0xcd, 0xd5, 0x39,
0x0b, 0x00, 0x00,
}

View file

@ -0,0 +1,891 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/remoteworkers/v1test2/command.proto
package remoteworkers
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
duration "github.com/golang/protobuf/ptypes/duration"
status "google.golang.org/genproto/googleapis/rpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Describes a shell-style task to execute, suitable for providing as the Bots
// interface's `Lease.payload` field.
type CommandTask struct {
// The inputs to the task.
Inputs *CommandTask_Inputs `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"`
// The expected outputs from the task.
ExpectedOutputs *CommandTask_Outputs `protobuf:"bytes,4,opt,name=expected_outputs,json=expectedOutputs,proto3" json:"expected_outputs,omitempty"`
// The timeouts of this task.
Timeouts *CommandTask_Timeouts `protobuf:"bytes,5,opt,name=timeouts,proto3" json:"timeouts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandTask) Reset() { *m = CommandTask{} }
func (m *CommandTask) String() string { return proto.CompactTextString(m) }
func (*CommandTask) ProtoMessage() {}
func (*CommandTask) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{0}
}
func (m *CommandTask) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandTask.Unmarshal(m, b)
}
func (m *CommandTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandTask.Marshal(b, m, deterministic)
}
func (m *CommandTask) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandTask.Merge(m, src)
}
func (m *CommandTask) XXX_Size() int {
return xxx_messageInfo_CommandTask.Size(m)
}
func (m *CommandTask) XXX_DiscardUnknown() {
xxx_messageInfo_CommandTask.DiscardUnknown(m)
}
var xxx_messageInfo_CommandTask proto.InternalMessageInfo
func (m *CommandTask) GetInputs() *CommandTask_Inputs {
if m != nil {
return m.Inputs
}
return nil
}
func (m *CommandTask) GetExpectedOutputs() *CommandTask_Outputs {
if m != nil {
return m.ExpectedOutputs
}
return nil
}
func (m *CommandTask) GetTimeouts() *CommandTask_Timeouts {
if m != nil {
return m.Timeouts
}
return nil
}
// Describes the inputs to a shell-style task.
type CommandTask_Inputs struct {
// The command itself to run (e.g., argv).
//
// This field should be passed directly to the underlying operating system,
// and so it must be sensible to that operating system. For example, on
// Windows, the first argument might be "C:\Windows\System32\ping.exe" -
// that is, using drive letters and backslashes. A command for a *nix
// system, on the other hand, would use forward slashes.
//
// All other fields in the RWAPI must consistently use forward slashes,
// since those fields may be interpretted by both the service and the bot.
Arguments []string `protobuf:"bytes,1,rep,name=arguments,proto3" json:"arguments,omitempty"`
// The input filesystem to be set up prior to the task beginning. The
// contents should be a repeated set of FileMetadata messages though other
// formats are allowed if better for the implementation (eg, a LUCI-style
// .isolated file).
//
// This field is repeated since implementations might want to cache the
// metadata, in which case it may be useful to break up portions of the
// filesystem that change frequently (eg, specific input files) from those
// that don't (eg, standard header files).
Files []*Digest `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
// All environment variables required by the task.
EnvironmentVariables []*CommandTask_Inputs_EnvironmentVariable `protobuf:"bytes,3,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandTask_Inputs) Reset() { *m = CommandTask_Inputs{} }
func (m *CommandTask_Inputs) String() string { return proto.CompactTextString(m) }
func (*CommandTask_Inputs) ProtoMessage() {}
func (*CommandTask_Inputs) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{0, 0}
}
func (m *CommandTask_Inputs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandTask_Inputs.Unmarshal(m, b)
}
func (m *CommandTask_Inputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandTask_Inputs.Marshal(b, m, deterministic)
}
func (m *CommandTask_Inputs) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandTask_Inputs.Merge(m, src)
}
func (m *CommandTask_Inputs) XXX_Size() int {
return xxx_messageInfo_CommandTask_Inputs.Size(m)
}
func (m *CommandTask_Inputs) XXX_DiscardUnknown() {
xxx_messageInfo_CommandTask_Inputs.DiscardUnknown(m)
}
var xxx_messageInfo_CommandTask_Inputs proto.InternalMessageInfo
func (m *CommandTask_Inputs) GetArguments() []string {
if m != nil {
return m.Arguments
}
return nil
}
func (m *CommandTask_Inputs) GetFiles() []*Digest {
if m != nil {
return m.Files
}
return nil
}
func (m *CommandTask_Inputs) GetEnvironmentVariables() []*CommandTask_Inputs_EnvironmentVariable {
if m != nil {
return m.EnvironmentVariables
}
return nil
}
// An environment variable required by this task.
type CommandTask_Inputs_EnvironmentVariable struct {
// The envvar name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The envvar value.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandTask_Inputs_EnvironmentVariable) Reset() {
*m = CommandTask_Inputs_EnvironmentVariable{}
}
func (m *CommandTask_Inputs_EnvironmentVariable) String() string { return proto.CompactTextString(m) }
func (*CommandTask_Inputs_EnvironmentVariable) ProtoMessage() {}
func (*CommandTask_Inputs_EnvironmentVariable) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{0, 0, 0}
}
func (m *CommandTask_Inputs_EnvironmentVariable) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable.Unmarshal(m, b)
}
func (m *CommandTask_Inputs_EnvironmentVariable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable.Marshal(b, m, deterministic)
}
func (m *CommandTask_Inputs_EnvironmentVariable) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable.Merge(m, src)
}
func (m *CommandTask_Inputs_EnvironmentVariable) XXX_Size() int {
return xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable.Size(m)
}
func (m *CommandTask_Inputs_EnvironmentVariable) XXX_DiscardUnknown() {
xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable.DiscardUnknown(m)
}
var xxx_messageInfo_CommandTask_Inputs_EnvironmentVariable proto.InternalMessageInfo
func (m *CommandTask_Inputs_EnvironmentVariable) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *CommandTask_Inputs_EnvironmentVariable) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// Describes the expected outputs of the command.
type CommandTask_Outputs struct {
// A list of expected files, relative to the execution root. All paths
// MUST be delimited by forward slashes.
Files []string `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
// A list of expected directories, relative to the execution root. All paths
// MUST be delimited by forward slashes.
Directories []string `protobuf:"bytes,2,rep,name=directories,proto3" json:"directories,omitempty"`
// The destination to which any stdout should be sent. The method by which
// the bot should send the stream contents to that destination is not
// defined in this API. As examples, the destination could be a file
// referenced in the `files` field in this message, or it could be a URI
// that must be written via the ByteStream API.
StdoutDestination string `protobuf:"bytes,3,opt,name=stdout_destination,json=stdoutDestination,proto3" json:"stdout_destination,omitempty"`
// The destination to which any stderr should be sent. The method by which
// the bot should send the stream contents to that destination is not
// defined in this API. As examples, the destination could be a file
// referenced in the `files` field in this message, or it could be a URI
// that must be written via the ByteStream API.
StderrDestination string `protobuf:"bytes,4,opt,name=stderr_destination,json=stderrDestination,proto3" json:"stderr_destination,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandTask_Outputs) Reset() { *m = CommandTask_Outputs{} }
func (m *CommandTask_Outputs) String() string { return proto.CompactTextString(m) }
func (*CommandTask_Outputs) ProtoMessage() {}
func (*CommandTask_Outputs) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{0, 1}
}
func (m *CommandTask_Outputs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandTask_Outputs.Unmarshal(m, b)
}
func (m *CommandTask_Outputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandTask_Outputs.Marshal(b, m, deterministic)
}
func (m *CommandTask_Outputs) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandTask_Outputs.Merge(m, src)
}
func (m *CommandTask_Outputs) XXX_Size() int {
return xxx_messageInfo_CommandTask_Outputs.Size(m)
}
func (m *CommandTask_Outputs) XXX_DiscardUnknown() {
xxx_messageInfo_CommandTask_Outputs.DiscardUnknown(m)
}
var xxx_messageInfo_CommandTask_Outputs proto.InternalMessageInfo
func (m *CommandTask_Outputs) GetFiles() []string {
if m != nil {
return m.Files
}
return nil
}
func (m *CommandTask_Outputs) GetDirectories() []string {
if m != nil {
return m.Directories
}
return nil
}
func (m *CommandTask_Outputs) GetStdoutDestination() string {
if m != nil {
return m.StdoutDestination
}
return ""
}
func (m *CommandTask_Outputs) GetStderrDestination() string {
if m != nil {
return m.StderrDestination
}
return ""
}
// Describes the timeouts associated with this task.
type CommandTask_Timeouts struct {
// This specifies the maximum time that the task can run, excluding the
// time required to download inputs or upload outputs. That is, the worker
// will terminate the task if it runs longer than this.
Execution *duration.Duration `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"`
// This specifies the maximum amount of time the task can be idle - that is,
// go without generating some output in either stdout or stderr. If the
// process is silent for more than the specified time, the worker will
// terminate the task.
Idle *duration.Duration `protobuf:"bytes,2,opt,name=idle,proto3" json:"idle,omitempty"`
// If the execution or IO timeouts are exceeded, the worker will try to
// gracefully terminate the task and return any existing logs. However,
// tasks may be hard-frozen in which case this process will fail. This
// timeout specifies how long to wait for a terminated task to shut down
// gracefully (e.g. via SIGTERM) before we bring down the hammer (e.g.
// SIGKILL on *nix, CTRL_BREAK_EVENT on Windows).
Shutdown *duration.Duration `protobuf:"bytes,3,opt,name=shutdown,proto3" json:"shutdown,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandTask_Timeouts) Reset() { *m = CommandTask_Timeouts{} }
func (m *CommandTask_Timeouts) String() string { return proto.CompactTextString(m) }
func (*CommandTask_Timeouts) ProtoMessage() {}
func (*CommandTask_Timeouts) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{0, 2}
}
func (m *CommandTask_Timeouts) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandTask_Timeouts.Unmarshal(m, b)
}
func (m *CommandTask_Timeouts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandTask_Timeouts.Marshal(b, m, deterministic)
}
func (m *CommandTask_Timeouts) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandTask_Timeouts.Merge(m, src)
}
func (m *CommandTask_Timeouts) XXX_Size() int {
return xxx_messageInfo_CommandTask_Timeouts.Size(m)
}
func (m *CommandTask_Timeouts) XXX_DiscardUnknown() {
xxx_messageInfo_CommandTask_Timeouts.DiscardUnknown(m)
}
var xxx_messageInfo_CommandTask_Timeouts proto.InternalMessageInfo
func (m *CommandTask_Timeouts) GetExecution() *duration.Duration {
if m != nil {
return m.Execution
}
return nil
}
func (m *CommandTask_Timeouts) GetIdle() *duration.Duration {
if m != nil {
return m.Idle
}
return nil
}
func (m *CommandTask_Timeouts) GetShutdown() *duration.Duration {
if m != nil {
return m.Shutdown
}
return nil
}
// DEPRECATED - use CommandResult instead.
// Describes the actual outputs from the task.
type CommandOutputs struct {
// exit_code is only fully reliable if the status' code is OK. If the task
// exceeded its deadline or was cancelled, the process may still produce an
// exit code as it is cancelled, and this will be populated, but a successful
// (zero) is unlikely to be correct unless the status code is OK.
ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
// The output files. The blob referenced by the digest should contain
// one of the following (implementation-dependent):
// * A marshalled DirectoryMetadata of the returned filesystem
// * A LUCI-style .isolated file
Outputs *Digest `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandOutputs) Reset() { *m = CommandOutputs{} }
func (m *CommandOutputs) String() string { return proto.CompactTextString(m) }
func (*CommandOutputs) ProtoMessage() {}
func (*CommandOutputs) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{1}
}
func (m *CommandOutputs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandOutputs.Unmarshal(m, b)
}
func (m *CommandOutputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandOutputs.Marshal(b, m, deterministic)
}
func (m *CommandOutputs) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandOutputs.Merge(m, src)
}
func (m *CommandOutputs) XXX_Size() int {
return xxx_messageInfo_CommandOutputs.Size(m)
}
func (m *CommandOutputs) XXX_DiscardUnknown() {
xxx_messageInfo_CommandOutputs.DiscardUnknown(m)
}
var xxx_messageInfo_CommandOutputs proto.InternalMessageInfo
func (m *CommandOutputs) GetExitCode() int32 {
if m != nil {
return m.ExitCode
}
return 0
}
func (m *CommandOutputs) GetOutputs() *Digest {
if m != nil {
return m.Outputs
}
return nil
}
// DEPRECATED - use CommandResult instead.
// Can be used as part of CompleteRequest.metadata, or are part of a more
// sophisticated message.
type CommandOverhead struct {
// The elapsed time between calling Accept and Complete. The server will also
// have its own idea of what this should be, but this excludes the overhead of
// the RPCs and the bot response time.
Duration *duration.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
// The amount of time *not* spent executing the command (ie
// uploading/downloading files).
Overhead *duration.Duration `protobuf:"bytes,2,opt,name=overhead,proto3" json:"overhead,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandOverhead) Reset() { *m = CommandOverhead{} }
func (m *CommandOverhead) String() string { return proto.CompactTextString(m) }
func (*CommandOverhead) ProtoMessage() {}
func (*CommandOverhead) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{2}
}
func (m *CommandOverhead) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandOverhead.Unmarshal(m, b)
}
func (m *CommandOverhead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandOverhead.Marshal(b, m, deterministic)
}
func (m *CommandOverhead) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandOverhead.Merge(m, src)
}
func (m *CommandOverhead) XXX_Size() int {
return xxx_messageInfo_CommandOverhead.Size(m)
}
func (m *CommandOverhead) XXX_DiscardUnknown() {
xxx_messageInfo_CommandOverhead.DiscardUnknown(m)
}
var xxx_messageInfo_CommandOverhead proto.InternalMessageInfo
func (m *CommandOverhead) GetDuration() *duration.Duration {
if m != nil {
return m.Duration
}
return nil
}
func (m *CommandOverhead) GetOverhead() *duration.Duration {
if m != nil {
return m.Overhead
}
return nil
}
// All information about the execution of a command, suitable for providing as
// the Bots interface's `Lease.result` field.
type CommandResult struct {
// An overall status for the command. For example, if the command timed out,
// this might have a code of DEADLINE_EXCEEDED; if it was killed by the OS for
// memory exhaustion, it might have a code of RESOURCE_EXHAUSTED.
Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// The exit code of the process. An exit code of "0" should only be trusted if
// `status` has a code of OK (otherwise it may simply be unset).
ExitCode int32 `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
// The output files. The blob referenced by the digest should contain
// one of the following (implementation-dependent):
// * A marshalled DirectoryMetadata of the returned filesystem
// * A LUCI-style .isolated file
Outputs *Digest `protobuf:"bytes,3,opt,name=outputs,proto3" json:"outputs,omitempty"`
// The elapsed time between calling Accept and Complete. The server will also
// have its own idea of what this should be, but this excludes the overhead of
// the RPCs and the bot response time.
Duration *duration.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` // Deprecated: Do not use.
// The amount of time *not* spent executing the command (ie
// uploading/downloading files).
Overhead *duration.Duration `protobuf:"bytes,5,opt,name=overhead,proto3" json:"overhead,omitempty"` // Deprecated: Do not use.
// Implementation-dependent statistics about the task. Both servers and bots
// may define messages which can be encoded here; bots are free to provide
// statistics in multiple formats, and servers are free to choose one or more
// of the values to process and ignore others. In particular, it is *not*
// considered an error for the bot to provide the server with a field that it
// doesn't know about.
Statistics []*any.Any `protobuf:"bytes,6,rep,name=statistics,proto3" json:"statistics,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommandResult) Reset() { *m = CommandResult{} }
func (m *CommandResult) String() string { return proto.CompactTextString(m) }
func (*CommandResult) ProtoMessage() {}
func (*CommandResult) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{3}
}
func (m *CommandResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommandResult.Unmarshal(m, b)
}
func (m *CommandResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommandResult.Marshal(b, m, deterministic)
}
func (m *CommandResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommandResult.Merge(m, src)
}
func (m *CommandResult) XXX_Size() int {
return xxx_messageInfo_CommandResult.Size(m)
}
func (m *CommandResult) XXX_DiscardUnknown() {
xxx_messageInfo_CommandResult.DiscardUnknown(m)
}
var xxx_messageInfo_CommandResult proto.InternalMessageInfo
func (m *CommandResult) GetStatus() *status.Status {
if m != nil {
return m.Status
}
return nil
}
func (m *CommandResult) GetExitCode() int32 {
if m != nil {
return m.ExitCode
}
return 0
}
func (m *CommandResult) GetOutputs() *Digest {
if m != nil {
return m.Outputs
}
return nil
}
// Deprecated: Do not use.
func (m *CommandResult) GetDuration() *duration.Duration {
if m != nil {
return m.Duration
}
return nil
}
// Deprecated: Do not use.
func (m *CommandResult) GetOverhead() *duration.Duration {
if m != nil {
return m.Overhead
}
return nil
}
func (m *CommandResult) GetStatistics() []*any.Any {
if m != nil {
return m.Statistics
}
return nil
}
// The metadata for a file. Similar to the equivalent message in the Remote
// Execution API.
type FileMetadata struct {
// The path of this file. If this message is part of the
// CommandOutputs.outputs fields, the path is relative to the execution root
// and must correspond to an entry in CommandTask.outputs.files. If this
// message is part of a Directory message, then the path is relative to the
// root of that directory. All paths MUST be delimited by forward slashes.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// A pointer to the contents of the file. The method by which a client
// retrieves the contents from a CAS system is not defined here.
Digest *Digest `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
// If the file is small enough, its contents may also or alternatively be
// listed here.
Contents []byte `protobuf:"bytes,3,opt,name=contents,proto3" json:"contents,omitempty"`
// Properties of the file
IsExecutable bool `protobuf:"varint,4,opt,name=is_executable,json=isExecutable,proto3" json:"is_executable,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FileMetadata) Reset() { *m = FileMetadata{} }
func (m *FileMetadata) String() string { return proto.CompactTextString(m) }
func (*FileMetadata) ProtoMessage() {}
func (*FileMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{4}
}
func (m *FileMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FileMetadata.Unmarshal(m, b)
}
func (m *FileMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FileMetadata.Marshal(b, m, deterministic)
}
func (m *FileMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_FileMetadata.Merge(m, src)
}
func (m *FileMetadata) XXX_Size() int {
return xxx_messageInfo_FileMetadata.Size(m)
}
func (m *FileMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_FileMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_FileMetadata proto.InternalMessageInfo
func (m *FileMetadata) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *FileMetadata) GetDigest() *Digest {
if m != nil {
return m.Digest
}
return nil
}
func (m *FileMetadata) GetContents() []byte {
if m != nil {
return m.Contents
}
return nil
}
func (m *FileMetadata) GetIsExecutable() bool {
if m != nil {
return m.IsExecutable
}
return false
}
// The metadata for a directory. Similar to the equivalent message in the Remote
// Execution API.
type DirectoryMetadata struct {
// The path of the directory, as in [FileMetadata.path][google.devtools.remoteworkers.v1test2.FileMetadata.path].
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// A pointer to the contents of the directory, in the form of a marshalled
// Directory message.
Digest *Digest `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DirectoryMetadata) Reset() { *m = DirectoryMetadata{} }
func (m *DirectoryMetadata) String() string { return proto.CompactTextString(m) }
func (*DirectoryMetadata) ProtoMessage() {}
func (*DirectoryMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{5}
}
func (m *DirectoryMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DirectoryMetadata.Unmarshal(m, b)
}
func (m *DirectoryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DirectoryMetadata.Marshal(b, m, deterministic)
}
func (m *DirectoryMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_DirectoryMetadata.Merge(m, src)
}
func (m *DirectoryMetadata) XXX_Size() int {
return xxx_messageInfo_DirectoryMetadata.Size(m)
}
func (m *DirectoryMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_DirectoryMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_DirectoryMetadata proto.InternalMessageInfo
func (m *DirectoryMetadata) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *DirectoryMetadata) GetDigest() *Digest {
if m != nil {
return m.Digest
}
return nil
}
// The CommandTask and CommandResult messages assume the existence of a service
// that can serve blobs of content, identified by a hash and size known as a
// "digest." The method by which these blobs may be retrieved is not specified
// here, but a model implementation is in the Remote Execution API's
// "ContentAddressibleStorage" interface.
//
// In the context of the RWAPI, a Digest will virtually always refer to the
// contents of a file or a directory. The latter is represented by the
// byte-encoded Directory message.
type Digest struct {
// A string-encoded hash (eg "1a2b3c", not the byte array [0x1a, 0x2b, 0x3c])
// using an implementation-defined hash algorithm (eg SHA-256).
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// The size of the contents. While this is not strictly required as part of an
// identifier (after all, any given hash will have exactly one canonical
// size), it's useful in almost all cases when one might want to send or
// retrieve blobs of content and is included here for this reason.
SizeBytes int64 `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Digest) Reset() { *m = Digest{} }
func (m *Digest) String() string { return proto.CompactTextString(m) }
func (*Digest) ProtoMessage() {}
func (*Digest) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{6}
}
func (m *Digest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Digest.Unmarshal(m, b)
}
func (m *Digest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Digest.Marshal(b, m, deterministic)
}
func (m *Digest) XXX_Merge(src proto.Message) {
xxx_messageInfo_Digest.Merge(m, src)
}
func (m *Digest) XXX_Size() int {
return xxx_messageInfo_Digest.Size(m)
}
func (m *Digest) XXX_DiscardUnknown() {
xxx_messageInfo_Digest.DiscardUnknown(m)
}
var xxx_messageInfo_Digest proto.InternalMessageInfo
func (m *Digest) GetHash() string {
if m != nil {
return m.Hash
}
return ""
}
func (m *Digest) GetSizeBytes() int64 {
if m != nil {
return m.SizeBytes
}
return 0
}
// The contents of a directory. Similar to the equivalent message in the Remote
// Execution API.
type Directory struct {
// The files in this directory
Files []*FileMetadata `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
// Any subdirectories
Directories []*DirectoryMetadata `protobuf:"bytes,2,rep,name=directories,proto3" json:"directories,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Directory) Reset() { *m = Directory{} }
func (m *Directory) String() string { return proto.CompactTextString(m) }
func (*Directory) ProtoMessage() {}
func (*Directory) Descriptor() ([]byte, []int) {
return fileDescriptor_7b7f8597ab32e88e, []int{7}
}
func (m *Directory) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Directory.Unmarshal(m, b)
}
func (m *Directory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Directory.Marshal(b, m, deterministic)
}
func (m *Directory) XXX_Merge(src proto.Message) {
xxx_messageInfo_Directory.Merge(m, src)
}
func (m *Directory) XXX_Size() int {
return xxx_messageInfo_Directory.Size(m)
}
func (m *Directory) XXX_DiscardUnknown() {
xxx_messageInfo_Directory.DiscardUnknown(m)
}
var xxx_messageInfo_Directory proto.InternalMessageInfo
func (m *Directory) GetFiles() []*FileMetadata {
if m != nil {
return m.Files
}
return nil
}
func (m *Directory) GetDirectories() []*DirectoryMetadata {
if m != nil {
return m.Directories
}
return nil
}
func init() {
proto.RegisterType((*CommandTask)(nil), "google.devtools.remoteworkers.v1test2.CommandTask")
proto.RegisterType((*CommandTask_Inputs)(nil), "google.devtools.remoteworkers.v1test2.CommandTask.Inputs")
proto.RegisterType((*CommandTask_Inputs_EnvironmentVariable)(nil), "google.devtools.remoteworkers.v1test2.CommandTask.Inputs.EnvironmentVariable")
proto.RegisterType((*CommandTask_Outputs)(nil), "google.devtools.remoteworkers.v1test2.CommandTask.Outputs")
proto.RegisterType((*CommandTask_Timeouts)(nil), "google.devtools.remoteworkers.v1test2.CommandTask.Timeouts")
proto.RegisterType((*CommandOutputs)(nil), "google.devtools.remoteworkers.v1test2.CommandOutputs")
proto.RegisterType((*CommandOverhead)(nil), "google.devtools.remoteworkers.v1test2.CommandOverhead")
proto.RegisterType((*CommandResult)(nil), "google.devtools.remoteworkers.v1test2.CommandResult")
proto.RegisterType((*FileMetadata)(nil), "google.devtools.remoteworkers.v1test2.FileMetadata")
proto.RegisterType((*DirectoryMetadata)(nil), "google.devtools.remoteworkers.v1test2.DirectoryMetadata")
proto.RegisterType((*Digest)(nil), "google.devtools.remoteworkers.v1test2.Digest")
proto.RegisterType((*Directory)(nil), "google.devtools.remoteworkers.v1test2.Directory")
}
func init() {
proto.RegisterFile("google/devtools/remoteworkers/v1test2/command.proto", fileDescriptor_7b7f8597ab32e88e)
}
var fileDescriptor_7b7f8597ab32e88e = []byte{
// 852 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x5d, 0x6f, 0x1b, 0x45,
0x14, 0xd5, 0xae, 0x3f, 0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x7c, 0xc3, 0xbf, 0xa5, 0x0d, 0x7b, 0xf8, 0x47, 0x04, 0x1f, 0xa7,
0x62, 0xb6, 0x9a, 0xd8, 0xe1, 0x5d, 0x6a, 0xc3, 0xa7, 0x2e, 0xec, 0xc7, 0x52, 0x7d, 0x17, 0x3d,
0xa5, 0x9e, 0x3f, 0x11, 0x53, 0x96, 0x4f, 0x12, 0x21, 0x27, 0x83, 0x09, 0xe6, 0xf6, 0x11, 0x0e,
0x5c, 0x8a, 0xcd, 0xb9, 0xba, 0xe1, 0x2f, 0xd1, 0xc1, 0x52, 0xf4, 0x55, 0x1c, 0xd3, 0xd3, 0xd7,
0xf1, 0xfd, 0x87, 0x4e, 0x79, 0x84, 0x8b, 0x13, 0x5b, 0xd9, 0x52, 0x09, 0xc9, 0x93, 0x07, 0x27,
0x86, 0x7a, 0xd6, 0xb4, 0x67, 0xed, 0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0xf4, 0x52, 0xfa, 0x6a,
0x7d, 0x09, 0x00, 0x00,
}

View file

@ -0,0 +1,616 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/remoteworkers/v1test2/tasks.proto
package remoteworkers
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
field_mask "google.golang.org/genproto/protobuf/field_mask"
math "math"
)
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
// DEPRECATED - use Lease.payload instead.
// A Task represents a unit of work. Its result and logs are defined as
// subresources.
//
// If all the `Any` fields are populated, this can be a very large message, and
// clients may not want the entire message returned on every call to every
// method. Such clients should request partial responses
// (https://cloud.google.com/apis/design/design_patterns#partial_response) and
// servers should implement partial responses in order to reduce unnecessry
// overhead.
type Task struct {
// The name of this task. Output only.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The actual task to perform. For example, this could be CommandTask to run a
// command line.
Description *any.Any `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Handles to logs. The key is a human-readable name like `stdout`, and the
// handle is a resource name that can be passed to ByteStream or other
// accessors.
//
// An implementation may define some logs by default (like `stdout`), and may
// allow clients to add new logs via AddTaskLog.
Logs map[string]string `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Task) Reset() { *m = Task{} }
func (m *Task) String() string { return proto.CompactTextString(m) }
func (*Task) ProtoMessage() {}
func (*Task) Descriptor() ([]byte, []int) {
return fileDescriptor_164aeca5668e3481, []int{0}
}
func (m *Task) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Task.Unmarshal(m, b)
}
func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Task.Marshal(b, m, deterministic)
}
func (m *Task) XXX_Merge(src proto.Message) {
xxx_messageInfo_Task.Merge(m, src)
}
func (m *Task) XXX_Size() int {
return xxx_messageInfo_Task.Size(m)
}
func (m *Task) XXX_DiscardUnknown() {
xxx_messageInfo_Task.DiscardUnknown(m)
}
var xxx_messageInfo_Task proto.InternalMessageInfo
func (m *Task) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Task) GetDescription() *any.Any {
if m != nil {
return m.Description
}
return nil
}
func (m *Task) GetLogs() map[string]string {
if m != nil {
return m.Logs
}
return nil
}
// DEPRECATED - use Lease.assignment_result instead.
// The result and metadata of the task.
type TaskResult struct {
// The name of the task result; must be a name of a `Task` followed by
// `/result`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The result may be updated several times; the client must only set
// `complete` to true to indicate that no further updates are allowed.
// If this is not true, the `status` field must not be examined since its zero
// value is equivalent to `OK`.
//
// Once a task is completed, it must not be updated with further results,
// though the implementation may choose to continue to receive logs.
Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"`
// The final status of the task itself. For example, if task.description
// included a timeout which was violated, status.code may be
// DEADLINE_EXCEEDED. This field can only be read if `complete` is true.
Status *status.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
// Any non-log output, such as output files and exit codes. See
// CommandResult as an example.
Output *any.Any `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"`
// Any information about how the command was executed, eg runtime. See
// CommandOverhead as an example.
Meta *any.Any `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskResult) Reset() { *m = TaskResult{} }
func (m *TaskResult) String() string { return proto.CompactTextString(m) }
func (*TaskResult) ProtoMessage() {}
func (*TaskResult) Descriptor() ([]byte, []int) {
return fileDescriptor_164aeca5668e3481, []int{1}
}
func (m *TaskResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskResult.Unmarshal(m, b)
}
func (m *TaskResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskResult.Marshal(b, m, deterministic)
}
func (m *TaskResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskResult.Merge(m, src)
}
func (m *TaskResult) XXX_Size() int {
return xxx_messageInfo_TaskResult.Size(m)
}
func (m *TaskResult) XXX_DiscardUnknown() {
xxx_messageInfo_TaskResult.DiscardUnknown(m)
}
var xxx_messageInfo_TaskResult proto.InternalMessageInfo
func (m *TaskResult) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *TaskResult) GetComplete() bool {
if m != nil {
return m.Complete
}
return false
}
func (m *TaskResult) GetStatus() *status.Status {
if m != nil {
return m.Status
}
return nil
}
func (m *TaskResult) GetOutput() *any.Any {
if m != nil {
return m.Output
}
return nil
}
func (m *TaskResult) GetMeta() *any.Any {
if m != nil {
return m.Meta
}
return nil
}
// Request message for `GetTask`.
type GetTaskRequest struct {
// The task name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetTaskRequest) Reset() { *m = GetTaskRequest{} }
func (m *GetTaskRequest) String() string { return proto.CompactTextString(m) }
func (*GetTaskRequest) ProtoMessage() {}
func (*GetTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_164aeca5668e3481, []int{2}
}
func (m *GetTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetTaskRequest.Unmarshal(m, b)
}
func (m *GetTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetTaskRequest.Marshal(b, m, deterministic)
}
func (m *GetTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetTaskRequest.Merge(m, src)
}
func (m *GetTaskRequest) XXX_Size() int {
return xxx_messageInfo_GetTaskRequest.Size(m)
}
func (m *GetTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetTaskRequest proto.InternalMessageInfo
func (m *GetTaskRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request message for `UpdateTaskResult`.
type UpdateTaskResultRequest struct {
// The task result name; must match `result.name`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The result being updated.
Result *TaskResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
// The fields within `result` that are specified.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// If this is being updated by a bot from BotManager, the source should be
// bot.session_id. That way, if two bots accidentally get the same name, we'll
// know to reject updates from the older one.
Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateTaskResultRequest) Reset() { *m = UpdateTaskResultRequest{} }
func (m *UpdateTaskResultRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateTaskResultRequest) ProtoMessage() {}
func (*UpdateTaskResultRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_164aeca5668e3481, []int{3}
}
func (m *UpdateTaskResultRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateTaskResultRequest.Unmarshal(m, b)
}
func (m *UpdateTaskResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateTaskResultRequest.Marshal(b, m, deterministic)
}
func (m *UpdateTaskResultRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateTaskResultRequest.Merge(m, src)
}
func (m *UpdateTaskResultRequest) XXX_Size() int {
return xxx_messageInfo_UpdateTaskResultRequest.Size(m)
}
func (m *UpdateTaskResultRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateTaskResultRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateTaskResultRequest proto.InternalMessageInfo
func (m *UpdateTaskResultRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *UpdateTaskResultRequest) GetResult() *TaskResult {
if m != nil {
return m.Result
}
return nil
}
func (m *UpdateTaskResultRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
func (m *UpdateTaskResultRequest) GetSource() string {
if m != nil {
return m.Source
}
return ""
}
// Request message for `AddTaskLog`.
type AddTaskLogRequest struct {
// The name of the task that will own the new log.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The human-readable name of the log, like `stdout` or a relative file path.
LogId string `protobuf:"bytes,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddTaskLogRequest) Reset() { *m = AddTaskLogRequest{} }
func (m *AddTaskLogRequest) String() string { return proto.CompactTextString(m) }
func (*AddTaskLogRequest) ProtoMessage() {}
func (*AddTaskLogRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_164aeca5668e3481, []int{4}
}
func (m *AddTaskLogRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddTaskLogRequest.Unmarshal(m, b)
}
func (m *AddTaskLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddTaskLogRequest.Marshal(b, m, deterministic)
}
func (m *AddTaskLogRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddTaskLogRequest.Merge(m, src)
}
func (m *AddTaskLogRequest) XXX_Size() int {
return xxx_messageInfo_AddTaskLogRequest.Size(m)
}
func (m *AddTaskLogRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AddTaskLogRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AddTaskLogRequest proto.InternalMessageInfo
func (m *AddTaskLogRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *AddTaskLogRequest) GetLogId() string {
if m != nil {
return m.LogId
}
return ""
}
// Response message for `AddTaskLog`.
type AddTaskLogResponse struct {
// The handle for the new log, as would be returned in Task.logs.
Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddTaskLogResponse) Reset() { *m = AddTaskLogResponse{} }
func (m *AddTaskLogResponse) String() string { return proto.CompactTextString(m) }
func (*AddTaskLogResponse) ProtoMessage() {}
func (*AddTaskLogResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_164aeca5668e3481, []int{5}
}
func (m *AddTaskLogResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddTaskLogResponse.Unmarshal(m, b)
}
func (m *AddTaskLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddTaskLogResponse.Marshal(b, m, deterministic)
}
func (m *AddTaskLogResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddTaskLogResponse.Merge(m, src)
}
func (m *AddTaskLogResponse) XXX_Size() int {
return xxx_messageInfo_AddTaskLogResponse.Size(m)
}
func (m *AddTaskLogResponse) XXX_DiscardUnknown() {
xxx_messageInfo_AddTaskLogResponse.DiscardUnknown(m)
}
var xxx_messageInfo_AddTaskLogResponse proto.InternalMessageInfo
func (m *AddTaskLogResponse) GetHandle() string {
if m != nil {
return m.Handle
}
return ""
}
func init() {
proto.RegisterType((*Task)(nil), "google.devtools.remoteworkers.v1test2.Task")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.remoteworkers.v1test2.Task.LogsEntry")
proto.RegisterType((*TaskResult)(nil), "google.devtools.remoteworkers.v1test2.TaskResult")
proto.RegisterType((*GetTaskRequest)(nil), "google.devtools.remoteworkers.v1test2.GetTaskRequest")
proto.RegisterType((*UpdateTaskResultRequest)(nil), "google.devtools.remoteworkers.v1test2.UpdateTaskResultRequest")
proto.RegisterType((*AddTaskLogRequest)(nil), "google.devtools.remoteworkers.v1test2.AddTaskLogRequest")
proto.RegisterType((*AddTaskLogResponse)(nil), "google.devtools.remoteworkers.v1test2.AddTaskLogResponse")
}
// 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
// TasksClient is the client API for Tasks service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TasksClient interface {
// DEPRECATED - use Lease.payload instead.
// GetTask reads the current state of the task. Tasks must be created through
// some other interface, and should be immutable once created and exposed to
// the bots.
GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error)
// DEPRECATED - use Lease.result instead.
// UpdateTaskResult updates the result.
UpdateTaskResult(ctx context.Context, in *UpdateTaskResultRequest, opts ...grpc.CallOption) (*TaskResult, error)
// DEPRECATED - precreate logs prior to sending to bot.
// AddTaskLog creates a new streaming log. The log is streamed and marked as
// completed through other interfaces (i.e., ByteStream). This can be called
// by the bot if it wants to create a new log; the server can also predefine
// logs that do not need to be created (e.g. `stdout`).
AddTaskLog(ctx context.Context, in *AddTaskLogRequest, opts ...grpc.CallOption) (*AddTaskLogResponse, error)
}
type tasksClient struct {
cc *grpc.ClientConn
}
func NewTasksClient(cc *grpc.ClientConn) TasksClient {
return &tasksClient{cc}
}
func (c *tasksClient) GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error) {
out := new(Task)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/GetTask", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *tasksClient) UpdateTaskResult(ctx context.Context, in *UpdateTaskResultRequest, opts ...grpc.CallOption) (*TaskResult, error) {
out := new(TaskResult)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/UpdateTaskResult", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *tasksClient) AddTaskLog(ctx context.Context, in *AddTaskLogRequest, opts ...grpc.CallOption) (*AddTaskLogResponse, error) {
out := new(AddTaskLogResponse)
err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/AddTaskLog", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// TasksServer is the server API for Tasks service.
type TasksServer interface {
// DEPRECATED - use Lease.payload instead.
// GetTask reads the current state of the task. Tasks must be created through
// some other interface, and should be immutable once created and exposed to
// the bots.
GetTask(context.Context, *GetTaskRequest) (*Task, error)
// DEPRECATED - use Lease.result instead.
// UpdateTaskResult updates the result.
UpdateTaskResult(context.Context, *UpdateTaskResultRequest) (*TaskResult, error)
// DEPRECATED - precreate logs prior to sending to bot.
// AddTaskLog creates a new streaming log. The log is streamed and marked as
// completed through other interfaces (i.e., ByteStream). This can be called
// by the bot if it wants to create a new log; the server can also predefine
// logs that do not need to be created (e.g. `stdout`).
AddTaskLog(context.Context, *AddTaskLogRequest) (*AddTaskLogResponse, error)
}
func RegisterTasksServer(s *grpc.Server, srv TasksServer) {
s.RegisterService(&_Tasks_serviceDesc, srv)
}
func _Tasks_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetTaskRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TasksServer).GetTask(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.remoteworkers.v1test2.Tasks/GetTask",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TasksServer).GetTask(ctx, req.(*GetTaskRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Tasks_UpdateTaskResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateTaskResultRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TasksServer).UpdateTaskResult(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.remoteworkers.v1test2.Tasks/UpdateTaskResult",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TasksServer).UpdateTaskResult(ctx, req.(*UpdateTaskResultRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Tasks_AddTaskLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddTaskLogRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TasksServer).AddTaskLog(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.remoteworkers.v1test2.Tasks/AddTaskLog",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TasksServer).AddTaskLog(ctx, req.(*AddTaskLogRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Tasks_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.remoteworkers.v1test2.Tasks",
HandlerType: (*TasksServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetTask",
Handler: _Tasks_GetTask_Handler,
},
{
MethodName: "UpdateTaskResult",
Handler: _Tasks_UpdateTaskResult_Handler,
},
{
MethodName: "AddTaskLog",
Handler: _Tasks_AddTaskLog_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/remoteworkers/v1test2/tasks.proto",
}
func init() {
proto.RegisterFile("google/devtools/remoteworkers/v1test2/tasks.proto", fileDescriptor_164aeca5668e3481)
}
var fileDescriptor_164aeca5668e3481 = []byte{
// 682 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x6b, 0x13, 0x41,
0x14, 0x66, 0x92, 0x34, 0x36, 0x2f, 0x20, 0x75, 0xa8, 0x36, 0x2e, 0x3d, 0xc4, 0xc5, 0x4a, 0x4c,
0xcb, 0x2e, 0x89, 0xa8, 0x35, 0xc5, 0x42, 0x8b, 0x5a, 0x0a, 0x15, 0x64, 0xad, 0x16, 0xbc, 0x94,
0x69, 0x76, 0x3a, 0x86, 0x6c, 0x76, 0xd6, 0x9d, 0xd9, 0x48, 0x90, 0x5e, 0x3c,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, 0x92, 0x19, 0x8f, 0x48, 0xcc, 0x3c, 0x9e, 0x32, 0x9f,
0xd1, 0x58, 0xff, 0x12, 0x7c, 0x13, 0x22, 0x49, 0x47, 0xfc, 0xe3, 0xbf, 0x63, 0x65, 0xe4, 0xf5,
0x73, 0x2e, 0x17, 0xec, 0x7c, 0xc9, 0x2d, 0x6c, 0x98, 0xcc, 0x8f, 0x68, 0x7f, 0x5b, 0xb7, 0x35,
0x52, 0xdf, 0x7b, 0xd9, 0xd8, 0x56, 0xd4, 0xbd, 0xa2, 0xae, 0x75, 0xe7, 0x6f, 0x00, 0x00, 0x00,
0xff, 0xff, 0xbb, 0x4a, 0x2c, 0x76, 0xa6, 0x06, 0x00, 0x00,
}

View file

@ -0,0 +1,419 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/remoteworkers/v1test2/worker.proto
package remoteworkers
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Describes a worker, which is a list of one or more devices and the
// connections between them. A device could be a computer, a phone, or even an
// accelerator like a GPU; it's up to the farm administrator to decide how to
// model their farm. For example, if a farm only has one type of GPU, the GPU
// could be modelled as a "has_gpu" property on its host computer; if it has
// many subproperties itself, it might be better to model it as a separate
// device.
//
// The first device in the worker is the "primary device" - that is, the device
// running a bot and which is responsible for actually executing commands. All
// other devices are considered to be attached devices, and must be controllable
// by the primary device.
//
// This message (and all its submessages) can be used in two contexts:
//
// * Status: sent by the bot to report the current capabilities of the device to
// allow reservation matching.
// * Request: sent by a client to request a device with certain capabilities in
// a reservation.
//
// Several of the fields in this message have different semantics depending on
// which of which of these contexts it is used. These semantics are described
// below.
//
// Several messages in Worker and its submessages have the concept of keys and
// values, such as `Worker.Property` and `Device.Property`. All keys are simple
// strings, but certain keys are "standard" keys and should be broadly supported
// across farms and implementations; these are listed below each relevant
// message. Bot implementations or farm admins may add *additional* keys, but
// these SHOULD all begin with an underscore so they do not conflict with
// standard keys that may be added in the future.
//
// Keys are not context sensitive.
//
// See http://goo.gl/NurY8g for more information on the Worker message.
type Worker struct {
// A list of devices; the first device is the primary device. See the `Device`
// message for more information.
Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
// A worker may contain "global" properties. For example, certain machines
// might be reserved for certain types of jobs, like short-running compilation
// versus long-running integration tests. This property is known as a "pool"
// and is not related to any one device within the worker; rather, it applies
// to the worker as a whole.
//
// The behaviour of repeated keys is identical to that of Device.Property.
Properties []*Worker_Property `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty"`
// Bots can be configured in certain ways when accepting leases. For example,
// many leases are executed inside a Docker container. To support this, the
// bot needs to be able to report that it has Docker installed (and knows how
// to execute something inside a container), and the task submitter needs to
// specify which image should be used to start the container. Similarly, a
// lease may be able to run as one of several users on the worker; in such
// cases, the bot needs to report what users are available, and the submitter
// needs to choose one.
//
// Therefore, when this message is reported by the bot to the service, each
// key represents a *type* of configuration that the bot knows how to set,
// while each *value* represents a legal value for that configuration (the
// empty string is interpretted as a wildcard, such as for Docker images).
// When this message is sent by the server to the bot in the context of a
// lease, it represents a command to the bot to apply the setting. Keys may
// be repeated during reporting but not in a lease.
Configs []*Worker_Config `protobuf:"bytes,3,rep,name=configs,proto3" json:"configs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Worker) Reset() { *m = Worker{} }
func (m *Worker) String() string { return proto.CompactTextString(m) }
func (*Worker) ProtoMessage() {}
func (*Worker) Descriptor() ([]byte, []int) {
return fileDescriptor_1a7edeeca1cd65a1, []int{0}
}
func (m *Worker) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Worker.Unmarshal(m, b)
}
func (m *Worker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Worker.Marshal(b, m, deterministic)
}
func (m *Worker) XXX_Merge(src proto.Message) {
xxx_messageInfo_Worker.Merge(m, src)
}
func (m *Worker) XXX_Size() int {
return xxx_messageInfo_Worker.Size(m)
}
func (m *Worker) XXX_DiscardUnknown() {
xxx_messageInfo_Worker.DiscardUnknown(m)
}
var xxx_messageInfo_Worker proto.InternalMessageInfo
func (m *Worker) GetDevices() []*Device {
if m != nil {
return m.Devices
}
return nil
}
func (m *Worker) GetProperties() []*Worker_Property {
if m != nil {
return m.Properties
}
return nil
}
func (m *Worker) GetConfigs() []*Worker_Config {
if m != nil {
return m.Configs
}
return nil
}
// A global property; see the `properties` field for more information.
type Worker_Property struct {
// For general information on keys, see the documentation to `Worker`.
//
// The current set of standard keys are:
//
// * pool: different workers can be reserved for different purposes. For
// example, an admin might want to segregate long-running integration tests
// from short-running unit tests, so unit tests will always get some
// throughput. To support this, the server can assign different values for
// `pool` (such as "itest" and "utest") to different workers, and then have
// jobs request workers from those pools.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The property's value.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Worker_Property) Reset() { *m = Worker_Property{} }
func (m *Worker_Property) String() string { return proto.CompactTextString(m) }
func (*Worker_Property) ProtoMessage() {}
func (*Worker_Property) Descriptor() ([]byte, []int) {
return fileDescriptor_1a7edeeca1cd65a1, []int{0, 0}
}
func (m *Worker_Property) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Worker_Property.Unmarshal(m, b)
}
func (m *Worker_Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Worker_Property.Marshal(b, m, deterministic)
}
func (m *Worker_Property) XXX_Merge(src proto.Message) {
xxx_messageInfo_Worker_Property.Merge(m, src)
}
func (m *Worker_Property) XXX_Size() int {
return xxx_messageInfo_Worker_Property.Size(m)
}
func (m *Worker_Property) XXX_DiscardUnknown() {
xxx_messageInfo_Worker_Property.DiscardUnknown(m)
}
var xxx_messageInfo_Worker_Property proto.InternalMessageInfo
func (m *Worker_Property) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *Worker_Property) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// A configuration request or report; see the `configs` field for more
// information.
type Worker_Config struct {
// For general information on keys, see the documentation to `Worker`.
//
// The current set of standard keys are:
//
// * DockerImage: the image of the container. When being reported by the
// bot, the empty value should always be included if the bot is able to pull
// its own images; the bot may optionally *also* report images that are
// present in its cache. When being requested in a lease, the value is the
// URI of the image (eg `gcr.io/user/image@sha256:hash`).
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The configuration's value.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Worker_Config) Reset() { *m = Worker_Config{} }
func (m *Worker_Config) String() string { return proto.CompactTextString(m) }
func (*Worker_Config) ProtoMessage() {}
func (*Worker_Config) Descriptor() ([]byte, []int) {
return fileDescriptor_1a7edeeca1cd65a1, []int{0, 1}
}
func (m *Worker_Config) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Worker_Config.Unmarshal(m, b)
}
func (m *Worker_Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Worker_Config.Marshal(b, m, deterministic)
}
func (m *Worker_Config) XXX_Merge(src proto.Message) {
xxx_messageInfo_Worker_Config.Merge(m, src)
}
func (m *Worker_Config) XXX_Size() int {
return xxx_messageInfo_Worker_Config.Size(m)
}
func (m *Worker_Config) XXX_DiscardUnknown() {
xxx_messageInfo_Worker_Config.DiscardUnknown(m)
}
var xxx_messageInfo_Worker_Config proto.InternalMessageInfo
func (m *Worker_Config) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *Worker_Config) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// Any device, including computers, phones, accelerators (e.g. GPUs), etc. All
// names must be unique.
type Device struct {
// The handle can be thought of as the "name" of the device, and must be
// unique within a Worker.
//
// In the Status context, the handle should be some human-understandable name,
// perhaps corresponding to a label physically written on the device to make
// it easy to locate. In the Request context, the name should be the
// *logical* name expected by the task. The bot is responsible for mapping the
// logical name expected by the task to a machine-readable name that the task
// can actually use, such as a USB address. The method by which this mapping
// is communicated to the task is not covered in this API.
Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"`
// Properties of this device that don't change based on the tasks that are
// running on it, e.g. OS, CPU architecture, etc.
//
// Keys may be repeated, and have the following interpretation:
//
// * Status context: the device can support *any* the listed values. For
// example, an "ISA" property might include "x86", "x86-64" and "sse4".
//
// * Request context: the device *must* support *all* of the listed values.
Properties []*Device_Property `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Device) Reset() { *m = Device{} }
func (m *Device) String() string { return proto.CompactTextString(m) }
func (*Device) ProtoMessage() {}
func (*Device) Descriptor() ([]byte, []int) {
return fileDescriptor_1a7edeeca1cd65a1, []int{1}
}
func (m *Device) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Device.Unmarshal(m, b)
}
func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Device.Marshal(b, m, deterministic)
}
func (m *Device) XXX_Merge(src proto.Message) {
xxx_messageInfo_Device.Merge(m, src)
}
func (m *Device) XXX_Size() int {
return xxx_messageInfo_Device.Size(m)
}
func (m *Device) XXX_DiscardUnknown() {
xxx_messageInfo_Device.DiscardUnknown(m)
}
var xxx_messageInfo_Device proto.InternalMessageInfo
func (m *Device) GetHandle() string {
if m != nil {
return m.Handle
}
return ""
}
func (m *Device) GetProperties() []*Device_Property {
if m != nil {
return m.Properties
}
return nil
}
// A device property; see `properties` for more information.
type Device_Property struct {
// For general information on keys, see the documentation to `Worker`.
//
// The current set of standard keys are:
//
// * os: a human-readable description of the OS. Examples include `linux`,
// `ubuntu` and `ubuntu 14.04` (note that a bot may advertise itself as more
// than one). This will be replaced in the future by more well-structured
// keys and values to represent OS variants.
//
// * has-docker: "true" if the bot has Docker installed. This will be
// replaced in the future by a more structured message for Docker support.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The property's value.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Device_Property) Reset() { *m = Device_Property{} }
func (m *Device_Property) String() string { return proto.CompactTextString(m) }
func (*Device_Property) ProtoMessage() {}
func (*Device_Property) Descriptor() ([]byte, []int) {
return fileDescriptor_1a7edeeca1cd65a1, []int{1, 0}
}
func (m *Device_Property) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Device_Property.Unmarshal(m, b)
}
func (m *Device_Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Device_Property.Marshal(b, m, deterministic)
}
func (m *Device_Property) XXX_Merge(src proto.Message) {
xxx_messageInfo_Device_Property.Merge(m, src)
}
func (m *Device_Property) XXX_Size() int {
return xxx_messageInfo_Device_Property.Size(m)
}
func (m *Device_Property) XXX_DiscardUnknown() {
xxx_messageInfo_Device_Property.DiscardUnknown(m)
}
var xxx_messageInfo_Device_Property proto.InternalMessageInfo
func (m *Device_Property) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *Device_Property) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func init() {
proto.RegisterType((*Worker)(nil), "google.devtools.remoteworkers.v1test2.Worker")
proto.RegisterType((*Worker_Property)(nil), "google.devtools.remoteworkers.v1test2.Worker.Property")
proto.RegisterType((*Worker_Config)(nil), "google.devtools.remoteworkers.v1test2.Worker.Config")
proto.RegisterType((*Device)(nil), "google.devtools.remoteworkers.v1test2.Device")
proto.RegisterType((*Device_Property)(nil), "google.devtools.remoteworkers.v1test2.Device.Property")
}
func init() {
proto.RegisterFile("google/devtools/remoteworkers/v1test2/worker.proto", fileDescriptor_1a7edeeca1cd65a1)
}
var fileDescriptor_1a7edeeca1cd65a1 = []byte{
// 332 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xc1, 0x4a, 0xf3, 0x40,
0x10, 0xc7, 0x49, 0xca, 0x97, 0x7e, 0x8e, 0x17, 0x59, 0x45, 0x42, 0x4f, 0xa5, 0x50, 0xa8, 0x07,
0x37, 0x36, 0x8a, 0x17, 0x6f, 0xb5, 0xd0, 0x9b, 0x94, 0xa5, 0xb4, 0xe0, 0x2d, 0xb6, 0xe3, 0x1a,
0x9a, 0x66, 0xc2, 0x6e, 0x8c, 0xf4, 0x75, 0x3c, 0x8a, 0x6f, 0xe1, 0x83, 0xf8, 0x2a, 0xd2, 0xdd,
0x04, 0x0c, 0x08, 0x46, 0x3d, 0x25, 0x33, 0xe1, 0xf7, 0x9b, 0xc9, 0x9f, 0x81, 0x50, 0x12, 0xc9,
0x04, 0x83, 0x15, 0x16, 0x39, 0x51, 0xa2, 0x03, 0x85, 0x1b, 0xca, 0xf1, 0x89, 0xd4, 0x1a, 0x95,
0x0e, 0x8a, 0x61, 0x8e, 0x3a, 0x0f, 0x03, 0x5b, 0xf3, 0x4c, 0x51, 0x4e, 0xac, 0x6f, 0x19, 0x5e,
0x31, 0xbc, 0xc6, 0xf0, 0x92, 0xe9, 0xbd, 0xbb, 0xe0, 0x2d, 0x4c, 0x8f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0x02, 0x7c, 0x3e, 0x9c, 0xed, 0xd0, 0x3b, 0xcf, 0xcc, 0x3a, 0xff, 0x08,
0x00, 0x00, 0xff, 0xff, 0x4e, 0x67, 0x96, 0xee, 0x3a, 0x03, 0x00, 0x00,
}

File diff suppressed because it is too large Load diff

View file

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

View file

@ -0,0 +1,232 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/configuration.proto
package resultstore
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Represents a configuration within an Invocation associated with one or more
// ConfiguredTargets. It captures the environment and other settings that
// were used.
type Configuration struct {
// The format of this Configuration resource name must be:
// invocations/${INVOCATION_ID}/configs/${CONFIG_ID}
// The configuration ID of "default" should be preferred for the default
// configuration in a single-config invocation.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource ID components that identify the Configuration. They must match
// the resource name after proper encoding.
Id *Configuration_Id `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// The aggregate status for this configuration.
StatusAttributes *StatusAttributes `protobuf:"bytes,3,opt,name=status_attributes,json=statusAttributes,proto3" json:"status_attributes,omitempty"`
// Attributes that apply only to this configuration.
ConfigurationAttributes *ConfigurationAttributes `protobuf:"bytes,5,opt,name=configuration_attributes,json=configurationAttributes,proto3" json:"configuration_attributes,omitempty"`
// Arbitrary name-value pairs.
// This is implemented as a multi-map. Multiple properties are allowed with
// the same key. Properties will be returned in lexicographical order by key.
Properties []*Property `protobuf:"bytes,6,rep,name=properties,proto3" json:"properties,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Configuration) Reset() { *m = Configuration{} }
func (m *Configuration) String() string { return proto.CompactTextString(m) }
func (*Configuration) ProtoMessage() {}
func (*Configuration) Descriptor() ([]byte, []int) {
return fileDescriptor_c7cb6c7dfd72e78e, []int{0}
}
func (m *Configuration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Configuration.Unmarshal(m, b)
}
func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Configuration.Marshal(b, m, deterministic)
}
func (m *Configuration) XXX_Merge(src proto.Message) {
xxx_messageInfo_Configuration.Merge(m, src)
}
func (m *Configuration) XXX_Size() int {
return xxx_messageInfo_Configuration.Size(m)
}
func (m *Configuration) XXX_DiscardUnknown() {
xxx_messageInfo_Configuration.DiscardUnknown(m)
}
var xxx_messageInfo_Configuration proto.InternalMessageInfo
func (m *Configuration) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Configuration) GetId() *Configuration_Id {
if m != nil {
return m.Id
}
return nil
}
func (m *Configuration) GetStatusAttributes() *StatusAttributes {
if m != nil {
return m.StatusAttributes
}
return nil
}
func (m *Configuration) GetConfigurationAttributes() *ConfigurationAttributes {
if m != nil {
return m.ConfigurationAttributes
}
return nil
}
func (m *Configuration) GetProperties() []*Property {
if m != nil {
return m.Properties
}
return nil
}
// The resource ID components that identify the Configuration.
type Configuration_Id struct {
// The Invocation ID.
InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
// The Configuration ID.
ConfigurationId string `protobuf:"bytes,2,opt,name=configuration_id,json=configurationId,proto3" json:"configuration_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Configuration_Id) Reset() { *m = Configuration_Id{} }
func (m *Configuration_Id) String() string { return proto.CompactTextString(m) }
func (*Configuration_Id) ProtoMessage() {}
func (*Configuration_Id) Descriptor() ([]byte, []int) {
return fileDescriptor_c7cb6c7dfd72e78e, []int{0, 0}
}
func (m *Configuration_Id) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Configuration_Id.Unmarshal(m, b)
}
func (m *Configuration_Id) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Configuration_Id.Marshal(b, m, deterministic)
}
func (m *Configuration_Id) XXX_Merge(src proto.Message) {
xxx_messageInfo_Configuration_Id.Merge(m, src)
}
func (m *Configuration_Id) XXX_Size() int {
return xxx_messageInfo_Configuration_Id.Size(m)
}
func (m *Configuration_Id) XXX_DiscardUnknown() {
xxx_messageInfo_Configuration_Id.DiscardUnknown(m)
}
var xxx_messageInfo_Configuration_Id proto.InternalMessageInfo
func (m *Configuration_Id) GetInvocationId() string {
if m != nil {
return m.InvocationId
}
return ""
}
func (m *Configuration_Id) GetConfigurationId() string {
if m != nil {
return m.ConfigurationId
}
return ""
}
// Attributes that apply only to the configuration.
type ConfigurationAttributes struct {
// The type of cpu. (e.g. "x86", "powerpc")
Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigurationAttributes) Reset() { *m = ConfigurationAttributes{} }
func (m *ConfigurationAttributes) String() string { return proto.CompactTextString(m) }
func (*ConfigurationAttributes) ProtoMessage() {}
func (*ConfigurationAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_c7cb6c7dfd72e78e, []int{1}
}
func (m *ConfigurationAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigurationAttributes.Unmarshal(m, b)
}
func (m *ConfigurationAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigurationAttributes.Marshal(b, m, deterministic)
}
func (m *ConfigurationAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigurationAttributes.Merge(m, src)
}
func (m *ConfigurationAttributes) XXX_Size() int {
return xxx_messageInfo_ConfigurationAttributes.Size(m)
}
func (m *ConfigurationAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigurationAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigurationAttributes proto.InternalMessageInfo
func (m *ConfigurationAttributes) GetCpu() string {
if m != nil {
return m.Cpu
}
return ""
}
func init() {
proto.RegisterType((*Configuration)(nil), "google.devtools.resultstore.v2.Configuration")
proto.RegisterType((*Configuration_Id)(nil), "google.devtools.resultstore.v2.Configuration.Id")
proto.RegisterType((*ConfigurationAttributes)(nil), "google.devtools.resultstore.v2.ConfigurationAttributes")
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/configuration.proto", fileDescriptor_c7cb6c7dfd72e78e)
}
var fileDescriptor_c7cb6c7dfd72e78e = []byte{
// 335 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x4f, 0xb3, 0x40,
0x10, 0xc6, 0x03, 0xbc, 0x6f, 0x93, 0x4e, 0x6d, 0xac, 0x7b, 0x29, 0xe9, 0xc1, 0x34, 0xf5, 0x82,
0x69, 0xb2, 0x18, 0x3c, 0x78, 0xf0, 0xe2, 0x9f, 0x8b, 0xdc, 0x1a, 0xf4, 0x64, 0x62, 0x0c, 0x65,
0xd7, 0xcd, 0x26, 0xc0, 0xe0, 0xee, 0x42, 0xe2, 0x37, 0xf5, 0xe3, 0x18, 0x81, 0x2a, 0x18, 0x6b,
0xf5, 0x36, 0xcc, 0xf0, 0x7b, 0x9e, 0x99, 0x9d, 0x81, 0x40, 0x20, 0x8a, 0x94, 0xfb, 0x8c, 0x57,
0x06, 0x31, 0xd5, 0xbe, 0xe2, 0xba, 0x4c, 0x8d, 0x36, 0xa8, 0xb8, 0x5f, 0x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0x52, 0x94, 0xad, 0xc1, 0x7b, 0x78, 0xf5, 0x0c, 0x8b, 0x04, 0xb3, 0x1d,
0xdd, 0xaf, 0xac, 0xfb, 0xb0, 0xfd, 0x43, 0x60, 0x1a, 0xe7, 0x82, 0xa2, 0x12, 0xbe, 0xe0, 0x79,
0x7d, 0x4b, 0x7e, 0x53, 0x8a, 0x0b, 0xa9, 0xb7, 0xdd, 0xde, 0x79, 0xe7, 0x73, 0x3d, 0xa8, 0xa9,
0xd3, 0xb7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xad, 0xea, 0x27, 0xe2, 0x04, 0x03, 0x00, 0x00,
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,439 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/resultstore_file_download.proto
package resultstore
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Request object for GetFile
type GetFileRequest struct {
// This corresponds to the uri field in the File message.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// The offset for the first byte to return in the read, relative to the start
// of the resource.
//
// A `read_offset` that is negative or greater than the size of the resource
// will cause an `OUT_OF_RANGE` error.
ReadOffset int64 `protobuf:"varint,2,opt,name=read_offset,json=readOffset,proto3" json:"read_offset,omitempty"`
// The maximum number of `data` bytes the server is allowed to return in the
// sum of all `ReadResponse` messages. A `read_limit` of zero indicates that
// there is no limit, and a negative `read_limit` will cause an error.
//
// If the stream returns fewer bytes than allowed by the `read_limit` and no
// error occurred, the stream includes all data from the `read_offset` to the
// end of the resource.
ReadLimit int64 `protobuf:"varint,3,opt,name=read_limit,json=readLimit,proto3" json:"read_limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetFileRequest) Reset() { *m = GetFileRequest{} }
func (m *GetFileRequest) String() string { return proto.CompactTextString(m) }
func (*GetFileRequest) ProtoMessage() {}
func (*GetFileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_8107699981ff9308, []int{0}
}
func (m *GetFileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFileRequest.Unmarshal(m, b)
}
func (m *GetFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFileRequest.Marshal(b, m, deterministic)
}
func (m *GetFileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFileRequest.Merge(m, src)
}
func (m *GetFileRequest) XXX_Size() int {
return xxx_messageInfo_GetFileRequest.Size(m)
}
func (m *GetFileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetFileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetFileRequest proto.InternalMessageInfo
func (m *GetFileRequest) GetUri() string {
if m != nil {
return m.Uri
}
return ""
}
func (m *GetFileRequest) GetReadOffset() int64 {
if m != nil {
return m.ReadOffset
}
return 0
}
func (m *GetFileRequest) GetReadLimit() int64 {
if m != nil {
return m.ReadLimit
}
return 0
}
// Response object for GetFile
type GetFileResponse struct {
// The file data.
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetFileResponse) Reset() { *m = GetFileResponse{} }
func (m *GetFileResponse) String() string { return proto.CompactTextString(m) }
func (*GetFileResponse) ProtoMessage() {}
func (*GetFileResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_8107699981ff9308, []int{1}
}
func (m *GetFileResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFileResponse.Unmarshal(m, b)
}
func (m *GetFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFileResponse.Marshal(b, m, deterministic)
}
func (m *GetFileResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFileResponse.Merge(m, src)
}
func (m *GetFileResponse) XXX_Size() int {
return xxx_messageInfo_GetFileResponse.Size(m)
}
func (m *GetFileResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetFileResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetFileResponse proto.InternalMessageInfo
func (m *GetFileResponse) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
// Request object for GetFileTail
type GetFileTailRequest struct {
// This corresponds to the uri field in the File message.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// The offset for the first byte to return in the read, relative to the end
// of the resource.
//
// A `read_offset` that is negative or greater than the size of the resource
// will cause an `OUT_OF_RANGE` error.
ReadOffset int64 `protobuf:"varint,2,opt,name=read_offset,json=readOffset,proto3" json:"read_offset,omitempty"`
// The maximum number of `data` bytes the server is allowed to return. The
// server will return bytes starting from the tail of the file.
//
// A `read_limit` of zero indicates that there is no limit, and a negative
// `read_limit` will cause an error.
ReadLimit int64 `protobuf:"varint,3,opt,name=read_limit,json=readLimit,proto3" json:"read_limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetFileTailRequest) Reset() { *m = GetFileTailRequest{} }
func (m *GetFileTailRequest) String() string { return proto.CompactTextString(m) }
func (*GetFileTailRequest) ProtoMessage() {}
func (*GetFileTailRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_8107699981ff9308, []int{2}
}
func (m *GetFileTailRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFileTailRequest.Unmarshal(m, b)
}
func (m *GetFileTailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFileTailRequest.Marshal(b, m, deterministic)
}
func (m *GetFileTailRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFileTailRequest.Merge(m, src)
}
func (m *GetFileTailRequest) XXX_Size() int {
return xxx_messageInfo_GetFileTailRequest.Size(m)
}
func (m *GetFileTailRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetFileTailRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetFileTailRequest proto.InternalMessageInfo
func (m *GetFileTailRequest) GetUri() string {
if m != nil {
return m.Uri
}
return ""
}
func (m *GetFileTailRequest) GetReadOffset() int64 {
if m != nil {
return m.ReadOffset
}
return 0
}
func (m *GetFileTailRequest) GetReadLimit() int64 {
if m != nil {
return m.ReadLimit
}
return 0
}
// Response object for GetFileTail
type GetFileTailResponse struct {
// The file data, encoded with UTF-8.
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetFileTailResponse) Reset() { *m = GetFileTailResponse{} }
func (m *GetFileTailResponse) String() string { return proto.CompactTextString(m) }
func (*GetFileTailResponse) ProtoMessage() {}
func (*GetFileTailResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_8107699981ff9308, []int{3}
}
func (m *GetFileTailResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFileTailResponse.Unmarshal(m, b)
}
func (m *GetFileTailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFileTailResponse.Marshal(b, m, deterministic)
}
func (m *GetFileTailResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFileTailResponse.Merge(m, src)
}
func (m *GetFileTailResponse) XXX_Size() int {
return xxx_messageInfo_GetFileTailResponse.Size(m)
}
func (m *GetFileTailResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetFileTailResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetFileTailResponse proto.InternalMessageInfo
func (m *GetFileTailResponse) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*GetFileRequest)(nil), "google.devtools.resultstore.v2.GetFileRequest")
proto.RegisterType((*GetFileResponse)(nil), "google.devtools.resultstore.v2.GetFileResponse")
proto.RegisterType((*GetFileTailRequest)(nil), "google.devtools.resultstore.v2.GetFileTailRequest")
proto.RegisterType((*GetFileTailResponse)(nil), "google.devtools.resultstore.v2.GetFileTailResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ResultStoreFileDownloadClient is the client API for ResultStoreFileDownload service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ResultStoreFileDownloadClient interface {
// Retrieves the File with the given uri.
// returns a stream of bytes to be stitched together in order.
//
// An error will be reported in the following cases:
// - If the File is not found.
// - If the given File uri is badly formatted.
GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (ResultStoreFileDownload_GetFileClient, error)
// Retrieves the tail of a File with the given uri.
//
// An error will be reported in the following cases:
// - If the File is not found.
// - If the given File uri is badly formatted.
GetFileTail(ctx context.Context, in *GetFileTailRequest, opts ...grpc.CallOption) (*GetFileTailResponse, error)
}
type resultStoreFileDownloadClient struct {
cc *grpc.ClientConn
}
func NewResultStoreFileDownloadClient(cc *grpc.ClientConn) ResultStoreFileDownloadClient {
return &resultStoreFileDownloadClient{cc}
}
func (c *resultStoreFileDownloadClient) GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (ResultStoreFileDownload_GetFileClient, error) {
stream, err := c.cc.NewStream(ctx, &_ResultStoreFileDownload_serviceDesc.Streams[0], "/google.devtools.resultstore.v2.ResultStoreFileDownload/GetFile", opts...)
if err != nil {
return nil, err
}
x := &resultStoreFileDownloadGetFileClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type ResultStoreFileDownload_GetFileClient interface {
Recv() (*GetFileResponse, error)
grpc.ClientStream
}
type resultStoreFileDownloadGetFileClient struct {
grpc.ClientStream
}
func (x *resultStoreFileDownloadGetFileClient) Recv() (*GetFileResponse, error) {
m := new(GetFileResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *resultStoreFileDownloadClient) GetFileTail(ctx context.Context, in *GetFileTailRequest, opts ...grpc.CallOption) (*GetFileTailResponse, error) {
out := new(GetFileTailResponse)
err := c.cc.Invoke(ctx, "/google.devtools.resultstore.v2.ResultStoreFileDownload/GetFileTail", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ResultStoreFileDownloadServer is the server API for ResultStoreFileDownload service.
type ResultStoreFileDownloadServer interface {
// Retrieves the File with the given uri.
// returns a stream of bytes to be stitched together in order.
//
// An error will be reported in the following cases:
// - If the File is not found.
// - If the given File uri is badly formatted.
GetFile(*GetFileRequest, ResultStoreFileDownload_GetFileServer) error
// Retrieves the tail of a File with the given uri.
//
// An error will be reported in the following cases:
// - If the File is not found.
// - If the given File uri is badly formatted.
GetFileTail(context.Context, *GetFileTailRequest) (*GetFileTailResponse, error)
}
func RegisterResultStoreFileDownloadServer(s *grpc.Server, srv ResultStoreFileDownloadServer) {
s.RegisterService(&_ResultStoreFileDownload_serviceDesc, srv)
}
func _ResultStoreFileDownload_GetFile_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(GetFileRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ResultStoreFileDownloadServer).GetFile(m, &resultStoreFileDownloadGetFileServer{stream})
}
type ResultStoreFileDownload_GetFileServer interface {
Send(*GetFileResponse) error
grpc.ServerStream
}
type resultStoreFileDownloadGetFileServer struct {
grpc.ServerStream
}
func (x *resultStoreFileDownloadGetFileServer) Send(m *GetFileResponse) error {
return x.ServerStream.SendMsg(m)
}
func _ResultStoreFileDownload_GetFileTail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetFileTailRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ResultStoreFileDownloadServer).GetFileTail(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.resultstore.v2.ResultStoreFileDownload/GetFileTail",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ResultStoreFileDownloadServer).GetFileTail(ctx, req.(*GetFileTailRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ResultStoreFileDownload_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.resultstore.v2.ResultStoreFileDownload",
HandlerType: (*ResultStoreFileDownloadServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetFileTail",
Handler: _ResultStoreFileDownload_GetFileTail_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "GetFile",
Handler: _ResultStoreFileDownload_GetFile_Handler,
ServerStreams: true,
},
},
Metadata: "google/devtools/resultstore/v2/resultstore_file_download.proto",
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/resultstore_file_download.proto", fileDescriptor_8107699981ff9308)
}
var fileDescriptor_8107699981ff9308 = []byte{
// 384 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xc1, 0x4a, 0xe3, 0x40,
0x18, 0x26, 0xed, 0xb2, 0x4b, 0xa7, 0xcb, 0x6e, 0x99, 0x65, 0x69, 0x28, 0xdb, 0xb5, 0x04, 0x84,
0xda, 0xc3, 0x8c, 0xa4, 0x47, 0xd1, 0x83, 0x88, 0x22, 0x08, 0x4a, 0xf4, 0xe4, 0x25, 0x4c, 0xcd,
0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0xed, 0x82, 0x09, 0xf9, 0x75, 0x76, 0xb6,
0xd0, 0x9f, 0xa5, 0x39, 0xab, 0x2d, 0xf9, 0x8f, 0x0d, 0xd4, 0x0d, 0x6c, 0x9c, 0xe7, 0x26, 0x4e,
0xc3, 0x39, 0xa8, 0xd2, 0xc7, 0x77, 0x0e, 0xfa, 0x51, 0xe9, 0x60, 0x42, 0xde, 0xff, 0x09, 0x64,
0x39, 0xe3, 0x1e, 0x5d, 0xbb, 0xbf, 0x34, 0xe7, 0xb9, 0xb7, 0x4f, 0xcf, 0xf7, 0x0d, 0x8c, 0x3b,
0x66, 0x23, 0x6e, 0x8a, 0x5c, 0xec, 0x9a, 0x55, 0xa0, 0xa3, 0xc5, 0xb6, 0x83, 0x1f, 0x1c, 0xd4,
0xae, 0x7d, 0x10, 0xf6, 0xd7, 0x14, 0xaf, 0xa5, 0xdc, 0x1b, 0x7f, 0x8a, 0x53, 0x99, 0xea, 0x5b,
0x53, 0x5d, 0xfc, 0x77, 0xd9, 0x94, 0x66, 0x42, 0xd2, 0xd1, 0x62, 0x7f, 0x86, 0xbc, 0x2b, 0x98,
0x7e, 0x20, 0x7c, 0xe6, 0x5c, 0x1e, 0x57, 0x1d, 0x09, 0x48, 0x96, 0x26, 0x04, 0xf2, 0x84, 0x26,
0x3c, 0xb5, 0xeb, 0x49, 0xcb, 0x2b, 0x96, 0x09, 0xb5, 0xea, 0x7d, 0xec, 0xd4, 0xca, 0xc9, 0x77,
0xcb, 0x1a, 0xbf, 0x04, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x3d, 0x87, 0x5d, 0x54, 0x03, 0x00, 0x00,
}

View file

@ -0,0 +1,444 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/resultstore/v2/target.proto
package resultstore
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// These correspond to the suffix of the rule name. Eg cc_test has type TEST.
type TargetType int32
const (
// Unspecified by the build system.
TargetType_TARGET_TYPE_UNSPECIFIED TargetType = 0
// An application e.g. ios_application.
TargetType_APPLICATION TargetType = 1
// A binary target e.g. cc_binary.
TargetType_BINARY TargetType = 2
// A library target e.g. java_library
TargetType_LIBRARY TargetType = 3
// A package
TargetType_PACKAGE TargetType = 4
// Any test target, in bazel that means a rule with a '_test' suffix.
TargetType_TEST TargetType = 5
)
var TargetType_name = map[int32]string{
0: "TARGET_TYPE_UNSPECIFIED",
1: "APPLICATION",
2: "BINARY",
3: "LIBRARY",
4: "PACKAGE",
5: "TEST",
}
var TargetType_value = map[string]int32{
"TARGET_TYPE_UNSPECIFIED": 0,
"APPLICATION": 1,
"BINARY": 2,
"LIBRARY": 3,
"PACKAGE": 4,
"TEST": 5,
}
func (x TargetType) String() string {
return proto.EnumName(TargetType_name, int32(x))
}
func (TargetType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b4e9059e809e996c, []int{0}
}
// Indicates how big the user indicated the test action was.
type TestSize int32
const (
// Unspecified by the user.
TestSize_TEST_SIZE_UNSPECIFIED TestSize = 0
// Unit test taking less than 1 minute.
TestSize_SMALL TestSize = 1
// Integration tests taking less than 5 minutes.
TestSize_MEDIUM TestSize = 2
// End-to-end tests taking less than 15 minutes.
TestSize_LARGE TestSize = 3
// Even bigger than LARGE.
TestSize_ENORMOUS TestSize = 4
// Something that doesn't fit into the above categories.
TestSize_OTHER_SIZE TestSize = 5
)
var TestSize_name = map[int32]string{
0: "TEST_SIZE_UNSPECIFIED",
1: "SMALL",
2: "MEDIUM",
3: "LARGE",
4: "ENORMOUS",
5: "OTHER_SIZE",
}
var TestSize_value = map[string]int32{
"TEST_SIZE_UNSPECIFIED": 0,
"SMALL": 1,
"MEDIUM": 2,
"LARGE": 3,
"ENORMOUS": 4,
"OTHER_SIZE": 5,
}
func (x TestSize) String() string {
return proto.EnumName(TestSize_name, int32(x))
}
func (TestSize) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b4e9059e809e996c, []int{1}
}
// Each Target represents data for a given target in a given Invocation.
// ConfiguredTarget and Action resources under each Target contain the bulk of
// the data.
type Target struct {
// The resource name. Its format must be:
// invocations/${INVOCATION_ID}/targets/${TARGET_ID}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource ID components that identify the Target. They must match the
// resource name after proper encoding.
Id *Target_Id `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// This is the aggregate status of the target.
StatusAttributes *StatusAttributes `protobuf:"bytes,3,opt,name=status_attributes,json=statusAttributes,proto3" json:"status_attributes,omitempty"`
// When this target started and its duration.
Timing *Timing `protobuf:"bytes,4,opt,name=timing,proto3" json:"timing,omitempty"`
// Attributes that apply to all targets.
TargetAttributes *TargetAttributes `protobuf:"bytes,5,opt,name=target_attributes,json=targetAttributes,proto3" json:"target_attributes,omitempty"`
// Attributes that apply to all test actions under this target.
TestAttributes *TestAttributes `protobuf:"bytes,6,opt,name=test_attributes,json=testAttributes,proto3" json:"test_attributes,omitempty"`
// Arbitrary name-value pairs.
// This is implemented as a multi-map. Multiple properties are allowed with
// the same key. Properties will be returned in lexicographical order by key.
Properties []*Property `protobuf:"bytes,7,rep,name=properties,proto3" json:"properties,omitempty"`
// A list of file references for target level files.
// The file IDs must be unique within this list. Duplicate file IDs will
// result in an error. Files will be returned in lexicographical order by ID.
// Use this field to specify outputs not related to a configuration.
Files []*File `protobuf:"bytes,8,rep,name=files,proto3" json:"files,omitempty"`
// Provides a hint to clients as to whether to display the Target to users.
// If true then clients likely want to display the Target by default.
// Once set to true, this may not be set back to false.
IsVisible bool `protobuf:"varint,9,opt,name=is_visible,json=isVisible,proto3" json:"is_visible,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Target) Reset() { *m = Target{} }
func (m *Target) String() string { return proto.CompactTextString(m) }
func (*Target) ProtoMessage() {}
func (*Target) Descriptor() ([]byte, []int) {
return fileDescriptor_b4e9059e809e996c, []int{0}
}
func (m *Target) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Target.Unmarshal(m, b)
}
func (m *Target) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Target.Marshal(b, m, deterministic)
}
func (m *Target) XXX_Merge(src proto.Message) {
xxx_messageInfo_Target.Merge(m, src)
}
func (m *Target) XXX_Size() int {
return xxx_messageInfo_Target.Size(m)
}
func (m *Target) XXX_DiscardUnknown() {
xxx_messageInfo_Target.DiscardUnknown(m)
}
var xxx_messageInfo_Target proto.InternalMessageInfo
func (m *Target) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Target) GetId() *Target_Id {
if m != nil {
return m.Id
}
return nil
}
func (m *Target) GetStatusAttributes() *StatusAttributes {
if m != nil {
return m.StatusAttributes
}
return nil
}
func (m *Target) GetTiming() *Timing {
if m != nil {
return m.Timing
}
return nil
}
func (m *Target) GetTargetAttributes() *TargetAttributes {
if m != nil {
return m.TargetAttributes
}
return nil
}
func (m *Target) GetTestAttributes() *TestAttributes {
if m != nil {
return m.TestAttributes
}
return nil
}
func (m *Target) GetProperties() []*Property {
if m != nil {
return m.Properties
}
return nil
}
func (m *Target) GetFiles() []*File {
if m != nil {
return m.Files
}
return nil
}
func (m *Target) GetIsVisible() bool {
if m != nil {
return m.IsVisible
}
return false
}
// The resource ID components that identify the Target.
type Target_Id struct {
// The Invocation ID.
InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
// The Target ID.
TargetId string `protobuf:"bytes,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Target_Id) Reset() { *m = Target_Id{} }
func (m *Target_Id) String() string { return proto.CompactTextString(m) }
func (*Target_Id) ProtoMessage() {}
func (*Target_Id) Descriptor() ([]byte, []int) {
return fileDescriptor_b4e9059e809e996c, []int{0, 0}
}
func (m *Target_Id) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Target_Id.Unmarshal(m, b)
}
func (m *Target_Id) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Target_Id.Marshal(b, m, deterministic)
}
func (m *Target_Id) XXX_Merge(src proto.Message) {
xxx_messageInfo_Target_Id.Merge(m, src)
}
func (m *Target_Id) XXX_Size() int {
return xxx_messageInfo_Target_Id.Size(m)
}
func (m *Target_Id) XXX_DiscardUnknown() {
xxx_messageInfo_Target_Id.DiscardUnknown(m)
}
var xxx_messageInfo_Target_Id proto.InternalMessageInfo
func (m *Target_Id) GetInvocationId() string {
if m != nil {
return m.InvocationId
}
return ""
}
func (m *Target_Id) GetTargetId() string {
if m != nil {
return m.TargetId
}
return ""
}
// Attributes that apply to all targets.
type TargetAttributes struct {
// If known, indicates the type of this target. In bazel this corresponds
// to the rule-suffix.
Type TargetType `protobuf:"varint,1,opt,name=type,proto3,enum=google.devtools.resultstore.v2.TargetType" json:"type,omitempty"`
// If known, the main language of this target, e.g. java, cc, python, etc.
Language Language `protobuf:"varint,2,opt,name=language,proto3,enum=google.devtools.resultstore.v2.Language" json:"language,omitempty"`
// The tags attribute of the build rule. These should be short, descriptive
// words, and there should only be a few of them.
// This is implemented as a set. All tags will be unique. Any duplicate tags
// will be ignored. Tags will be returned in lexicographical order.
Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TargetAttributes) Reset() { *m = TargetAttributes{} }
func (m *TargetAttributes) String() string { return proto.CompactTextString(m) }
func (*TargetAttributes) ProtoMessage() {}
func (*TargetAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_b4e9059e809e996c, []int{1}
}
func (m *TargetAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TargetAttributes.Unmarshal(m, b)
}
func (m *TargetAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TargetAttributes.Marshal(b, m, deterministic)
}
func (m *TargetAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_TargetAttributes.Merge(m, src)
}
func (m *TargetAttributes) XXX_Size() int {
return xxx_messageInfo_TargetAttributes.Size(m)
}
func (m *TargetAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_TargetAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_TargetAttributes proto.InternalMessageInfo
func (m *TargetAttributes) GetType() TargetType {
if m != nil {
return m.Type
}
return TargetType_TARGET_TYPE_UNSPECIFIED
}
func (m *TargetAttributes) GetLanguage() Language {
if m != nil {
return m.Language
}
return Language_LANGUAGE_UNSPECIFIED
}
func (m *TargetAttributes) GetTags() []string {
if m != nil {
return m.Tags
}
return nil
}
// Attributes that apply only to test actions under this target.
type TestAttributes struct {
// Indicates how big the user indicated the test action was.
Size TestSize `protobuf:"varint,1,opt,name=size,proto3,enum=google.devtools.resultstore.v2.TestSize" json:"size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestAttributes) Reset() { *m = TestAttributes{} }
func (m *TestAttributes) String() string { return proto.CompactTextString(m) }
func (*TestAttributes) ProtoMessage() {}
func (*TestAttributes) Descriptor() ([]byte, []int) {
return fileDescriptor_b4e9059e809e996c, []int{2}
}
func (m *TestAttributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestAttributes.Unmarshal(m, b)
}
func (m *TestAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestAttributes.Marshal(b, m, deterministic)
}
func (m *TestAttributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestAttributes.Merge(m, src)
}
func (m *TestAttributes) XXX_Size() int {
return xxx_messageInfo_TestAttributes.Size(m)
}
func (m *TestAttributes) XXX_DiscardUnknown() {
xxx_messageInfo_TestAttributes.DiscardUnknown(m)
}
var xxx_messageInfo_TestAttributes proto.InternalMessageInfo
func (m *TestAttributes) GetSize() TestSize {
if m != nil {
return m.Size
}
return TestSize_TEST_SIZE_UNSPECIFIED
}
func init() {
proto.RegisterEnum("google.devtools.resultstore.v2.TargetType", TargetType_name, TargetType_value)
proto.RegisterEnum("google.devtools.resultstore.v2.TestSize", TestSize_name, TestSize_value)
proto.RegisterType((*Target)(nil), "google.devtools.resultstore.v2.Target")
proto.RegisterType((*Target_Id)(nil), "google.devtools.resultstore.v2.Target.Id")
proto.RegisterType((*TargetAttributes)(nil), "google.devtools.resultstore.v2.TargetAttributes")
proto.RegisterType((*TestAttributes)(nil), "google.devtools.resultstore.v2.TestAttributes")
}
func init() {
proto.RegisterFile("google/devtools/resultstore/v2/target.proto", fileDescriptor_b4e9059e809e996c)
}
var fileDescriptor_b4e9059e809e996c = []byte{
// 634 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xed, 0x6a, 0xdb, 0x4a,
0x10, 0xbd, 0xb2, 0x65, 0x47, 0x1e, 0xe7, 0x3a, 0xba, 0x0b, 0x97, 0xaa, 0x09, 0x2d, 0xc6, 0x2d,
0xc5, 0x49, 0x41, 0x2e, 0xee, 0xaf, 0x7e, 0x10, 0x50, 0x12, 0x25, 0x11, 0xf5, 0x87, 0x58, 0x29,
0x2d, 0x09, 0x14, 0xa3, 0x44, 0x5b, 0xb1, 0x45, 0xd6, 0xba, 0xda, 0xb5, 0x21, 0x79, 0x95, 0xbe,
0x42, 0x1f, 0xb2,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, 0xfd, 0x1d, 0x00, 0x00,
0xff, 0xff, 0xc9, 0x5f, 0x96, 0x8a, 0x90, 0x05, 0x00, 0x00,
}

View file

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

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,785 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/sourcerepo/v1/sourcerepo.proto
package sourcerepo
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_ "google.golang.org/genproto/googleapis/api/annotations"
v1 "google.golang.org/genproto/googleapis/iam/v1"
math "math"
)
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,proto3" json:"name,omitempty"`
// The disk usage of the repo, in bytes. Read-only field. Size is only
// returned by GetRepo.
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
// URL to clone the repository from Google Cloud Source Repositories.
// Read-only field.
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
// How this repository mirrors a repository managed by another service.
// Read-only field.
MirrorConfig *MirrorConfig `protobuf:"bytes,4,opt,name=mirror_config,json=mirrorConfig,proto3" json:"mirror_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Repo) Reset() { *m = Repo{} }
func (m *Repo) String() string { return proto.CompactTextString(m) }
func (*Repo) ProtoMessage() {}
func (*Repo) Descriptor() ([]byte, []int) {
return fileDescriptor_0e2c2c58455430a2, []int{0}
}
func (m *Repo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Repo.Unmarshal(m, b)
}
func (m *Repo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Repo.Marshal(b, m, deterministic)
}
func (m *Repo) XXX_Merge(src proto.Message) {
xxx_messageInfo_Repo.Merge(m, src)
}
func (m *Repo) XXX_Size() int {
return xxx_messageInfo_Repo.Size(m)
}
func (m *Repo) XXX_DiscardUnknown() {
xxx_messageInfo_Repo.DiscardUnknown(m)
}
var xxx_messageInfo_Repo proto.InternalMessageInfo
func (m *Repo) GetName() string {
if m != nil {
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,proto3" json:"url,omitempty"`
// ID of the webhook listening to updates to trigger mirroring.
// Removing this webhook from the other hosting service will stop
// Google Cloud Source Repositories from receiving notifications,
// and thereby disabling mirroring.
WebhookId string `protobuf:"bytes,2,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
// ID of the SSH deploy key at the other hosting service.
// Removing this key from the other service would deauthorize
// Google Cloud Source Repositories from mirroring.
DeployKeyId string `protobuf:"bytes,3,opt,name=deploy_key_id,json=deployKeyId,proto3" json:"deploy_key_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MirrorConfig) Reset() { *m = MirrorConfig{} }
func (m *MirrorConfig) String() string { return proto.CompactTextString(m) }
func (*MirrorConfig) ProtoMessage() {}
func (*MirrorConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_0e2c2c58455430a2, []int{1}
}
func (m *MirrorConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MirrorConfig.Unmarshal(m, b)
}
func (m *MirrorConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MirrorConfig.Marshal(b, m, deterministic)
}
func (m *MirrorConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_MirrorConfig.Merge(m, src)
}
func (m *MirrorConfig) XXX_Size() int {
return xxx_messageInfo_MirrorConfig.Size(m)
}
func (m *MirrorConfig) XXX_DiscardUnknown() {
xxx_messageInfo_MirrorConfig.DiscardUnknown(m)
}
var xxx_messageInfo_MirrorConfig proto.InternalMessageInfo
func (m *MirrorConfig) GetUrl() string {
if m != nil {
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,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetRepoRequest) Reset() { *m = GetRepoRequest{} }
func (m *GetRepoRequest) String() string { return proto.CompactTextString(m) }
func (*GetRepoRequest) ProtoMessage() {}
func (*GetRepoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0e2c2c58455430a2, []int{2}
}
func (m *GetRepoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetRepoRequest.Unmarshal(m, b)
}
func (m *GetRepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetRepoRequest.Marshal(b, m, deterministic)
}
func (m *GetRepoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRepoRequest.Merge(m, src)
}
func (m *GetRepoRequest) XXX_Size() int {
return xxx_messageInfo_GetRepoRequest.Size(m)
}
func (m *GetRepoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRepoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRepoRequest proto.InternalMessageInfo
func (m *GetRepoRequest) GetName() string {
if m != nil {
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,proto3" json:"name,omitempty"`
// Maximum number of repositories to return; between 1 and 500.
// If not set or zero, defaults to 100 at the server.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Resume listing repositories where a prior ListReposResponse
// left off. This is an opaque token that must be obtained from
// a recent, prior ListReposResponse's next_page_token field.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListReposRequest) Reset() { *m = ListReposRequest{} }
func (m *ListReposRequest) String() string { return proto.CompactTextString(m) }
func (*ListReposRequest) ProtoMessage() {}
func (*ListReposRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0e2c2c58455430a2, []int{3}
}
func (m *ListReposRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListReposRequest.Unmarshal(m, b)
}
func (m *ListReposRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListReposRequest.Marshal(b, m, deterministic)
}
func (m *ListReposRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListReposRequest.Merge(m, src)
}
func (m *ListReposRequest) XXX_Size() int {
return xxx_messageInfo_ListReposRequest.Size(m)
}
func (m *ListReposRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListReposRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListReposRequest proto.InternalMessageInfo
func (m *ListReposRequest) GetName() string {
if m != nil {
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,proto3" json:"repos,omitempty"`
// If non-empty, additional repositories exist within the project. These
// can be retrieved by including this value in the next ListReposRequest's
// page_token field.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListReposResponse) Reset() { *m = ListReposResponse{} }
func (m *ListReposResponse) String() string { return proto.CompactTextString(m) }
func (*ListReposResponse) ProtoMessage() {}
func (*ListReposResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0e2c2c58455430a2, []int{4}
}
func (m *ListReposResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListReposResponse.Unmarshal(m, b)
}
func (m *ListReposResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListReposResponse.Marshal(b, m, deterministic)
}
func (m *ListReposResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListReposResponse.Merge(m, src)
}
func (m *ListReposResponse) XXX_Size() int {
return xxx_messageInfo_ListReposResponse.Size(m)
}
func (m *ListReposResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListReposResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListReposResponse proto.InternalMessageInfo
func (m *ListReposResponse) GetRepos() []*Repo {
if m != nil {
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,proto3" json:"parent,omitempty"`
// The repo to create. Only name should be set; setting other fields
// is an error. The project in the name should match the parent field.
Repo *Repo `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateRepoRequest) Reset() { *m = CreateRepoRequest{} }
func (m *CreateRepoRequest) String() string { return proto.CompactTextString(m) }
func (*CreateRepoRequest) ProtoMessage() {}
func (*CreateRepoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0e2c2c58455430a2, []int{5}
}
func (m *CreateRepoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateRepoRequest.Unmarshal(m, b)
}
func (m *CreateRepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateRepoRequest.Marshal(b, m, deterministic)
}
func (m *CreateRepoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateRepoRequest.Merge(m, src)
}
func (m *CreateRepoRequest) XXX_Size() int {
return xxx_messageInfo_CreateRepoRequest.Size(m)
}
func (m *CreateRepoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateRepoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateRepoRequest proto.InternalMessageInfo
func (m *CreateRepoRequest) GetParent() string {
if m != nil {
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,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteRepoRequest) Reset() { *m = DeleteRepoRequest{} }
func (m *DeleteRepoRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteRepoRequest) ProtoMessage() {}
func (*DeleteRepoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0e2c2c58455430a2, []int{6}
}
func (m *DeleteRepoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteRepoRequest.Unmarshal(m, b)
}
func (m *DeleteRepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteRepoRequest.Marshal(b, m, deterministic)
}
func (m *DeleteRepoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteRepoRequest.Merge(m, src)
}
func (m *DeleteRepoRequest) XXX_Size() int {
return xxx_messageInfo_DeleteRepoRequest.Size(m)
}
func (m *DeleteRepoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteRepoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteRepoRequest proto.InternalMessageInfo
func (m *DeleteRepoRequest) GetName() string {
if m != nil {
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
// SourceRepoClient is the client API for SourceRepo service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SourceRepoClient interface {
// Returns all repos belonging to a project. The sizes of the repos are
// not set by ListRepos. To get the size of a repo, use GetRepo.
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) (*empty.Empty, error)
// Sets the access control policy on the specified resource. Replaces any
// existing policy.
SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
// Gets the access control policy for a resource.
// Returns an empty policy if the resource exists and does not have a policy
// set.
GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
// Returns permissions that a caller has on the specified resource.
// If the resource does not exist, this will return an empty set of
// permissions, not a NOT_FOUND error.
TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.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 := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/ListRepos", in, out, 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 := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetRepo", in, out, 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 := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/CreateRepo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/DeleteRepo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
out := new(v1.Policy)
err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/SetIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
out := new(v1.Policy)
err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) {
out := new(v1.TestIamPermissionsResponse)
err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/TestIamPermissions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// SourceRepoServer is the server API for SourceRepo service.
type SourceRepoServer interface {
// Returns all repos belonging to a project. The sizes of the repos are
// not set by ListRepos. To get the size of a repo, use GetRepo.
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) (*empty.Empty, error)
// Sets the access control policy on the specified resource. Replaces any
// existing policy.
SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
// Gets the access control policy for a resource.
// Returns an empty policy if the resource exists and does not have a policy
// set.
GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
// Returns permissions that a caller has on the specified resource.
// If the resource does not exist, this will return an empty set of
// permissions, not a NOT_FOUND error.
TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.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(v1.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.(*v1.SetIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.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.(*v1.GetIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.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.(*v1.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", fileDescriptor_0e2c2c58455430a2)
}
var fileDescriptor_0e2c2c58455430a2 = []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, 0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