source: vendor/google/apiclient-services/src/DataLabeling/GoogleCloudDatalabelingV1beta1DataItem.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.5 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\DataLabeling;
19
20class GoogleCloudDatalabelingV1beta1DataItem extends \Google\Model
21{
22 protected $imagePayloadType = GoogleCloudDatalabelingV1beta1ImagePayload::class;
23 protected $imagePayloadDataType = '';
24 /**
25 * @var string
26 */
27 public $name;
28 protected $textPayloadType = GoogleCloudDatalabelingV1beta1TextPayload::class;
29 protected $textPayloadDataType = '';
30 protected $videoPayloadType = GoogleCloudDatalabelingV1beta1VideoPayload::class;
31 protected $videoPayloadDataType = '';
32
33 /**
34 * @param GoogleCloudDatalabelingV1beta1ImagePayload
35 */
36 public function setImagePayload(GoogleCloudDatalabelingV1beta1ImagePayload $imagePayload)
37 {
38 $this->imagePayload = $imagePayload;
39 }
40 /**
41 * @return GoogleCloudDatalabelingV1beta1ImagePayload
42 */
43 public function getImagePayload()
44 {
45 return $this->imagePayload;
46 }
47 /**
48 * @param string
49 */
50 public function setName($name)
51 {
52 $this->name = $name;
53 }
54 /**
55 * @return string
56 */
57 public function getName()
58 {
59 return $this->name;
60 }
61 /**
62 * @param GoogleCloudDatalabelingV1beta1TextPayload
63 */
64 public function setTextPayload(GoogleCloudDatalabelingV1beta1TextPayload $textPayload)
65 {
66 $this->textPayload = $textPayload;
67 }
68 /**
69 * @return GoogleCloudDatalabelingV1beta1TextPayload
70 */
71 public function getTextPayload()
72 {
73 return $this->textPayload;
74 }
75 /**
76 * @param GoogleCloudDatalabelingV1beta1VideoPayload
77 */
78 public function setVideoPayload(GoogleCloudDatalabelingV1beta1VideoPayload $videoPayload)
79 {
80 $this->videoPayload = $videoPayload;
81 }
82 /**
83 * @return GoogleCloudDatalabelingV1beta1VideoPayload
84 */
85 public function getVideoPayload()
86 {
87 return $this->videoPayload;
88 }
89}
90
91// Adding a class alias for backwards compatibility with the previous class name.
92class_alias(GoogleCloudDatalabelingV1beta1DataItem::class, 'Google_Service_DataLabeling_GoogleCloudDatalabelingV1beta1DataItem');
Note: See TracBrowser for help on using the repository browser.