public static final class Mutation.Write extends com.google.protobuf.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.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COLUMNS_FIELD_NUMBER |
static int |
TABLE_FIELD_NUMBER |
static int |
VALUES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getColumns(int index)
The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
|
com.google.protobuf.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.
|
com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Mutation.Write> |
getParserForType() |
int |
getSerializedSize() |
String |
getTable()
Required.
|
com.google.protobuf.ByteString |
getTableBytes()
Required.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
com.google.protobuf.ListValue |
getValues(int index)
The values to be written.
|
int |
getValuesCount()
The values to be written.
|
List<com.google.protobuf.ListValue> |
getValuesList()
The values to be written.
|
com.google.protobuf.ListValueOrBuilder |
getValuesOrBuilder(int index)
The values to be written.
|
List<? extends com.google.protobuf.ListValueOrBuilder> |
getValuesOrBuilderList()
The values to be written.
|
int |
hashCode() |
protected com.google.protobuf.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(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Mutation.Write |
parseDelimitedFrom(InputStream input) |
static Mutation.Write |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mutation.Write |
parseFrom(byte[] data) |
static Mutation.Write |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mutation.Write |
parseFrom(ByteBuffer data) |
static Mutation.Write |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mutation.Write |
parseFrom(com.google.protobuf.ByteString data) |
static Mutation.Write |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mutation.Write |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Mutation.Write |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mutation.Write |
parseFrom(InputStream input) |
static Mutation.Write |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Mutation.Write> |
parser() |
Mutation.Write.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, waitpublic static final int TABLE_FIELD_NUMBER
public static final int COLUMNS_FIELD_NUMBER
public static final int VALUES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getTable()
Required. The table whose rows will be written.
string table = 1;getTable in interface Mutation.WriteOrBuilderpublic com.google.protobuf.ByteString getTableBytes()
Required. The table whose rows will be written.
string table = 1;getTableBytes in interface Mutation.WriteOrBuilderpublic com.google.protobuf.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 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.WriteOrBuilderindex - The index of the element to return.public com.google.protobuf.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.WriteOrBuilderindex - The index of the value to return.public List<com.google.protobuf.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 List<? extends com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Mutation.Write parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mutation.Write parseFrom(InputStream input) throws IOException
IOExceptionpublic static Mutation.Write parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Mutation.Write parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Mutation.Write parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Mutation.Write parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Mutation.Write parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Mutation.Write.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Mutation.Write.Builder newBuilder()
public static Mutation.Write.Builder newBuilder(Mutation.Write prototype)
public Mutation.Write.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Mutation.Write.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Mutation.Write getDefaultInstance()
public static com.google.protobuf.Parser<Mutation.Write> parser()
public com.google.protobuf.Parser<Mutation.Write> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Mutation.Write getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.