RowInBatchWriteRowRequest indicates the information of the row to be written, updated, or deleted in the BatchWriteRow operation.

Data structure

message RowInBatchWriteRowRequest {
    required OperationType type = 1;
    required bytes row_change = 2; // encoded as InplaceRowChangeSet
    required Condition condition = 3;
    optional ReturnContent return_content = 4;
} 
type:
row_change:
  • Type: Bytes

  • The row data, which includes the primary key columns and attribute columns. The columns are encoded in Plainbuffer format. For more information, see Plainbuffer encoding.

condition:
  • Type: Condition

  • The value of conditional update, including the row existence condition and column-based condition.

return_content:
  • Type: ReturnContent

  • Required parameter: Yes

  • The data type after the row is successfully written. Currently, only the primary key can be returned, which is used for the auto-increment function of the primary key column.

Related operations

BatchWriteRow