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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
      List<String> getColumnsList()
      The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
      String getTable()
      Required.
      com.google.protobuf.ByteString getTableBytes()
      Required.
      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.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • 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

        List<String> 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

        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;
        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;