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 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<Meta.WatchNode.Builder>
    • clear

      public Meta.WatchNode.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<Meta.WatchNode.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<Meta.WatchNode.Builder>
    • getDefaultInstanceForType

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

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

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

      public Meta.WatchNode.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<Meta.WatchNode.Builder>
    • setField

      public Meta.WatchNode.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<Meta.WatchNode.Builder>
    • clearField

      public Meta.WatchNode.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<Meta.WatchNode.Builder>
    • clearOneof

      public Meta.WatchNode.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<Meta.WatchNode.Builder>
    • setRepeatedField

      public Meta.WatchNode.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<Meta.WatchNode.Builder>
    • addRepeatedField

      public Meta.WatchNode.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<Meta.WatchNode.Builder>
    • mergeFrom

      public Meta.WatchNode.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<Meta.WatchNode.Builder>
    • mergeFrom

      public Meta.WatchNode.Builder mergeFrom(Meta.WatchNode other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<Meta.WatchNode.Builder>
      Throws:
      IOException
    • getWatchId

      public long getWatchId()
      int64 watch_id = 3;
      Specified by:
      getWatchId in interface Meta.WatchNodeOrBuilder
      Returns:
      The watchId.
    • setWatchId

      public Meta.WatchNode.Builder setWatchId(long value)
      int64 watch_id = 3;
      Parameters:
      value - The watchId to set.
      Returns:
      This builder for chaining.
    • clearWatchId

      public Meta.WatchNode.Builder 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:
      getStartRevision in interface Meta.WatchNodeOrBuilder
      Returns:
      The startRevision.
    • setStartRevision

      public Meta.WatchNode.Builder setStartRevision(long value)
       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

      public Meta.WatchNode.Builder 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:
      getWatchedRevision in interface Meta.WatchNodeOrBuilder
      Returns:
      The watchedRevision.
    • setWatchedRevision

      public Meta.WatchNode.Builder setWatchedRevision(long value)
       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

      public Meta.WatchNode.Builder 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:
      getIsWatching in interface Meta.WatchNodeOrBuilder
      Returns:
      The isWatching.
    • setIsWatching

      public Meta.WatchNode.Builder setIsWatching(long value)
       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

      public Meta.WatchNode.Builder clearIsWatching()
       the count that how many client is watching this watch_id
       
      int64 is_watching = 6;
      Returns:
      This builder for chaining.
    • getEventTypesList

      public List<Meta.MetaEventType> getEventTypesList()
      repeated .dingodb.pb.meta.MetaEventType event_types = 7;
      Specified by:
      getEventTypesList in interface Meta.WatchNodeOrBuilder
      Returns:
      A list containing the eventTypes.
    • getEventTypesCount

      public int getEventTypesCount()
      repeated .dingodb.pb.meta.MetaEventType event_types = 7;
      Specified by:
      getEventTypesCount in interface Meta.WatchNodeOrBuilder
      Returns:
      The count of eventTypes.
    • getEventTypes

      public Meta.MetaEventType getEventTypes(int index)
      repeated .dingodb.pb.meta.MetaEventType event_types = 7;
      Specified by:
      getEventTypes in interface Meta.WatchNodeOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The eventTypes at the given index.
    • setEventTypes

      public Meta.WatchNode.Builder setEventTypes(int index, Meta.MetaEventType value)
      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

      public Meta.WatchNode.Builder addEventTypes(Meta.MetaEventType value)
      repeated .dingodb.pb.meta.MetaEventType event_types = 7;
      Parameters:
      value - The eventTypes to add.
      Returns:
      This builder for chaining.
    • addAllEventTypes

      public Meta.WatchNode.Builder addAllEventTypes(Iterable<? extends Meta.MetaEventType> values)
      repeated .dingodb.pb.meta.MetaEventType event_types = 7;
      Parameters:
      values - The eventTypes to add.
      Returns:
      This builder for chaining.
    • clearEventTypes

      public Meta.WatchNode.Builder clearEventTypes()
      repeated .dingodb.pb.meta.MetaEventType event_types = 7;
      Returns:
      This builder for chaining.
    • getEventTypesValueList

      public List<Integer> getEventTypesValueList()
      repeated .dingodb.pb.meta.MetaEventType event_types = 7;
      Specified by:
      getEventTypesValueList in interface Meta.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:
      getEventTypesValue in interface Meta.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

      public Meta.WatchNode.Builder setEventTypesValue(int index, int value)
      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

      public Meta.WatchNode.Builder addEventTypesValue(int value)
      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

      public Meta.WatchNode.Builder addAllEventTypesValue(Iterable<Integer> values)
      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

      public List<Meta.MetaEvent> getPendingEventsList()
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
      Specified by:
      getPendingEventsList in interface Meta.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:
      getPendingEventsCount in interface Meta.WatchNodeOrBuilder
    • getPendingEvents

      public Meta.MetaEvent getPendingEvents(int index)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
      Specified by:
      getPendingEvents in interface Meta.WatchNodeOrBuilder
    • setPendingEvents

      public Meta.WatchNode.Builder setPendingEvents(int index, Meta.MetaEvent value)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • setPendingEvents

      public Meta.WatchNode.Builder setPendingEvents(int index, Meta.MetaEvent.Builder builderForValue)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • addPendingEvents

      public Meta.WatchNode.Builder addPendingEvents(Meta.MetaEvent value)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • addPendingEvents

      public Meta.WatchNode.Builder addPendingEvents(int index, Meta.MetaEvent value)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • addPendingEvents

      public Meta.WatchNode.Builder addPendingEvents(Meta.MetaEvent.Builder builderForValue)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • addPendingEvents

      public Meta.WatchNode.Builder addPendingEvents(int index, Meta.MetaEvent.Builder builderForValue)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • addAllPendingEvents

      public Meta.WatchNode.Builder addAllPendingEvents(Iterable<? extends Meta.MetaEvent> values)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • clearPendingEvents

      public Meta.WatchNode.Builder clearPendingEvents()
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • removePendingEvents

      public Meta.WatchNode.Builder removePendingEvents(int index)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • getPendingEventsBuilder

      public Meta.MetaEvent.Builder getPendingEventsBuilder(int index)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • getPendingEventsOrBuilder

      public Meta.MetaEventOrBuilder getPendingEventsOrBuilder(int index)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
      Specified by:
      getPendingEventsOrBuilder in interface Meta.WatchNodeOrBuilder
    • getPendingEventsOrBuilderList

      public List<? extends Meta.MetaEventOrBuilder> getPendingEventsOrBuilderList()
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
      Specified by:
      getPendingEventsOrBuilderList in interface Meta.WatchNodeOrBuilder
    • addPendingEventsBuilder

      public Meta.MetaEvent.Builder addPendingEventsBuilder()
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • addPendingEventsBuilder

      public Meta.MetaEvent.Builder addPendingEventsBuilder(int index)
       the pending events that coordinator want to push to this watch_id
       
      repeated .dingodb.pb.meta.MetaEvent pending_events = 8;
    • getPendingEventsBuilderList

      public List<Meta.MetaEvent.Builder> 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:
      getLastSendTimestampMs in interface Meta.WatchNodeOrBuilder
      Returns:
      The lastSendTimestampMs.
    • setLastSendTimestampMs

      public Meta.WatchNode.Builder setLastSendTimestampMs(long value)
       the last send timestamp in ms
       
      int64 last_send_timestamp_ms = 9;
      Parameters:
      value - The lastSendTimestampMs to set.
      Returns:
      This builder for chaining.
    • clearLastSendTimestampMs

      public Meta.WatchNode.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.WatchNode.Builder>
    • mergeUnknownFields

      public final Meta.WatchNode.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<Meta.WatchNode.Builder>