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\Datastore; 19 20class Mutation extends \Google\Model 21{ 22 /** 23 * @var string 24 */ 25 public $baseVersion; 26 protected $deleteType = Key::class; 27 protected $deleteDataType = ''; 28 protected $insertType = Entity::class; 29 protected $insertDataType = ''; 30 protected $updateType = Entity::class; 31 protected $updateDataType = ''; 32 /** 33 * @var string 34 */ 35 public $updateTime; 36 protected $upsertType = Entity::class; 37 protected $upsertDataType = ''; 38 39 /** 40 * @param string 41 */ 42 public function setBaseVersion($baseVersion) 43 { 44 $this->baseVersion = $baseVersion; 45 } 46 /** 47 * @return string 48 */ 49 public function getBaseVersion() 50 { 51 return $this->baseVersion; 52 } 53 /** 54 * @param Key 55 */ 56 public function setDelete(Key $delete) 57 { 58 $this->delete = $delete; 59 } 60 /** 61 * @return Key 62 */ 63 public function getDelete() 64 { 65 return $this->delete; 66 } 67 /** 68 * @param Entity 69 */ 70 public function setInsert(Entity $insert) 71 { 72 $this->insert = $insert; 73 } 74 /** 75 * @return Entity 76 */ 77 public function getInsert() 78 { 79 return $this->insert; 80 } 81 /** 82 * @param Entity 83 */ 84 public function setUpdate(Entity $update) 85 { 86 $this->update = $update; 87 } 88 /** 89 * @return Entity 90 */ 91 public function getUpdate() 92 { 93 return $this->update; 94 } 95 /** 96 * @param string 97 */ 98 public function setUpdateTime($updateTime) 99 { 100 $this->updateTime = $updateTime; 101 } 102 /** 103 * @return string 104 */ 105 public function getUpdateTime() 106 { 107 return $this->updateTime; 108 } 109 /** 110 * @param Entity 111 */ 112 public function setUpsert(Entity $upsert) 113 { 114 $this->upsert = $upsert; 115 } 116 /** 117 * @return Entity 118 */ 119 public function getUpsert() 120 { 121 return $this->upsert; 122 } 123} 124 125// Adding a class alias for backwards compatibility with the previous class name. 126class_alias(Mutation::class, 'Google_Service_Datastore_Mutation'); 127