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\Logging;
19
20class WriteLogEntriesRequest extends \Google\Collection
21{
22  protected $collection_key = 'entries';
23  /**
24   * @var bool
25   */
26  public $dryRun;
27  protected $entriesType = LogEntry::class;
28  protected $entriesDataType = 'array';
29  /**
30   * @var string[]
31   */
32  public $labels;
33  /**
34   * @var string
35   */
36  public $logName;
37  /**
38   * @var bool
39   */
40  public $partialSuccess;
41  protected $resourceType = MonitoredResource::class;
42  protected $resourceDataType = '';
43
44  /**
45   * @param bool
46   */
47  public function setDryRun($dryRun)
48  {
49    $this->dryRun = $dryRun;
50  }
51  /**
52   * @return bool
53   */
54  public function getDryRun()
55  {
56    return $this->dryRun;
57  }
58  /**
59   * @param LogEntry[]
60   */
61  public function setEntries($entries)
62  {
63    $this->entries = $entries;
64  }
65  /**
66   * @return LogEntry[]
67   */
68  public function getEntries()
69  {
70    return $this->entries;
71  }
72  /**
73   * @param string[]
74   */
75  public function setLabels($labels)
76  {
77    $this->labels = $labels;
78  }
79  /**
80   * @return string[]
81   */
82  public function getLabels()
83  {
84    return $this->labels;
85  }
86  /**
87   * @param string
88   */
89  public function setLogName($logName)
90  {
91    $this->logName = $logName;
92  }
93  /**
94   * @return string
95   */
96  public function getLogName()
97  {
98    return $this->logName;
99  }
100  /**
101   * @param bool
102   */
103  public function setPartialSuccess($partialSuccess)
104  {
105    $this->partialSuccess = $partialSuccess;
106  }
107  /**
108   * @return bool
109   */
110  public function getPartialSuccess()
111  {
112    return $this->partialSuccess;
113  }
114  /**
115   * @param MonitoredResource
116   */
117  public function setResource(MonitoredResource $resource)
118  {
119    $this->resource = $resource;
120  }
121  /**
122   * @return MonitoredResource
123   */
124  public function getResource()
125  {
126    return $this->resource;
127  }
128}
129
130// Adding a class alias for backwards compatibility with the previous class name.
131class_alias(WriteLogEntriesRequest::class, 'Google_Service_Logging_WriteLogEntriesRequest');
132