Class Store.Mutation.Builder

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

public static final class Store.Mutation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder> implements Store.MutationOrBuilder
Protobuf type dingodb.pb.store.Mutation
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    for document index region, executor must use the DocumentWithId to do put/putifabsent
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    for put/putifabsent, key is the key to be put for delete, key is the key to be deleted for rollback, key is the key to be rollbacked for lock, key is the key to be locked if executor is operating a vector index region, the key must be a vector region key the vector region key is encoded from a char prefix and two int64 using big-endian, the first int64 is the part id, direct encode use big-endian.
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
    .dingodb.pb.store.Op op = 1;
    for store table/index region, executor use the value to do put/putifabsent for put/putifabsent, value is the value to be put for delete, value is empty for rollback, value is empty for lock, value is the extra_data executor want to store in lock
    for vector index region, executor must use the VectorWithId to do put/putifabsent
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    for document index region, executor must use the DocumentWithId to do put/putifabsent
    for document index region, executor must use the DocumentWithId to do put/putifabsent
    for document index region, executor must use the DocumentWithId to do put/putifabsent
    com.google.protobuf.ByteString
    for put/putifabsent, key is the key to be put for delete, key is the key to be deleted for rollback, key is the key to be rollbacked for lock, key is the key to be locked if executor is operating a vector index region, the key must be a vector region key the vector region key is encoded from a char prefix and two int64 using big-endian, the first int64 is the part id, direct encode use big-endian.
    .dingodb.pb.store.Op op = 1;
    int
    .dingodb.pb.store.Op op = 1;
    com.google.protobuf.ByteString
    for store table/index region, executor use the value to do put/putifabsent for put/putifabsent, value is the value to be put for delete, value is empty for rollback, value is empty for lock, value is the extra_data executor want to store in lock
    for vector index region, executor must use the VectorWithId to do put/putifabsent
    for vector index region, executor must use the VectorWithId to do put/putifabsent
    for vector index region, executor must use the VectorWithId to do put/putifabsent
    boolean
    for document index region, executor must use the DocumentWithId to do put/putifabsent
    boolean
    for vector index region, executor must use the VectorWithId to do put/putifabsent
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    for document index region, executor must use the DocumentWithId to do put/putifabsent
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    for vector index region, executor must use the VectorWithId to do put/putifabsent
    for document index region, executor must use the DocumentWithId to do put/putifabsent
    for document index region, executor must use the DocumentWithId to do put/putifabsent
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    setKey(com.google.protobuf.ByteString value)
    for put/putifabsent, key is the key to be put for delete, key is the key to be deleted for rollback, key is the key to be rollbacked for lock, key is the key to be locked if executor is operating a vector index region, the key must be a vector region key the vector region key is encoded from a char prefix and two int64 using big-endian, the first int64 is the part id, direct encode use big-endian.
    setOp(Store.Op value)
    .dingodb.pb.store.Op op = 1;
    setOpValue(int value)
    .dingodb.pb.store.Op op = 1;
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setValue(com.google.protobuf.ByteString value)
    for store table/index region, executor use the value to do put/putifabsent for put/putifabsent, value is the value to be put for delete, value is empty for rollback, value is empty for lock, value is the extra_data executor want to store in lock
    for vector index region, executor must use the VectorWithId to do put/putifabsent
    for vector index region, executor must use the VectorWithId to do put/putifabsent

    Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

    getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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.Mutation.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

      public int getOpValue()
      .dingodb.pb.store.Op op = 1;
      Specified by:
      getOpValue in interface Store.MutationOrBuilder
      Returns:
      The enum numeric value on the wire for op.
    • setOpValue

      public Store.Mutation.Builder setOpValue(int value)
      .dingodb.pb.store.Op op = 1;
      Parameters:
      value - The enum numeric value on the wire for op to set.
      Returns:
      This builder for chaining.
    • getOp

      public Store.Op getOp()
      .dingodb.pb.store.Op op = 1;
      Specified by:
      getOp in interface Store.MutationOrBuilder
      Returns:
      The op.
    • setOp

      public Store.Mutation.Builder setOp(Store.Op value)
      .dingodb.pb.store.Op op = 1;
      Parameters:
      value - The op to set.
      Returns:
      This builder for chaining.
    • clearOp

      public Store.Mutation.Builder clearOp()
      .dingodb.pb.store.Op op = 1;
      Returns:
      This builder for chaining.
    • getKey

      public com.google.protobuf.ByteString getKey()
       for put/putifabsent, key is the key to be put
       for delete, key is the key to be deleted
       for rollback, key is the key to be rollbacked
       for lock, key is the key to be locked
       if executor is operating a vector index region, the key must be a vector region key
       the vector region key is encoded from a char prefix and two int64 using big-endian, the first int64 is the part id,
       direct encode use big-endian.
       the second int64 is the vector id, is encoded with dingo's memory comparable
       big-endian encoding
       The key MUST be 17 bytes.
       
      bytes key = 2;
      Specified by:
      getKey in interface Store.MutationOrBuilder
      Returns:
      The key.
    • setKey

      public Store.Mutation.Builder setKey(com.google.protobuf.ByteString value)
       for put/putifabsent, key is the key to be put
       for delete, key is the key to be deleted
       for rollback, key is the key to be rollbacked
       for lock, key is the key to be locked
       if executor is operating a vector index region, the key must be a vector region key
       the vector region key is encoded from a char prefix and two int64 using big-endian, the first int64 is the part id,
       direct encode use big-endian.
       the second int64 is the vector id, is encoded with dingo's memory comparable
       big-endian encoding
       The key MUST be 17 bytes.
       
      bytes key = 2;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public Store.Mutation.Builder clearKey()
       for put/putifabsent, key is the key to be put
       for delete, key is the key to be deleted
       for rollback, key is the key to be rollbacked
       for lock, key is the key to be locked
       if executor is operating a vector index region, the key must be a vector region key
       the vector region key is encoded from a char prefix and two int64 using big-endian, the first int64 is the part id,
       direct encode use big-endian.
       the second int64 is the vector id, is encoded with dingo's memory comparable
       big-endian encoding
       The key MUST be 17 bytes.
       
      bytes key = 2;
      Returns:
      This builder for chaining.
    • getValue

      public com.google.protobuf.ByteString getValue()
       for store table/index region, executor use the value to do put/putifabsent
       for put/putifabsent, value is the value to be put
       for delete, value is empty
       for rollback, value is empty
       for lock, value is the extra_data executor want to store in lock
       
      bytes value = 3;
      Specified by:
      getValue in interface Store.MutationOrBuilder
      Returns:
      The value.
    • setValue

      public Store.Mutation.Builder setValue(com.google.protobuf.ByteString value)
       for store table/index region, executor use the value to do put/putifabsent
       for put/putifabsent, value is the value to be put
       for delete, value is empty
       for rollback, value is empty
       for lock, value is the extra_data executor want to store in lock
       
      bytes value = 3;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public Store.Mutation.Builder clearValue()
       for store table/index region, executor use the value to do put/putifabsent
       for put/putifabsent, value is the value to be put
       for delete, value is empty
       for rollback, value is empty
       for lock, value is the extra_data executor want to store in lock
       
      bytes value = 3;
      Returns:
      This builder for chaining.
    • hasVector

      public boolean hasVector()
       for vector index region, executor must use the VectorWithId to do put/putifabsent
       
      .dingodb.pb.common.VectorWithId vector = 4;
      Specified by:
      hasVector in interface Store.MutationOrBuilder
      Returns:
      Whether the vector field is set.
    • getVector

      public Common.VectorWithId getVector()
       for vector index region, executor must use the VectorWithId to do put/putifabsent
       
      .dingodb.pb.common.VectorWithId vector = 4;
      Specified by:
      getVector in interface Store.MutationOrBuilder
      Returns:
      The vector.
    • setVector

      public Store.Mutation.Builder setVector(Common.VectorWithId value)
       for vector index region, executor must use the VectorWithId to do put/putifabsent
       
      .dingodb.pb.common.VectorWithId vector = 4;
    • setVector

      public Store.Mutation.Builder setVector(Common.VectorWithId.Builder builderForValue)
       for vector index region, executor must use the VectorWithId to do put/putifabsent
       
      .dingodb.pb.common.VectorWithId vector = 4;
    • mergeVector

      public Store.Mutation.Builder mergeVector(Common.VectorWithId value)
       for vector index region, executor must use the VectorWithId to do put/putifabsent
       
      .dingodb.pb.common.VectorWithId vector = 4;
    • clearVector

      public Store.Mutation.Builder clearVector()
       for vector index region, executor must use the VectorWithId to do put/putifabsent
       
      .dingodb.pb.common.VectorWithId vector = 4;
    • getVectorBuilder

      public Common.VectorWithId.Builder getVectorBuilder()
       for vector index region, executor must use the VectorWithId to do put/putifabsent
       
      .dingodb.pb.common.VectorWithId vector = 4;
    • getVectorOrBuilder

      public Common.VectorWithIdOrBuilder getVectorOrBuilder()
       for vector index region, executor must use the VectorWithId to do put/putifabsent
       
      .dingodb.pb.common.VectorWithId vector = 4;
      Specified by:
      getVectorOrBuilder in interface Store.MutationOrBuilder
    • hasDocument

      public boolean hasDocument()
       for document index region, executor must use the DocumentWithId to do put/putifabsent
       
      .dingodb.pb.common.DocumentWithId document = 5;
      Specified by:
      hasDocument in interface Store.MutationOrBuilder
      Returns:
      Whether the document field is set.
    • getDocument

      public Common.DocumentWithId getDocument()
       for document index region, executor must use the DocumentWithId to do put/putifabsent
       
      .dingodb.pb.common.DocumentWithId document = 5;
      Specified by:
      getDocument in interface Store.MutationOrBuilder
      Returns:
      The document.
    • setDocument

      public Store.Mutation.Builder setDocument(Common.DocumentWithId value)
       for document index region, executor must use the DocumentWithId to do put/putifabsent
       
      .dingodb.pb.common.DocumentWithId document = 5;
    • setDocument

      public Store.Mutation.Builder setDocument(Common.DocumentWithId.Builder builderForValue)
       for document index region, executor must use the DocumentWithId to do put/putifabsent
       
      .dingodb.pb.common.DocumentWithId document = 5;
    • mergeDocument

      public Store.Mutation.Builder mergeDocument(Common.DocumentWithId value)
       for document index region, executor must use the DocumentWithId to do put/putifabsent
       
      .dingodb.pb.common.DocumentWithId document = 5;
    • clearDocument

      public Store.Mutation.Builder clearDocument()
       for document index region, executor must use the DocumentWithId to do put/putifabsent
       
      .dingodb.pb.common.DocumentWithId document = 5;
    • getDocumentBuilder

      public Common.DocumentWithId.Builder getDocumentBuilder()
       for document index region, executor must use the DocumentWithId to do put/putifabsent
       
      .dingodb.pb.common.DocumentWithId document = 5;
    • getDocumentOrBuilder

      public Common.DocumentWithIdOrBuilder getDocumentOrBuilder()
       for document index region, executor must use the DocumentWithId to do put/putifabsent
       
      .dingodb.pb.common.DocumentWithId document = 5;
      Specified by:
      getDocumentOrBuilder in interface Store.MutationOrBuilder
    • setUnknownFields

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

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