blob: 114a6c0471f43fe23efc2db7a397d50d37a4a0c2 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tree_config.proto
Package tree is a generated protocol buffer package.
It is generated from these files:
It has these top-level messages:
package tree
import proto ""
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// SomCfg stores options related to the Sheriff-o-Matic frontend.
type SomCfg struct {
// BugQueueLabel is a Monorail label to use for a sheriffing bug queue
// attached to this tree.
BugQueueLabel string `protobuf:"bytes,1,opt,name=bug_queue_label,json=bugQueueLabel" json:"bug_queue_label,omitempty"`
// AlertStreams are tree names that a sheriffing view for a tree should pull
// from. The terminology here is a little weird since a "Sheriff-o-Matic
// tree" can technically pull from more than one "Gatekeeper/Analyzer tree".
AlertStreams []string `protobuf:"bytes,2,rep,name=alert_streams,json=alertStreams" json:"alert_streams,omitempty"`
func (m *SomCfg) Reset() { *m = SomCfg{} }
func (m *SomCfg) String() string { return proto.CompactTextString(m) }
func (*SomCfg) ProtoMessage() {}
func (*SomCfg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *SomCfg) GetBugQueueLabel() string {
if m != nil {
return m.BugQueueLabel
return ""
func (m *SomCfg) GetAlertStreams() []string {
if m != nil {
return m.AlertStreams
return nil
// Tree stores the configuration for a single tree.
type Tree struct {
// Name is a unique string key to mark a specific tree. Should be lowercase
// and use only URL-safe characters.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// DisplayName is a fancier name for the tree, which can include spaces,
// capitalization, and any other string fanciness.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
// Som can be set to tell Sheriff-o-Matic to load the tree into its UI and
// search for alerts.
Som *SomCfg `protobuf:"bytes,3,opt,name=som" json:"som,omitempty"`
// StatusUrl is a URL for the Tree-Status app attached to this tree. This
// should eventually be replaced once we consolidate the Tree-Status app.
StatusUrl string `protobuf:"bytes,4,opt,name=status_url,json=statusUrl" json:"status_url,omitempty"`
func (m *Tree) Reset() { *m = Tree{} }
func (m *Tree) String() string { return proto.CompactTextString(m) }
func (*Tree) ProtoMessage() {}
func (*Tree) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Tree) GetName() string {
if m != nil {
return m.Name
return ""
func (m *Tree) GetDisplayName() string {
if m != nil {
return m.DisplayName
return ""
func (m *Tree) GetSom() *SomCfg {
if m != nil {
return m.Som
return nil
func (m *Tree) GetStatusUrl() string {
if m != nil {
return m.StatusUrl
return ""
// TreeCfg is the project level configuration for services which require
// knowledge of what a tree is.
type TreeCfg struct {
// Trees stores all of the trees specified in a configuration file.
Trees []*Tree `protobuf:"bytes,1,rep,name=trees" json:"trees,omitempty"`
func (m *TreeCfg) Reset() { *m = TreeCfg{} }
func (m *TreeCfg) String() string { return proto.CompactTextString(m) }
func (*TreeCfg) ProtoMessage() {}
func (*TreeCfg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *TreeCfg) GetTrees() []*Tree {
if m != nil {
return m.Trees
return nil
func init() {
proto.RegisterType((*SomCfg)(nil), "tree.SomCfg")
proto.RegisterType((*Tree)(nil), "tree.Tree")
proto.RegisterType((*TreeCfg)(nil), "tree.TreeCfg")
func init() { proto.RegisterFile("tree_config.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 234 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x2c, 0x90, 0x4d, 0x4b, 0x03, 0x31,
0x10, 0x86, 0xd9, 0xee, 0x5a, 0xd9, 0xd9, 0x2d, 0x62, 0x4e, 0xb9, 0x28, 0x71, 0x05, 0x59, 0x10,
0xf6, 0x50, 0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