GoogleCloudVideointelligenceV1p2beta1Track.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. namespace Google\Service\CloudVideoIntelligence;
  18. class GoogleCloudVideointelligenceV1p2beta1Track extends \Google\Collection
  19. {
  20. protected $collection_key = 'timestampedObjects';
  21. protected $attributesType = GoogleCloudVideointelligenceV1p2beta1DetectedAttribute::class;
  22. protected $attributesDataType = 'array';
  23. /**
  24. * Optional. The confidence score of the tracked object.
  25. *
  26. * @var float
  27. */
  28. public $confidence;
  29. protected $segmentType = GoogleCloudVideointelligenceV1p2beta1VideoSegment::class;
  30. protected $segmentDataType = '';
  31. protected $timestampedObjectsType = GoogleCloudVideointelligenceV1p2beta1TimestampedObject::class;
  32. protected $timestampedObjectsDataType = 'array';
  33. /**
  34. * Optional. Attributes in the track level.
  35. *
  36. * @param GoogleCloudVideointelligenceV1p2beta1DetectedAttribute[] $attributes
  37. */
  38. public function setAttributes($attributes)
  39. {
  40. $this->attributes = $attributes;
  41. }
  42. /**
  43. * @return GoogleCloudVideointelligenceV1p2beta1DetectedAttribute[]
  44. */
  45. public function getAttributes()
  46. {
  47. return $this->attributes;
  48. }
  49. /**
  50. * Optional. The confidence score of the tracked object.
  51. *
  52. * @param float $confidence
  53. */
  54. public function setConfidence($confidence)
  55. {
  56. $this->confidence = $confidence;
  57. }
  58. /**
  59. * @return float
  60. */
  61. public function getConfidence()
  62. {
  63. return $this->confidence;
  64. }
  65. /**
  66. * Video segment of a track.
  67. *
  68. * @param GoogleCloudVideointelligenceV1p2beta1VideoSegment $segment
  69. */
  70. public function setSegment(GoogleCloudVideointelligenceV1p2beta1VideoSegment $segment)
  71. {
  72. $this->segment = $segment;
  73. }
  74. /**
  75. * @return GoogleCloudVideointelligenceV1p2beta1VideoSegment
  76. */
  77. public function getSegment()
  78. {
  79. return $this->segment;
  80. }
  81. /**
  82. * The object with timestamp and attributes per frame in the track.
  83. *
  84. * @param GoogleCloudVideointelligenceV1p2beta1TimestampedObject[] $timestampedObjects
  85. */
  86. public function setTimestampedObjects($timestampedObjects)
  87. {
  88. $this->timestampedObjects = $timestampedObjects;
  89. }
  90. /**
  91. * @return GoogleCloudVideointelligenceV1p2beta1TimestampedObject[]
  92. */
  93. public function getTimestampedObjects()
  94. {
  95. return $this->timestampedObjects;
  96. }
  97. }
  98. // Adding a class alias for backwards compatibility with the previous class name.
  99. class_alias(GoogleCloudVideointelligenceV1p2beta1Track::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1Track');