Class Store.TxnGetResponse.Builder

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

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

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

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

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

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

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

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

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

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

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

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

      public boolean hasResponseInfo()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      hasResponseInfo in interface Store.TxnGetResponseOrBuilder
      Returns:
      Whether the responseInfo field is set.
    • getResponseInfo

      public Common.ResponseInfo getResponseInfo()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      getResponseInfo in interface Store.TxnGetResponseOrBuilder
      Returns:
      The responseInfo.
    • setResponseInfo

      public Store.TxnGetResponse.Builder setResponseInfo(Common.ResponseInfo value)
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • setResponseInfo

      public Store.TxnGetResponse.Builder setResponseInfo(Common.ResponseInfo.Builder builderForValue)
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • mergeResponseInfo

      public Store.TxnGetResponse.Builder mergeResponseInfo(Common.ResponseInfo value)
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • clearResponseInfo

      public Store.TxnGetResponse.Builder clearResponseInfo()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • getResponseInfoBuilder

      public Common.ResponseInfo.Builder getResponseInfoBuilder()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • getResponseInfoOrBuilder

      public Common.ResponseInfoOrBuilder getResponseInfoOrBuilder()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      getResponseInfoOrBuilder in interface Store.TxnGetResponseOrBuilder
    • hasError

      public boolean hasError()
       error code
       
      .dingodb.pb.error.Error error = 2;
      Specified by:
      hasError in interface Store.TxnGetResponseOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public ErrorOuterClass.Error getError()
       error code
       
      .dingodb.pb.error.Error error = 2;
      Specified by:
      getError in interface Store.TxnGetResponseOrBuilder
      Returns:
      The error.
    • setError

       error code
       
      .dingodb.pb.error.Error error = 2;
    • setError

       error code
       
      .dingodb.pb.error.Error error = 2;
    • mergeError

       error code
       
      .dingodb.pb.error.Error error = 2;
    • clearError

      public Store.TxnGetResponse.Builder clearError()
       error code
       
      .dingodb.pb.error.Error error = 2;
    • getErrorBuilder

      public ErrorOuterClass.Error.Builder getErrorBuilder()
       error code
       
      .dingodb.pb.error.Error error = 2;
    • getErrorOrBuilder

      public ErrorOuterClass.ErrorOrBuilder getErrorOrBuilder()
       error code
       
      .dingodb.pb.error.Error error = 2;
      Specified by:
      getErrorOrBuilder in interface Store.TxnGetResponseOrBuilder
    • hasTxnResult

      public boolean hasTxnResult()
       A value could not be retrieved due to the state of the database for the
       requested key.
       the txn_result is one of the following:
       1. LockInfo: Read conflict with key which is locked by another transaction. The client should backoff or cleanup
       the lock then retry.
       2. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
      Specified by:
      hasTxnResult in interface Store.TxnGetResponseOrBuilder
      Returns:
      Whether the txnResult field is set.
    • getTxnResult

      public Store.TxnResultInfo getTxnResult()
       A value could not be retrieved due to the state of the database for the
       requested key.
       the txn_result is one of the following:
       1. LockInfo: Read conflict with key which is locked by another transaction. The client should backoff or cleanup
       the lock then retry.
       2. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
      Specified by:
      getTxnResult in interface Store.TxnGetResponseOrBuilder
      Returns:
      The txnResult.
    • setTxnResult

       A value could not be retrieved due to the state of the database for the
       requested key.
       the txn_result is one of the following:
       1. LockInfo: Read conflict with key which is locked by another transaction. The client should backoff or cleanup
       the lock then retry.
       2. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • setTxnResult

      public Store.TxnGetResponse.Builder setTxnResult(Store.TxnResultInfo.Builder builderForValue)
       A value could not be retrieved due to the state of the database for the
       requested key.
       the txn_result is one of the following:
       1. LockInfo: Read conflict with key which is locked by another transaction. The client should backoff or cleanup
       the lock then retry.
       2. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • mergeTxnResult

      public Store.TxnGetResponse.Builder mergeTxnResult(Store.TxnResultInfo value)
       A value could not be retrieved due to the state of the database for the
       requested key.
       the txn_result is one of the following:
       1. LockInfo: Read conflict with key which is locked by another transaction. The client should backoff or cleanup
       the lock then retry.
       2. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • clearTxnResult

      public Store.TxnGetResponse.Builder clearTxnResult()
       A value could not be retrieved due to the state of the database for the
       requested key.
       the txn_result is one of the following:
       1. LockInfo: Read conflict with key which is locked by another transaction. The client should backoff or cleanup
       the lock then retry.
       2. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • getTxnResultBuilder

      public Store.TxnResultInfo.Builder getTxnResultBuilder()
       A value could not be retrieved due to the state of the database for the
       requested key.
       the txn_result is one of the following:
       1. LockInfo: Read conflict with key which is locked by another transaction. The client should backoff or cleanup
       the lock then retry.
       2. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • getTxnResultOrBuilder

      public Store.TxnResultInfoOrBuilder getTxnResultOrBuilder()
       A value could not be retrieved due to the state of the database for the
       requested key.
       the txn_result is one of the following:
       1. LockInfo: Read conflict with key which is locked by another transaction. The client should backoff or cleanup
       the lock then retry.
       2. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
      Specified by:
      getTxnResultOrBuilder in interface Store.TxnGetResponseOrBuilder
    • getValue

      public com.google.protobuf.ByteString getValue()
       for store table/index region:
       The value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      bytes value = 4;
      Specified by:
      getValue in interface Store.TxnGetResponseOrBuilder
      Returns:
      The value.
    • setValue

      public Store.TxnGetResponse.Builder setValue(com.google.protobuf.ByteString value)
       for store table/index region:
       The value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      bytes value = 4;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public Store.TxnGetResponse.Builder clearValue()
       for store table/index region:
       The value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      bytes value = 4;
      Returns:
      This builder for chaining.
    • hasVector

      public boolean hasVector()
       for vector index region:
       The vector value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.VectorWithId vector = 5;
      Specified by:
      hasVector in interface Store.TxnGetResponseOrBuilder
      Returns:
      Whether the vector field is set.
    • getVector

      public Common.VectorWithId getVector()
       for vector index region:
       The vector value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.VectorWithId vector = 5;
      Specified by:
      getVector in interface Store.TxnGetResponseOrBuilder
      Returns:
      The vector.
    • setVector

       for vector index region:
       The vector value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.VectorWithId vector = 5;
    • setVector

      public Store.TxnGetResponse.Builder setVector(Common.VectorWithId.Builder builderForValue)
       for vector index region:
       The vector value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.VectorWithId vector = 5;
    • mergeVector

       for vector index region:
       The vector value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.VectorWithId vector = 5;
    • clearVector

      public Store.TxnGetResponse.Builder clearVector()
       for vector index region:
       The vector value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.VectorWithId vector = 5;
    • getVectorBuilder

      public Common.VectorWithId.Builder getVectorBuilder()
       for vector index region:
       The vector value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.VectorWithId vector = 5;
    • getVectorOrBuilder

      public Common.VectorWithIdOrBuilder getVectorOrBuilder()
       for vector index region:
       The vector value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.VectorWithId vector = 5;
      Specified by:
      getVectorOrBuilder in interface Store.TxnGetResponseOrBuilder
    • hasDocument

      public boolean hasDocument()
       for document index region:
       The document value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.DocumentWithId document = 6;
      Specified by:
      hasDocument in interface Store.TxnGetResponseOrBuilder
      Returns:
      Whether the document field is set.
    • getDocument

      public Common.DocumentWithId getDocument()
       for document index region:
       The document value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.DocumentWithId document = 6;
      Specified by:
      getDocument in interface Store.TxnGetResponseOrBuilder
      Returns:
      The document.
    • setDocument

       for document index region:
       The document value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.DocumentWithId document = 6;
    • setDocument

      public Store.TxnGetResponse.Builder setDocument(Common.DocumentWithId.Builder builderForValue)
       for document index region:
       The document value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.DocumentWithId document = 6;
    • mergeDocument

       for document index region:
       The document value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.DocumentWithId document = 6;
    • clearDocument

      public Store.TxnGetResponse.Builder clearDocument()
       for document index region:
       The document value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.DocumentWithId document = 6;
    • getDocumentBuilder

      public Common.DocumentWithId.Builder getDocumentBuilder()
       for document index region:
       The document value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.DocumentWithId document = 6;
    • getDocumentOrBuilder

      public Common.DocumentWithIdOrBuilder getDocumentOrBuilder()
       for document index region:
       The document value associated with the key, if not found, is empty and error is NOT_FOUND
       dingo-store do not accept NULL value, so if value is NULL, it means the key is not exist
       
      .dingodb.pb.common.DocumentWithId document = 6;
      Specified by:
      getDocumentOrBuilder in interface Store.TxnGetResponseOrBuilder
    • setUnknownFields

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

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