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
TABLE_FIELD_NUMBER
public static final int TABLE_FIELD_NUMBER
Field Value
VALUES_FIELD_NUMBER
public static final int VALUES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Mutation.Write getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Mutation.Write.Builder newBuilder()
Returns
newBuilder(Mutation.Write prototype)
public static Mutation.Write.Builder newBuilder(Mutation.Write prototype)
Parameter
Returns
public static Mutation.Write parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Mutation.Write parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Mutation.Write parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Mutation.Write parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Mutation.Write parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Mutation.Write parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Mutation.Write parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Mutation.Write parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Mutation.Write parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Mutation.Write parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Mutation.Write parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Mutation.Write parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Mutation.Write> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
getDefaultInstanceForType()
public Mutation.Write getDefaultInstanceForType()
Returns
getParserForType()
public Parser<Mutation.Write> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTable()
Required. The table whose rows will be written.
string table = 1;
Returns
Type | Description |
String | The table.
|
getTableBytes()
public ByteString getTableBytes()
Required. The table whose rows will be written.
string table = 1;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
Mutation
s, 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
Returns
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
Mutation
s, 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
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
Mutation
s, 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
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
Mutation
s, 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
Returns
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
Mutation
s, 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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Mutation.Write.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Mutation.Write.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Mutation.Write.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions