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\DiscoveryEngine;
|
---|
19 |
|
---|
20 | class GoogleCloudDiscoveryengineV1CheckGroundingResponse extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'claims';
|
---|
23 | protected $citedChunksType = GoogleCloudDiscoveryengineV1FactChunk::class;
|
---|
24 | protected $citedChunksDataType = 'array';
|
---|
25 | protected $citedFactsType = GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk::class;
|
---|
26 | protected $citedFactsDataType = 'array';
|
---|
27 | protected $claimsType = GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim::class;
|
---|
28 | protected $claimsDataType = 'array';
|
---|
29 | /**
|
---|
30 | * @var float
|
---|
31 | */
|
---|
32 | public $supportScore;
|
---|
33 |
|
---|
34 | /**
|
---|
35 | * @param GoogleCloudDiscoveryengineV1FactChunk[]
|
---|
36 | */
|
---|
37 | public function setCitedChunks($citedChunks)
|
---|
38 | {
|
---|
39 | $this->citedChunks = $citedChunks;
|
---|
40 | }
|
---|
41 | /**
|
---|
42 | * @return GoogleCloudDiscoveryengineV1FactChunk[]
|
---|
43 | */
|
---|
44 | public function getCitedChunks()
|
---|
45 | {
|
---|
46 | return $this->citedChunks;
|
---|
47 | }
|
---|
48 | /**
|
---|
49 | * @param GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk[]
|
---|
50 | */
|
---|
51 | public function setCitedFacts($citedFacts)
|
---|
52 | {
|
---|
53 | $this->citedFacts = $citedFacts;
|
---|
54 | }
|
---|
55 | /**
|
---|
56 | * @return GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk[]
|
---|
57 | */
|
---|
58 | public function getCitedFacts()
|
---|
59 | {
|
---|
60 | return $this->citedFacts;
|
---|
61 | }
|
---|
62 | /**
|
---|
63 | * @param GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim[]
|
---|
64 | */
|
---|
65 | public function setClaims($claims)
|
---|
66 | {
|
---|
67 | $this->claims = $claims;
|
---|
68 | }
|
---|
69 | /**
|
---|
70 | * @return GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim[]
|
---|
71 | */
|
---|
72 | public function getClaims()
|
---|
73 | {
|
---|
74 | return $this->claims;
|
---|
75 | }
|
---|
76 | /**
|
---|
77 | * @param float
|
---|
78 | */
|
---|
79 | public function setSupportScore($supportScore)
|
---|
80 | {
|
---|
81 | $this->supportScore = $supportScore;
|
---|
82 | }
|
---|
83 | /**
|
---|
84 | * @return float
|
---|
85 | */
|
---|
86 | public function getSupportScore()
|
---|
87 | {
|
---|
88 | return $this->supportScore;
|
---|
89 | }
|
---|
90 | }
|
---|
91 |
|
---|
92 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
93 | class_alias(GoogleCloudDiscoveryengineV1CheckGroundingResponse::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1CheckGroundingResponse');
|
---|