Class CommitResponse.CommitStats.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>
      • getDefaultInstanceForType

        public CommitResponse.CommitStats getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CommitResponse.CommitStats build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CommitResponse.CommitStats buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>
      • mergeFrom

        public CommitResponse.CommitStats.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommitResponse.CommitStats.Builder>
        Throws:
        IOException
      • getMutationCount

        public 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;
        Specified by:
        getMutationCount in interface CommitResponse.CommitStatsOrBuilder
        Returns:
        The mutationCount.
      • setMutationCount

        public CommitResponse.CommitStats.Builder setMutationCount​(long value)
         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;
        Parameters:
        value - The mutationCount to set.
        Returns:
        This builder for chaining.
      • clearMutationCount

        public CommitResponse.CommitStats.Builder clearMutationCount()
         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:
        This builder for chaining.
      • setUnknownFields

        public final CommitResponse.CommitStats.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>
      • mergeUnknownFields

        public final CommitResponse.CommitStats.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>