source: vendor/google/apiclient-services/src/Vision/GoogleCloudVisionV1p1beta1Block.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 2.8 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\Vision;
19
20class GoogleCloudVisionV1p1beta1Block extends \Google\Collection
21{
22 protected $collection_key = 'paragraphs';
23 /**
24 * @var string
25 */
26 public $blockType;
27 protected $boundingBoxType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
28 protected $boundingBoxDataType = '';
29 /**
30 * @var float
31 */
32 public $confidence;
33 protected $paragraphsType = GoogleCloudVisionV1p1beta1Paragraph::class;
34 protected $paragraphsDataType = 'array';
35 protected $propertyType = GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::class;
36 protected $propertyDataType = '';
37
38 /**
39 * @param string
40 */
41 public function setBlockType($blockType)
42 {
43 $this->blockType = $blockType;
44 }
45 /**
46 * @return string
47 */
48 public function getBlockType()
49 {
50 return $this->blockType;
51 }
52 /**
53 * @param GoogleCloudVisionV1p1beta1BoundingPoly
54 */
55 public function setBoundingBox(GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox)
56 {
57 $this->boundingBox = $boundingBox;
58 }
59 /**
60 * @return GoogleCloudVisionV1p1beta1BoundingPoly
61 */
62 public function getBoundingBox()
63 {
64 return $this->boundingBox;
65 }
66 /**
67 * @param float
68 */
69 public function setConfidence($confidence)
70 {
71 $this->confidence = $confidence;
72 }
73 /**
74 * @return float
75 */
76 public function getConfidence()
77 {
78 return $this->confidence;
79 }
80 /**
81 * @param GoogleCloudVisionV1p1beta1Paragraph[]
82 */
83 public function setParagraphs($paragraphs)
84 {
85 $this->paragraphs = $paragraphs;
86 }
87 /**
88 * @return GoogleCloudVisionV1p1beta1Paragraph[]
89 */
90 public function getParagraphs()
91 {
92 return $this->paragraphs;
93 }
94 /**
95 * @param GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
96 */
97 public function setProperty(GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property)
98 {
99 $this->property = $property;
100 }
101 /**
102 * @return GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
103 */
104 public function getProperty()
105 {
106 return $this->property;
107 }
108}
109
110// Adding a class alias for backwards compatibility with the previous class name.
111class_alias(GoogleCloudVisionV1p1beta1Block::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Block');
Note: See TracBrowser for help on using the repository browser.