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\CloudSearch; 19 20class Item extends \Google\Model 21{ 22 protected $aclType = ItemAcl::class; 23 protected $aclDataType = ''; 24 protected $contentType = ItemContent::class; 25 protected $contentDataType = ''; 26 /** 27 * @var string 28 */ 29 public $itemType; 30 protected $metadataType = ItemMetadata::class; 31 protected $metadataDataType = ''; 32 /** 33 * @var string 34 */ 35 public $name; 36 /** 37 * @var string 38 */ 39 public $payload; 40 /** 41 * @var string 42 */ 43 public $queue; 44 protected $statusType = ItemStatus::class; 45 protected $statusDataType = ''; 46 protected $structuredDataType = ItemStructuredData::class; 47 protected $structuredDataDataType = ''; 48 /** 49 * @var string 50 */ 51 public $version; 52 53 /** 54 * @param ItemAcl 55 */ 56 public function setAcl(ItemAcl $acl) 57 { 58 $this->acl = $acl; 59 } 60 /** 61 * @return ItemAcl 62 */ 63 public function getAcl() 64 { 65 return $this->acl; 66 } 67 /** 68 * @param ItemContent 69 */ 70 public function setContent(ItemContent $content) 71 { 72 $this->content = $content; 73 } 74 /** 75 * @return ItemContent 76 */ 77 public function getContent() 78 { 79 return $this->content; 80 } 81 /** 82 * @param string 83 */ 84 public function setItemType($itemType) 85 { 86 $this->itemType = $itemType; 87 } 88 /** 89 * @return string 90 */ 91 public function getItemType() 92 { 93 return $this->itemType; 94 } 95 /** 96 * @param ItemMetadata 97 */ 98 public function setMetadata(ItemMetadata $metadata) 99 { 100 $this->metadata = $metadata; 101 } 102 /** 103 * @return ItemMetadata 104 */ 105 public function getMetadata() 106 { 107 return $this->metadata; 108 } 109 /** 110 * @param string 111 */ 112 public function setName($name) 113 { 114 $this->name = $name; 115 } 116 /** 117 * @return string 118 */ 119 public function getName() 120 { 121 return $this->name; 122 } 123 /** 124 * @param string 125 */ 126 public function setPayload($payload) 127 { 128 $this->payload = $payload; 129 } 130 /** 131 * @return string 132 */ 133 public function getPayload() 134 { 135 return $this->payload; 136 } 137 /** 138 * @param string 139 */ 140 public function setQueue($queue) 141 { 142 $this->queue = $queue; 143 } 144 /** 145 * @return string 146 */ 147 public function getQueue() 148 { 149 return $this->queue; 150 } 151 /** 152 * @param ItemStatus 153 */ 154 public function setStatus(ItemStatus $status) 155 { 156 $this->status = $status; 157 } 158 /** 159 * @return ItemStatus 160 */ 161 public function getStatus() 162 { 163 return $this->status; 164 } 165 /** 166 * @param ItemStructuredData 167 */ 168 public function setStructuredData(ItemStructuredData $structuredData) 169 { 170 $this->structuredData = $structuredData; 171 } 172 /** 173 * @return ItemStructuredData 174 */ 175 public function getStructuredData() 176 { 177 return $this->structuredData; 178 } 179 /** 180 * @param string 181 */ 182 public function setVersion($version) 183 { 184 $this->version = $version; 185 } 186 /** 187 * @return string 188 */ 189 public function getVersion() 190 { 191 return $this->version; 192 } 193} 194 195// Adding a class alias for backwards compatibility with the previous class name. 196class_alias(Item::class, 'Google_Service_CloudSearch_Item'); 197