Class Mutation.Write (6.71.0)

public static final class Mutation.Write extends GeneratedMessageV3 implements Mutation.WriteOrBuilder

Arguments to insert, update, insert_or_update, and replace operations.

Protobuf type google.spanner.v1.Mutation.Write

Static Fields

COLUMNS_FIELD_NUMBER

public static final int COLUMNS_FIELD_NUMBER
Field Value
Type Description
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
Type Description
int

VALUES_FIELD_NUMBER

public static final int VALUES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Mutation.Write getDefaultInstance()
Returns
Type Description
Mutation.Write

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Mutation.Write.Builder newBuilder()
Returns
Type Description
Mutation.Write.Builder

newBuilder(Mutation.Write prototype)

public static Mutation.Write.Builder newBuilder(Mutation.Write prototype)
Parameter
Name Description
prototype Mutation.Write
Returns
Type Description
Mutation.Write.Builder

parseDelimitedFrom(InputStream input)

public static Mutation.Write parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Mutation.Write
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Mutation.Write parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Mutation.Write
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Mutation.Write parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Mutation.Write
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Mutation.Write parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Mutation.Write
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Mutation.Write parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Mutation.Write
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Mutation.Write parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Mutation.Write
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Mutation.Write parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Mutation.Write
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Mutation.Write parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Mutation.Write
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Mutation.Write parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Mutation.Write
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Mutation.Write parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Mutation.Write
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Mutation.Write parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Mutation.Write
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Mutation.Write parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Mutation.Write
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Mutation.Write> parser()
Returns
Type Description
Parser<Write>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getColumns(int index)

public String getColumns(int index)

The names of the columns in 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.

repeated string columns = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The columns at the given index.

getColumnsBytes(int index)

public ByteString getColumnsBytes(int index)

The names of the columns in 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.

repeated string columns = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the columns at the given index.

getColumnsCount()

public int getColumnsCount()

The names of the columns in 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.

repeated string columns = 2;

Returns
Type Description
int

The count of columns.

getColumnsList()

public ProtocolStringList getColumnsList()

The names of the columns in 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.

repeated string columns = 2;

Returns
Type Description
ProtocolStringList

A list containing the columns.

getDefaultInstanceForType()

public Mutation.Write getDefaultInstanceForType()
Returns
Type Description
Mutation.Write

getParserForType()

public Parser<Mutation.Write> getParserForType()
Returns
Type Description
Parser<Write>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTable()

public String getTable()

Required. The table whose rows will be written.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

Required. The table whose rows will be written.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for table.

getValues(int index)

public ListValue getValues(int index)

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 above. Sending multiple lists is equivalent to sending multiple Mutations, each containing one values entry and repeating table and columns. Individual values in each list are encoded as described here.

repeated .google.protobuf.ListValue values = 3;

Parameter
Name Description
index int
Returns
Type Description
ListValue

getValuesCount()

public int getValuesCount()

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 above. Sending multiple lists is equivalent to sending multiple Mutations, each containing one values entry and repeating table and columns. Individual values in each list are encoded as described here.

repeated .google.protobuf.ListValue values = 3;

Returns
Type Description
int

getValuesList()

public List<ListValue> getValuesList()

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 above. Sending multiple lists is equivalent to sending multiple Mutations, each containing one values entry and repeating table and columns. Individual values in each list are encoded as described here.

repeated .google.protobuf.ListValue values = 3;

Returns
Type Description
List<ListValue>

getValuesOrBuilder(int index)

public ListValueOrBuilder getValuesOrBuilder(int index)

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 above. Sending multiple lists is equivalent to sending multiple Mutations, each containing one values entry and repeating table and columns. Individual values in each list are encoded as described here.

repeated .google.protobuf.ListValue values = 3;

Parameter
Name Description
index int
Returns
Type Description
ListValueOrBuilder

getValuesOrBuilderList()

public List<? extends ListValueOrBuilder> getValuesOrBuilderList()

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 above. Sending multiple lists is equivalent to sending multiple Mutations, each containing one values entry and repeating table and columns. Individual values in each list are encoded as described here.

repeated .google.protobuf.ListValue values = 3;

Returns
Type Description
List<? extends com.google.protobuf.ListValueOrBuilder>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Mutation.Write.Builder newBuilderForType()
Returns
Type Description
Mutation.Write.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Mutation.Write.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Mutation.Write.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Mutation.Write.Builder toBuilder()
Returns
Type Description
Mutation.Write.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException