Interface CommitResponse.CommitStatsOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
CommitResponse.CommitStats, CommitResponse.CommitStats.Builder
Enclosing class:
CommitResponse

public static interface CommitResponse.CommitStatsOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The total number of mutations for the transaction.

    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 Details

    • getMutationCount

      long getMutationCount()
       The total number of mutations for the transaction. Knowing the
       `mutation_count` value can help you maximize the number of mutations
       in a transaction and minimize the number of API round trips. You can
       also monitor this value to prevent transactions from exceeding the system
       [limit](https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data).
       If the number of mutations exceeds the limit, the server returns
       [INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT).
       
      int64 mutation_count = 1;
      Returns:
      The mutationCount.