Debian Codegraph @

spanner/apiv1/spannerpb/mutation.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/spanner/v1/mutation.proto
20
21 package spannerpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 structpb "google.golang.org/protobuf/types/known/structpb"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // A modification to one or more Cloud Spanner rows. Mutations can be
40 // applied to a Cloud Spanner database by sending them in a
41 // [Commit][google.spanner.v1.Spanner.Commit] call.
42 type Mutation struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47 // Required. The operation to perform.
48 //
49 // Types that are assignable to Operation:
50 //
51 // *Mutation_Insert
52 // *Mutation_Update
53 // *Mutation_InsertOrUpdate
54 // *Mutation_Replace
55 // *Mutation_Delete_
56 Operation isMutation_Operation `protobuf_oneof:"operation"`
57 }
58
59 func (x *Mutation) Reset() {
60 *x = Mutation{}
61 mi := &file_google_spanner_v1_mutation_proto_msgTypes[0]
62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63 ms.StoreMessageInfo(mi)
64 }
65
66 func (x *Mutation) String() string {
67 return protoimpl.X.MessageStringOf(x)
68 }
69
70 func (*Mutation) ProtoMessage() {}
71
72 func (x *Mutation) ProtoReflect() protoreflect.Message {
73 mi := &file_google_spanner_v1_mutation_proto_msgTypes[0]
74 if x != nil {
75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
76 if ms.LoadMessageInfo() == nil {
77 ms.StoreMessageInfo(mi)
78 }
79 return ms
80 }
81 return mi.MessageOf(x)
82 }
83
84 // Deprecated: Use Mutation.ProtoReflect.Descriptor instead.
85 func (*Mutation) Descriptor() ([]byte, []int) {
86 return file_google_spanner_v1_mutation_proto_rawDescGZIP(), []int{0}
87 }
88
89 func (m *Mutation) GetOperation() isMutation_Operation {
90 if m != nil {
91 return m.Operation
92 }
93 return nil
94 }
95
96 func (x *Mutation) GetInsert() *Mutation_Write {
97 if x, ok := x.GetOperation().(*Mutation_Insert); ok {
98 return x.Insert
99 }
100 return nil
101 }
102
103 func (x *Mutation) GetUpdate() *Mutation_Write {
104 if x, ok := x.GetOperation().(*Mutation_Update); ok {
105 return x.Update
106 }
107 return nil
108 }
109
110 func (x *Mutation) GetInsertOrUpdate() *Mutation_Write {
111 if x, ok := x.GetOperation().(*Mutation_InsertOrUpdate); ok {
112 return x.InsertOrUpdate
113 }
114 return nil
115 }
116
117 func (x *Mutation) GetReplace() *Mutation_Write {
118 if x, ok := x.GetOperation().(*Mutation_Replace); ok {
119 return x.Replace
120 }
121 return nil
122 }
123
124 func (x *Mutation) GetDelete() *Mutation_Delete {
125 if x, ok := x.GetOperation().(*Mutation_Delete_); ok {
126 return x.Delete
127 }
128 return nil
129 }
130
131 type isMutation_Operation interface {
132 isMutation_Operation()
133 }
134
135 type Mutation_Insert struct {
136 // Insert new rows in a table. If any of the rows already exist,
137 // the write or transaction fails with error `ALREADY_EXISTS`.
138 Insert *Mutation_Write `protobuf:"bytes,1,opt,name=insert,proto3,oneof"`
139 }
140
141 type Mutation_Update struct {
142 // Update existing rows in a table. If any of the rows does not
143 // already exist, the transaction fails with error `NOT_FOUND`.
144 Update *Mutation_Write `protobuf:"bytes,2,opt,name=update,proto3,oneof"`
145 }
146
147 type Mutation_InsertOrUpdate struct {
148 // Like [insert][google.spanner.v1.Mutation.insert], except that if the row
149 // already exists, then its column values are overwritten with the ones
150 // provided. Any column values not explicitly written are preserved.
151 //
152 // When using
153 // [insert_or_update][google.spanner.v1.Mutation.insert_or_update], just as
154 // when using [insert][google.spanner.v1.Mutation.insert], all `NOT NULL`
155 // columns in the table must be given a value. This holds true even when the
156 // row already exists and will therefore actually be updated.
157 InsertOrUpdate *Mutation_Write `protobuf:"bytes,3,opt,name=insert_or_update,json=insertOrUpdate,proto3,oneof"`
158 }
159
160 type Mutation_Replace struct {
161 // Like [insert][google.spanner.v1.Mutation.insert], except that if the row
162 // already exists, it is deleted, and the column values provided are
163 // inserted instead. Unlike
164 // [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this
165 // means any values not explicitly written become `NULL`.
166 //
167 // In an interleaved table, if you create the child table with the
168 // `ON DELETE CASCADE` annotation, then replacing a parent row
169 // also deletes the child rows. Otherwise, you must delete the
170 // child rows before you replace the parent row.
171 Replace *Mutation_Write `protobuf:"bytes,4,opt,name=replace,proto3,oneof"`
172 }
173
174 type Mutation_Delete_ struct {
175 // Delete rows from a table. Succeeds whether or not the named
176 // rows were present.
177 Delete *Mutation_Delete `protobuf:"bytes,5,opt,name=delete,proto3,oneof"`
178 }
179
180 func (*Mutation_Insert) isMutation_Operation() {}
181
182 func (*Mutation_Update) isMutation_Operation() {}
183
184 func (*Mutation_InsertOrUpdate) isMutation_Operation() {}
185
186 func (*Mutation_Replace) isMutation_Operation() {}
187
188 func (*Mutation_Delete_) isMutation_Operation() {}
189
190 // Arguments to [insert][google.spanner.v1.Mutation.insert],
191 // [update][google.spanner.v1.Mutation.update],
192 // [insert_or_update][google.spanner.v1.Mutation.insert_or_update], and
193 // [replace][google.spanner.v1.Mutation.replace] operations.
194 type Mutation_Write struct {
195 state protoimpl.MessageState
196 sizeCache protoimpl.SizeCache
197 unknownFields protoimpl.UnknownFields
198
199 // Required. The table whose rows will be written.
200 Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
201 // The names of the columns in
202 // [table][google.spanner.v1.Mutation.Write.table] to be written.
203 //
204 // The list of columns must contain enough columns to allow
205 // Cloud Spanner to derive values for all primary key columns in the
206 // row(s) to be modified.
207 Columns []string `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
208 // The values to be written. `values` can contain more than one
209 // list of values. If it does, then multiple rows are written, one
210 // for each entry in `values`. Each list in `values` must have
211 // exactly as many entries as there are entries in
212 // [columns][google.spanner.v1.Mutation.Write.columns] above. Sending
213 // multiple lists is equivalent to sending multiple `Mutation`s, each
214 // containing one `values` entry and repeating
215 // [table][google.spanner.v1.Mutation.Write.table] and
216 // [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in
217 // each list are encoded as described [here][google.spanner.v1.TypeCode].
218 Values []*structpb.ListValue `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
219 }
220
221 func (x *Mutation_Write) Reset() {
222 *x = Mutation_Write{}
223 mi := &file_google_spanner_v1_mutation_proto_msgTypes[1]
224 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
225 ms.StoreMessageInfo(mi)
226 }
227
228 func (x *Mutation_Write) String() string {
229 return protoimpl.X.MessageStringOf(x)
230 }
231
232 func (*Mutation_Write) ProtoMessage() {}
233
234 func (x *Mutation_Write) ProtoReflect() protoreflect.Message {
235 mi := &file_google_spanner_v1_mutation_proto_msgTypes[1]
236 if x != nil {
237 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
238 if ms.LoadMessageInfo() == nil {
239 ms.StoreMessageInfo(mi)
240 }
241 return ms
242 }
243 return mi.MessageOf(x)
244 }
245
246 // Deprecated: Use Mutation_Write.ProtoReflect.Descriptor instead.
247 func (*Mutation_Write) Descriptor() ([]byte, []int) {
248 return file_google_spanner_v1_mutation_proto_rawDescGZIP(), []int{0, 0}
249 }
250
251 func (x *Mutation_Write) GetTable() string {
252 if x != nil {
253 return x.Table
254 }
255 return ""
256 }
257
258 func (x *Mutation_Write) GetColumns() []string {
259 if x != nil {
260 return x.Columns
261 }
262 return nil
263 }
264
265 func (x *Mutation_Write) GetValues() []*structpb.ListValue {
266 if x != nil {
267 return x.Values
268 }
269 return nil
270 }
271
272 // Arguments to [delete][google.spanner.v1.Mutation.delete] operations.
273 type Mutation_Delete struct {
274 state protoimpl.MessageState
275 sizeCache protoimpl.SizeCache
276 unknownFields protoimpl.UnknownFields
277
278 // Required. The table whose rows will be deleted.
279 Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
280 // Required. The primary keys of the rows within
281 // [table][google.spanner.v1.Mutation.Delete.table] to delete. The primary
282 // keys must be specified in the order in which they appear in the `PRIMARY
283 // KEY()` clause of the table's equivalent DDL statement (the DDL statement
284 // used to create the table). Delete is idempotent. The transaction will
285 // succeed even if some or all rows do not exist.
286 KeySet *KeySet `protobuf:"bytes,2,opt,name=key_set,json=keySet,proto3" json:"key_set,omitempty"`
287 }
288
289 func (x *Mutation_Delete) Reset() {
290 *x = Mutation_Delete{}
291 mi := &file_google_spanner_v1_mutation_proto_msgTypes[2]
292 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
293 ms.StoreMessageInfo(mi)
294 }
295
296 func (x *Mutation_Delete) String() string {
297 return protoimpl.X.MessageStringOf(x)
298 }
299
300 func (*Mutation_Delete) ProtoMessage() {}
301
302 func (x *Mutation_Delete) ProtoReflect() protoreflect.Message {
303 mi := &file_google_spanner_v1_mutation_proto_msgTypes[2]
304 if x != nil {
305 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
306 if ms.LoadMessageInfo() == nil {
307 ms.StoreMessageInfo(mi)
308 }
309 return ms
310 }
311 return mi.MessageOf(x)
312 }
313
314 // Deprecated: Use Mutation_Delete.ProtoReflect.Descriptor instead.
315 func (*Mutation_Delete) Descriptor() ([]byte, []int) {
316 return file_google_spanner_v1_mutation_proto_rawDescGZIP(), []int{0, 1}
317 }
318
319 func (x *Mutation_Delete) GetTable() string {
320 if x != nil {
321 return x.Table
322 }
323 return ""
324 }
325
326 func (x *Mutation_Delete) GetKeySet() *KeySet {
327 if x != nil {
328 return x.KeySet
329 }
330 return nil
331 }
332
333 var File_google_spanner_v1_mutation_proto protoreflect.FileDescriptor
334
335 var file_google_spanner_v1_mutation_proto_rawDesc = []byte{
336 0x0a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72,
337 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
338 0x74, 0x6f, 0x12, 0x11, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e,
339 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
340 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72,
341 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
342 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70,
343 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x70, 0x61,
344 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f,
345 0x74, 0x6f, 0x22, 0xad, 0x04, 0x0a, 0x08, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
346 0x3b, 0x0a, 0x06, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
347 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72,
348 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x57, 0x72, 0x69,
349 0x74, 0x65, 0x48, 0x00, 0x52, 0x06, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x12, 0x3b, 0x0a, 0x06,
350 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67,
351 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31,
352 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48,
353 0x00, 0x52, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x4d, 0x0a, 0x10, 0x69, 0x6e, 0x73,
354 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x72, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20,
355 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61,
356 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
357 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74,
358 0x4f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x6c,
359 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
360 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75,
361 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x00, 0x52, 0x07,
362 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74,
363 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
364 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x74, 0x61,
365 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x48, 0x00, 0x52, 0x06, 0x64,
366 0x65, 0x6c, 0x65, 0x74, 0x65, 0x1a, 0x70, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x19,
367 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
368 0x41, 0x02, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c,
369 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75,
370 0x6d, 0x6e, 0x73, 0x12, 0x32, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20,
371 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
372 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,
373 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x5c, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74,
374 0x65, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
375 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x37, 0x0a, 0x07,
376 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
377 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76,
378 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x6b,
379 0x65, 0x79, 0x53, 0x65, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
380 0x6f, 0x6e, 0x42, 0xb0, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
381 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x4d, 0x75,
382 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63,
383 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
384 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31,
385 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x70, 0x61, 0x6e, 0x6e,
386 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c,
387 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02,
388 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x70,
389 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
390 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x65,
391 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
392 }
393
394 var (
395 file_google_spanner_v1_mutation_proto_rawDescOnce sync.Once
396 file_google_spanner_v1_mutation_proto_rawDescData = file_google_spanner_v1_mutation_proto_rawDesc
397 )
398
399 func file_google_spanner_v1_mutation_proto_rawDescGZIP() []byte {
400 file_google_spanner_v1_mutation_proto_rawDescOnce.Do(func() {
401 file_google_spanner_v1_mutation_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_spanner_v1_mutation_proto_rawDescData)
402 })
403 return file_google_spanner_v1_mutation_proto_rawDescData
404 }
405
406 var file_google_spanner_v1_mutation_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
407 var file_google_spanner_v1_mutation_proto_goTypes = []any{
408 (*Mutation)(nil), // 0: google.spanner.v1.Mutation
409 (*Mutation_Write)(nil), // 1: google.spanner.v1.Mutation.Write
410 (*Mutation_Delete)(nil), // 2: google.spanner.v1.Mutation.Delete
411 (*structpb.ListValue)(nil), // 3: google.protobuf.ListValue
412 (*KeySet)(nil), // 4: google.spanner.v1.KeySet
413 }
414 var file_google_spanner_v1_mutation_proto_depIdxs = []int32{
415 1, // 0: google.spanner.v1.Mutation.insert:type_name -> google.spanner.v1.Mutation.Write
416 1, // 1: google.spanner.v1.Mutation.update:type_name -> google.spanner.v1.Mutation.Write
417 1, // 2: google.spanner.v1.Mutation.insert_or_update:type_name -> google.spanner.v1.Mutation.Write
418 1, // 3: google.spanner.v1.Mutation.replace:type_name -> google.spanner.v1.Mutation.Write
419 2, // 4: google.spanner.v1.Mutation.delete:type_name -> google.spanner.v1.Mutation.Delete
420 3, // 5: google.spanner.v1.Mutation.Write.values:type_name -> google.protobuf.ListValue
421 4, // 6: google.spanner.v1.Mutation.Delete.key_set:type_name -> google.spanner.v1.KeySet
422 7, // [7:7] is the sub-list for method output_type
423 7, // [7:7] is the sub-list for method input_type
424 7, // [7:7] is the sub-list for extension type_name
425 7, // [7:7] is the sub-list for extension extendee
426 0, // [0:7] is the sub-list for field type_name
427 }
428
429 func init() { file_google_spanner_v1_mutation_proto_init() }
430 func file_google_spanner_v1_mutation_proto_init() {
431 if File_google_spanner_v1_mutation_proto != nil {
432 return
433 }
434 file_google_spanner_v1_keys_proto_init()
435 file_google_spanner_v1_mutation_proto_msgTypes[0].OneofWrappers = []any{
436 (*Mutation_Insert)(nil),
437 (*Mutation_Update)(nil),
438 (*Mutation_InsertOrUpdate)(nil),
439 (*Mutation_Replace)(nil),
440 (*Mutation_Delete_)(nil),
441 }
442 type x struct{}
443 out := protoimpl.TypeBuilder{
444 File: protoimpl.DescBuilder{
445 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
446 RawDescriptor: file_google_spanner_v1_mutation_proto_rawDesc,
447 NumEnums: 0,
448 NumMessages: 3,
449 NumExtensions: 0,
450 NumServices: 0,
451 },
452 GoTypes: file_google_spanner_v1_mutation_proto_goTypes,
453 DependencyIndexes: file_google_spanner_v1_mutation_proto_depIdxs,
454 MessageInfos: file_google_spanner_v1_mutation_proto_msgTypes,
455 }.Build()
456 File_google_spanner_v1_mutation_proto = out.File
457 file_google_spanner_v1_mutation_proto_rawDesc = nil
458 file_google_spanner_v1_mutation_proto_goTypes = nil
459 file_google_spanner_v1_mutation_proto_depIdxs = nil
460 }