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 |
|
---|
18 | namespace Google\Service\CloudSearch;
|
---|
19 |
|
---|
20 | class Attachment extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $addOnDataType = GoogleChatV1ContextualAddOnMarkup::class;
|
---|
23 | protected $addOnDataDataType = '';
|
---|
24 | protected $appIdType = UserId::class;
|
---|
25 | protected $appIdDataType = '';
|
---|
26 | /**
|
---|
27 | * @var string
|
---|
28 | */
|
---|
29 | public $attachmentId;
|
---|
30 | protected $cardAddOnDataType = AppsDynamiteStorageCard::class;
|
---|
31 | protected $cardAddOnDataDataType = '';
|
---|
32 | protected $componentSearchInfoType = AppsDynamiteSharedMessageComponentSearchInfo::class;
|
---|
33 | protected $componentSearchInfoDataType = '';
|
---|
34 | protected $deprecatedAddOnDataType = ContextualAddOnMarkup::class;
|
---|
35 | protected $deprecatedAddOnDataDataType = '';
|
---|
36 | protected $slackDataType = AppsDynamiteV1ApiCompatV1Attachment::class;
|
---|
37 | protected $slackDataDataType = '';
|
---|
38 | /**
|
---|
39 | * @var int
|
---|
40 | */
|
---|
41 | public $slackDataImageUrlHeight;
|
---|
42 |
|
---|
43 | /**
|
---|
44 | * @param GoogleChatV1ContextualAddOnMarkup
|
---|
45 | */
|
---|
46 | public function setAddOnData(GoogleChatV1ContextualAddOnMarkup $addOnData)
|
---|
47 | {
|
---|
48 | $this->addOnData = $addOnData;
|
---|
49 | }
|
---|
50 | /**
|
---|
51 | * @return GoogleChatV1ContextualAddOnMarkup
|
---|
52 | */
|
---|
53 | public function getAddOnData()
|
---|
54 | {
|
---|
55 | return $this->addOnData;
|
---|
56 | }
|
---|
57 | /**
|
---|
58 | * @param UserId
|
---|
59 | */
|
---|
60 | public function setAppId(UserId $appId)
|
---|
61 | {
|
---|
62 | $this->appId = $appId;
|
---|
63 | }
|
---|
64 | /**
|
---|
65 | * @return UserId
|
---|
66 | */
|
---|
67 | public function getAppId()
|
---|
68 | {
|
---|
69 | return $this->appId;
|
---|
70 | }
|
---|
71 | /**
|
---|
72 | * @param string
|
---|
73 | */
|
---|
74 | public function setAttachmentId($attachmentId)
|
---|
75 | {
|
---|
76 | $this->attachmentId = $attachmentId;
|
---|
77 | }
|
---|
78 | /**
|
---|
79 | * @return string
|
---|
80 | */
|
---|
81 | public function getAttachmentId()
|
---|
82 | {
|
---|
83 | return $this->attachmentId;
|
---|
84 | }
|
---|
85 | /**
|
---|
86 | * @param AppsDynamiteStorageCard
|
---|
87 | */
|
---|
88 | public function setCardAddOnData(AppsDynamiteStorageCard $cardAddOnData)
|
---|
89 | {
|
---|
90 | $this->cardAddOnData = $cardAddOnData;
|
---|
91 | }
|
---|
92 | /**
|
---|
93 | * @return AppsDynamiteStorageCard
|
---|
94 | */
|
---|
95 | public function getCardAddOnData()
|
---|
96 | {
|
---|
97 | return $this->cardAddOnData;
|
---|
98 | }
|
---|
99 | /**
|
---|
100 | * @param AppsDynamiteSharedMessageComponentSearchInfo
|
---|
101 | */
|
---|
102 | public function setComponentSearchInfo(AppsDynamiteSharedMessageComponentSearchInfo $componentSearchInfo)
|
---|
103 | {
|
---|
104 | $this->componentSearchInfo = $componentSearchInfo;
|
---|
105 | }
|
---|
106 | /**
|
---|
107 | * @return AppsDynamiteSharedMessageComponentSearchInfo
|
---|
108 | */
|
---|
109 | public function getComponentSearchInfo()
|
---|
110 | {
|
---|
111 | return $this->componentSearchInfo;
|
---|
112 | }
|
---|
113 | /**
|
---|
114 | * @param ContextualAddOnMarkup
|
---|
115 | */
|
---|
116 | public function setDeprecatedAddOnData(ContextualAddOnMarkup $deprecatedAddOnData)
|
---|
117 | {
|
---|
118 | $this->deprecatedAddOnData = $deprecatedAddOnData;
|
---|
119 | }
|
---|
120 | /**
|
---|
121 | * @return ContextualAddOnMarkup
|
---|
122 | */
|
---|
123 | public function getDeprecatedAddOnData()
|
---|
124 | {
|
---|
125 | return $this->deprecatedAddOnData;
|
---|
126 | }
|
---|
127 | /**
|
---|
128 | * @param AppsDynamiteV1ApiCompatV1Attachment
|
---|
129 | */
|
---|
130 | public function setSlackData(AppsDynamiteV1ApiCompatV1Attachment $slackData)
|
---|
131 | {
|
---|
132 | $this->slackData = $slackData;
|
---|
133 | }
|
---|
134 | /**
|
---|
135 | * @return AppsDynamiteV1ApiCompatV1Attachment
|
---|
136 | */
|
---|
137 | public function getSlackData()
|
---|
138 | {
|
---|
139 | return $this->slackData;
|
---|
140 | }
|
---|
141 | /**
|
---|
142 | * @param int
|
---|
143 | */
|
---|
144 | public function setSlackDataImageUrlHeight($slackDataImageUrlHeight)
|
---|
145 | {
|
---|
146 | $this->slackDataImageUrlHeight = $slackDataImageUrlHeight;
|
---|
147 | }
|
---|
148 | /**
|
---|
149 | * @return int
|
---|
150 | */
|
---|
151 | public function getSlackDataImageUrlHeight()
|
---|
152 | {
|
---|
153 | return $this->slackDataImageUrlHeight;
|
---|
154 | }
|
---|
155 | }
|
---|
156 |
|
---|
157 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
158 | class_alias(Attachment::class, 'Google_Service_CloudSearch_Attachment');
|
---|