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
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(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.
|
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() |
java.lang.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.
|
java.util.List<com.google.protobuf.ListValue> |
getValuesList()
The values to be written.
|
com.google.protobuf.ListValueOrBuilder |
getValuesOrBuilder(int index)
The values to be written.
|
java.util.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) |
static Mutation.Write |
parseDelimitedFrom(java.io.InputStream input) |
static Mutation.Write |
parseDelimitedFrom(java.io.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(java.nio.ByteBuffer data) |
static Mutation.Write |
parseFrom(java.nio.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(java.io.InputStream input) |
static Mutation.Write |
parseFrom(java.io.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, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int TABLE_FIELD_NUMBER
public static final int COLUMNS_FIELD_NUMBER
public static final int VALUES_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public java.lang.String getTable()
Required. The table whose rows will be written.
string table = 1;
getTable
in interface Mutation.WriteOrBuilder
public com.google.protobuf.ByteString getTableBytes()
Required. The table whose rows will be written.
string table = 1;
getTableBytes
in interface Mutation.WriteOrBuilder
public 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.WriteOrBuilder
public 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.WriteOrBuilder
public 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.WriteOrBuilder
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.WriteOrBuilder
public java.util.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.WriteOrBuilder
public java.util.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.WriteOrBuilder
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][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.WriteOrBuilder
public 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.WriteOrBuilder
public 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.WriteOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Mutation.Write parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation.Write parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation.Write parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation.Write parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation.Write parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation.Write parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation.Write parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Mutation.Write parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Mutation.Write parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Mutation.Write parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Mutation.Write parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Mutation.Write parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Mutation.Write.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Mutation.Write.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Mutation.Write getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder