Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: common/api/dm/distributor/distributor.pb.go

Issue 1537883002: Initial distributor implementation (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: self review Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Code generated by protoc-gen-go.
2 // source: distributor.proto
3 // DO NOT EDIT!
4
5 /*
6 Package distributor is a generated protocol buffer package.
7
8 It is generated from these files:
9 distributor.proto
10
11 It has these top-level messages:
12 Alias
13 Distributor
14 Config
15 */
16 package distributor
17
18 import proto "github.com/golang/protobuf/proto"
19 import fmt "fmt"
20 import math "math"
21
22 // Reference imports to suppress errors if they are not otherwise used.
23 var _ = proto.Marshal
24 var _ = fmt.Errorf
25 var _ = math.Inf
26
27 // This is a compile-time assertion to ensure that this generated file
28 // is compatible with the proto package it is being compiled against.
29 const _ = proto.ProtoPackageIsVersion1
30
31 type Alias struct {
32 OtherConfig string `protobuf:"bytes,1,opt,name=other_config,json=otherCo nfig" json:"other_config,omitempty"`
33 }
34
35 func (m *Alias) Reset() { *m = Alias{} }
36 func (m *Alias) String() string { return proto.CompactTextString(m) }
37 func (*Alias) ProtoMessage() {}
38 func (*Alias) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
39
40 type Distributor struct {
41 // TODO(iannucci): Maybe something like Any or extensions would be a bet ter
42 // fit here? The ultimate goal is that users will be able to use the pro to
43 // text format for luci-config. I suspect that Any or extensions would l ose
44 // the ability to validate such text-formatted protobufs, but maybe that 's
45 // not the case.
46 //
47 // Types that are valid to be assigned to DistributorType:
48 // *Distributor_Alias
49 DistributorType isDistributor_DistributorType `protobuf_oneof:"distribut or_type"`
50 }
51
52 func (m *Distributor) Reset() { *m = Distributor{} }
53 func (m *Distributor) String() string { return proto.CompactTextStrin g(m) }
54 func (*Distributor) ProtoMessage() {}
55 func (*Distributor) Descriptor() ([]byte, []int) { return fileDescriptor0, []int {1} }
56
57 type isDistributor_DistributorType interface {
58 isDistributor_DistributorType()
59 }
60
61 type Distributor_Alias struct {
62 Alias *Alias `protobuf:"bytes,1,opt,name=alias,oneof"`
63 }
64
65 func (*Distributor_Alias) isDistributor_DistributorType() {}
66
67 func (m *Distributor) GetDistributorType() isDistributor_DistributorType {
68 if m != nil {
69 return m.DistributorType
70 }
71 return nil
72 }
73
74 func (m *Distributor) GetAlias() *Alias {
75 if x, ok := m.GetDistributorType().(*Distributor_Alias); ok {
76 return x.Alias
77 }
78 return nil
79 }
80
81 // XXX_OneofFuncs is for the internal use of the proto package.
82 func (*Distributor) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) e rror, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), fun c(msg proto.Message) (n int), []interface{}) {
83 return _Distributor_OneofMarshaler, _Distributor_OneofUnmarshaler, _Dist ributor_OneofSizer, []interface{}{
84 (*Distributor_Alias)(nil),
85 }
86 }
87
88 func _Distributor_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
89 m := msg.(*Distributor)
90 // distributor_type
91 switch x := m.DistributorType.(type) {
92 case *Distributor_Alias:
93 b.EncodeVarint(1<<3 | proto.WireBytes)
94 if err := b.EncodeMessage(x.Alias); err != nil {
95 return err
96 }
97 case nil:
98 default:
99 return fmt.Errorf("Distributor.DistributorType has unexpected ty pe %T", x)
100 }
101 return nil
102 }
103
104 func _Distributor_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu ffer) (bool, error) {
105 m := msg.(*Distributor)
106 switch tag {
107 case 1: // distributor_type.alias
108 if wire != proto.WireBytes {
109 return true, proto.ErrInternalBadWireType
110 }
111 msg := new(Alias)
112 err := b.DecodeMessage(msg)
113 m.DistributorType = &Distributor_Alias{msg}
114 return true, err
115 default:
116 return false, nil
117 }
118 }
119
120 func _Distributor_OneofSizer(msg proto.Message) (n int) {
121 m := msg.(*Distributor)
122 // distributor_type
123 switch x := m.DistributorType.(type) {
124 case *Distributor_Alias:
125 s := proto.Size(x.Alias)
126 n += proto.SizeVarint(1<<3 | proto.WireBytes)
127 n += proto.SizeVarint(uint64(s))
128 n += s
129 case nil:
130 default:
131 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
132 }
133 return n
134 }
135
136 type Config struct {
137 DistributorConfigs map[string]*Distributor `protobuf:"bytes,1,rep,name=d istributor_configs,json=distributorConfigs" json:"distributor_configs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
138 }
139
140 func (m *Config) Reset() { *m = Config{} }
141 func (m *Config) String() string { return proto.CompactTextString(m) }
142 func (*Config) ProtoMessage() {}
143 func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
144
145 func (m *Config) GetDistributorConfigs() map[string]*Distributor {
146 if m != nil {
147 return m.DistributorConfigs
148 }
149 return nil
150 }
151
152 func init() {
153 proto.RegisterType((*Alias)(nil), "distributor.Alias")
154 proto.RegisterType((*Distributor)(nil), "distributor.Distributor")
155 proto.RegisterType((*Config)(nil), "distributor.Config")
156 }
157
158 var fileDescriptor0 = []byte{
159 // 238 bytes of a gzipped FileDescriptorProto
160 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x12, 0x4c, 0xc9, 0x2c, 0x2e,
161 0x29, 0xca, 0x4c, 0x2a, 0x2d, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x46,
162 0x12, 0x52, 0xd2, 0xe2, 0x62, 0x75, 0xcc, 0xc9, 0x4c, 0x2c, 0x16, 0x52, 0xe4, 0xe2, 0xc9, 0x2f,
163 0xc9, 0x48, 0x2d, 0x8a, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0x97, 0x60, 0x54, 0x60, 0xd4, 0xe0,
164 0x0c, 0xe2, 0x06, 0x8b, 0x39, 0x83, 0x85, 0x94, 0xd2, 0xb9, 0xb8, 0x5d, 0x10, 0x5a, 0x85, 0x80,
165 0x5a, 0x13, 0x41, 0x5a, 0xc1, 0x4a, 0xb9, 0x8d, 0x84, 0xf4, 0x90, 0xad, 0x02, 0x1b, 0xea, 0xc1,
166 0x10, 0x04, 0x51, 0xe2, 0x24, 0xc4, 0x25, 0x80, 0x24, 0x1b, 0x5f, 0x52, 0x59, 0x90, 0xea, 0xc5,
167 0xc2, 0xc1, 0x24, 0xc0, 0x0c, 0x24, 0x99, 0x05, 0x58, 0x80, 0x24, 0x8b, 0x00, 0xab, 0x17, 0x1b,
168 0x47, 0x83, 0x80, 0x40, 0xa3, 0x80, 0xd2, 0x71, 0x46, 0x2e, 0x36, 0x88, 0x9d, 0x42, 0x31, 0x5c,
169 0xc2, 0xc8, 0x1a, 0x21, 0x8e, 0x03, 0x59, 0xc9, 0x0c, 0xb4, 0x52, 0x1b, 0xc5, 0x4a, 0x88, 0x0e,
170 0x3d, 0x24, 0x27, 0x42, 0x44, 0x8a, 0x5d, 0xf3, 0x4a, 0x8a, 0x2a, 0x83, 0x84, 0x52, 0x30, 0x24,
171 0xa4, 0xe2, 0xb9, 0xc4, 0x71, 0x28, 0x17, 0x12, 0xe0, 0x62, 0xce, 0x4e, 0xad, 0x84, 0x06, 0x03,
172 0x88, 0x29, 0xa4, 0xc7, 0xc5, 0x5a, 0x96, 0x98, 0x53, 0x9a, 0x2a, 0xc1, 0x04, 0xf6, 0xaf, 0x04,
173 0x8a, 0xe5, 0x48, 0xc6, 0x04, 0x41, 0x94, 0x59, 0x31, 0x59, 0x30, 0x26, 0xb1, 0x81, 0x83, 0xdc,
174 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x27, 0x31, 0xd6, 0x87, 0x01, 0x00, 0x00,
175 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698