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\HangoutsChat;
19
20class GoogleAppsCardV1OnClick extends \Google\Model
21{
22  protected $actionType = GoogleAppsCardV1Action::class;
23  protected $actionDataType = '';
24  protected $cardType = GoogleAppsCardV1Card::class;
25  protected $cardDataType = '';
26  protected $openDynamicLinkActionType = GoogleAppsCardV1Action::class;
27  protected $openDynamicLinkActionDataType = '';
28  protected $openLinkType = GoogleAppsCardV1OpenLink::class;
29  protected $openLinkDataType = '';
30
31  /**
32   * @param GoogleAppsCardV1Action
33   */
34  public function setAction(GoogleAppsCardV1Action $action)
35  {
36    $this->action = $action;
37  }
38  /**
39   * @return GoogleAppsCardV1Action
40   */
41  public function getAction()
42  {
43    return $this->action;
44  }
45  /**
46   * @param GoogleAppsCardV1Card
47   */
48  public function setCard(GoogleAppsCardV1Card $card)
49  {
50    $this->card = $card;
51  }
52  /**
53   * @return GoogleAppsCardV1Card
54   */
55  public function getCard()
56  {
57    return $this->card;
58  }
59  /**
60   * @param GoogleAppsCardV1Action
61   */
62  public function setOpenDynamicLinkAction(GoogleAppsCardV1Action $openDynamicLinkAction)
63  {
64    $this->openDynamicLinkAction = $openDynamicLinkAction;
65  }
66  /**
67   * @return GoogleAppsCardV1Action
68   */
69  public function getOpenDynamicLinkAction()
70  {
71    return $this->openDynamicLinkAction;
72  }
73  /**
74   * @param GoogleAppsCardV1OpenLink
75   */
76  public function setOpenLink(GoogleAppsCardV1OpenLink $openLink)
77  {
78    $this->openLink = $openLink;
79  }
80  /**
81   * @return GoogleAppsCardV1OpenLink
82   */
83  public function getOpenLink()
84  {
85    return $this->openLink;
86  }
87}
88
89// Adding a class alias for backwards compatibility with the previous class name.
90class_alias(GoogleAppsCardV1OnClick::class, 'Google_Service_HangoutsChat_GoogleAppsCardV1OnClick');
91