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\Datastream; 19 20class MysqlColumn extends \Google\Model 21{ 22 /** 23 * @var string 24 */ 25 public $collation; 26 /** 27 * @var string 28 */ 29 public $column; 30 /** 31 * @var string 32 */ 33 public $dataType; 34 /** 35 * @var int 36 */ 37 public $length; 38 /** 39 * @var bool 40 */ 41 public $nullable; 42 /** 43 * @var int 44 */ 45 public $ordinalPosition; 46 /** 47 * @var bool 48 */ 49 public $primaryKey; 50 51 /** 52 * @param string 53 */ 54 public function setCollation($collation) 55 { 56 $this->collation = $collation; 57 } 58 /** 59 * @return string 60 */ 61 public function getCollation() 62 { 63 return $this->collation; 64 } 65 /** 66 * @param string 67 */ 68 public function setColumn($column) 69 { 70 $this->column = $column; 71 } 72 /** 73 * @return string 74 */ 75 public function getColumn() 76 { 77 return $this->column; 78 } 79 /** 80 * @param string 81 */ 82 public function setDataType($dataType) 83 { 84 $this->dataType = $dataType; 85 } 86 /** 87 * @return string 88 */ 89 public function getDataType() 90 { 91 return $this->dataType; 92 } 93 /** 94 * @param int 95 */ 96 public function setLength($length) 97 { 98 $this->length = $length; 99 } 100 /** 101 * @return int 102 */ 103 public function getLength() 104 { 105 return $this->length; 106 } 107 /** 108 * @param bool 109 */ 110 public function setNullable($nullable) 111 { 112 $this->nullable = $nullable; 113 } 114 /** 115 * @return bool 116 */ 117 public function getNullable() 118 { 119 return $this->nullable; 120 } 121 /** 122 * @param int 123 */ 124 public function setOrdinalPosition($ordinalPosition) 125 { 126 $this->ordinalPosition = $ordinalPosition; 127 } 128 /** 129 * @return int 130 */ 131 public function getOrdinalPosition() 132 { 133 return $this->ordinalPosition; 134 } 135 /** 136 * @param bool 137 */ 138 public function setPrimaryKey($primaryKey) 139 { 140 $this->primaryKey = $primaryKey; 141 } 142 /** 143 * @return bool 144 */ 145 public function getPrimaryKey() 146 { 147 return $this->primaryKey; 148 } 149} 150 151// Adding a class alias for backwards compatibility with the previous class name. 152class_alias(MysqlColumn::class, 'Google_Service_Datastream_MysqlColumn'); 153