source: vendor/google/apiclient-services/src/Datastore/Mutation.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 6 weeks ago

Upload project files

  • Property mode set to 100644
File size: 3.6 KB
Line 
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\Collection
21{
22 protected $collection_key = 'propertyTransforms';
23 /**
24 * @var string
25 */
26 public $baseVersion;
27 /**
28 * @var string
29 */
30 public $conflictResolutionStrategy;
31 protected $deleteType = Key::class;
32 protected $deleteDataType = '';
33 protected $insertType = Entity::class;
34 protected $insertDataType = '';
35 protected $propertyMaskType = PropertyMask::class;
36 protected $propertyMaskDataType = '';
37 protected $propertyTransformsType = PropertyTransform::class;
38 protected $propertyTransformsDataType = 'array';
39 protected $updateType = Entity::class;
40 protected $updateDataType = '';
41 /**
42 * @var string
43 */
44 public $updateTime;
45 protected $upsertType = Entity::class;
46 protected $upsertDataType = '';
47
48 /**
49 * @param string
50 */
51 public function setBaseVersion($baseVersion)
52 {
53 $this->baseVersion = $baseVersion;
54 }
55 /**
56 * @return string
57 */
58 public function getBaseVersion()
59 {
60 return $this->baseVersion;
61 }
62 /**
63 * @param string
64 */
65 public function setConflictResolutionStrategy($conflictResolutionStrategy)
66 {
67 $this->conflictResolutionStrategy = $conflictResolutionStrategy;
68 }
69 /**
70 * @return string
71 */
72 public function getConflictResolutionStrategy()
73 {
74 return $this->conflictResolutionStrategy;
75 }
76 /**
77 * @param Key
78 */
79 public function setDelete(Key $delete)
80 {
81 $this->delete = $delete;
82 }
83 /**
84 * @return Key
85 */
86 public function getDelete()
87 {
88 return $this->delete;
89 }
90 /**
91 * @param Entity
92 */
93 public function setInsert(Entity $insert)
94 {
95 $this->insert = $insert;
96 }
97 /**
98 * @return Entity
99 */
100 public function getInsert()
101 {
102 return $this->insert;
103 }
104 /**
105 * @param PropertyMask
106 */
107 public function setPropertyMask(PropertyMask $propertyMask)
108 {
109 $this->propertyMask = $propertyMask;
110 }
111 /**
112 * @return PropertyMask
113 */
114 public function getPropertyMask()
115 {
116 return $this->propertyMask;
117 }
118 /**
119 * @param PropertyTransform[]
120 */
121 public function setPropertyTransforms($propertyTransforms)
122 {
123 $this->propertyTransforms = $propertyTransforms;
124 }
125 /**
126 * @return PropertyTransform[]
127 */
128 public function getPropertyTransforms()
129 {
130 return $this->propertyTransforms;
131 }
132 /**
133 * @param Entity
134 */
135 public function setUpdate(Entity $update)
136 {
137 $this->update = $update;
138 }
139 /**
140 * @return Entity
141 */
142 public function getUpdate()
143 {
144 return $this->update;
145 }
146 /**
147 * @param string
148 */
149 public function setUpdateTime($updateTime)
150 {
151 $this->updateTime = $updateTime;
152 }
153 /**
154 * @return string
155 */
156 public function getUpdateTime()
157 {
158 return $this->updateTime;
159 }
160 /**
161 * @param Entity
162 */
163 public function setUpsert(Entity $upsert)
164 {
165 $this->upsert = $upsert;
166 }
167 /**
168 * @return Entity
169 */
170 public function getUpsert()
171 {
172 return $this->upsert;
173 }
174}
175
176// Adding a class alias for backwards compatibility with the previous class name.
177class_alias(Mutation::class, 'Google_Service_Datastore_Mutation');
Note: See TracBrowser for help on using the repository browser.