[e3d4e0a] | 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 GoogleCloudAiplatformV1SchemaPromptApiSchema extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'executions';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $apiSchemaVersion;
|
---|
| 27 | protected $executionsType = GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution::class;
|
---|
| 28 | protected $executionsDataType = 'array';
|
---|
| 29 | protected $multimodalPromptType = GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt::class;
|
---|
| 30 | protected $multimodalPromptDataType = '';
|
---|
| 31 | protected $structuredPromptType = GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt::class;
|
---|
| 32 | protected $structuredPromptDataType = '';
|
---|
| 33 | protected $translationPromptType = GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt::class;
|
---|
| 34 | protected $translationPromptDataType = '';
|
---|
| 35 |
|
---|
| 36 | /**
|
---|
| 37 | * @param string
|
---|
| 38 | */
|
---|
| 39 | public function setApiSchemaVersion($apiSchemaVersion)
|
---|
| 40 | {
|
---|
| 41 | $this->apiSchemaVersion = $apiSchemaVersion;
|
---|
| 42 | }
|
---|
| 43 | /**
|
---|
| 44 | * @return string
|
---|
| 45 | */
|
---|
| 46 | public function getApiSchemaVersion()
|
---|
| 47 | {
|
---|
| 48 | return $this->apiSchemaVersion;
|
---|
| 49 | }
|
---|
| 50 | /**
|
---|
| 51 | * @param GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution[]
|
---|
| 52 | */
|
---|
| 53 | public function setExecutions($executions)
|
---|
| 54 | {
|
---|
| 55 | $this->executions = $executions;
|
---|
| 56 | }
|
---|
| 57 | /**
|
---|
| 58 | * @return GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution[]
|
---|
| 59 | */
|
---|
| 60 | public function getExecutions()
|
---|
| 61 | {
|
---|
| 62 | return $this->executions;
|
---|
| 63 | }
|
---|
| 64 | /**
|
---|
| 65 | * @param GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt
|
---|
| 66 | */
|
---|
| 67 | public function setMultimodalPrompt(GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt $multimodalPrompt)
|
---|
| 68 | {
|
---|
| 69 | $this->multimodalPrompt = $multimodalPrompt;
|
---|
| 70 | }
|
---|
| 71 | /**
|
---|
| 72 | * @return GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt
|
---|
| 73 | */
|
---|
| 74 | public function getMultimodalPrompt()
|
---|
| 75 | {
|
---|
| 76 | return $this->multimodalPrompt;
|
---|
| 77 | }
|
---|
| 78 | /**
|
---|
| 79 | * @param GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt
|
---|
| 80 | */
|
---|
| 81 | public function setStructuredPrompt(GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt $structuredPrompt)
|
---|
| 82 | {
|
---|
| 83 | $this->structuredPrompt = $structuredPrompt;
|
---|
| 84 | }
|
---|
| 85 | /**
|
---|
| 86 | * @return GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt
|
---|
| 87 | */
|
---|
| 88 | public function getStructuredPrompt()
|
---|
| 89 | {
|
---|
| 90 | return $this->structuredPrompt;
|
---|
| 91 | }
|
---|
| 92 | /**
|
---|
| 93 | * @param GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt
|
---|
| 94 | */
|
---|
| 95 | public function setTranslationPrompt(GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt $translationPrompt)
|
---|
| 96 | {
|
---|
| 97 | $this->translationPrompt = $translationPrompt;
|
---|
| 98 | }
|
---|
| 99 | /**
|
---|
| 100 | * @return GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt
|
---|
| 101 | */
|
---|
| 102 | public function getTranslationPrompt()
|
---|
| 103 | {
|
---|
| 104 | return $this->translationPrompt;
|
---|
| 105 | }
|
---|
| 106 | }
|
---|
| 107 |
|
---|
| 108 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 109 | class_alias(GoogleCloudAiplatformV1SchemaPromptApiSchema::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SchemaPromptApiSchema');
|
---|