public static final class Mutation.Write extends GeneratedMessageV3 implements Mutation.WriteOrBuilder
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.Protobuf type
google.spanner.v1.Mutation.Write| Modifier and Type | Class and Description |
|---|---|
static class |
Mutation.Write.Builder
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.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
COLUMNS_FIELD_NUMBER |
static int |
TABLE_FIELD_NUMBER |
static int |
VALUES_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getColumns(int index)
The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
|
ByteString |
getColumnsBytes(int index)
The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
|
int |
getColumnsCount()
The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
|
ProtocolStringList |
getColumnsList()
The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
|
static Mutation.Write |
getDefaultInstance() |
Mutation.Write |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<Mutation.Write> |
getParserForType() |
int |
getSerializedSize() |
java.lang.String |
getTable()
Required.
|
ByteString |
getTableBytes()
Required.
|
UnknownFieldSet |
getUnknownFields() |
ListValue |
getValues(int index)
The values to be written.
|
int |
getValuesCount()
The values to be written.
|
java.util.List<ListValue> |
getValuesList()
The values to be written.
|
ListValueOrBuilder |
getValuesOrBuilder(int index)
The values to be written.
|
java.util.List<? extends ListValueOrBuilder> |
getValuesOrBuilderList()
The values to be written.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Mutation.Write.Builder |
newBuilder() |
static Mutation.Write.Builder |
newBuilder(Mutation.Write prototype) |
Mutation.Write.Builder |
newBuilderForType() |
protected Mutation.Write.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Mutation.Write |
parseDelimitedFrom(java.io.InputStream input) |
static Mutation.Write |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Mutation.Write |
parseFrom(byte[] data) |
static Mutation.Write |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Mutation.Write |
parseFrom(java.nio.ByteBuffer data) |
static Mutation.Write |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Mutation.Write |
parseFrom(ByteString data) |
static Mutation.Write |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Mutation.Write |
parseFrom(CodedInputStream input) |
static Mutation.Write |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Mutation.Write |
parseFrom(java.io.InputStream input) |
static Mutation.Write |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Mutation.Write> |
parser() |
Mutation.Write.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int TABLE_FIELD_NUMBER
public static final int COLUMNS_FIELD_NUMBER
public static final int VALUES_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getTable()
Required. The table whose rows will be written.
string table = 1;getTable in interface Mutation.WriteOrBuilderpublic ByteString getTableBytes()
Required. The table whose rows will be written.
string table = 1;getTableBytes in interface Mutation.WriteOrBuilderpublic ProtocolStringList getColumnsList()
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.
repeated string columns = 2;getColumnsList in interface Mutation.WriteOrBuilderpublic int getColumnsCount()
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.
repeated string columns = 2;getColumnsCount in interface Mutation.WriteOrBuilderpublic java.lang.String getColumns(int index)
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.
repeated string columns = 2;getColumns in interface Mutation.WriteOrBuilderpublic ByteString getColumnsBytes(int index)
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.
repeated string columns = 2;getColumnsBytes in interface Mutation.WriteOrBuilderpublic java.util.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][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].
repeated .google.protobuf.ListValue values = 3;getValuesList in interface Mutation.WriteOrBuilderpublic java.util.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][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].
repeated .google.protobuf.ListValue values = 3;getValuesOrBuilderList in interface Mutation.WriteOrBuilderpublic 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][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].
repeated .google.protobuf.ListValue values = 3;getValuesCount in interface Mutation.WriteOrBuilderpublic 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][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].
repeated .google.protobuf.ListValue values = 3;getValues in interface Mutation.WriteOrBuilderpublic 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][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].
repeated .google.protobuf.ListValue values = 3;getValuesOrBuilder in interface Mutation.WriteOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Mutation.Write parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Mutation.Write parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Mutation.Write parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Mutation.Write parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Mutation.Write parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Mutation.Write parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Mutation.Write.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Mutation.Write.Builder newBuilder()
public static Mutation.Write.Builder newBuilder(Mutation.Write prototype)
public Mutation.Write.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Mutation.Write.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Mutation.Write getDefaultInstance()
public static Parser<Mutation.Write> parser()
public Parser<Mutation.Write> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Mutation.Write getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder