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

Side by Side Diff: third_party/cq_client/cq.pb.go

Issue 1309393004: Updated cq_client (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Added cq.pb.go Created 5 years, 3 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
« no previous file with comments | « third_party/cq_client/cq.proto ('k') | third_party/cq_client/cq_pb2.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Code generated by protoc-gen-go.
2 // source: cq.proto
3 // DO NOT EDIT!
4
5 /*
6 Package cq is a generated protocol buffer package.
7
8 It is generated from these files:
9 cq.proto
10
11 It has these top-level messages:
12 Config
13 Rietveld
14 Verifiers
15 */
16 package cq
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 message describes a Commit Queue configuration. The config file cq.cfg
28 // should be stored in the config directory located on the branch that this CQ
29 // should commit to.
30 type Config struct {
31 // Required. Version of the config format.
32 Version *int32 `protobuf:"varint,1,opt,name=version" json:"version,omite mpty"`
33 // Required. Name of the CQ. May only contain characters [a-zA-Z0-9_]. I t is
34 // used for various purposes, including, but not limited to match the pr oject
35 // name for CLs on Rietveld, name of the project in the status app, inte rnal
36 // name for logging etc. CQ name should not be confused with the project name
37 // in LUCI as there may be multiple CQs per project.
38 CqName *string `protobuf:"bytes,2,opt,name=cq_name" json:"cq_name,omitem pty"`
39 // List of verifiers that verify if the CL is ready to be committed.
40 Verifiers *Verifiers `protobuf:"bytes,3,opt,name=verifiers" json:"verifi ers,omitempty"`
41 // URL of the CQ status app to push updates to.
42 CqStatusUrl *string `protobuf:"bytes,4,opt,name=cq_status_url" json:"cq_ status_url,omitempty"`
43 // When true, hash of the commit is not posted by CQ. This is used for
44 // projects using gnumbd as latter publishes actual hash later. Default value
45 // is false.
46 HideRefInCommittedMsg *bool `protobuf:"varint,5,opt,name=hide_ref_in_com mitted_msg" json:"hide_ref_in_committed_msg,omitempty"`
47 // Delay between commit bursts in seconds. Default value is 480.
48 CommitBurstDelay *int32 `protobuf:"varint,6,opt,name=commit_burst_delay" json:"commit_burst_delay,omitempty"`
49 // Maximum number of commits done sequentially, before waiting for
50 // commit_burst_delay. Default value is 4.
51 MaxCommitBurst *int32 `protobuf:"varint,7,opt,name=max_commit_burst" jso n:"max_commit_burst,omitempty"`
52 // Defines whether a CQ is used in production. Allows to disable CQ for a
53 // given branch. Default is true.
54 InProduction *bool `protobuf:"varint,8,opt,name=in_production" json:"in_ production,omitempty"`
55 // Configuration options for Rietveld code review.
56 Rietveld *Rietveld `protobuf:"bytes,9,opt,name=rietveld" json:"rietveld, omitempty"`
57 // This can be used to override the Git repository URL used to checkout and
58 // commit changes on CQ host. This should only be used in case, when the
59 // source repository is not supported by luci-config (e.g. GitHub).
60 GitRepoUrl *string `protobuf:"bytes,10,opt,name=git_repo_url" json:"git_ repo_url,omitempty"`
61 // Target ref to commit to. This can be used to specify a different ref than
62 // the one where the luci config is located. This is useful, e.g. for pr ojects
63 // that use gnumbd where CQ should commit into a pending ref.
64 TargetRef *string `protobuf:"bytes,11,opt,name=target_ref" json:"target_ ref,omitempty"`
65 // Deprecated. URL of the SVN repository. We are deprecating SVN support .
66 SvnRepoUrl *string `protobuf:"bytes,12,opt,name=svn_repo_url" json:"svn_ repo_url,omitempty"`
67 // Deprecated. Should be set to true, when the project's SVN repository does
68 // not have server-side hooks configured.
69 ServerHooksMissing *bool `protobuf:"varint,13,opt,name=server_hooks_miss ing" json:"server_hooks_missing,omitempty"`
70 // Deprecated. Specifies a list of verifiers that are run on a local che ckout
71 // with patch applied. The only remaining use case for this is PRESUBMIT _CHECK
72 // verifier, which we are deprecating as well.
73 VerifiersWithPatch *Verifiers `protobuf:"bytes,14,opt,name=verifiers_wit h_patch" json:"verifiers_with_patch,omitempty"`
74 XXX_unrecognized []byte `json:"-"`
75 }
76
77 func (m *Config) Reset() { *m = Config{} }
78 func (m *Config) String() string { return proto.CompactTextString(m) }
79 func (*Config) ProtoMessage() {}
80
81 func (m *Config) GetVersion() int32 {
82 if m != nil && m.Version != nil {
83 return *m.Version
84 }
85 return 0
86 }
87
88 func (m *Config) GetCqName() string {
89 if m != nil && m.CqName != nil {
90 return *m.CqName
91 }
92 return ""
93 }
94
95 func (m *Config) GetVerifiers() *Verifiers {
96 if m != nil {
97 return m.Verifiers
98 }
99 return nil
100 }
101
102 func (m *Config) GetCqStatusUrl() string {
103 if m != nil && m.CqStatusUrl != nil {
104 return *m.CqStatusUrl
105 }
106 return ""
107 }
108
109 func (m *Config) GetHideRefInCommittedMsg() bool {
110 if m != nil && m.HideRefInCommittedMsg != nil {
111 return *m.HideRefInCommittedMsg
112 }
113 return false
114 }
115
116 func (m *Config) GetCommitBurstDelay() int32 {
117 if m != nil && m.CommitBurstDelay != nil {
118 return *m.CommitBurstDelay
119 }
120 return 0
121 }
122
123 func (m *Config) GetMaxCommitBurst() int32 {
124 if m != nil && m.MaxCommitBurst != nil {
125 return *m.MaxCommitBurst
126 }
127 return 0
128 }
129
130 func (m *Config) GetInProduction() bool {
131 if m != nil && m.InProduction != nil {
132 return *m.InProduction
133 }
134 return false
135 }
136
137 func (m *Config) GetRietveld() *Rietveld {
138 if m != nil {
139 return m.Rietveld
140 }
141 return nil
142 }
143
144 func (m *Config) GetGitRepoUrl() string {
145 if m != nil && m.GitRepoUrl != nil {
146 return *m.GitRepoUrl
147 }
148 return ""
149 }
150
151 func (m *Config) GetTargetRef() string {
152 if m != nil && m.TargetRef != nil {
153 return *m.TargetRef
154 }
155 return ""
156 }
157
158 func (m *Config) GetSvnRepoUrl() string {
159 if m != nil && m.SvnRepoUrl != nil {
160 return *m.SvnRepoUrl
161 }
162 return ""
163 }
164
165 func (m *Config) GetServerHooksMissing() bool {
166 if m != nil && m.ServerHooksMissing != nil {
167 return *m.ServerHooksMissing
168 }
169 return false
170 }
171
172 func (m *Config) GetVerifiersWithPatch() *Verifiers {
173 if m != nil {
174 return m.VerifiersWithPatch
175 }
176 return nil
177 }
178
179 type Rietveld struct {
180 // Required. URL of the codereview site.
181 Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
182 // List of regular expressions used to check if CL's base URL should be
183 // processed by this CQ. This may be useful if a single branch has multi ple
184 // sub-directories that are handled by different CQs. When no regular
185 // expressions are specified, the regular expression '.*', which matches any
186 // directory, is used.
187 ProjectBases []string `protobuf:"bytes,2,rep,name=project_bases" jso n:"project_bases,omitempty"`
188 XXX_unrecognized []byte `json:"-"`
189 }
190
191 func (m *Rietveld) Reset() { *m = Rietveld{} }
192 func (m *Rietveld) String() string { return proto.CompactTextString(m) }
193 func (*Rietveld) ProtoMessage() {}
194
195 func (m *Rietveld) GetUrl() string {
196 if m != nil && m.Url != nil {
197 return *m.Url
198 }
199 return ""
200 }
201
202 func (m *Rietveld) GetProjectBases() []string {
203 if m != nil {
204 return m.ProjectBases
205 }
206 return nil
207 }
208
209 // Verifiers are various types of checks that a Commit Queue performs on a CL.
210 // All verifiers must pass in order for a CL to be landed. Configuration file
211 // describes types of verifiers that should be applied to each CL and their
212 // parameters.
213 type Verifiers struct {
214 // This verifier is used to ensure that an LGTM was posted to the code r eview
215 // site from a valid project committer.
216 ReviewerLgtm *Verifiers_ReviewerLgtmVerifier `protobuf:"bytes,1,opt,name =reviewer_lgtm" json:"reviewer_lgtm,omitempty"`
217 // This verifier is used to check tree status before committing a CL. If the
218 // tree is closed, then the verifier will wait until it is reopened.
219 TreeStatus *Verifiers_TreeStatusLgtmVerifier `protobuf:"bytes,2,opt,name =tree_status" json:"tree_status,omitempty"`
220 // This verifier triggers a set of tryjobs that are to be run on builder s on
221 // Buildbot. It automatically retries failed try-jobs and only allows CL to
222 // land if each builder has succeeded in the latest retry. If a given tr yjob
223 // result is too old (>1 day) it is ignored.
224 TryJob *Verifiers_TryJobVerifier `protobuf:"bytes,3,opt,name=try_job" js on:"try_job,omitempty"`
225 // This verifier is used to ensure that the author has signed Google's
226 // Contributor License Agreement.
227 SignCla *Verifiers_SignCLAVerifier `protobuf:"bytes,4,opt,name= sign_cla" json:"sign_cla,omitempty"`
228 XXX_unrecognized []byte `json:"-"`
229 }
230
231 func (m *Verifiers) Reset() { *m = Verifiers{} }
232 func (m *Verifiers) String() string { return proto.CompactTextString(m) }
233 func (*Verifiers) ProtoMessage() {}
234
235 func (m *Verifiers) GetReviewerLgtm() *Verifiers_ReviewerLgtmVerifier {
236 if m != nil {
237 return m.ReviewerLgtm
238 }
239 return nil
240 }
241
242 func (m *Verifiers) GetTreeStatus() *Verifiers_TreeStatusLgtmVerifier {
243 if m != nil {
244 return m.TreeStatus
245 }
246 return nil
247 }
248
249 func (m *Verifiers) GetTryJob() *Verifiers_TryJobVerifier {
250 if m != nil {
251 return m.TryJob
252 }
253 return nil
254 }
255
256 func (m *Verifiers) GetSignCla() *Verifiers_SignCLAVerifier {
257 if m != nil {
258 return m.SignCla
259 }
260 return nil
261 }
262
263 type Verifiers_ReviewerLgtmVerifier struct {
264 // Required. Name of the chrome-infra-auth group, which contains the
265 // list of identities authorized to approve (lgtm) a CL. This list is al so
266 // known as a committer list and often corresponds to the list of accoun ts
267 // that have direct commit/push access to the repository. Some older lis ts
268 // are still stored in the CQ source code, but are being moved to the ne w
269 // location (https://crbug.com/511311).
270 CommitterList *string `protobuf:"bytes,1,opt,name=committer_list" json:" committer_list,omitempty"`
271 // Number of seconds to wait for LGTM on CQ. Default value is 0.
272 MaxWaitSecs *int32 `protobuf:"varint,2,opt,name=max_wait_secs" json:"max _wait_secs,omitempty"`
273 // Message to be posted to code review site when no LGTM is found. Defau lt
274 // value is "No LGTM from a valid reviewer yet. Only full committers are "
275 // "accepted.\nEven if an LGTM may have been provided, it was from a "
276 // "non-committer,\n_not_ a full super star committer.\nSee "
277 // "http://www.chromium.org/getting-involved/become-a-committer\nNote th at "
278 // "this has nothing to do with OWNERS files."
279 NoLgtmMsg *string `protobuf:"bytes,3,opt,name=no_lgtm_msg" json:" no_lgtm_msg,omitempty"`
280 XXX_unrecognized []byte `json:"-"`
281 }
282
283 func (m *Verifiers_ReviewerLgtmVerifier) Reset() { *m = Verifiers_Review erLgtmVerifier{} }
284 func (m *Verifiers_ReviewerLgtmVerifier) String() string { return proto.CompactT extString(m) }
285 func (*Verifiers_ReviewerLgtmVerifier) ProtoMessage() {}
286
287 func (m *Verifiers_ReviewerLgtmVerifier) GetCommitterList() string {
288 if m != nil && m.CommitterList != nil {
289 return *m.CommitterList
290 }
291 return ""
292 }
293
294 func (m *Verifiers_ReviewerLgtmVerifier) GetMaxWaitSecs() int32 {
295 if m != nil && m.MaxWaitSecs != nil {
296 return *m.MaxWaitSecs
297 }
298 return 0
299 }
300
301 func (m *Verifiers_ReviewerLgtmVerifier) GetNoLgtmMsg() string {
302 if m != nil && m.NoLgtmMsg != nil {
303 return *m.NoLgtmMsg
304 }
305 return ""
306 }
307
308 type Verifiers_TreeStatusLgtmVerifier struct {
309 // Required. URL of the project tree status app.
310 TreeStatusUrl *string `protobuf:"bytes,1,opt,name=tree_status_url" js on:"tree_status_url,omitempty"`
311 XXX_unrecognized []byte `json:"-"`
312 }
313
314 func (m *Verifiers_TreeStatusLgtmVerifier) Reset() { *m = Verifiers_Tree StatusLgtmVerifier{} }
315 func (m *Verifiers_TreeStatusLgtmVerifier) String() string { return proto.Compac tTextString(m) }
316 func (*Verifiers_TreeStatusLgtmVerifier) ProtoMessage() {}
317
318 func (m *Verifiers_TreeStatusLgtmVerifier) GetTreeStatusUrl() string {
319 if m != nil && m.TreeStatusUrl != nil {
320 return *m.TreeStatusUrl
321 }
322 return ""
323 }
324
325 type Verifiers_TryJobVerifier struct {
326 // Buckets on which tryjobs are triggered/watched.
327 Buckets []*Verifiers_TryJobVerifier_Bucket `protobuf:"bytes,1,rep,name=b uckets" json:"buckets,omitempty"`
328 // Provides project specific trybot retry configuration. This overrides the
329 // defaults used in the CQ.
330 TryJobRetryConfig *Verifiers_TryJobVerifier_TryJobRetryConfig `protobuf: "bytes,2,opt,name=try_job_retry_config" json:"try_job_retry_config,omitempty"`
331 XXX_unrecognized []byte `json:"-"`
332 }
333
334 func (m *Verifiers_TryJobVerifier) Reset() { *m = Verifiers_TryJobVerifi er{} }
335 func (m *Verifiers_TryJobVerifier) String() string { return proto.CompactTextStr ing(m) }
336 func (*Verifiers_TryJobVerifier) ProtoMessage() {}
337
338 func (m *Verifiers_TryJobVerifier) GetBuckets() []*Verifiers_TryJobVerifier_Buck et {
339 if m != nil {
340 return m.Buckets
341 }
342 return nil
343 }
344
345 func (m *Verifiers_TryJobVerifier) GetTryJobRetryConfig() *Verifiers_TryJobVerif ier_TryJobRetryConfig {
346 if m != nil {
347 return m.TryJobRetryConfig
348 }
349 return nil
350 }
351
352 type Verifiers_TryJobVerifier_Builder struct {
353 // Name of the builder.
354 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
355 // When true, the builder is triggered by CQ. Otherwise, it is expected to
356 // be triggered from another tryjob. Default value is true.
357 Triggered *bool `protobuf:"varint,2,opt,name=triggered" json:"triggered, omitempty"`
358 // When this field is present, it marks given builder as experimental. I t
359 // is only executed on a given percentage of the CLs and the outcome doe s
360 // not affect the decicion whether a CL can land or not. This is typical ly
361 // used to test new builders and estimate their capacity requirements.
362 ExperimentPercentage *float32 `protobuf:"fixed32,4,opt,name=experiment_p ercentage" json:"experiment_percentage,omitempty"`
363 XXX_unrecognized []byte `json:"-"`
364 }
365
366 func (m *Verifiers_TryJobVerifier_Builder) Reset() { *m = Verifiers_TryJ obVerifier_Builder{} }
367 func (m *Verifiers_TryJobVerifier_Builder) String() string { return proto.Compac tTextString(m) }
368 func (*Verifiers_TryJobVerifier_Builder) ProtoMessage() {}
369
370 func (m *Verifiers_TryJobVerifier_Builder) GetName() string {
371 if m != nil && m.Name != nil {
372 return *m.Name
373 }
374 return ""
375 }
376
377 func (m *Verifiers_TryJobVerifier_Builder) GetTriggered() bool {
378 if m != nil && m.Triggered != nil {
379 return *m.Triggered
380 }
381 return false
382 }
383
384 func (m *Verifiers_TryJobVerifier_Builder) GetExperimentPercentage() float32 {
385 if m != nil && m.ExperimentPercentage != nil {
386 return *m.ExperimentPercentage
387 }
388 return 0
389 }
390
391 type Verifiers_TryJobVerifier_Bucket struct {
392 // Name of the bucket. This is typically the same as a master name.
393 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
394 // Builders on which tryjobs should be triggered.
395 Builders []*Verifiers_TryJobVerifier_Builder `protobuf:"bytes,2, rep,name=builders" json:"builders,omitempty"`
396 XXX_unrecognized []byte `json:"-"`
397 }
398
399 func (m *Verifiers_TryJobVerifier_Bucket) Reset() { *m = Verifiers_TryJo bVerifier_Bucket{} }
400 func (m *Verifiers_TryJobVerifier_Bucket) String() string { return proto.Compact TextString(m) }
401 func (*Verifiers_TryJobVerifier_Bucket) ProtoMessage() {}
402
403 func (m *Verifiers_TryJobVerifier_Bucket) GetName() string {
404 if m != nil && m.Name != nil {
405 return *m.Name
406 }
407 return ""
408 }
409
410 func (m *Verifiers_TryJobVerifier_Bucket) GetBuilders() []*Verifiers_TryJobVerif ier_Builder {
411 if m != nil {
412 return m.Builders
413 }
414 return nil
415 }
416
417 type Verifiers_TryJobVerifier_TryJobRetryConfig struct {
418 // Retry quota for a single tryjob.
419 TryJobRetryQuota *int32 `protobuf:"varint,1,opt,name=try_job_retry_quota " json:"try_job_retry_quota,omitempty"`
420 // Retry quota for all tryjobs in a CL.
421 GlobalRetryQuota *int32 `protobuf:"varint,2,opt,name=global_retry_quota" json:"global_retry_quota,omitempty"`
422 // The weight assigned to each tryjob failure.
423 FailureRetryWeight *int32 `protobuf:"varint,3,opt,name=failure_retry_wei ght" json:"failure_retry_weight,omitempty"`
424 // The weight assigned to each transient failure.
425 TransientFailureRetryWeight *int32 `protobuf:"varint,4,opt,name=transien t_failure_retry_weight" json:"transient_failure_retry_weight,omitempty"`
426 // The weight assigned to tryjob timeouts.
427 TimeoutRetryWeight *int32 `protobuf:"varint,5,opt,name=timeout_retry_wei ght" json:"timeout_retry_weight,omitempty"`
428 XXX_unrecognized []byte `json:"-"`
429 }
430
431 func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) Reset() {
432 *m = Verifiers_TryJobVerifier_TryJobRetryConfig{}
433 }
434 func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) String() string {
435 return proto.CompactTextString(m)
436 }
437 func (*Verifiers_TryJobVerifier_TryJobRetryConfig) ProtoMessage() {}
438
439 func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) GetTryJobRetryQuota() int32 {
440 if m != nil && m.TryJobRetryQuota != nil {
441 return *m.TryJobRetryQuota
442 }
443 return 0
444 }
445
446 func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) GetGlobalRetryQuota() int32 {
447 if m != nil && m.GlobalRetryQuota != nil {
448 return *m.GlobalRetryQuota
449 }
450 return 0
451 }
452
453 func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) GetFailureRetryWeight() int 32 {
454 if m != nil && m.FailureRetryWeight != nil {
455 return *m.FailureRetryWeight
456 }
457 return 0
458 }
459
460 func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) GetTransientFailureRetryWei ght() int32 {
461 if m != nil && m.TransientFailureRetryWeight != nil {
462 return *m.TransientFailureRetryWeight
463 }
464 return 0
465 }
466
467 func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) GetTimeoutRetryWeight() int 32 {
468 if m != nil && m.TimeoutRetryWeight != nil {
469 return *m.TimeoutRetryWeight
470 }
471 return 0
472 }
473
474 type Verifiers_SignCLAVerifier struct {
475 XXX_unrecognized []byte `json:"-"`
476 }
477
478 func (m *Verifiers_SignCLAVerifier) Reset() { *m = Verifiers_SignCLAVeri fier{} }
479 func (m *Verifiers_SignCLAVerifier) String() string { return proto.CompactTextSt ring(m) }
480 func (*Verifiers_SignCLAVerifier) ProtoMessage() {}
OLDNEW
« no previous file with comments | « third_party/cq_client/cq.proto ('k') | third_party/cq_client/cq_pb2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698