Package io.dingodb.meta
Class Meta.WatchNode.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchNode.Builder>
io.dingodb.meta.Meta.WatchNode.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Meta.WatchNodeOrBuilder,Cloneable
- Enclosing class:
- Meta.WatchNode
public static final class Meta.WatchNode.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchNode.Builder>
implements Meta.WatchNodeOrBuilder
Protobuf type
dingodb.pb.meta.WatchNode-
Method Summary
Modifier and TypeMethodDescriptionaddAllEventTypes(Iterable<? extends Meta.MetaEventType> values) repeated .dingodb.pb.meta.MetaEventType event_types = 7;addAllEventTypesValue(Iterable<Integer> values) repeated .dingodb.pb.meta.MetaEventType event_types = 7;addAllPendingEvents(Iterable<? extends Meta.MetaEvent> values) the pending events that coordinator want to push to this watch_idaddEventTypes(Meta.MetaEventType value) repeated .dingodb.pb.meta.MetaEventType event_types = 7;addEventTypesValue(int value) repeated .dingodb.pb.meta.MetaEventType event_types = 7;addPendingEvents(int index, Meta.MetaEvent value) the pending events that coordinator want to push to this watch_idaddPendingEvents(int index, Meta.MetaEvent.Builder builderForValue) the pending events that coordinator want to push to this watch_idaddPendingEvents(Meta.MetaEvent value) the pending events that coordinator want to push to this watch_idaddPendingEvents(Meta.MetaEvent.Builder builderForValue) the pending events that coordinator want to push to this watch_idthe pending events that coordinator want to push to this watch_idaddPendingEventsBuilder(int index) the pending events that coordinator want to push to this watch_idaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()repeated .dingodb.pb.meta.MetaEventType event_types = 7;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) the count that how many client is watching this watch_idthe last send timestamp in msclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) the pending events that coordinator want to push to this watch_idthe start revision of this watch_id want to watchthe last revision than coordinator pushed back to this watch_idint64 watch_id = 3;clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEventTypes(int index) repeated .dingodb.pb.meta.MetaEventType event_types = 7;intrepeated .dingodb.pb.meta.MetaEventType event_types = 7;repeated .dingodb.pb.meta.MetaEventType event_types = 7;intgetEventTypesValue(int index) repeated .dingodb.pb.meta.MetaEventType event_types = 7;repeated .dingodb.pb.meta.MetaEventType event_types = 7;longthe count that how many client is watching this watch_idlongthe last send timestamp in msgetPendingEvents(int index) the pending events that coordinator want to push to this watch_idgetPendingEventsBuilder(int index) the pending events that coordinator want to push to this watch_idthe pending events that coordinator want to push to this watch_idintthe pending events that coordinator want to push to this watch_idthe pending events that coordinator want to push to this watch_idgetPendingEventsOrBuilder(int index) the pending events that coordinator want to push to this watch_idList<? extends Meta.MetaEventOrBuilder>the pending events that coordinator want to push to this watch_idlongthe start revision of this watch_id want to watchlongthe last revision than coordinator pushed back to this watch_idlongint64 watch_id = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Meta.WatchNode other) final Meta.WatchNode.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removePendingEvents(int index) the pending events that coordinator want to push to this watch_idsetEventTypes(int index, Meta.MetaEventType value) repeated .dingodb.pb.meta.MetaEventType event_types = 7;setEventTypesValue(int index, int value) repeated .dingodb.pb.meta.MetaEventType event_types = 7;setIsWatching(long value) the count that how many client is watching this watch_idsetLastSendTimestampMs(long value) the last send timestamp in mssetPendingEvents(int index, Meta.MetaEvent value) the pending events that coordinator want to push to this watch_idsetPendingEvents(int index, Meta.MetaEvent.Builder builderForValue) the pending events that coordinator want to push to this watch_idsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartRevision(long value) the start revision of this watch_id want to watchfinal Meta.WatchNode.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWatchedRevision(long value) the last revision than coordinator pushed back to this watch_idsetWatchId(long value) int64 watch_id = 3;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, 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<Meta.WatchNode.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<Meta.WatchNode.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<Meta.WatchNode.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<Meta.WatchNode.Builder>
-
setField
public Meta.WatchNode.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<Meta.WatchNode.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchNode.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchNode.Builder>
-
setRepeatedField
public Meta.WatchNode.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<Meta.WatchNode.Builder>
-
addRepeatedField
public Meta.WatchNode.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<Meta.WatchNode.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Meta.WatchNode.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchNode.Builder>
-
mergeFrom
public Meta.WatchNode.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<Meta.WatchNode.Builder>- Throws:
IOException
-
getWatchId
public long getWatchId()int64 watch_id = 3;- Specified by:
getWatchIdin interfaceMeta.WatchNodeOrBuilder- Returns:
- The watchId.
-
setWatchId
int64 watch_id = 3;- Parameters:
value- The watchId to set.- Returns:
- This builder for chaining.
-
clearWatchId
int64 watch_id = 3;- Returns:
- This builder for chaining.
-
getStartRevision
public long getStartRevision()the start revision of this watch_id want to watch
int64 start_revision = 4;- Specified by:
getStartRevisionin interfaceMeta.WatchNodeOrBuilder- Returns:
- The startRevision.
-
setStartRevision
the start revision of this watch_id want to watch
int64 start_revision = 4;- Parameters:
value- The startRevision to set.- Returns:
- This builder for chaining.
-
clearStartRevision
the start revision of this watch_id want to watch
int64 start_revision = 4;- Returns:
- This builder for chaining.
-
getWatchedRevision
public long getWatchedRevision()the last revision than coordinator pushed back to this watch_id
int64 watched_revision = 5;- Specified by:
getWatchedRevisionin interfaceMeta.WatchNodeOrBuilder- Returns:
- The watchedRevision.
-
setWatchedRevision
the last revision than coordinator pushed back to this watch_id
int64 watched_revision = 5;- Parameters:
value- The watchedRevision to set.- Returns:
- This builder for chaining.
-
clearWatchedRevision
the last revision than coordinator pushed back to this watch_id
int64 watched_revision = 5;- Returns:
- This builder for chaining.
-
getIsWatching
public long getIsWatching()the count that how many client is watching this watch_id
int64 is_watching = 6;- Specified by:
getIsWatchingin interfaceMeta.WatchNodeOrBuilder- Returns:
- The isWatching.
-
setIsWatching
the count that how many client is watching this watch_id
int64 is_watching = 6;- Parameters:
value- The isWatching to set.- Returns:
- This builder for chaining.
-
clearIsWatching
the count that how many client is watching this watch_id
int64 is_watching = 6;- Returns:
- This builder for chaining.
-
getEventTypesList
repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Specified by:
getEventTypesListin interfaceMeta.WatchNodeOrBuilder- Returns:
- A list containing the eventTypes.
-
getEventTypesCount
public int getEventTypesCount()repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Specified by:
getEventTypesCountin interfaceMeta.WatchNodeOrBuilder- Returns:
- The count of eventTypes.
-
getEventTypes
repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Specified by:
getEventTypesin interfaceMeta.WatchNodeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The eventTypes at the given index.
-
setEventTypes
repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Parameters:
index- The index to set the value at.value- The eventTypes to set.- Returns:
- This builder for chaining.
-
addEventTypes
repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Parameters:
value- The eventTypes to add.- Returns:
- This builder for chaining.
-
addAllEventTypes
repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Parameters:
values- The eventTypes to add.- Returns:
- This builder for chaining.
-
clearEventTypes
repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Returns:
- This builder for chaining.
-
getEventTypesValueList
repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Specified by:
getEventTypesValueListin interfaceMeta.WatchNodeOrBuilder- Returns:
- A list containing the enum numeric values on the wire for eventTypes.
-
getEventTypesValue
public int getEventTypesValue(int index) repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Specified by:
getEventTypesValuein interfaceMeta.WatchNodeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of eventTypes at the given index.
-
setEventTypesValue
repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for eventTypes to set.- Returns:
- This builder for chaining.
-
addEventTypesValue
repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Parameters:
value- The enum numeric value on the wire for eventTypes to add.- Returns:
- This builder for chaining.
-
addAllEventTypesValue
repeated .dingodb.pb.meta.MetaEventType event_types = 7;- Parameters:
values- The enum numeric values on the wire for eventTypes to add.- Returns:
- This builder for chaining.
-
getPendingEventsList
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8;- Specified by:
getPendingEventsListin interfaceMeta.WatchNodeOrBuilder
-
getPendingEventsCount
public int getPendingEventsCount()the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8;- Specified by:
getPendingEventsCountin interfaceMeta.WatchNodeOrBuilder
-
getPendingEvents
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8;- Specified by:
getPendingEventsin interfaceMeta.WatchNodeOrBuilder
-
setPendingEvents
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
setPendingEvents
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
addPendingEvents
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
addPendingEvents
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
addPendingEvents
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
addPendingEvents
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
addAllPendingEvents
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
clearPendingEvents
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
removePendingEvents
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
getPendingEventsBuilder
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
getPendingEventsOrBuilder
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8;- Specified by:
getPendingEventsOrBuilderin interfaceMeta.WatchNodeOrBuilder
-
getPendingEventsOrBuilderList
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8;- Specified by:
getPendingEventsOrBuilderListin interfaceMeta.WatchNodeOrBuilder
-
addPendingEventsBuilder
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
addPendingEventsBuilder
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
getPendingEventsBuilderList
the pending events that coordinator want to push to this watch_id
repeated .dingodb.pb.meta.MetaEvent pending_events = 8; -
getLastSendTimestampMs
public long getLastSendTimestampMs()the last send timestamp in ms
int64 last_send_timestamp_ms = 9;- Specified by:
getLastSendTimestampMsin interfaceMeta.WatchNodeOrBuilder- Returns:
- The lastSendTimestampMs.
-
setLastSendTimestampMs
the last send timestamp in ms
int64 last_send_timestamp_ms = 9;- Parameters:
value- The lastSendTimestampMs to set.- Returns:
- This builder for chaining.
-
clearLastSendTimestampMs
the last send timestamp in ms
int64 last_send_timestamp_ms = 9;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Meta.WatchNode.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchNode.Builder>
-
mergeUnknownFields
public final Meta.WatchNode.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchNode.Builder>
-