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 KeyValue extends \Google\Model 21{ 22 /** 23 * @var string 24 */ 25 public $bottomLabel; 26 protected $buttonType = Button::class; 27 protected $buttonDataType = ''; 28 /** 29 * @var string 30 */ 31 public $content; 32 /** 33 * @var bool 34 */ 35 public $contentMultiline; 36 /** 37 * @var string 38 */ 39 public $icon; 40 /** 41 * @var string 42 */ 43 public $iconUrl; 44 protected $onClickType = OnClick::class; 45 protected $onClickDataType = ''; 46 /** 47 * @var string 48 */ 49 public $topLabel; 50 51 /** 52 * @param string 53 */ 54 public function setBottomLabel($bottomLabel) 55 { 56 $this->bottomLabel = $bottomLabel; 57 } 58 /** 59 * @return string 60 */ 61 public function getBottomLabel() 62 { 63 return $this->bottomLabel; 64 } 65 /** 66 * @param Button 67 */ 68 public function setButton(Button $button) 69 { 70 $this->button = $button; 71 } 72 /** 73 * @return Button 74 */ 75 public function getButton() 76 { 77 return $this->button; 78 } 79 /** 80 * @param string 81 */ 82 public function setContent($content) 83 { 84 $this->content = $content; 85 } 86 /** 87 * @return string 88 */ 89 public function getContent() 90 { 91 return $this->content; 92 } 93 /** 94 * @param bool 95 */ 96 public function setContentMultiline($contentMultiline) 97 { 98 $this->contentMultiline = $contentMultiline; 99 } 100 /** 101 * @return bool 102 */ 103 public function getContentMultiline() 104 { 105 return $this->contentMultiline; 106 } 107 /** 108 * @param string 109 */ 110 public function setIcon($icon) 111 { 112 $this->icon = $icon; 113 } 114 /** 115 * @return string 116 */ 117 public function getIcon() 118 { 119 return $this->icon; 120 } 121 /** 122 * @param string 123 */ 124 public function setIconUrl($iconUrl) 125 { 126 $this->iconUrl = $iconUrl; 127 } 128 /** 129 * @return string 130 */ 131 public function getIconUrl() 132 { 133 return $this->iconUrl; 134 } 135 /** 136 * @param OnClick 137 */ 138 public function setOnClick(OnClick $onClick) 139 { 140 $this->onClick = $onClick; 141 } 142 /** 143 * @return OnClick 144 */ 145 public function getOnClick() 146 { 147 return $this->onClick; 148 } 149 /** 150 * @param string 151 */ 152 public function setTopLabel($topLabel) 153 { 154 $this->topLabel = $topLabel; 155 } 156 /** 157 * @return string 158 */ 159 public function getTopLabel() 160 { 161 return $this->topLabel; 162 } 163} 164 165// Adding a class alias for backwards compatibility with the previous class name. 166class_alias(KeyValue::class, 'Google_Service_HangoutsChat_KeyValue'); 167