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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Mutation.Write.Builder newBuilder()
newBuilder(Mutation.Write prototype)
public static Mutation.Write.Builder newBuilder(Mutation.Write prototype)
public static Mutation.Write parseDelimitedFrom(InputStream input)
public static Mutation.Write parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Mutation.Write parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Mutation.Write parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Mutation.Write parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Mutation.Write parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Mutation.Write parseFrom(CodedInputStream input)
public static Mutation.Write parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Mutation.Write parseFrom(InputStream input)
public static Mutation.Write parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Mutation.Write parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Mutation.Write parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Mutation.Write> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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;
getDefaultInstanceForType()
public Mutation.Write getDefaultInstanceForType()
getParserForType()
public Parser<Mutation.Write> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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
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 |
---|
Name | Description |
index | int
|
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 |
---|
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
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;
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Mutation.Write.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Mutation.Write.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Mutation.Write.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides