source: vendor/google/apiclient-services/src/Spanner/Mutation.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 2.2 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\Spanner;
19
20class Mutation extends \Google\Model
21{
22 protected $deleteType = Delete::class;
23 protected $deleteDataType = '';
24 protected $insertType = Write::class;
25 protected $insertDataType = '';
26 protected $insertOrUpdateType = Write::class;
27 protected $insertOrUpdateDataType = '';
28 protected $replaceType = Write::class;
29 protected $replaceDataType = '';
30 protected $updateType = Write::class;
31 protected $updateDataType = '';
32
33 /**
34 * @param Delete
35 */
36 public function setDelete(Delete $delete)
37 {
38 $this->delete = $delete;
39 }
40 /**
41 * @return Delete
42 */
43 public function getDelete()
44 {
45 return $this->delete;
46 }
47 /**
48 * @param Write
49 */
50 public function setInsert(Write $insert)
51 {
52 $this->insert = $insert;
53 }
54 /**
55 * @return Write
56 */
57 public function getInsert()
58 {
59 return $this->insert;
60 }
61 /**
62 * @param Write
63 */
64 public function setInsertOrUpdate(Write $insertOrUpdate)
65 {
66 $this->insertOrUpdate = $insertOrUpdate;
67 }
68 /**
69 * @return Write
70 */
71 public function getInsertOrUpdate()
72 {
73 return $this->insertOrUpdate;
74 }
75 /**
76 * @param Write
77 */
78 public function setReplace(Write $replace)
79 {
80 $this->replace = $replace;
81 }
82 /**
83 * @return Write
84 */
85 public function getReplace()
86 {
87 return $this->replace;
88 }
89 /**
90 * @param Write
91 */
92 public function setUpdate(Write $update)
93 {
94 $this->update = $update;
95 }
96 /**
97 * @return Write
98 */
99 public function getUpdate()
100 {
101 return $this->update;
102 }
103}
104
105// Adding a class alias for backwards compatibility with the previous class name.
106class_alias(Mutation::class, 'Google_Service_Spanner_Mutation');
Note: See TracBrowser for help on using the repository browser.