| Index: appengine/cmd/dm/distributor/protos/distributor.pb.go
|
| diff --git a/appengine/cmd/dm/distributor/protos/distributor.pb.go b/appengine/cmd/dm/distributor/protos/distributor.pb.go
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4c6db58d96f0d6b79c5826f904e0cb4b7b5bad60
|
| --- /dev/null
|
| +++ b/appengine/cmd/dm/distributor/protos/distributor.pb.go
|
| @@ -0,0 +1,242 @@
|
| +// Code generated by protoc-gen-go.
|
| +// source: distributor.proto
|
| +// DO NOT EDIT!
|
| +
|
| +/*
|
| +Package distributor is a generated protocol buffer package.
|
| +
|
| +It is generated from these files:
|
| + distributor.proto
|
| +
|
| +It has these top-level messages:
|
| + Alias
|
| + Distributor
|
| + Config
|
| +*/
|
| +package distributor
|
| +
|
| +import proto "github.com/golang/protobuf/proto"
|
| +import fmt "fmt"
|
| +import math "math"
|
| +import jobsim "github.com/luci/luci-go/appengine/cmd/dm/distributor/protos/jobsim"
|
| +import swarmingV1 "github.com/luci/luci-go/appengine/cmd/dm/distributor/protos/swarmingV1"
|
| +
|
| +// 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.
|
| +const _ = proto.ProtoPackageIsVersion1
|
| +
|
| +type Alias struct {
|
| + OtherConfig string `protobuf:"bytes,1,opt,name=other_config" json:"other_config,omitempty"`
|
| +}
|
| +
|
| +func (m *Alias) Reset() { *m = Alias{} }
|
| +func (m *Alias) String() string { return proto.CompactTextString(m) }
|
| +func (*Alias) ProtoMessage() {}
|
| +func (*Alias) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
| +
|
| +type Distributor struct {
|
| + // TODO(iannucci): Maybe something like Any or extensions would be a better
|
| + // fit here? The ultimate goal is that users will be able to use the proto
|
| + // text format for luci-config. I suspect that Any or extensions would lose
|
| + // the ability to validate such text-formatted protobufs, but maybe that's
|
| + // not the case.
|
| + //
|
| + // Types that are valid to be assigned to DistributorType:
|
| + // *Distributor_Alias
|
| + // *Distributor_SwarmingV1
|
| + // *Distributor_Jobsim
|
| + DistributorType isDistributor_DistributorType `protobuf_oneof:"distributor_type"`
|
| +}
|
| +
|
| +func (m *Distributor) Reset() { *m = Distributor{} }
|
| +func (m *Distributor) String() string { return proto.CompactTextString(m) }
|
| +func (*Distributor) ProtoMessage() {}
|
| +func (*Distributor) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
| +
|
| +type isDistributor_DistributorType interface {
|
| + isDistributor_DistributorType()
|
| +}
|
| +
|
| +type Distributor_Alias struct {
|
| + Alias *Alias `protobuf:"bytes,1,opt,name=alias,oneof"`
|
| +}
|
| +type Distributor_SwarmingV1 struct {
|
| + SwarmingV1 *swarmingV1.Config `protobuf:"bytes,4,opt,name=swarming_v1,oneof"`
|
| +}
|
| +type Distributor_Jobsim struct {
|
| + Jobsim *jobsim.Config `protobuf:"bytes,2048,opt,name=jobsim,oneof"`
|
| +}
|
| +
|
| +func (*Distributor_Alias) isDistributor_DistributorType() {}
|
| +func (*Distributor_SwarmingV1) isDistributor_DistributorType() {}
|
| +func (*Distributor_Jobsim) isDistributor_DistributorType() {}
|
| +
|
| +func (m *Distributor) GetDistributorType() isDistributor_DistributorType {
|
| + if m != nil {
|
| + return m.DistributorType
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func (m *Distributor) GetAlias() *Alias {
|
| + if x, ok := m.GetDistributorType().(*Distributor_Alias); ok {
|
| + return x.Alias
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func (m *Distributor) GetSwarmingV1() *swarmingV1.Config {
|
| + if x, ok := m.GetDistributorType().(*Distributor_SwarmingV1); ok {
|
| + return x.SwarmingV1
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func (m *Distributor) GetJobsim() *jobsim.Config {
|
| + if x, ok := m.GetDistributorType().(*Distributor_Jobsim); ok {
|
| + return x.Jobsim
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +// XXX_OneofFuncs is for the internal use of the proto package.
|
| +func (*Distributor) 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 _Distributor_OneofMarshaler, _Distributor_OneofUnmarshaler, _Distributor_OneofSizer, []interface{}{
|
| + (*Distributor_Alias)(nil),
|
| + (*Distributor_SwarmingV1)(nil),
|
| + (*Distributor_Jobsim)(nil),
|
| + }
|
| +}
|
| +
|
| +func _Distributor_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
| + m := msg.(*Distributor)
|
| + // distributor_type
|
| + switch x := m.DistributorType.(type) {
|
| + case *Distributor_Alias:
|
| + b.EncodeVarint(1<<3 | proto.WireBytes)
|
| + if err := b.EncodeMessage(x.Alias); err != nil {
|
| + return err
|
| + }
|
| + case *Distributor_SwarmingV1:
|
| + b.EncodeVarint(4<<3 | proto.WireBytes)
|
| + if err := b.EncodeMessage(x.SwarmingV1); err != nil {
|
| + return err
|
| + }
|
| + case *Distributor_Jobsim:
|
| + b.EncodeVarint(2048<<3 | proto.WireBytes)
|
| + if err := b.EncodeMessage(x.Jobsim); err != nil {
|
| + return err
|
| + }
|
| + case nil:
|
| + default:
|
| + return fmt.Errorf("Distributor.DistributorType has unexpected type %T", x)
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func _Distributor_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
| + m := msg.(*Distributor)
|
| + switch tag {
|
| + case 1: // distributor_type.alias
|
| + if wire != proto.WireBytes {
|
| + return true, proto.ErrInternalBadWireType
|
| + }
|
| + msg := new(Alias)
|
| + err := b.DecodeMessage(msg)
|
| + m.DistributorType = &Distributor_Alias{msg}
|
| + return true, err
|
| + case 4: // distributor_type.swarming_v1
|
| + if wire != proto.WireBytes {
|
| + return true, proto.ErrInternalBadWireType
|
| + }
|
| + msg := new(swarmingV1.Config)
|
| + err := b.DecodeMessage(msg)
|
| + m.DistributorType = &Distributor_SwarmingV1{msg}
|
| + return true, err
|
| + case 2048: // distributor_type.jobsim
|
| + if wire != proto.WireBytes {
|
| + return true, proto.ErrInternalBadWireType
|
| + }
|
| + msg := new(jobsim.Config)
|
| + err := b.DecodeMessage(msg)
|
| + m.DistributorType = &Distributor_Jobsim{msg}
|
| + return true, err
|
| + default:
|
| + return false, nil
|
| + }
|
| +}
|
| +
|
| +func _Distributor_OneofSizer(msg proto.Message) (n int) {
|
| + m := msg.(*Distributor)
|
| + // distributor_type
|
| + switch x := m.DistributorType.(type) {
|
| + case *Distributor_Alias:
|
| + s := proto.Size(x.Alias)
|
| + n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
| + n += proto.SizeVarint(uint64(s))
|
| + n += s
|
| + case *Distributor_SwarmingV1:
|
| + s := proto.Size(x.SwarmingV1)
|
| + n += proto.SizeVarint(4<<3 | proto.WireBytes)
|
| + n += proto.SizeVarint(uint64(s))
|
| + n += s
|
| + case *Distributor_Jobsim:
|
| + s := proto.Size(x.Jobsim)
|
| + n += proto.SizeVarint(2048<<3 | proto.WireBytes)
|
| + n += proto.SizeVarint(uint64(s))
|
| + n += s
|
| + case nil:
|
| + default:
|
| + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
| + }
|
| + return n
|
| +}
|
| +
|
| +type Config struct {
|
| + DistributorConfigs map[string]*Distributor `protobuf:"bytes,1,rep,name=distributor_configs" json:"distributor_configs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
| +}
|
| +
|
| +func (m *Config) Reset() { *m = Config{} }
|
| +func (m *Config) String() string { return proto.CompactTextString(m) }
|
| +func (*Config) ProtoMessage() {}
|
| +func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
| +
|
| +func (m *Config) GetDistributorConfigs() map[string]*Distributor {
|
| + if m != nil {
|
| + return m.DistributorConfigs
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func init() {
|
| + proto.RegisterType((*Alias)(nil), "distributor.Alias")
|
| + proto.RegisterType((*Distributor)(nil), "distributor.Distributor")
|
| + proto.RegisterType((*Config)(nil), "distributor.Config")
|
| +}
|
| +
|
| +var fileDescriptor0 = []byte{
|
| + // 275 bytes of a gzipped FileDescriptorProto
|
| + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x12, 0x4c, 0xc9, 0x2c, 0x2e,
|
| + 0x29, 0xca, 0x4c, 0x2a, 0x2d, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x46,
|
| + 0x12, 0x92, 0x12, 0xce, 0xca, 0x4f, 0x2a, 0xce, 0xcc, 0xd5, 0x87, 0x50, 0x10, 0x15, 0x52, 0xd2,
|
| + 0xc5, 0xe5, 0x89, 0x45, 0xb9, 0x99, 0x79, 0xe9, 0x61, 0x86, 0xfa, 0x08, 0x26, 0x44, 0x52, 0x49,
|
| + 0x96, 0x8b, 0xd5, 0x31, 0x27, 0x33, 0xb1, 0x58, 0x48, 0x84, 0x8b, 0x27, 0xbf, 0x24, 0x23, 0xb5,
|
| + 0x28, 0x3e, 0x39, 0x3f, 0x2f, 0x2d, 0x33, 0x5d, 0x82, 0x51, 0x81, 0x51, 0x83, 0x53, 0x69, 0x01,
|
| + 0x23, 0x17, 0xb7, 0x0b, 0xc2, 0x02, 0x21, 0x65, 0x2e, 0xd6, 0x44, 0x90, 0x72, 0xb0, 0x34, 0xb7,
|
| + 0x91, 0x90, 0x1e, 0xb2, 0x83, 0xc0, 0x06, 0x79, 0x30, 0x08, 0x69, 0x72, 0x71, 0xc3, 0xec, 0x89,
|
| + 0x2f, 0x33, 0x94, 0x60, 0x81, 0x2a, 0x45, 0xb2, 0xdb, 0x19, 0x6c, 0x07, 0x50, 0xa9, 0x22, 0x17,
|
| + 0x1b, 0xc4, 0xad, 0x12, 0x0d, 0x02, 0x60, 0x65, 0x7c, 0x7a, 0x50, 0xb7, 0xc3, 0x94, 0x38, 0x09,
|
| + 0x71, 0x09, 0x20, 0x59, 0x12, 0x5f, 0x52, 0x59, 0x90, 0xea, 0xc5, 0xc2, 0xc1, 0x24, 0xc0, 0x0c,
|
| + 0x24, 0x99, 0x05, 0x58, 0x94, 0x96, 0x33, 0x72, 0xb1, 0x41, 0x14, 0x0b, 0x79, 0x70, 0x09, 0x23,
|
| + 0x2b, 0x85, 0xf8, 0x04, 0xe4, 0x56, 0x66, 0xa0, 0xc9, 0xda, 0x28, 0x6e, 0x85, 0xe8, 0xd0, 0x43,
|
| + 0xf2, 0x1b, 0x44, 0xa4, 0xd8, 0x35, 0xaf, 0xa4, 0xa8, 0x52, 0x2a, 0x98, 0x4b, 0x1c, 0x87, 0x94,
|
| + 0x10, 0x37, 0x17, 0x73, 0x76, 0x6a, 0x25, 0x24, 0x7c, 0x84, 0xd4, 0xb9, 0x58, 0xcb, 0x12, 0x73,
|
| + 0x4a, 0x53, 0x25, 0x98, 0xc0, 0xae, 0x97, 0x40, 0xb1, 0x03, 0xc9, 0x04, 0x2b, 0x26, 0x0b, 0xc6,
|
| + 0x24, 0x36, 0x70, 0x90, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xcf, 0xb8, 0x28, 0x84, 0xc6,
|
| + 0x01, 0x00, 0x00,
|
| +}
|
|
|