OLD | NEW |
1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
2 // source: cq.proto | 2 // source: cq.proto |
3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
4 | 4 |
5 /* | 5 /* |
6 Package cq is a generated protocol buffer package. | 6 Package cq is a generated protocol buffer package. |
7 | 7 |
8 It is generated from these files: | 8 It is generated from these files: |
9 cq.proto | 9 cq.proto |
10 | 10 |
11 It has these top-level messages: | 11 It has these top-level messages: |
12 Config | 12 Config |
13 Rietveld | 13 Rietveld |
| 14 Gerrit |
14 Verifiers | 15 Verifiers |
15 */ | 16 */ |
16 package cq | 17 package cq |
17 | 18 |
18 import proto "github.com/golang/protobuf/proto" | 19 import proto "github.com/golang/protobuf/proto" |
19 import fmt "fmt" | 20 import fmt "fmt" |
20 import math "math" | 21 import math "math" |
21 | 22 |
22 // Reference imports to suppress errors if they are not otherwise used. | 23 // Reference imports to suppress errors if they are not otherwise used. |
23 var _ = proto.Marshal | 24 var _ = proto.Marshal |
(...skipping 23 matching lines...) Expand all Loading... |
47 // Delay between commit bursts in seconds. Default value is 480. | 48 // 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 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 // Maximum number of commits done sequentially, before waiting for |
50 // commit_burst_delay. Default value is 4. | 51 // 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 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 // Defines whether a CQ is used in production. Allows to disable CQ for
a |
53 // given branch. Default is true. | 54 // given branch. Default is true. |
54 InProduction *bool `protobuf:"varint,8,opt,name=in_production" json:"in_
production,omitempty"` | 55 InProduction *bool `protobuf:"varint,8,opt,name=in_production" json:"in_
production,omitempty"` |
55 // Configuration options for Rietveld code review. | 56 // Configuration options for Rietveld code review. |
56 Rietveld *Rietveld `protobuf:"bytes,9,opt,name=rietveld" json:"rietveld,
omitempty"` | 57 Rietveld *Rietveld `protobuf:"bytes,9,opt,name=rietveld" json:"rietveld,
omitempty"` |
| 58 // EXPERIMENTAL! Configuration options for Gerrit code review. |
| 59 // TODO(tandrii): update this doc (GERRIT). |
| 60 Gerrit *Gerrit `protobuf:"bytes,15,opt,name=gerrit" json:"gerrit,omitemp
ty"` |
57 // This can be used to override the Git repository URL used to checkout
and | 61 // 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 | 62 // 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). | 63 // 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"` | 64 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 | 65 // 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 | 66 // 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. | 67 // 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"` | 68 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
. | 69 // 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"` | 70 » 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 | 71 » XXX_unrecognized []byte `json:"-"` |
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 } | 72 } |
76 | 73 |
77 func (m *Config) Reset() { *m = Config{} } | 74 func (m *Config) Reset() { *m = Config{} } |
78 func (m *Config) String() string { return proto.CompactTextString(m) } | 75 func (m *Config) String() string { return proto.CompactTextString(m) } |
79 func (*Config) ProtoMessage() {} | 76 func (*Config) ProtoMessage() {} |
80 | 77 |
81 func (m *Config) GetVersion() int32 { | 78 func (m *Config) GetVersion() int32 { |
82 if m != nil && m.Version != nil { | 79 if m != nil && m.Version != nil { |
83 return *m.Version | 80 return *m.Version |
84 } | 81 } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 return false | 131 return false |
135 } | 132 } |
136 | 133 |
137 func (m *Config) GetRietveld() *Rietveld { | 134 func (m *Config) GetRietveld() *Rietveld { |
138 if m != nil { | 135 if m != nil { |
139 return m.Rietveld | 136 return m.Rietveld |
140 } | 137 } |
141 return nil | 138 return nil |
142 } | 139 } |
143 | 140 |
| 141 func (m *Config) GetGerrit() *Gerrit { |
| 142 if m != nil { |
| 143 return m.Gerrit |
| 144 } |
| 145 return nil |
| 146 } |
| 147 |
144 func (m *Config) GetGitRepoUrl() string { | 148 func (m *Config) GetGitRepoUrl() string { |
145 if m != nil && m.GitRepoUrl != nil { | 149 if m != nil && m.GitRepoUrl != nil { |
146 return *m.GitRepoUrl | 150 return *m.GitRepoUrl |
147 } | 151 } |
148 return "" | 152 return "" |
149 } | 153 } |
150 | 154 |
151 func (m *Config) GetTargetRef() string { | 155 func (m *Config) GetTargetRef() string { |
152 if m != nil && m.TargetRef != nil { | 156 if m != nil && m.TargetRef != nil { |
153 return *m.TargetRef | 157 return *m.TargetRef |
154 } | 158 } |
155 return "" | 159 return "" |
156 } | 160 } |
157 | 161 |
158 func (m *Config) GetSvnRepoUrl() string { | 162 func (m *Config) GetSvnRepoUrl() string { |
159 if m != nil && m.SvnRepoUrl != nil { | 163 if m != nil && m.SvnRepoUrl != nil { |
160 return *m.SvnRepoUrl | 164 return *m.SvnRepoUrl |
161 } | 165 } |
162 return "" | 166 return "" |
163 } | 167 } |
164 | 168 |
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 { | 169 type Rietveld struct { |
180 // Required. URL of the codereview site. | 170 // Required. URL of the codereview site. |
181 Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` | 171 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 | 172 // 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 | 173 // 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 | 174 // sub-directories that are handled by different CQs. When no regular |
185 // expressions are specified, the regular expression '.*', which matches
any | 175 // expressions are specified, the regular expression '.*', which matches
any |
186 // directory, is used. | 176 // directory, is used. |
187 ProjectBases []string `protobuf:"bytes,2,rep,name=project_bases" jso
n:"project_bases,omitempty"` | 177 ProjectBases []string `protobuf:"bytes,2,rep,name=project_bases" jso
n:"project_bases,omitempty"` |
188 XXX_unrecognized []byte `json:"-"` | 178 XXX_unrecognized []byte `json:"-"` |
(...skipping 10 matching lines...) Expand all Loading... |
199 return "" | 189 return "" |
200 } | 190 } |
201 | 191 |
202 func (m *Rietveld) GetProjectBases() []string { | 192 func (m *Rietveld) GetProjectBases() []string { |
203 if m != nil { | 193 if m != nil { |
204 return m.ProjectBases | 194 return m.ProjectBases |
205 } | 195 } |
206 return nil | 196 return nil |
207 } | 197 } |
208 | 198 |
| 199 // Gerrit CQ is EXPERIMENTAL! See http://crbug.com/493899 for more info. |
| 200 // |
| 201 // Unlike Rietveld, Gerrit doesn't need a separate url. |
| 202 // Instead, the git_repo_url must be specified on the Gerrit instance, |
| 203 // and CQ will deduce Gerrit url from it. |
| 204 // |
| 205 // TODO(tandrii): support Rietveld and Gerrit at the same time. |
| 206 // This basically requires to start two CQ instances, instead of one. |
| 207 // |
| 208 // For example, if https://chromium.googlesource.com/infra/infra.git is your |
| 209 // repo url provided in `git_repo_url` above, then |
| 210 // https://chromium-review.googlesource.com/#/admin/projects/infra/infra should |
| 211 // show general properties of your project. |
| 212 // |
| 213 // Also, |
| 214 // https://chromium-review.googlesource.com/#/admin/projects/infra/infra,access |
| 215 // should show ACLs for refs in your project, but you may need to be admin to |
| 216 // see it. This will come handy to enable and customize the CQ-related workflows |
| 217 // for your project. |
| 218 type Gerrit struct { |
| 219 // If set, tells CQ to set score on a given label to mark result of CQ r
un. |
| 220 // Typically, this is Commit-Queue-Verified label. |
| 221 // If not set, CQ will just try to hit submit button. |
| 222 CqVerifiedLabel *string `protobuf:"bytes,1,opt,name=cq_verified_label"
json:"cq_verified_label,omitempty"` |
| 223 XXX_unrecognized []byte `json:"-"` |
| 224 } |
| 225 |
| 226 func (m *Gerrit) Reset() { *m = Gerrit{} } |
| 227 func (m *Gerrit) String() string { return proto.CompactTextString(m) } |
| 228 func (*Gerrit) ProtoMessage() {} |
| 229 |
| 230 func (m *Gerrit) GetCqVerifiedLabel() string { |
| 231 if m != nil && m.CqVerifiedLabel != nil { |
| 232 return *m.CqVerifiedLabel |
| 233 } |
| 234 return "" |
| 235 } |
| 236 |
209 // Verifiers are various types of checks that a Commit Queue performs on a CL. | 237 // 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 | 238 // 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 | 239 // describes types of verifiers that should be applied to each CL and their |
212 // parameters. | 240 // parameters. |
213 type Verifiers struct { | 241 type Verifiers struct { |
214 // This verifier is used to ensure that an LGTM was posted to the code r
eview | 242 // This verifier is used to ensure that an LGTM was posted to the code r
eview |
215 // site from a valid project committer. | 243 // site from a valid project committer. |
| 244 // This verifier is not supported with Gerrit. |
216 ReviewerLgtm *Verifiers_ReviewerLgtmVerifier `protobuf:"bytes,1,opt,name
=reviewer_lgtm" json:"reviewer_lgtm,omitempty"` | 245 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 | 246 // 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. | 247 // 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"` | 248 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 | 249 // 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 | 250 // 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 | 251 // 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. | 252 // 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"` | 253 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 | 254 // This verifier is used to ensure that the author has signed Google's |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 return m.TryJobRetryConfig | 376 return m.TryJobRetryConfig |
348 } | 377 } |
349 return nil | 378 return nil |
350 } | 379 } |
351 | 380 |
352 type Verifiers_TryJobVerifier_Builder struct { | 381 type Verifiers_TryJobVerifier_Builder struct { |
353 // Name of the builder. | 382 // Name of the builder. |
354 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` | 383 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 | 384 // When true, the builder is triggered by CQ. Otherwise, it is expected
to |
356 // be triggered from another tryjob. Default value is true. | 385 // be triggered from another tryjob. Default value is true. |
357 » Triggered *bool `protobuf:"varint,2,opt,name=triggered" json:"triggered,
omitempty"` | 386 » TriggeredByCq *bool `protobuf:"varint,2,opt,name=triggered_by_cq" json:"
triggered_by_cq,omitempty"` |
358 // When this field is present, it marks given builder as experimental. I
t | 387 // 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 | 388 // 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 | 389 // 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. | 390 // 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"` | 391 ExperimentPercentage *float32 `protobuf:"fixed32,4,opt,name=experiment_p
ercentage" json:"experiment_percentage,omitempty"` |
363 XXX_unrecognized []byte `json:"-"` | 392 XXX_unrecognized []byte `json:"-"` |
364 } | 393 } |
365 | 394 |
366 func (m *Verifiers_TryJobVerifier_Builder) Reset() { *m = Verifiers_TryJ
obVerifier_Builder{} } | 395 func (m *Verifiers_TryJobVerifier_Builder) Reset() { *m = Verifiers_TryJ
obVerifier_Builder{} } |
367 func (m *Verifiers_TryJobVerifier_Builder) String() string { return proto.Compac
tTextString(m) } | 396 func (m *Verifiers_TryJobVerifier_Builder) String() string { return proto.Compac
tTextString(m) } |
368 func (*Verifiers_TryJobVerifier_Builder) ProtoMessage() {} | 397 func (*Verifiers_TryJobVerifier_Builder) ProtoMessage() {} |
369 | 398 |
370 func (m *Verifiers_TryJobVerifier_Builder) GetName() string { | 399 func (m *Verifiers_TryJobVerifier_Builder) GetName() string { |
371 if m != nil && m.Name != nil { | 400 if m != nil && m.Name != nil { |
372 return *m.Name | 401 return *m.Name |
373 } | 402 } |
374 return "" | 403 return "" |
375 } | 404 } |
376 | 405 |
377 func (m *Verifiers_TryJobVerifier_Builder) GetTriggered() bool { | 406 func (m *Verifiers_TryJobVerifier_Builder) GetTriggeredByCq() bool { |
378 » if m != nil && m.Triggered != nil { | 407 » if m != nil && m.TriggeredByCq != nil { |
379 » » return *m.Triggered | 408 » » return *m.TriggeredByCq |
380 } | 409 } |
381 return false | 410 return false |
382 } | 411 } |
383 | 412 |
384 func (m *Verifiers_TryJobVerifier_Builder) GetExperimentPercentage() float32 { | 413 func (m *Verifiers_TryJobVerifier_Builder) GetExperimentPercentage() float32 { |
385 if m != nil && m.ExperimentPercentage != nil { | 414 if m != nil && m.ExperimentPercentage != nil { |
386 return *m.ExperimentPercentage | 415 return *m.ExperimentPercentage |
387 } | 416 } |
388 return 0 | 417 return 0 |
389 } | 418 } |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 return 0 | 502 return 0 |
474 } | 503 } |
475 | 504 |
476 type Verifiers_SignCLAVerifier struct { | 505 type Verifiers_SignCLAVerifier struct { |
477 XXX_unrecognized []byte `json:"-"` | 506 XXX_unrecognized []byte `json:"-"` |
478 } | 507 } |
479 | 508 |
480 func (m *Verifiers_SignCLAVerifier) Reset() { *m = Verifiers_SignCLAVeri
fier{} } | 509 func (m *Verifiers_SignCLAVerifier) Reset() { *m = Verifiers_SignCLAVeri
fier{} } |
481 func (m *Verifiers_SignCLAVerifier) String() string { return proto.CompactTextSt
ring(m) } | 510 func (m *Verifiers_SignCLAVerifier) String() string { return proto.CompactTextSt
ring(m) } |
482 func (*Verifiers_SignCLAVerifier) ProtoMessage() {} | 511 func (*Verifiers_SignCLAVerifier) ProtoMessage() {} |
| 512 |
| 513 func init() { |
| 514 proto.RegisterType((*Config)(nil), "Config") |
| 515 proto.RegisterType((*Rietveld)(nil), "Rietveld") |
| 516 proto.RegisterType((*Gerrit)(nil), "Gerrit") |
| 517 proto.RegisterType((*Verifiers)(nil), "Verifiers") |
| 518 proto.RegisterType((*Verifiers_ReviewerLgtmVerifier)(nil), "Verifiers.Re
viewerLgtmVerifier") |
| 519 proto.RegisterType((*Verifiers_TreeStatusLgtmVerifier)(nil), "Verifiers.
TreeStatusLgtmVerifier") |
| 520 proto.RegisterType((*Verifiers_TryJobVerifier)(nil), "Verifiers.TryJobVe
rifier") |
| 521 proto.RegisterType((*Verifiers_TryJobVerifier_Builder)(nil), "Verifiers.
TryJobVerifier.Builder") |
| 522 proto.RegisterType((*Verifiers_TryJobVerifier_Bucket)(nil), "Verifiers.T
ryJobVerifier.Bucket") |
| 523 proto.RegisterType((*Verifiers_TryJobVerifier_TryJobRetryConfig)(nil), "
Verifiers.TryJobVerifier.TryJobRetryConfig") |
| 524 proto.RegisterType((*Verifiers_SignCLAVerifier)(nil), "Verifiers.SignCLA
Verifier") |
| 525 } |
OLD | NEW |