blob: b4bf3f943d8b051fba2a146a139f420574dd483e [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: bot_scaling/bot_policy.proto
package bot_scaling
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.ProtoPackageIsVersion3 // please upgrade the proto package
// Bot Policy to apply to a bot pool.
type BotPolicy struct {
// Bot group controlled by this policy, like, 'cq', 'postsubmit',...
BotGroup string `protobuf:"bytes,1,opt,name=bot_group,json=botGroup,proto3" json:"bot_group,omitempty"`
BotType *BotPolicy_BotType `protobuf:"bytes,2,opt,name=bot_type,json=botType,proto3" json:"bot_type,omitempty"`
// Hard limit on the maximum number of bots to request.
BotCeiling int32 `protobuf:"varint,3,opt,name=bot_ceiling,json=botCeiling,proto3" json:"bot_ceiling,omitempty"`
// Hard limit on the minimum number of bots to request.
BotFloor int32 `protobuf:"varint,4,opt,name=bot_floor,json=botFloor,proto3" json:"bot_floor,omitempty"`
// Soft limit on the number of idle bots to maintain.
MinIdle int32 `protobuf:"varint,5,opt,name=min_idle,json=minIdle,proto3" json:"min_idle,omitempty"`
// Hard minimum limit on the absolute delta between request amount and
// existing bot count.
StepSize int32 `protobuf:"varint,6,opt,name=step_size,json=stepSize,proto3" json:"step_size,omitempty"`
// Static number to request when demand is not accessible.
BotFallback int32 `protobuf:"varint,7,opt,name=bot_fallback,json=botFallback,proto3" json:"bot_fallback,omitempty"`
PoolRestrictions []*BotPolicy_PoolRestriction `protobuf:"bytes,8,rep,name=pool_restrictions,json=poolRestrictions,proto3" json:"pool_restrictions,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BotPolicy) Reset() { *m = BotPolicy{} }
func (m *BotPolicy) String() string { return proto.CompactTextString(m) }
func (*BotPolicy) ProtoMessage() {}
func (*BotPolicy) Descriptor() ([]byte, []int) {
return fileDescriptor_f2f88cbde784c939, []int{0}
}
func (m *BotPolicy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BotPolicy.Unmarshal(m, b)
}
func (m *BotPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BotPolicy.Marshal(b, m, deterministic)
}
func (m *BotPolicy) XXX_Merge(src proto.Message) {
xxx_messageInfo_BotPolicy.Merge(m, src)
}
func (m *BotPolicy) XXX_Size() int {
return xxx_messageInfo_BotPolicy.Size(m)
}
func (m *BotPolicy) XXX_DiscardUnknown() {
xxx_messageInfo_BotPolicy.DiscardUnknown(m)
}
var xxx_messageInfo_BotPolicy proto.InternalMessageInfo
func (m *BotPolicy) GetBotGroup() string {
if m != nil {
return m.BotGroup
}
return ""
}
func (m *BotPolicy) GetBotType() *BotPolicy_BotType {
if m != nil {
return m.BotType
}
return nil
}
func (m *BotPolicy) GetBotCeiling() int32 {
if m != nil {
return m.BotCeiling
}
return 0
}
func (m *BotPolicy) GetBotFloor() int32 {
if m != nil {
return m.BotFloor
}
return 0
}
func (m *BotPolicy) GetMinIdle() int32 {
if m != nil {
return m.MinIdle
}
return 0
}
func (m *BotPolicy) GetStepSize() int32 {
if m != nil {
return m.StepSize
}
return 0
}
func (m *BotPolicy) GetBotFallback() int32 {
if m != nil {
return m.BotFallback
}
return 0
}
func (m *BotPolicy) GetPoolRestrictions() []*BotPolicy_PoolRestriction {
if m != nil {
return m.PoolRestrictions
}
return nil
}
// The type of bot to be requested.
type BotPolicy_BotType struct {
// The string bot "shirt size" to be requested for the pool.
BotSize string `protobuf:"bytes,1,opt,name=bot_size,json=botSize,proto3" json:"bot_size,omitempty"`
// The number of cores per bot. Will be used to limit quota usage.
CoresPerBot int32 `protobuf:"varint,2,opt,name=cores_per_bot,json=coresPerBot,proto3" json:"cores_per_bot,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BotPolicy_BotType) Reset() { *m = BotPolicy_BotType{} }
func (m *BotPolicy_BotType) String() string { return proto.CompactTextString(m) }
func (*BotPolicy_BotType) ProtoMessage() {}
func (*BotPolicy_BotType) Descriptor() ([]byte, []int) {
return fileDescriptor_f2f88cbde784c939, []int{0, 0}
}
func (m *BotPolicy_BotType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BotPolicy_BotType.Unmarshal(m, b)
}
func (m *BotPolicy_BotType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BotPolicy_BotType.Marshal(b, m, deterministic)
}
func (m *BotPolicy_BotType) XXX_Merge(src proto.Message) {
xxx_messageInfo_BotPolicy_BotType.Merge(m, src)
}
func (m *BotPolicy_BotType) XXX_Size() int {
return xxx_messageInfo_BotPolicy_BotType.Size(m)
}
func (m *BotPolicy_BotType) XXX_DiscardUnknown() {
xxx_messageInfo_BotPolicy_BotType.DiscardUnknown(m)
}
var xxx_messageInfo_BotPolicy_BotType proto.InternalMessageInfo
func (m *BotPolicy_BotType) GetBotSize() string {
if m != nil {
return m.BotSize
}
return ""
}
func (m *BotPolicy_BotType) GetCoresPerBot() int32 {
if m != nil {
return m.CoresPerBot
}
return 0
}
// A set of restrictions on the regions and how to distribute bots
// between them.
type BotPolicy_PoolRestriction struct {
// Region of the bot group.
Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
// Specific prefix of the bot group.
Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
// Weight to be applied to this group. The number of bots requested
// from each region will be proportional to the weight unless a
// quota limit is violated.
Weight float32 `protobuf:"fixed32,3,opt,name=weight,proto3" json:"weight,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BotPolicy_PoolRestriction) Reset() { *m = BotPolicy_PoolRestriction{} }
func (m *BotPolicy_PoolRestriction) String() string { return proto.CompactTextString(m) }
func (*BotPolicy_PoolRestriction) ProtoMessage() {}
func (*BotPolicy_PoolRestriction) Descriptor() ([]byte, []int) {
return fileDescriptor_f2f88cbde784c939, []int{0, 1}
}
func (m *BotPolicy_PoolRestriction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BotPolicy_PoolRestriction.Unmarshal(m, b)
}
func (m *BotPolicy_PoolRestriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BotPolicy_PoolRestriction.Marshal(b, m, deterministic)
}
func (m *BotPolicy_PoolRestriction) XXX_Merge(src proto.Message) {
xxx_messageInfo_BotPolicy_PoolRestriction.Merge(m, src)
}
func (m *BotPolicy_PoolRestriction) XXX_Size() int {
return xxx_messageInfo_BotPolicy_PoolRestriction.Size(m)
}
func (m *BotPolicy_PoolRestriction) XXX_DiscardUnknown() {
xxx_messageInfo_BotPolicy_PoolRestriction.DiscardUnknown(m)
}
var xxx_messageInfo_BotPolicy_PoolRestriction proto.InternalMessageInfo
func (m *BotPolicy_PoolRestriction) GetRegion() string {
if m != nil {
return m.Region
}
return ""
}
func (m *BotPolicy_PoolRestriction) GetPrefix() string {
if m != nil {
return m.Prefix
}
return ""
}
func (m *BotPolicy_PoolRestriction) GetWeight() float32 {
if m != nil {
return m.Weight
}
return 0
}
func init() {
proto.RegisterType((*BotPolicy)(nil), "bot_scaling.BotPolicy")
proto.RegisterType((*BotPolicy_BotType)(nil), "bot_scaling.BotPolicy.BotType")
proto.RegisterType((*BotPolicy_PoolRestriction)(nil), "bot_scaling.BotPolicy.PoolRestriction")
}
func init() { proto.RegisterFile("bot_scaling/bot_policy.proto", fileDescriptor_f2f88cbde784c939) }
var fileDescriptor_f2f88cbde784c939 = []byte{
// 381 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0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