1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\CloudBuild;
19
20class BuildTrigger extends \Google\Collection
21{
22  protected $collection_key = 'tags';
23  protected $approvalConfigType = ApprovalConfig::class;
24  protected $approvalConfigDataType = '';
25  /**
26   * @var bool
27   */
28  public $autodetect;
29  protected $bitbucketServerTriggerConfigType = BitbucketServerTriggerConfig::class;
30  protected $bitbucketServerTriggerConfigDataType = '';
31  protected $buildType = Build::class;
32  protected $buildDataType = '';
33  /**
34   * @var string
35   */
36  public $createTime;
37  /**
38   * @var string
39   */
40  public $description;
41  /**
42   * @var bool
43   */
44  public $disabled;
45  /**
46   * @var string
47   */
48  public $eventType;
49  /**
50   * @var string
51   */
52  public $filename;
53  /**
54   * @var string
55   */
56  public $filter;
57  protected $gitFileSourceType = GitFileSource::class;
58  protected $gitFileSourceDataType = '';
59  protected $githubType = GitHubEventsConfig::class;
60  protected $githubDataType = '';
61  /**
62   * @var string
63   */
64  public $id;
65  /**
66   * @var string[]
67   */
68  public $ignoredFiles;
69  /**
70   * @var string[]
71   */
72  public $includedFiles;
73  /**
74   * @var string
75   */
76  public $name;
77  protected $pubsubConfigType = PubsubConfig::class;
78  protected $pubsubConfigDataType = '';
79  /**
80   * @var string
81   */
82  public $resourceName;
83  /**
84   * @var string
85   */
86  public $serviceAccount;
87  protected $sourceToBuildType = GitRepoSource::class;
88  protected $sourceToBuildDataType = '';
89  /**
90   * @var string[]
91   */
92  public $substitutions;
93  /**
94   * @var string[]
95   */
96  public $tags;
97  protected $triggerTemplateType = RepoSource::class;
98  protected $triggerTemplateDataType = '';
99  protected $webhookConfigType = WebhookConfig::class;
100  protected $webhookConfigDataType = '';
101
102  /**
103   * @param ApprovalConfig
104   */
105  public function setApprovalConfig(ApprovalConfig $approvalConfig)
106  {
107    $this->approvalConfig = $approvalConfig;
108  }
109  /**
110   * @return ApprovalConfig
111   */
112  public function getApprovalConfig()
113  {
114    return $this->approvalConfig;
115  }
116  /**
117   * @param bool
118   */
119  public function setAutodetect($autodetect)
120  {
121    $this->autodetect = $autodetect;
122  }
123  /**
124   * @return bool
125   */
126  public function getAutodetect()
127  {
128    return $this->autodetect;
129  }
130  /**
131   * @param BitbucketServerTriggerConfig
132   */
133  public function setBitbucketServerTriggerConfig(BitbucketServerTriggerConfig $bitbucketServerTriggerConfig)
134  {
135    $this->bitbucketServerTriggerConfig = $bitbucketServerTriggerConfig;
136  }
137  /**
138   * @return BitbucketServerTriggerConfig
139   */
140  public function getBitbucketServerTriggerConfig()
141  {
142    return $this->bitbucketServerTriggerConfig;
143  }
144  /**
145   * @param Build
146   */
147  public function setBuild(Build $build)
148  {
149    $this->build = $build;
150  }
151  /**
152   * @return Build
153   */
154  public function getBuild()
155  {
156    return $this->build;
157  }
158  /**
159   * @param string
160   */
161  public function setCreateTime($createTime)
162  {
163    $this->createTime = $createTime;
164  }
165  /**
166   * @return string
167   */
168  public function getCreateTime()
169  {
170    return $this->createTime;
171  }
172  /**
173   * @param string
174   */
175  public function setDescription($description)
176  {
177    $this->description = $description;
178  }
179  /**
180   * @return string
181   */
182  public function getDescription()
183  {
184    return $this->description;
185  }
186  /**
187   * @param bool
188   */
189  public function setDisabled($disabled)
190  {
191    $this->disabled = $disabled;
192  }
193  /**
194   * @return bool
195   */
196  public function getDisabled()
197  {
198    return $this->disabled;
199  }
200  /**
201   * @param string
202   */
203  public function setEventType($eventType)
204  {
205    $this->eventType = $eventType;
206  }
207  /**
208   * @return string
209   */
210  public function getEventType()
211  {
212    return $this->eventType;
213  }
214  /**
215   * @param string
216   */
217  public function setFilename($filename)
218  {
219    $this->filename = $filename;
220  }
221  /**
222   * @return string
223   */
224  public function getFilename()
225  {
226    return $this->filename;
227  }
228  /**
229   * @param string
230   */
231  public function setFilter($filter)
232  {
233    $this->filter = $filter;
234  }
235  /**
236   * @return string
237   */
238  public function getFilter()
239  {
240    return $this->filter;
241  }
242  /**
243   * @param GitFileSource
244   */
245  public function setGitFileSource(GitFileSource $gitFileSource)
246  {
247    $this->gitFileSource = $gitFileSource;
248  }
249  /**
250   * @return GitFileSource
251   */
252  public function getGitFileSource()
253  {
254    return $this->gitFileSource;
255  }
256  /**
257   * @param GitHubEventsConfig
258   */
259  public function setGithub(GitHubEventsConfig $github)
260  {
261    $this->github = $github;
262  }
263  /**
264   * @return GitHubEventsConfig
265   */
266  public function getGithub()
267  {
268    return $this->github;
269  }
270  /**
271   * @param string
272   */
273  public function setId($id)
274  {
275    $this->id = $id;
276  }
277  /**
278   * @return string
279   */
280  public function getId()
281  {
282    return $this->id;
283  }
284  /**
285   * @param string[]
286   */
287  public function setIgnoredFiles($ignoredFiles)
288  {
289    $this->ignoredFiles = $ignoredFiles;
290  }
291  /**
292   * @return string[]
293   */
294  public function getIgnoredFiles()
295  {
296    return $this->ignoredFiles;
297  }
298  /**
299   * @param string[]
300   */
301  public function setIncludedFiles($includedFiles)
302  {
303    $this->includedFiles = $includedFiles;
304  }
305  /**
306   * @return string[]
307   */
308  public function getIncludedFiles()
309  {
310    return $this->includedFiles;
311  }
312  /**
313   * @param string
314   */
315  public function setName($name)
316  {
317    $this->name = $name;
318  }
319  /**
320   * @return string
321   */
322  public function getName()
323  {
324    return $this->name;
325  }
326  /**
327   * @param PubsubConfig
328   */
329  public function setPubsubConfig(PubsubConfig $pubsubConfig)
330  {
331    $this->pubsubConfig = $pubsubConfig;
332  }
333  /**
334   * @return PubsubConfig
335   */
336  public function getPubsubConfig()
337  {
338    return $this->pubsubConfig;
339  }
340  /**
341   * @param string
342   */
343  public function setResourceName($resourceName)
344  {
345    $this->resourceName = $resourceName;
346  }
347  /**
348   * @return string
349   */
350  public function getResourceName()
351  {
352    return $this->resourceName;
353  }
354  /**
355   * @param string
356   */
357  public function setServiceAccount($serviceAccount)
358  {
359    $this->serviceAccount = $serviceAccount;
360  }
361  /**
362   * @return string
363   */
364  public function getServiceAccount()
365  {
366    return $this->serviceAccount;
367  }
368  /**
369   * @param GitRepoSource
370   */
371  public function setSourceToBuild(GitRepoSource $sourceToBuild)
372  {
373    $this->sourceToBuild = $sourceToBuild;
374  }
375  /**
376   * @return GitRepoSource
377   */
378  public function getSourceToBuild()
379  {
380    return $this->sourceToBuild;
381  }
382  /**
383   * @param string[]
384   */
385  public function setSubstitutions($substitutions)
386  {
387    $this->substitutions = $substitutions;
388  }
389  /**
390   * @return string[]
391   */
392  public function getSubstitutions()
393  {
394    return $this->substitutions;
395  }
396  /**
397   * @param string[]
398   */
399  public function setTags($tags)
400  {
401    $this->tags = $tags;
402  }
403  /**
404   * @return string[]
405   */
406  public function getTags()
407  {
408    return $this->tags;
409  }
410  /**
411   * @param RepoSource
412   */
413  public function setTriggerTemplate(RepoSource $triggerTemplate)
414  {
415    $this->triggerTemplate = $triggerTemplate;
416  }
417  /**
418   * @return RepoSource
419   */
420  public function getTriggerTemplate()
421  {
422    return $this->triggerTemplate;
423  }
424  /**
425   * @param WebhookConfig
426   */
427  public function setWebhookConfig(WebhookConfig $webhookConfig)
428  {
429    $this->webhookConfig = $webhookConfig;
430  }
431  /**
432   * @return WebhookConfig
433   */
434  public function getWebhookConfig()
435  {
436    return $this->webhookConfig;
437  }
438}
439
440// Adding a class alias for backwards compatibility with the previous class name.
441class_alias(BuildTrigger::class, 'Google_Service_CloudBuild_BuildTrigger');
442