source: vendor/google/apiclient-services/src/CloudNaturalLanguage/AnnotateTextResponse.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 3.3 KB
Line 
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
18namespace Google\Service\CloudNaturalLanguage;
19
20class AnnotateTextResponse extends \Google\Collection
21{
22 protected $collection_key = 'sentences';
23 protected $categoriesType = ClassificationCategory::class;
24 protected $categoriesDataType = 'array';
25 protected $documentSentimentType = Sentiment::class;
26 protected $documentSentimentDataType = '';
27 protected $entitiesType = Entity::class;
28 protected $entitiesDataType = 'array';
29 /**
30 * @var string
31 */
32 public $languageCode;
33 /**
34 * @var bool
35 */
36 public $languageSupported;
37 protected $moderationCategoriesType = ClassificationCategory::class;
38 protected $moderationCategoriesDataType = 'array';
39 protected $sentencesType = Sentence::class;
40 protected $sentencesDataType = 'array';
41
42 /**
43 * @param ClassificationCategory[]
44 */
45 public function setCategories($categories)
46 {
47 $this->categories = $categories;
48 }
49 /**
50 * @return ClassificationCategory[]
51 */
52 public function getCategories()
53 {
54 return $this->categories;
55 }
56 /**
57 * @param Sentiment
58 */
59 public function setDocumentSentiment(Sentiment $documentSentiment)
60 {
61 $this->documentSentiment = $documentSentiment;
62 }
63 /**
64 * @return Sentiment
65 */
66 public function getDocumentSentiment()
67 {
68 return $this->documentSentiment;
69 }
70 /**
71 * @param Entity[]
72 */
73 public function setEntities($entities)
74 {
75 $this->entities = $entities;
76 }
77 /**
78 * @return Entity[]
79 */
80 public function getEntities()
81 {
82 return $this->entities;
83 }
84 /**
85 * @param string
86 */
87 public function setLanguageCode($languageCode)
88 {
89 $this->languageCode = $languageCode;
90 }
91 /**
92 * @return string
93 */
94 public function getLanguageCode()
95 {
96 return $this->languageCode;
97 }
98 /**
99 * @param bool
100 */
101 public function setLanguageSupported($languageSupported)
102 {
103 $this->languageSupported = $languageSupported;
104 }
105 /**
106 * @return bool
107 */
108 public function getLanguageSupported()
109 {
110 return $this->languageSupported;
111 }
112 /**
113 * @param ClassificationCategory[]
114 */
115 public function setModerationCategories($moderationCategories)
116 {
117 $this->moderationCategories = $moderationCategories;
118 }
119 /**
120 * @return ClassificationCategory[]
121 */
122 public function getModerationCategories()
123 {
124 return $this->moderationCategories;
125 }
126 /**
127 * @param Sentence[]
128 */
129 public function setSentences($sentences)
130 {
131 $this->sentences = $sentences;
132 }
133 /**
134 * @return Sentence[]
135 */
136 public function getSentences()
137 {
138 return $this->sentences;
139 }
140}
141
142// Adding a class alias for backwards compatibility with the previous class name.
143class_alias(AnnotateTextResponse::class, 'Google_Service_CloudNaturalLanguage_AnnotateTextResponse');
Note: See TracBrowser for help on using the repository browser.