Class CommitResponse.CommitStats.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>
com.google.spanner.v1.CommitResponse.CommitStats.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CommitResponse.CommitStatsOrBuilder, Cloneable
Enclosing class:
CommitResponse.CommitStats

public static final class CommitResponse.CommitStats.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder> implements CommitResponse.CommitStatsOrBuilder
 Additional statistics about a commit.
 
Protobuf type google.spanner.v1.CommitResponse.CommitStats
  • Method Details

    • 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>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear 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

      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
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>
    • setField

      public CommitResponse.CommitStats.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>
    • clearField

      public CommitResponse.CommitStats.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>
    • clearOneof

      public CommitResponse.CommitStats.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>
    • setRepeatedField

      public CommitResponse.CommitStats.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>
    • addRepeatedField

      public CommitResponse.CommitStats.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder>
    • mergeFrom

      public CommitResponse.CommitStats.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommitResponse.CommitStats.Builder>
    • mergeFrom

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