Package io.dingodb.version
Class Version.OneTimeWatchRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
io.dingodb.version.Version.OneTimeWatchRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Version.OneTimeWatchRequestOrBuilder,Cloneable
- Enclosing class:
- Version.OneTimeWatchRequest
public static final class Version.OneTimeWatchRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
implements Version.OneTimeWatchRequestOrBuilder
Protobuf type
dingodb.pb.version.OneTimeWatchRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllFilters(Iterable<? extends Version.EventFilterType> values) filters filter the events at server side before it sends back to the watcher.addAllFiltersValue(Iterable<Integer> values) filters filter the events at server side before it sends back to the watcher.filters filter the events at server side before it sends back to the watcher.addFiltersValue(int value) filters filter the events at server side before it sends back to the watcher.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) filters filter the events at server side before it sends back to the watcher.clearKey()key is the key to register for watching.If prev_kv is set, created watcher gets the previous KV before the event happens.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) start_revision is an optional revision to watch from (inclusive).if the key is not exists, wait_on_not_exists_key is true, the watch will wait until the key is exists if wait_on_not_exist_key is false, and the key is not exists, the watch will return immediatelyclone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFilters(int index) filters filter the events at server side before it sends back to the watcher.intfilters filter the events at server side before it sends back to the watcher.filters filter the events at server side before it sends back to the watcher.intgetFiltersValue(int index) filters filter the events at server side before it sends back to the watcher.filters filter the events at server side before it sends back to the watcher.com.google.protobuf.ByteStringgetKey()key is the key to register for watching.booleanIf prev_kv is set, created watcher gets the previous KV before the event happens.longstart_revision is an optional revision to watch from (inclusive).booleanif the key is not exists, wait_on_not_exists_key is true, the watch will wait until the key is exists if wait_on_not_exist_key is false, and the key is not exists, the watch will return immediatelyprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setFilters(int index, Version.EventFilterType value) filters filter the events at server side before it sends back to the watcher.setFiltersValue(int index, int value) filters filter the events at server side before it sends back to the watcher.setKey(com.google.protobuf.ByteString value) key is the key to register for watching.setNeedPrevKv(boolean value) If prev_kv is set, created watcher gets the previous KV before the event happens.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartRevision(long value) start_revision is an optional revision to watch from (inclusive).setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWaitOnNotExistKey(boolean value) if the key is not exists, wait_on_not_exists_key is true, the watch will wait until the key is exists if wait_on_not_exist_key is false, and the key is not exists, the watch will return immediatelyMethods 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-
setField
public Version.OneTimeWatchRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-
clearField
public Version.OneTimeWatchRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-
clearOneof
public Version.OneTimeWatchRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-
setRepeatedField
public Version.OneTimeWatchRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-
addRepeatedField
public Version.OneTimeWatchRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Version.OneTimeWatchRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-
mergeFrom
public Version.OneTimeWatchRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Version.OneTimeWatchRequest.Builder>- Throws:
IOException
-
getKey
public com.google.protobuf.ByteString getKey()key is the key to register for watching.
bytes key = 1;- Specified by:
getKeyin interfaceVersion.OneTimeWatchRequestOrBuilder- Returns:
- The key.
-
setKey
key is the key to register for watching.
bytes key = 1;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
key is the key to register for watching.
bytes key = 1;- Returns:
- This builder for chaining.
-
getStartRevision
public long getStartRevision()start_revision is an optional revision to watch from (inclusive). No start_revision is "now". if start_revision == 0, watch from now on; if start_revision > 0, watch from the min(start_revision, current_revision)
int64 start_revision = 3;- Specified by:
getStartRevisionin interfaceVersion.OneTimeWatchRequestOrBuilder- Returns:
- The startRevision.
-
setStartRevision
start_revision is an optional revision to watch from (inclusive). No start_revision is "now". if start_revision == 0, watch from now on; if start_revision > 0, watch from the min(start_revision, current_revision)
int64 start_revision = 3;- Parameters:
value- The startRevision to set.- Returns:
- This builder for chaining.
-
clearStartRevision
start_revision is an optional revision to watch from (inclusive). No start_revision is "now". if start_revision == 0, watch from now on; if start_revision > 0, watch from the min(start_revision, current_revision)
int64 start_revision = 3;- Returns:
- This builder for chaining.
-
getFiltersList
filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Specified by:
getFiltersListin interfaceVersion.OneTimeWatchRequestOrBuilder- Returns:
- A list containing the filters.
-
getFiltersCount
public int getFiltersCount()filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Specified by:
getFiltersCountin interfaceVersion.OneTimeWatchRequestOrBuilder- Returns:
- The count of filters.
-
getFilters
filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Specified by:
getFiltersin interfaceVersion.OneTimeWatchRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The filters at the given index.
-
setFilters
filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Parameters:
index- The index to set the value at.value- The filters to set.- Returns:
- This builder for chaining.
-
addFilters
filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Parameters:
value- The filters to add.- Returns:
- This builder for chaining.
-
addAllFilters
public Version.OneTimeWatchRequest.Builder addAllFilters(Iterable<? extends Version.EventFilterType> values) filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Parameters:
values- The filters to add.- Returns:
- This builder for chaining.
-
clearFilters
filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Returns:
- This builder for chaining.
-
getFiltersValueList
filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Specified by:
getFiltersValueListin interfaceVersion.OneTimeWatchRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for filters.
-
getFiltersValue
public int getFiltersValue(int index) filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Specified by:
getFiltersValuein interfaceVersion.OneTimeWatchRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of filters at the given index.
-
setFiltersValue
filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for filters to set.- Returns:
- This builder for chaining.
-
addFiltersValue
filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Parameters:
value- The enum numeric value on the wire for filters to add.- Returns:
- This builder for chaining.
-
addAllFiltersValue
filters filter the events at server side before it sends back to the watcher.
repeated .dingodb.pb.version.EventFilterType filters = 4;- Parameters:
values- The enum numeric values on the wire for filters to add.- Returns:
- This builder for chaining.
-
getNeedPrevKv
public boolean getNeedPrevKv()If prev_kv is set, created watcher gets the previous KV before the event happens. If the previous KV is already compacted, nothing will be returned.
bool need_prev_kv = 5;- Specified by:
getNeedPrevKvin interfaceVersion.OneTimeWatchRequestOrBuilder- Returns:
- The needPrevKv.
-
setNeedPrevKv
If prev_kv is set, created watcher gets the previous KV before the event happens. If the previous KV is already compacted, nothing will be returned.
bool need_prev_kv = 5;- Parameters:
value- The needPrevKv to set.- Returns:
- This builder for chaining.
-
clearNeedPrevKv
If prev_kv is set, created watcher gets the previous KV before the event happens. If the previous KV is already compacted, nothing will be returned.
bool need_prev_kv = 5;- Returns:
- This builder for chaining.
-
getWaitOnNotExistKey
public boolean getWaitOnNotExistKey()if the key is not exists, wait_on_not_exists_key is true, the watch will wait until the key is exists if wait_on_not_exist_key is false, and the key is not exists, the watch will return immediately
bool wait_on_not_exist_key = 6;- Specified by:
getWaitOnNotExistKeyin interfaceVersion.OneTimeWatchRequestOrBuilder- Returns:
- The waitOnNotExistKey.
-
setWaitOnNotExistKey
if the key is not exists, wait_on_not_exists_key is true, the watch will wait until the key is exists if wait_on_not_exist_key is false, and the key is not exists, the watch will return immediately
bool wait_on_not_exist_key = 6;- Parameters:
value- The waitOnNotExistKey to set.- Returns:
- This builder for chaining.
-
clearWaitOnNotExistKey
if the key is not exists, wait_on_not_exists_key is true, the watch will wait until the key is exists if wait_on_not_exist_key is false, and the key is not exists, the watch will return immediately
bool wait_on_not_exist_key = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Version.OneTimeWatchRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-
mergeUnknownFields
public final Version.OneTimeWatchRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Version.OneTimeWatchRequest.Builder>
-