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 |
|
---|
18 | namespace Google\Service\Aiplatform;
|
---|
19 |
|
---|
20 | class GoogleCloudAiplatformV1CachedContent extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'tools';
|
---|
23 | protected $contentsType = GoogleCloudAiplatformV1Content::class;
|
---|
24 | protected $contentsDataType = 'array';
|
---|
25 | /**
|
---|
26 | * @var string
|
---|
27 | */
|
---|
28 | public $createTime;
|
---|
29 | /**
|
---|
30 | * @var string
|
---|
31 | */
|
---|
32 | public $displayName;
|
---|
33 | /**
|
---|
34 | * @var string
|
---|
35 | */
|
---|
36 | public $expireTime;
|
---|
37 | /**
|
---|
38 | * @var string
|
---|
39 | */
|
---|
40 | public $model;
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $name;
|
---|
45 | protected $systemInstructionType = GoogleCloudAiplatformV1Content::class;
|
---|
46 | protected $systemInstructionDataType = '';
|
---|
47 | protected $toolConfigType = GoogleCloudAiplatformV1ToolConfig::class;
|
---|
48 | protected $toolConfigDataType = '';
|
---|
49 | protected $toolsType = GoogleCloudAiplatformV1Tool::class;
|
---|
50 | protected $toolsDataType = 'array';
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $ttl;
|
---|
55 | /**
|
---|
56 | * @var string
|
---|
57 | */
|
---|
58 | public $updateTime;
|
---|
59 | protected $usageMetadataType = GoogleCloudAiplatformV1CachedContentUsageMetadata::class;
|
---|
60 | protected $usageMetadataDataType = '';
|
---|
61 |
|
---|
62 | /**
|
---|
63 | * @param GoogleCloudAiplatformV1Content[]
|
---|
64 | */
|
---|
65 | public function setContents($contents)
|
---|
66 | {
|
---|
67 | $this->contents = $contents;
|
---|
68 | }
|
---|
69 | /**
|
---|
70 | * @return GoogleCloudAiplatformV1Content[]
|
---|
71 | */
|
---|
72 | public function getContents()
|
---|
73 | {
|
---|
74 | return $this->contents;
|
---|
75 | }
|
---|
76 | /**
|
---|
77 | * @param string
|
---|
78 | */
|
---|
79 | public function setCreateTime($createTime)
|
---|
80 | {
|
---|
81 | $this->createTime = $createTime;
|
---|
82 | }
|
---|
83 | /**
|
---|
84 | * @return string
|
---|
85 | */
|
---|
86 | public function getCreateTime()
|
---|
87 | {
|
---|
88 | return $this->createTime;
|
---|
89 | }
|
---|
90 | /**
|
---|
91 | * @param string
|
---|
92 | */
|
---|
93 | public function setDisplayName($displayName)
|
---|
94 | {
|
---|
95 | $this->displayName = $displayName;
|
---|
96 | }
|
---|
97 | /**
|
---|
98 | * @return string
|
---|
99 | */
|
---|
100 | public function getDisplayName()
|
---|
101 | {
|
---|
102 | return $this->displayName;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @param string
|
---|
106 | */
|
---|
107 | public function setExpireTime($expireTime)
|
---|
108 | {
|
---|
109 | $this->expireTime = $expireTime;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @return string
|
---|
113 | */
|
---|
114 | public function getExpireTime()
|
---|
115 | {
|
---|
116 | return $this->expireTime;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @param string
|
---|
120 | */
|
---|
121 | public function setModel($model)
|
---|
122 | {
|
---|
123 | $this->model = $model;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return string
|
---|
127 | */
|
---|
128 | public function getModel()
|
---|
129 | {
|
---|
130 | return $this->model;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param string
|
---|
134 | */
|
---|
135 | public function setName($name)
|
---|
136 | {
|
---|
137 | $this->name = $name;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return string
|
---|
141 | */
|
---|
142 | public function getName()
|
---|
143 | {
|
---|
144 | return $this->name;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param GoogleCloudAiplatformV1Content
|
---|
148 | */
|
---|
149 | public function setSystemInstruction(GoogleCloudAiplatformV1Content $systemInstruction)
|
---|
150 | {
|
---|
151 | $this->systemInstruction = $systemInstruction;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return GoogleCloudAiplatformV1Content
|
---|
155 | */
|
---|
156 | public function getSystemInstruction()
|
---|
157 | {
|
---|
158 | return $this->systemInstruction;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param GoogleCloudAiplatformV1ToolConfig
|
---|
162 | */
|
---|
163 | public function setToolConfig(GoogleCloudAiplatformV1ToolConfig $toolConfig)
|
---|
164 | {
|
---|
165 | $this->toolConfig = $toolConfig;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return GoogleCloudAiplatformV1ToolConfig
|
---|
169 | */
|
---|
170 | public function getToolConfig()
|
---|
171 | {
|
---|
172 | return $this->toolConfig;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param GoogleCloudAiplatformV1Tool[]
|
---|
176 | */
|
---|
177 | public function setTools($tools)
|
---|
178 | {
|
---|
179 | $this->tools = $tools;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return GoogleCloudAiplatformV1Tool[]
|
---|
183 | */
|
---|
184 | public function getTools()
|
---|
185 | {
|
---|
186 | return $this->tools;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param string
|
---|
190 | */
|
---|
191 | public function setTtl($ttl)
|
---|
192 | {
|
---|
193 | $this->ttl = $ttl;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return string
|
---|
197 | */
|
---|
198 | public function getTtl()
|
---|
199 | {
|
---|
200 | return $this->ttl;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @param string
|
---|
204 | */
|
---|
205 | public function setUpdateTime($updateTime)
|
---|
206 | {
|
---|
207 | $this->updateTime = $updateTime;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @return string
|
---|
211 | */
|
---|
212 | public function getUpdateTime()
|
---|
213 | {
|
---|
214 | return $this->updateTime;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @param GoogleCloudAiplatformV1CachedContentUsageMetadata
|
---|
218 | */
|
---|
219 | public function setUsageMetadata(GoogleCloudAiplatformV1CachedContentUsageMetadata $usageMetadata)
|
---|
220 | {
|
---|
221 | $this->usageMetadata = $usageMetadata;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @return GoogleCloudAiplatformV1CachedContentUsageMetadata
|
---|
225 | */
|
---|
226 | public function getUsageMetadata()
|
---|
227 | {
|
---|
228 | return $this->usageMetadata;
|
---|
229 | }
|
---|
230 | }
|
---|
231 |
|
---|
232 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
233 | class_alias(GoogleCloudAiplatformV1CachedContent::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1CachedContent');
|
---|