Nenhuma descrição

Entity.php 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. class Google_Service_CloudNaturalLanguage_Entity extends Google_Collection
  18. {
  19. protected $collection_key = 'mentions';
  20. protected $mentionsType = 'Google_Service_CloudNaturalLanguage_EntityMention';
  21. protected $mentionsDataType = 'array';
  22. public $metadata;
  23. public $name;
  24. public $salience;
  25. protected $sentimentType = 'Google_Service_CloudNaturalLanguage_Sentiment';
  26. protected $sentimentDataType = '';
  27. public $type;
  28. /**
  29. * @param Google_Service_CloudNaturalLanguage_EntityMention
  30. */
  31. public function setMentions($mentions)
  32. {
  33. $this->mentions = $mentions;
  34. }
  35. /**
  36. * @return Google_Service_CloudNaturalLanguage_EntityMention
  37. */
  38. public function getMentions()
  39. {
  40. return $this->mentions;
  41. }
  42. public function setMetadata($metadata)
  43. {
  44. $this->metadata = $metadata;
  45. }
  46. public function getMetadata()
  47. {
  48. return $this->metadata;
  49. }
  50. public function setName($name)
  51. {
  52. $this->name = $name;
  53. }
  54. public function getName()
  55. {
  56. return $this->name;
  57. }
  58. public function setSalience($salience)
  59. {
  60. $this->salience = $salience;
  61. }
  62. public function getSalience()
  63. {
  64. return $this->salience;
  65. }
  66. /**
  67. * @param Google_Service_CloudNaturalLanguage_Sentiment
  68. */
  69. public function setSentiment(Google_Service_CloudNaturalLanguage_Sentiment $sentiment)
  70. {
  71. $this->sentiment = $sentiment;
  72. }
  73. /**
  74. * @return Google_Service_CloudNaturalLanguage_Sentiment
  75. */
  76. public function getSentiment()
  77. {
  78. return $this->sentiment;
  79. }
  80. public function setType($type)
  81. {
  82. $this->type = $type;
  83. }
  84. public function getType()
  85. {
  86. return $this->type;
  87. }
  88. }