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 18class Google_Service_Datastore_Mutation extends Google_Model 19{ 20 public $baseVersion; 21 protected $deleteType = 'Google_Service_Datastore_Key'; 22 protected $deleteDataType = ''; 23 protected $insertType = 'Google_Service_Datastore_Entity'; 24 protected $insertDataType = ''; 25 protected $updateType = 'Google_Service_Datastore_Entity'; 26 protected $updateDataType = ''; 27 protected $upsertType = 'Google_Service_Datastore_Entity'; 28 protected $upsertDataType = ''; 29 30 public function setBaseVersion($baseVersion) 31 { 32 $this->baseVersion = $baseVersion; 33 } 34 public function getBaseVersion() 35 { 36 return $this->baseVersion; 37 } 38 /** 39 * @param Google_Service_Datastore_Key 40 */ 41 public function setDelete(Google_Service_Datastore_Key $delete) 42 { 43 $this->delete = $delete; 44 } 45 /** 46 * @return Google_Service_Datastore_Key 47 */ 48 public function getDelete() 49 { 50 return $this->delete; 51 } 52 /** 53 * @param Google_Service_Datastore_Entity 54 */ 55 public function setInsert(Google_Service_Datastore_Entity $insert) 56 { 57 $this->insert = $insert; 58 } 59 /** 60 * @return Google_Service_Datastore_Entity 61 */ 62 public function getInsert() 63 { 64 return $this->insert; 65 } 66 /** 67 * @param Google_Service_Datastore_Entity 68 */ 69 public function setUpdate(Google_Service_Datastore_Entity $update) 70 { 71 $this->update = $update; 72 } 73 /** 74 * @return Google_Service_Datastore_Entity 75 */ 76 public function getUpdate() 77 { 78 return $this->update; 79 } 80 /** 81 * @param Google_Service_Datastore_Entity 82 */ 83 public function setUpsert(Google_Service_Datastore_Entity $upsert) 84 { 85 $this->upsert = $upsert; 86 } 87 /** 88 * @return Google_Service_Datastore_Entity 89 */ 90 public function getUpsert() 91 { 92 return $this->upsert; 93 } 94} 95