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 GoogleCloudAiplatformV1Candidate extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'safetyRatings';
|
---|
23 | public $avgLogprobs;
|
---|
24 | protected $citationMetadataType = GoogleCloudAiplatformV1CitationMetadata::class;
|
---|
25 | protected $citationMetadataDataType = '';
|
---|
26 | protected $contentType = GoogleCloudAiplatformV1Content::class;
|
---|
27 | protected $contentDataType = '';
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $finishMessage;
|
---|
32 | /**
|
---|
33 | * @var string
|
---|
34 | */
|
---|
35 | public $finishReason;
|
---|
36 | protected $groundingMetadataType = GoogleCloudAiplatformV1GroundingMetadata::class;
|
---|
37 | protected $groundingMetadataDataType = '';
|
---|
38 | /**
|
---|
39 | * @var int
|
---|
40 | */
|
---|
41 | public $index;
|
---|
42 | protected $logprobsResultType = GoogleCloudAiplatformV1LogprobsResult::class;
|
---|
43 | protected $logprobsResultDataType = '';
|
---|
44 | protected $safetyRatingsType = GoogleCloudAiplatformV1SafetyRating::class;
|
---|
45 | protected $safetyRatingsDataType = 'array';
|
---|
46 |
|
---|
47 | public function setAvgLogprobs($avgLogprobs)
|
---|
48 | {
|
---|
49 | $this->avgLogprobs = $avgLogprobs;
|
---|
50 | }
|
---|
51 | public function getAvgLogprobs()
|
---|
52 | {
|
---|
53 | return $this->avgLogprobs;
|
---|
54 | }
|
---|
55 | /**
|
---|
56 | * @param GoogleCloudAiplatformV1CitationMetadata
|
---|
57 | */
|
---|
58 | public function setCitationMetadata(GoogleCloudAiplatformV1CitationMetadata $citationMetadata)
|
---|
59 | {
|
---|
60 | $this->citationMetadata = $citationMetadata;
|
---|
61 | }
|
---|
62 | /**
|
---|
63 | * @return GoogleCloudAiplatformV1CitationMetadata
|
---|
64 | */
|
---|
65 | public function getCitationMetadata()
|
---|
66 | {
|
---|
67 | return $this->citationMetadata;
|
---|
68 | }
|
---|
69 | /**
|
---|
70 | * @param GoogleCloudAiplatformV1Content
|
---|
71 | */
|
---|
72 | public function setContent(GoogleCloudAiplatformV1Content $content)
|
---|
73 | {
|
---|
74 | $this->content = $content;
|
---|
75 | }
|
---|
76 | /**
|
---|
77 | * @return GoogleCloudAiplatformV1Content
|
---|
78 | */
|
---|
79 | public function getContent()
|
---|
80 | {
|
---|
81 | return $this->content;
|
---|
82 | }
|
---|
83 | /**
|
---|
84 | * @param string
|
---|
85 | */
|
---|
86 | public function setFinishMessage($finishMessage)
|
---|
87 | {
|
---|
88 | $this->finishMessage = $finishMessage;
|
---|
89 | }
|
---|
90 | /**
|
---|
91 | * @return string
|
---|
92 | */
|
---|
93 | public function getFinishMessage()
|
---|
94 | {
|
---|
95 | return $this->finishMessage;
|
---|
96 | }
|
---|
97 | /**
|
---|
98 | * @param string
|
---|
99 | */
|
---|
100 | public function setFinishReason($finishReason)
|
---|
101 | {
|
---|
102 | $this->finishReason = $finishReason;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @return string
|
---|
106 | */
|
---|
107 | public function getFinishReason()
|
---|
108 | {
|
---|
109 | return $this->finishReason;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @param GoogleCloudAiplatformV1GroundingMetadata
|
---|
113 | */
|
---|
114 | public function setGroundingMetadata(GoogleCloudAiplatformV1GroundingMetadata $groundingMetadata)
|
---|
115 | {
|
---|
116 | $this->groundingMetadata = $groundingMetadata;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @return GoogleCloudAiplatformV1GroundingMetadata
|
---|
120 | */
|
---|
121 | public function getGroundingMetadata()
|
---|
122 | {
|
---|
123 | return $this->groundingMetadata;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @param int
|
---|
127 | */
|
---|
128 | public function setIndex($index)
|
---|
129 | {
|
---|
130 | $this->index = $index;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @return int
|
---|
134 | */
|
---|
135 | public function getIndex()
|
---|
136 | {
|
---|
137 | return $this->index;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @param GoogleCloudAiplatformV1LogprobsResult
|
---|
141 | */
|
---|
142 | public function setLogprobsResult(GoogleCloudAiplatformV1LogprobsResult $logprobsResult)
|
---|
143 | {
|
---|
144 | $this->logprobsResult = $logprobsResult;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @return GoogleCloudAiplatformV1LogprobsResult
|
---|
148 | */
|
---|
149 | public function getLogprobsResult()
|
---|
150 | {
|
---|
151 | return $this->logprobsResult;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @param GoogleCloudAiplatformV1SafetyRating[]
|
---|
155 | */
|
---|
156 | public function setSafetyRatings($safetyRatings)
|
---|
157 | {
|
---|
158 | $this->safetyRatings = $safetyRatings;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @return GoogleCloudAiplatformV1SafetyRating[]
|
---|
162 | */
|
---|
163 | public function getSafetyRatings()
|
---|
164 | {
|
---|
165 | return $this->safetyRatings;
|
---|
166 | }
|
---|
167 | }
|
---|
168 |
|
---|
169 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
170 | class_alias(GoogleCloudAiplatformV1Candidate::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1Candidate');
|
---|