Class Store.LockInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
io.dingodb.store.Store.LockInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Store.LockInfoOrBuilder, Cloneable
Enclosing class:
Store.LockInfo

public static final class Store.LockInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder> implements Store.LockInfoOrBuilder
Protobuf type dingodb.pb.store.LockInfo
  • 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<Store.LockInfo.Builder>
    • clear

      public Store.LockInfo.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<Store.LockInfo.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<Store.LockInfo.Builder>
    • getDefaultInstanceForType

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

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

      public Store.LockInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Store.LockInfo.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<Store.LockInfo.Builder>
    • setField

      public Store.LockInfo.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<Store.LockInfo.Builder>
    • clearField

      public Store.LockInfo.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<Store.LockInfo.Builder>
    • clearOneof

      public Store.LockInfo.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<Store.LockInfo.Builder>
    • setRepeatedField

      public Store.LockInfo.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<Store.LockInfo.Builder>
    • addRepeatedField

      public Store.LockInfo.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<Store.LockInfo.Builder>
    • mergeFrom

      public Store.LockInfo.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<Store.LockInfo.Builder>
    • mergeFrom

      public Store.LockInfo.Builder mergeFrom(Store.LockInfo other)
    • isInitialized

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

      public Store.LockInfo.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<Store.LockInfo.Builder>
      Throws:
      IOException
    • getPrimaryLock

      public com.google.protobuf.ByteString getPrimaryLock()
       the primary lock of the transaction
       
      bytes primary_lock = 1;
      Specified by:
      getPrimaryLock in interface Store.LockInfoOrBuilder
      Returns:
      The primaryLock.
    • setPrimaryLock

      public Store.LockInfo.Builder setPrimaryLock(com.google.protobuf.ByteString value)
       the primary lock of the transaction
       
      bytes primary_lock = 1;
      Parameters:
      value - The primaryLock to set.
      Returns:
      This builder for chaining.
    • clearPrimaryLock

      public Store.LockInfo.Builder clearPrimaryLock()
       the primary lock of the transaction
       
      bytes primary_lock = 1;
      Returns:
      This builder for chaining.
    • getKey

      public com.google.protobuf.ByteString getKey()
       the key of the lock
       
      bytes key = 2;
      Specified by:
      getKey in interface Store.LockInfoOrBuilder
      Returns:
      The key.
    • setKey

      public Store.LockInfo.Builder setKey(com.google.protobuf.ByteString value)
       the key of the lock
       
      bytes key = 2;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public Store.LockInfo.Builder clearKey()
       the key of the lock
       
      bytes key = 2;
      Returns:
      This builder for chaining.
    • getLockTs

      public long getLockTs()
       the start_ts of the transaction
       
      int64 lock_ts = 3;
      Specified by:
      getLockTs in interface Store.LockInfoOrBuilder
      Returns:
      The lockTs.
    • setLockTs

      public Store.LockInfo.Builder setLockTs(long value)
       the start_ts of the transaction
       
      int64 lock_ts = 3;
      Parameters:
      value - The lockTs to set.
      Returns:
      This builder for chaining.
    • clearLockTs

      public Store.LockInfo.Builder clearLockTs()
       the start_ts of the transaction
       
      int64 lock_ts = 3;
      Returns:
      This builder for chaining.
    • getForUpdateTs

      public long getForUpdateTs()
       the for_update_ts of the pessimistic lock
       
      int64 for_update_ts = 4;
      Specified by:
      getForUpdateTs in interface Store.LockInfoOrBuilder
      Returns:
      The forUpdateTs.
    • setForUpdateTs

      public Store.LockInfo.Builder setForUpdateTs(long value)
       the for_update_ts of the pessimistic lock
       
      int64 for_update_ts = 4;
      Parameters:
      value - The forUpdateTs to set.
      Returns:
      This builder for chaining.
    • clearForUpdateTs

      public Store.LockInfo.Builder clearForUpdateTs()
       the for_update_ts of the pessimistic lock
       
      int64 for_update_ts = 4;
      Returns:
      This builder for chaining.
    • getLockTtl

      public long getLockTtl()
       the lock ttl timestamp in milisecond
       
      int64 lock_ttl = 5;
      Specified by:
      getLockTtl in interface Store.LockInfoOrBuilder
      Returns:
      The lockTtl.
    • setLockTtl

      public Store.LockInfo.Builder setLockTtl(long value)
       the lock ttl timestamp in milisecond
       
      int64 lock_ttl = 5;
      Parameters:
      value - The lockTtl to set.
      Returns:
      This builder for chaining.
    • clearLockTtl

      public Store.LockInfo.Builder clearLockTtl()
       the lock ttl timestamp in milisecond
       
      int64 lock_ttl = 5;
      Returns:
      This builder for chaining.
    • getTxnSize

      public long getTxnSize()
       the number of keys involved in the transaction
       
      int64 txn_size = 6;
      Specified by:
      getTxnSize in interface Store.LockInfoOrBuilder
      Returns:
      The txnSize.
    • setTxnSize

      public Store.LockInfo.Builder setTxnSize(long value)
       the number of keys involved in the transaction
       
      int64 txn_size = 6;
      Parameters:
      value - The txnSize to set.
      Returns:
      This builder for chaining.
    • clearTxnSize

      public Store.LockInfo.Builder clearTxnSize()
       the number of keys involved in the transaction
       
      int64 txn_size = 6;
      Returns:
      This builder for chaining.
    • getLockTypeValue

      public int getLockTypeValue()
       the type of the lock, it can be put, delete, lock
       
      .dingodb.pb.store.Op lock_type = 7;
      Specified by:
      getLockTypeValue in interface Store.LockInfoOrBuilder
      Returns:
      The enum numeric value on the wire for lockType.
    • setLockTypeValue

      public Store.LockInfo.Builder setLockTypeValue(int value)
       the type of the lock, it can be put, delete, lock
       
      .dingodb.pb.store.Op lock_type = 7;
      Parameters:
      value - The enum numeric value on the wire for lockType to set.
      Returns:
      This builder for chaining.
    • getLockType

      public Store.Op getLockType()
       the type of the lock, it can be put, delete, lock
       
      .dingodb.pb.store.Op lock_type = 7;
      Specified by:
      getLockType in interface Store.LockInfoOrBuilder
      Returns:
      The lockType.
    • setLockType

      public Store.LockInfo.Builder setLockType(Store.Op value)
       the type of the lock, it can be put, delete, lock
       
      .dingodb.pb.store.Op lock_type = 7;
      Parameters:
      value - The lockType to set.
      Returns:
      This builder for chaining.
    • clearLockType

      public Store.LockInfo.Builder clearLockType()
       the type of the lock, it can be put, delete, lock
       
      .dingodb.pb.store.Op lock_type = 7;
      Returns:
      This builder for chaining.
    • getShortValue

      public com.google.protobuf.ByteString getShortValue()
       the short value will persist to lock_info, and do not write data, commit will set it to
       
      bytes short_value = 8;
      Specified by:
      getShortValue in interface Store.LockInfoOrBuilder
      Returns:
      The shortValue.
    • setShortValue

      public Store.LockInfo.Builder setShortValue(com.google.protobuf.ByteString value)
       the short value will persist to lock_info, and do not write data, commit will set it to
       
      bytes short_value = 8;
      Parameters:
      value - The shortValue to set.
      Returns:
      This builder for chaining.
    • clearShortValue

      public Store.LockInfo.Builder clearShortValue()
       the short value will persist to lock_info, and do not write data, commit will set it to
       
      bytes short_value = 8;
      Returns:
      This builder for chaining.
    • getExtraData

      public com.google.protobuf.ByteString getExtraData()
       write_info.short_value
       
      bytes extra_data = 9;
      Specified by:
      getExtraData in interface Store.LockInfoOrBuilder
      Returns:
      The extraData.
    • setExtraData

      public Store.LockInfo.Builder setExtraData(com.google.protobuf.ByteString value)
       write_info.short_value
       
      bytes extra_data = 9;
      Parameters:
      value - The extraData to set.
      Returns:
      This builder for chaining.
    • clearExtraData

      public Store.LockInfo.Builder clearExtraData()
       write_info.short_value
       
      bytes extra_data = 9;
      Returns:
      This builder for chaining.
    • getMinCommitTs

      public long getMinCommitTs()
       the min_commit_ts of the transaction
       
      int64 min_commit_ts = 10;
      Specified by:
      getMinCommitTs in interface Store.LockInfoOrBuilder
      Returns:
      The minCommitTs.
    • setMinCommitTs

      public Store.LockInfo.Builder setMinCommitTs(long value)
       the min_commit_ts of the transaction
       
      int64 min_commit_ts = 10;
      Parameters:
      value - The minCommitTs to set.
      Returns:
      This builder for chaining.
    • clearMinCommitTs

      public Store.LockInfo.Builder clearMinCommitTs()
       the min_commit_ts of the transaction
       
      int64 min_commit_ts = 10;
      Returns:
      This builder for chaining.
    • getUseAsyncCommit

      public boolean getUseAsyncCommit()
      bool use_async_commit = 11;
      Specified by:
      getUseAsyncCommit in interface Store.LockInfoOrBuilder
      Returns:
      The useAsyncCommit.
    • setUseAsyncCommit

      public Store.LockInfo.Builder setUseAsyncCommit(boolean value)
      bool use_async_commit = 11;
      Parameters:
      value - The useAsyncCommit to set.
      Returns:
      This builder for chaining.
    • clearUseAsyncCommit

      public Store.LockInfo.Builder clearUseAsyncCommit()
      bool use_async_commit = 11;
      Returns:
      This builder for chaining.
    • getSecondariesList

      public List<com.google.protobuf.ByteString> getSecondariesList()
       the key list of all secondary for transactions that are using Async Commit.
       
      repeated bytes secondaries = 12;
      Specified by:
      getSecondariesList in interface Store.LockInfoOrBuilder
      Returns:
      A list containing the secondaries.
    • getSecondariesCount

      public int getSecondariesCount()
       the key list of all secondary for transactions that are using Async Commit.
       
      repeated bytes secondaries = 12;
      Specified by:
      getSecondariesCount in interface Store.LockInfoOrBuilder
      Returns:
      The count of secondaries.
    • getSecondaries

      public com.google.protobuf.ByteString getSecondaries(int index)
       the key list of all secondary for transactions that are using Async Commit.
       
      repeated bytes secondaries = 12;
      Specified by:
      getSecondaries in interface Store.LockInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The secondaries at the given index.
    • setSecondaries

      public Store.LockInfo.Builder setSecondaries(int index, com.google.protobuf.ByteString value)
       the key list of all secondary for transactions that are using Async Commit.
       
      repeated bytes secondaries = 12;
      Parameters:
      index - The index to set the value at.
      value - The secondaries to set.
      Returns:
      This builder for chaining.
    • addSecondaries

      public Store.LockInfo.Builder addSecondaries(com.google.protobuf.ByteString value)
       the key list of all secondary for transactions that are using Async Commit.
       
      repeated bytes secondaries = 12;
      Parameters:
      value - The secondaries to add.
      Returns:
      This builder for chaining.
    • addAllSecondaries

      public Store.LockInfo.Builder addAllSecondaries(Iterable<? extends com.google.protobuf.ByteString> values)
       the key list of all secondary for transactions that are using Async Commit.
       
      repeated bytes secondaries = 12;
      Parameters:
      values - The secondaries to add.
      Returns:
      This builder for chaining.
    • clearSecondaries

      public Store.LockInfo.Builder clearSecondaries()
       the key list of all secondary for transactions that are using Async Commit.
       
      repeated bytes secondaries = 12;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Store.LockInfo.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<Store.LockInfo.Builder>
    • mergeUnknownFields

      public final Store.LockInfo.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<Store.LockInfo.Builder>