blob: 31a0b3d431f96099d71d1120439942f0a1336de5 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/scheduler/api/scheduler/v1/triggers.proto
package scheduler
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_struct "github.com/golang/protobuf/ptypes/struct"
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.ProtoPackageIsVersion3 // please upgrade the proto package
// Trigger can be emitted by triggering tasks (such as Gitiles tasks) or through
// API and consumed by triggered tasks (such as Buildbucket tasks).
type Trigger struct {
// Unique identifier of the trigger.
//
// It is used to deduplicate and hence provide idempotency for adding
// a trigger. Each job has an internal buffer with IDs of recent triggers it
// received. Triggers that have already been seen are silently skipped. The
// buffer is periodically cleaned, so old IDs can be potentially reused,
// though you should not rely on that.
//
// Must be provided by whoever emits the trigger. Can be anything at all, as
// long as it is unique.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Optional user friendly name for this trigger that shows up in Scheduler UI.
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// Optional HTTP link to display in Scheduler UI.
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
// Actual trigger data. Its type defines how the trigger will be processed
// by the Scheduler, see corresponding protos.
//
// Types that are valid to be assigned to Payload:
// *Trigger_Cron
// *Trigger_Webui
// *Trigger_Noop
// *Trigger_Gitiles
// *Trigger_Buildbucket
Payload isTrigger_Payload `protobuf_oneof:"payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Trigger) Reset() { *m = Trigger{} }
func (m *Trigger) String() string { return proto.CompactTextString(m) }
func (*Trigger) ProtoMessage() {}
func (*Trigger) Descriptor() ([]byte, []int) {
return fileDescriptor_70a792ba8b927069, []int{0}
}
func (m *Trigger) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Trigger.Unmarshal(m, b)
}
func (m *Trigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Trigger.Marshal(b, m, deterministic)
}
func (m *Trigger) XXX_Merge(src proto.Message) {
xxx_messageInfo_Trigger.Merge(m, src)
}
func (m *Trigger) XXX_Size() int {
return xxx_messageInfo_Trigger.Size(m)
}
func (m *Trigger) XXX_DiscardUnknown() {
xxx_messageInfo_Trigger.DiscardUnknown(m)
}
var xxx_messageInfo_Trigger proto.InternalMessageInfo
func (m *Trigger) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Trigger) GetTitle() string {
if m != nil {
return m.Title
}
return ""
}
func (m *Trigger) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
type isTrigger_Payload interface {
isTrigger_Payload()
}
type Trigger_Cron struct {
Cron *CronTrigger `protobuf:"bytes,40,opt,name=cron,proto3,oneof"`
}
type Trigger_Webui struct {
Webui *WebUITrigger `protobuf:"bytes,41,opt,name=webui,proto3,oneof"`
}
type Trigger_Noop struct {
Noop *NoopTrigger `protobuf:"bytes,50,opt,name=noop,proto3,oneof"`
}
type Trigger_Gitiles struct {
Gitiles *GitilesTrigger `protobuf:"bytes,51,opt,name=gitiles,proto3,oneof"`
}
type Trigger_Buildbucket struct {
Buildbucket *BuildbucketTrigger `protobuf:"bytes,52,opt,name=buildbucket,proto3,oneof"`
}
func (*Trigger_Cron) isTrigger_Payload() {}
func (*Trigger_Webui) isTrigger_Payload() {}
func (*Trigger_Noop) isTrigger_Payload() {}
func (*Trigger_Gitiles) isTrigger_Payload() {}
func (*Trigger_Buildbucket) isTrigger_Payload() {}
func (m *Trigger) GetPayload() isTrigger_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *Trigger) GetCron() *CronTrigger {
if x, ok := m.GetPayload().(*Trigger_Cron); ok {
return x.Cron
}
return nil
}
func (m *Trigger) GetWebui() *WebUITrigger {
if x, ok := m.GetPayload().(*Trigger_Webui); ok {
return x.Webui
}
return nil
}
func (m *Trigger) GetNoop() *NoopTrigger {
if x, ok := m.GetPayload().(*Trigger_Noop); ok {
return x.Noop
}
return nil
}
func (m *Trigger) GetGitiles() *GitilesTrigger {
if x, ok := m.GetPayload().(*Trigger_Gitiles); ok {
return x.Gitiles
}
return nil
}
func (m *Trigger) GetBuildbucket() *BuildbucketTrigger {
if x, ok := m.GetPayload().(*Trigger_Buildbucket); ok {
return x.Buildbucket
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Trigger) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Trigger_Cron)(nil),
(*Trigger_Webui)(nil),
(*Trigger_Noop)(nil),
(*Trigger_Gitiles)(nil),
(*Trigger_Buildbucket)(nil),
}
}
// CronTrigger is used internally by Scheduler to implement periodic jobs.
//
// It is emitted by the cron state machines whenever it decides the scheduler
// should launch the invocation.
//
// Note: such triggers can't be scheduled through external Scheduler API. They
// may appear in the API responses though.
type CronTrigger struct {
Generation int64 `protobuf:"varint,1,opt,name=generation,proto3" json:"generation,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CronTrigger) Reset() { *m = CronTrigger{} }
func (m *CronTrigger) String() string { return proto.CompactTextString(m) }
func (*CronTrigger) ProtoMessage() {}
func (*CronTrigger) Descriptor() ([]byte, []int) {
return fileDescriptor_70a792ba8b927069, []int{1}
}
func (m *CronTrigger) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CronTrigger.Unmarshal(m, b)
}
func (m *CronTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CronTrigger.Marshal(b, m, deterministic)
}
func (m *CronTrigger) XXX_Merge(src proto.Message) {
xxx_messageInfo_CronTrigger.Merge(m, src)
}
func (m *CronTrigger) XXX_Size() int {
return xxx_messageInfo_CronTrigger.Size(m)
}
func (m *CronTrigger) XXX_DiscardUnknown() {
xxx_messageInfo_CronTrigger.DiscardUnknown(m)
}
var xxx_messageInfo_CronTrigger proto.InternalMessageInfo
func (m *CronTrigger) GetGeneration() int64 {
if m != nil {
return m.Generation
}
return 0
}
// WebUITrigger is emitted whenever users click "Trigger" button in UI.
//
// Note: such triggers can't be scheduled through external Scheduler API (to
// avoid confusion). They may appear in the API responses though.
type WebUITrigger struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebUITrigger) Reset() { *m = WebUITrigger{} }
func (m *WebUITrigger) String() string { return proto.CompactTextString(m) }
func (*WebUITrigger) ProtoMessage() {}
func (*WebUITrigger) Descriptor() ([]byte, []int) {
return fileDescriptor_70a792ba8b927069, []int{2}
}
func (m *WebUITrigger) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebUITrigger.Unmarshal(m, b)
}
func (m *WebUITrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebUITrigger.Marshal(b, m, deterministic)
}
func (m *WebUITrigger) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebUITrigger.Merge(m, src)
}
func (m *WebUITrigger) XXX_Size() int {
return xxx_messageInfo_WebUITrigger.Size(m)
}
func (m *WebUITrigger) XXX_DiscardUnknown() {
xxx_messageInfo_WebUITrigger.DiscardUnknown(m)
}
var xxx_messageInfo_WebUITrigger proto.InternalMessageInfo
// NoopTrigger is used by Scheduler integration tests to represent test
// triggers.
type NoopTrigger struct {
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NoopTrigger) Reset() { *m = NoopTrigger{} }
func (m *NoopTrigger) String() string { return proto.CompactTextString(m) }
func (*NoopTrigger) ProtoMessage() {}
func (*NoopTrigger) Descriptor() ([]byte, []int) {
return fileDescriptor_70a792ba8b927069, []int{3}
}
func (m *NoopTrigger) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NoopTrigger.Unmarshal(m, b)
}
func (m *NoopTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NoopTrigger.Marshal(b, m, deterministic)
}
func (m *NoopTrigger) XXX_Merge(src proto.Message) {
xxx_messageInfo_NoopTrigger.Merge(m, src)
}
func (m *NoopTrigger) XXX_Size() int {
return xxx_messageInfo_NoopTrigger.Size(m)
}
func (m *NoopTrigger) XXX_DiscardUnknown() {
xxx_messageInfo_NoopTrigger.DiscardUnknown(m)
}
var xxx_messageInfo_NoopTrigger proto.InternalMessageInfo
func (m *NoopTrigger) GetData() string {
if m != nil {
return m.Data
}
return ""
}
// GitilesTrigger is emitted by sources that watch Gitiles and consumed by
// Buildbucket tasks.
//
// Such triggers are emitted whenever the repository state changes.
type GitilesTrigger struct {
Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GitilesTrigger) Reset() { *m = GitilesTrigger{} }
func (m *GitilesTrigger) String() string { return proto.CompactTextString(m) }
func (*GitilesTrigger) ProtoMessage() {}
func (*GitilesTrigger) Descriptor() ([]byte, []int) {
return fileDescriptor_70a792ba8b927069, []int{4}
}
func (m *GitilesTrigger) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GitilesTrigger.Unmarshal(m, b)
}
func (m *GitilesTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GitilesTrigger.Marshal(b, m, deterministic)
}
func (m *GitilesTrigger) XXX_Merge(src proto.Message) {
xxx_messageInfo_GitilesTrigger.Merge(m, src)
}
func (m *GitilesTrigger) XXX_Size() int {
return xxx_messageInfo_GitilesTrigger.Size(m)
}
func (m *GitilesTrigger) XXX_DiscardUnknown() {
xxx_messageInfo_GitilesTrigger.DiscardUnknown(m)
}
var xxx_messageInfo_GitilesTrigger proto.InternalMessageInfo
func (m *GitilesTrigger) GetRepo() string {
if m != nil {
return m.Repo
}
return ""
}
func (m *GitilesTrigger) GetRef() string {
if m != nil {
return m.Ref
}
return ""
}
func (m *GitilesTrigger) GetRevision() string {
if m != nil {
return m.Revision
}
return ""
}
// BuildbucketTrigger is emitted by sources that request a build and consumed by
// Buildbucket tasks.
//
// The trigger contains information to pass to the new Buildbucket build.
//
// Note: what builds to trigger is specified separately, either in the job
// configuration (when one job triggers another) or via the API request
// parameters (when triggering through public API).
type BuildbucketTrigger struct {
Properties *_struct.Struct `protobuf:"bytes,1,opt,name=properties,proto3" json:"properties,omitempty"`
Tags []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildbucketTrigger) Reset() { *m = BuildbucketTrigger{} }
func (m *BuildbucketTrigger) String() string { return proto.CompactTextString(m) }
func (*BuildbucketTrigger) ProtoMessage() {}
func (*BuildbucketTrigger) Descriptor() ([]byte, []int) {
return fileDescriptor_70a792ba8b927069, []int{5}
}
func (m *BuildbucketTrigger) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildbucketTrigger.Unmarshal(m, b)
}
func (m *BuildbucketTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildbucketTrigger.Marshal(b, m, deterministic)
}
func (m *BuildbucketTrigger) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildbucketTrigger.Merge(m, src)
}
func (m *BuildbucketTrigger) XXX_Size() int {
return xxx_messageInfo_BuildbucketTrigger.Size(m)
}
func (m *BuildbucketTrigger) XXX_DiscardUnknown() {
xxx_messageInfo_BuildbucketTrigger.DiscardUnknown(m)
}
var xxx_messageInfo_BuildbucketTrigger proto.InternalMessageInfo
func (m *BuildbucketTrigger) GetProperties() *_struct.Struct {
if m != nil {
return m.Properties
}
return nil
}
func (m *BuildbucketTrigger) GetTags() []string {
if m != nil {
return m.Tags
}
return nil
}
func init() {
proto.RegisterType((*Trigger)(nil), "scheduler.Trigger")
proto.RegisterType((*CronTrigger)(nil), "scheduler.CronTrigger")
proto.RegisterType((*WebUITrigger)(nil), "scheduler.WebUITrigger")
proto.RegisterType((*NoopTrigger)(nil), "scheduler.NoopTrigger")
proto.RegisterType((*GitilesTrigger)(nil), "scheduler.GitilesTrigger")
proto.RegisterType((*BuildbucketTrigger)(nil), "scheduler.BuildbucketTrigger")
}
func init() {
proto.RegisterFile("go.chromium.org/luci/scheduler/api/scheduler/v1/triggers.proto", fileDescriptor_70a792ba8b927069)
}
var fileDescriptor_70a792ba8b927069 = []byte{
// 405 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0xcf, 0x6e, 0xd4, 0x30,
0x10, 0xc6, 0xd9, 0x6c, 0xcb, 0xb2, 0xb3, 0x68, 0x85, 0x2c, 0x04, 0xa6, 0x02, 0xb4, 0xe4, 0xb4,
0x48, 0x90, 0x88, 0x16, 0xc4, 0x0d, 0x89, 0x72, 0x00, 0x2e, 0x1c, 0x02, 0x88, 0x73, 0xfe, 0x4c,
0x5d, 0x0b, 0x37, 0x63, 0x4d, 0xec, 0x22, 0x9e, 0x93, 0x17, 0x42, 0x76, 0x76, 0x37, 0xae, 0x7a,
0x1b, 0xcf, 0xfc, 0xbe, 0xc9, 0x4c, 0xbe, 0x81, 0x0f, 0x8a, 0x8a, 0xf6, 0x92, 0xe9, 0x4a, 0xfb,
0x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