Package com.google.spanner.v1
Interface Mutation.WriteOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Mutation.Write,Mutation.Write.Builder
- Enclosing class:
- Mutation
public static interface Mutation.WriteOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetColumns(int index) The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.com.google.protobuf.ByteStringgetColumnsBytes(int index) The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.intThe names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.getTable()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.ListValuegetValues(int index) The values to be written.intThe values to be written.List<com.google.protobuf.ListValue>The values to be written.com.google.protobuf.ListValueOrBuildergetValuesOrBuilder(int index) The values to be written.List<? extends com.google.protobuf.ListValueOrBuilder>The values to be written.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTable
String getTable()Required. The table whose rows will be written.
string table = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The table.
-
getTableBytes
com.google.protobuf.ByteString getTableBytes()Required. The table whose rows will be written.
string table = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for table.
-
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;- Returns:
- A list containing the columns.
-
getColumnsCount
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;- Returns:
- The count of columns.
-
getColumns
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;- Parameters:
index- The index of the element to return.- Returns:
- The columns at the given index.
-
getColumnsBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the columns at the given index.
-
getValuesList
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; -
getValues
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; -
getValuesCount
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; -
getValuesOrBuilderList
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; -
getValuesOrBuilder
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;
-