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 GoogleCloudAiplatformV1GenerateContentRequest extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'tools';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $cachedContent;
|
---|
27 | protected $contentsType = GoogleCloudAiplatformV1Content::class;
|
---|
28 | protected $contentsDataType = 'array';
|
---|
29 | protected $generationConfigType = GoogleCloudAiplatformV1GenerationConfig::class;
|
---|
30 | protected $generationConfigDataType = '';
|
---|
31 | /**
|
---|
32 | * @var string[]
|
---|
33 | */
|
---|
34 | public $labels;
|
---|
35 | protected $safetySettingsType = GoogleCloudAiplatformV1SafetySetting::class;
|
---|
36 | protected $safetySettingsDataType = 'array';
|
---|
37 | protected $systemInstructionType = GoogleCloudAiplatformV1Content::class;
|
---|
38 | protected $systemInstructionDataType = '';
|
---|
39 | protected $toolConfigType = GoogleCloudAiplatformV1ToolConfig::class;
|
---|
40 | protected $toolConfigDataType = '';
|
---|
41 | protected $toolsType = GoogleCloudAiplatformV1Tool::class;
|
---|
42 | protected $toolsDataType = 'array';
|
---|
43 |
|
---|
44 | /**
|
---|
45 | * @param string
|
---|
46 | */
|
---|
47 | public function setCachedContent($cachedContent)
|
---|
48 | {
|
---|
49 | $this->cachedContent = $cachedContent;
|
---|
50 | }
|
---|
51 | /**
|
---|
52 | * @return string
|
---|
53 | */
|
---|
54 | public function getCachedContent()
|
---|
55 | {
|
---|
56 | return $this->cachedContent;
|
---|
57 | }
|
---|
58 | /**
|
---|
59 | * @param GoogleCloudAiplatformV1Content[]
|
---|
60 | */
|
---|
61 | public function setContents($contents)
|
---|
62 | {
|
---|
63 | $this->contents = $contents;
|
---|
64 | }
|
---|
65 | /**
|
---|
66 | * @return GoogleCloudAiplatformV1Content[]
|
---|
67 | */
|
---|
68 | public function getContents()
|
---|
69 | {
|
---|
70 | return $this->contents;
|
---|
71 | }
|
---|
72 | /**
|
---|
73 | * @param GoogleCloudAiplatformV1GenerationConfig
|
---|
74 | */
|
---|
75 | public function setGenerationConfig(GoogleCloudAiplatformV1GenerationConfig $generationConfig)
|
---|
76 | {
|
---|
77 | $this->generationConfig = $generationConfig;
|
---|
78 | }
|
---|
79 | /**
|
---|
80 | * @return GoogleCloudAiplatformV1GenerationConfig
|
---|
81 | */
|
---|
82 | public function getGenerationConfig()
|
---|
83 | {
|
---|
84 | return $this->generationConfig;
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * @param string[]
|
---|
88 | */
|
---|
89 | public function setLabels($labels)
|
---|
90 | {
|
---|
91 | $this->labels = $labels;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @return string[]
|
---|
95 | */
|
---|
96 | public function getLabels()
|
---|
97 | {
|
---|
98 | return $this->labels;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @param GoogleCloudAiplatformV1SafetySetting[]
|
---|
102 | */
|
---|
103 | public function setSafetySettings($safetySettings)
|
---|
104 | {
|
---|
105 | $this->safetySettings = $safetySettings;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @return GoogleCloudAiplatformV1SafetySetting[]
|
---|
109 | */
|
---|
110 | public function getSafetySettings()
|
---|
111 | {
|
---|
112 | return $this->safetySettings;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @param GoogleCloudAiplatformV1Content
|
---|
116 | */
|
---|
117 | public function setSystemInstruction(GoogleCloudAiplatformV1Content $systemInstruction)
|
---|
118 | {
|
---|
119 | $this->systemInstruction = $systemInstruction;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @return GoogleCloudAiplatformV1Content
|
---|
123 | */
|
---|
124 | public function getSystemInstruction()
|
---|
125 | {
|
---|
126 | return $this->systemInstruction;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @param GoogleCloudAiplatformV1ToolConfig
|
---|
130 | */
|
---|
131 | public function setToolConfig(GoogleCloudAiplatformV1ToolConfig $toolConfig)
|
---|
132 | {
|
---|
133 | $this->toolConfig = $toolConfig;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @return GoogleCloudAiplatformV1ToolConfig
|
---|
137 | */
|
---|
138 | public function getToolConfig()
|
---|
139 | {
|
---|
140 | return $this->toolConfig;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @param GoogleCloudAiplatformV1Tool[]
|
---|
144 | */
|
---|
145 | public function setTools($tools)
|
---|
146 | {
|
---|
147 | $this->tools = $tools;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @return GoogleCloudAiplatformV1Tool[]
|
---|
151 | */
|
---|
152 | public function getTools()
|
---|
153 | {
|
---|
154 | return $this->tools;
|
---|
155 | }
|
---|
156 | }
|
---|
157 |
|
---|
158 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
159 | class_alias(GoogleCloudAiplatformV1GenerateContentRequest::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1GenerateContentRequest');
|
---|