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 GoogleCloudDatalabelingV1beta1Example extends \Google\Collection
21{
22  protected $collection_key = 'annotations';
23  protected $annotationsType = GoogleCloudDatalabelingV1beta1Annotation::class;
24  protected $annotationsDataType = 'array';
25  protected $imagePayloadType = GoogleCloudDatalabelingV1beta1ImagePayload::class;
26  protected $imagePayloadDataType = '';
27  /**
28   * @var string
29   */
30  public $name;
31  protected $textPayloadType = GoogleCloudDatalabelingV1beta1TextPayload::class;
32  protected $textPayloadDataType = '';
33  protected $videoPayloadType = GoogleCloudDatalabelingV1beta1VideoPayload::class;
34  protected $videoPayloadDataType = '';
35
36  /**
37   * @param GoogleCloudDatalabelingV1beta1Annotation[]
38   */
39  public function setAnnotations($annotations)
40  {
41    $this->annotations = $annotations;
42  }
43  /**
44   * @return GoogleCloudDatalabelingV1beta1Annotation[]
45   */
46  public function getAnnotations()
47  {
48    return $this->annotations;
49  }
50  /**
51   * @param GoogleCloudDatalabelingV1beta1ImagePayload
52   */
53  public function setImagePayload(GoogleCloudDatalabelingV1beta1ImagePayload $imagePayload)
54  {
55    $this->imagePayload = $imagePayload;
56  }
57  /**
58   * @return GoogleCloudDatalabelingV1beta1ImagePayload
59   */
60  public function getImagePayload()
61  {
62    return $this->imagePayload;
63  }
64  /**
65   * @param string
66   */
67  public function setName($name)
68  {
69    $this->name = $name;
70  }
71  /**
72   * @return string
73   */
74  public function getName()
75  {
76    return $this->name;
77  }
78  /**
79   * @param GoogleCloudDatalabelingV1beta1TextPayload
80   */
81  public function setTextPayload(GoogleCloudDatalabelingV1beta1TextPayload $textPayload)
82  {
83    $this->textPayload = $textPayload;
84  }
85  /**
86   * @return GoogleCloudDatalabelingV1beta1TextPayload
87   */
88  public function getTextPayload()
89  {
90    return $this->textPayload;
91  }
92  /**
93   * @param GoogleCloudDatalabelingV1beta1VideoPayload
94   */
95  public function setVideoPayload(GoogleCloudDatalabelingV1beta1VideoPayload $videoPayload)
96  {
97    $this->videoPayload = $videoPayload;
98  }
99  /**
100   * @return GoogleCloudDatalabelingV1beta1VideoPayload
101   */
102  public function getVideoPayload()
103  {
104    return $this->videoPayload;
105  }
106}
107
108// Adding a class alias for backwards compatibility with the previous class name.
109class_alias(GoogleCloudDatalabelingV1beta1Example::class, 'Google_Service_DataLabeling_GoogleCloudDatalabelingV1beta1Example');
110