/usr/share/gocode/src/google.golang.org/genproto/googleapis/spanner/v1/mutation.pb.go is in golang-google-genproto-dev 0.0~git20171123.7f0da29-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/spanner/v1/mutation.proto
package spanner
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/struct"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// A modification to one or more Cloud Spanner rows. Mutations can be
// applied to a Cloud Spanner database by sending them in a
// [Commit][google.spanner.v1.Spanner.Commit] call.
type Mutation struct {
// Required. The operation to perform.
//
// Types that are valid to be assigned to Operation:
// *Mutation_Insert
// *Mutation_Update
// *Mutation_InsertOrUpdate
// *Mutation_Replace
// *Mutation_Delete_
Operation isMutation_Operation `protobuf_oneof:"operation"`
}
func (m *Mutation) Reset() { *m = Mutation{} }
func (m *Mutation) String() string { return proto.CompactTextString(m) }
func (*Mutation) ProtoMessage() {}
func (*Mutation) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
type isMutation_Operation interface {
isMutation_Operation()
}
type Mutation_Insert struct {
Insert *Mutation_Write `protobuf:"bytes,1,opt,name=insert,oneof"`
}
type Mutation_Update struct {
Update *Mutation_Write `protobuf:"bytes,2,opt,name=update,oneof"`
}
type Mutation_InsertOrUpdate struct {
InsertOrUpdate *Mutation_Write `protobuf:"bytes,3,opt,name=insert_or_update,json=insertOrUpdate,oneof"`
}
type Mutation_Replace struct {
Replace *Mutation_Write `protobuf:"bytes,4,opt,name=replace,oneof"`
}
type Mutation_Delete_ struct {
Delete *Mutation_Delete `protobuf:"bytes,5,opt,name=delete,oneof"`
}
func (*Mutation_Insert) isMutation_Operation() {}
func (*Mutation_Update) isMutation_Operation() {}
func (*Mutation_InsertOrUpdate) isMutation_Operation() {}
func (*Mutation_Replace) isMutation_Operation() {}
func (*Mutation_Delete_) isMutation_Operation() {}
func (m *Mutation) GetOperation() isMutation_Operation {
if m != nil {
return m.Operation
}
return nil
}
func (m *Mutation) GetInsert() *Mutation_Write {
if x, ok := m.GetOperation().(*Mutation_Insert); ok {
return x.Insert
}
return nil
}
func (m *Mutation) GetUpdate() *Mutation_Write {
if x, ok := m.GetOperation().(*Mutation_Update); ok {
return x.Update
}
return nil
}
func (m *Mutation) GetInsertOrUpdate() *Mutation_Write {
if x, ok := m.GetOperation().(*Mutation_InsertOrUpdate); ok {
return x.InsertOrUpdate
}
return nil
}
func (m *Mutation) GetReplace() *Mutation_Write {
if x, ok := m.GetOperation().(*Mutation_Replace); ok {
return x.Replace
}
return nil
}
func (m *Mutation) GetDelete() *Mutation_Delete {
if x, ok := m.GetOperation().(*Mutation_Delete_); ok {
return x.Delete
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Mutation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Mutation_OneofMarshaler, _Mutation_OneofUnmarshaler, _Mutation_OneofSizer, []interface{}{
(*Mutation_Insert)(nil),
(*Mutation_Update)(nil),
(*Mutation_InsertOrUpdate)(nil),
(*Mutation_Replace)(nil),
(*Mutation_Delete_)(nil),
}
}
func _Mutation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Mutation)
// operation
switch x := m.Operation.(type) {
case *Mutation_Insert:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Insert); err != nil {
return err
}
case *Mutation_Update:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Update); err != nil {
return err
}
case *Mutation_InsertOrUpdate:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.InsertOrUpdate); err != nil {
return err
}
case *Mutation_Replace:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Replace); err != nil {
return err
}
case *Mutation_Delete_:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Delete); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Mutation.Operation has unexpected type %T", x)
}
return nil
}
func _Mutation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Mutation)
switch tag {
case 1: // operation.insert
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Mutation_Write)
err := b.DecodeMessage(msg)
m.Operation = &Mutation_Insert{msg}
return true, err
case 2: // operation.update
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Mutation_Write)
err := b.DecodeMessage(msg)
m.Operation = &Mutation_Update{msg}
return true, err
case 3: // operation.insert_or_update
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Mutation_Write)
err := b.DecodeMessage(msg)
m.Operation = &Mutation_InsertOrUpdate{msg}
return true, err
case 4: // operation.replace
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Mutation_Write)
err := b.DecodeMessage(msg)
m.Operation = &Mutation_Replace{msg}
return true, err
case 5: // operation.delete
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Mutation_Delete)
err := b.DecodeMessage(msg)
m.Operation = &Mutation_Delete_{msg}
return true, err
default:
return false, nil
}
}
func _Mutation_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Mutation)
// operation
switch x := m.Operation.(type) {
case *Mutation_Insert:
s := proto.Size(x.Insert)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Mutation_Update:
s := proto.Size(x.Update)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Mutation_InsertOrUpdate:
s := proto.Size(x.InsertOrUpdate)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Mutation_Replace:
s := proto.Size(x.Replace)
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Mutation_Delete_:
s := proto.Size(x.Delete)
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Arguments to [insert][google.spanner.v1.Mutation.insert], [update][google.spanner.v1.Mutation.update], [insert_or_update][google.spanner.v1.Mutation.insert_or_update], and
// [replace][google.spanner.v1.Mutation.replace] operations.
type Mutation_Write struct {
// Required. The table whose rows will be written.
Table string `protobuf:"bytes,1,opt,name=table" json:"table,omitempty"`
// The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
//
// The list of columns must contain enough columns to allow
// Cloud Spanner to derive values for all primary key columns in the
// row(s) to be modified.
Columns []string `protobuf:"bytes,2,rep,name=columns" json:"columns,omitempty"`
// The values to be written. `values` can contain more than one
// list of values. If it does, then multiple rows are written, one
// for each entry in `values`. Each list in `values` must have
// exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
// above. Sending multiple lists is equivalent to sending multiple
// `Mutation`s, each containing one `values` entry and repeating
// [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
// encoded as described [here][google.spanner.v1.TypeCode].
Values []*google_protobuf1.ListValue `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"`
}
func (m *Mutation_Write) Reset() { *m = Mutation_Write{} }
func (m *Mutation_Write) String() string { return proto.CompactTextString(m) }
func (*Mutation_Write) ProtoMessage() {}
func (*Mutation_Write) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
func (m *Mutation_Write) GetTable() string {
if m != nil {
return m.Table
}
return ""
}
func (m *Mutation_Write) GetColumns() []string {
if m != nil {
return m.Columns
}
return nil
}
func (m *Mutation_Write) GetValues() []*google_protobuf1.ListValue {
if m != nil {
return m.Values
}
return nil
}
// Arguments to [delete][google.spanner.v1.Mutation.delete] operations.
type Mutation_Delete struct {
// Required. The table whose rows will be deleted.
Table string `protobuf:"bytes,1,opt,name=table" json:"table,omitempty"`
// Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
KeySet *KeySet `protobuf:"bytes,2,opt,name=key_set,json=keySet" json:"key_set,omitempty"`
}
func (m *Mutation_Delete) Reset() { *m = Mutation_Delete{} }
func (m *Mutation_Delete) String() string { return proto.CompactTextString(m) }
func (*Mutation_Delete) ProtoMessage() {}
func (*Mutation_Delete) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 1} }
func (m *Mutation_Delete) GetTable() string {
if m != nil {
return m.Table
}
return ""
}
func (m *Mutation_Delete) GetKeySet() *KeySet {
if m != nil {
return m.KeySet
}
return nil
}
func init() {
proto.RegisterType((*Mutation)(nil), "google.spanner.v1.Mutation")
proto.RegisterType((*Mutation_Write)(nil), "google.spanner.v1.Mutation.Write")
proto.RegisterType((*Mutation_Delete)(nil), "google.spanner.v1.Mutation.Delete")
}
func init() { proto.RegisterFile("google/spanner/v1/mutation.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 413 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xd1, 0xea, 0xd3, 0x30,
0x14, 0xc6, 0xed, 0xba, 0x75, 0x2e, 0x43, 0xd1, 0xa2, 0x58, 0x8b, 0x17, 0x75, 0x57, 0xbb, 0x4a,
0x69, 0xbd, 0x11, 0xa6, 0x37, 0x53, 0x50, 0xd0, 0xe1, 0xe8, 0x70, 0x82, 0x0c, 0x46, 0xd6, 0x1d,
0x4b, 0x69, 0x96, 0x94, 0x24, 0x1d, 0xec, 0x45, 0xbc, 0xf4, 0x01, 0x7c, 0x14, 0x9f, 0x4a, 0x9a,
0xa4, 0x32, 0x9c, 0xfe, 0xd9, 0xff, 0xaa, 0x3d, 0x7c, 0xdf, 0xef, 0x3b, 0xe7, 0x24, 0x41, 0x51,
0xc1, 0x79, 0x41, 0x21, 0x96, 0x35, 0x61, 0x0c, 0x44, 0x7c, 0x4c, 0xe2, 0x43, 0xa3, 0x88, 0x2a,
0x39, 0xc3, 0xb5, 0xe0, 0x8a, 0xfb, 0x0f, 0x8d, 0x03, 0x5b, 0x07, 0x3e, 0x26, 0xe1, 0x33, 0x0b,
0x91, 0xba, 0x8c, 0x09, 0x63, 0xdc, 0xf8, 0xa5, 0x01, 0xfe, 0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