| Index: common/api/dm/distributor/distributor.pb.go
|
| diff --git a/common/api/dm/distributor/distributor.pb.go b/common/api/dm/distributor/distributor.pb.go
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..87e0d8160b246e09c79e83d93b7e38fa56bcc206
|
| --- /dev/null
|
| +++ b/common/api/dm/distributor/distributor.pb.go
|
| @@ -0,0 +1,175 @@
|
| +// 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"
|
| +
|
| +// 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=otherConfig" 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
|
| + 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"`
|
| +}
|
| +
|
| +func (*Distributor_Alias) 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
|
| +}
|
| +
|
| +// 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),
|
| + }
|
| +}
|
| +
|
| +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 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
|
| + 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 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=distributorConfigs" 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{
|
| + // 238 bytes of a gzipped FileDescriptorProto
|
| + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x12, 0x4c, 0xc9, 0x2c, 0x2e,
|
| + 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88, 0x29, 0xa4, 0xc7, 0xc5, 0x5a, 0x96, 0x98, 0x53, 0x9a, 0x2a, 0xc1, 0x04, 0xf6, 0xaf, 0x04,
|
| + 0x8a, 0xe5, 0x48, 0xc6, 0x04, 0x41, 0x94, 0x59, 0x31, 0x59, 0x30, 0x26, 0xb1, 0x81, 0x83, 0xdc,
|
| + 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x27, 0x31, 0xd6, 0x87, 0x01, 0x00, 0x00,
|
| +}
|
|
|