Interface Version.WatchResponseOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Version.WatchResponse, Version.WatchResponse.Builder
Enclosing class:
Version

public static interface Version.WatchResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasResponseInfo

      boolean hasResponseInfo()
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Returns:
      Whether the responseInfo field is set.
    • getResponseInfo

      Common.ResponseInfo getResponseInfo()
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Returns:
      The responseInfo.
    • getResponseInfoOrBuilder

      Common.ResponseInfoOrBuilder getResponseInfoOrBuilder()
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • hasError

      boolean hasError()
      .dingodb.pb.error.Error error = 2;
      Returns:
      Whether the error field is set.
    • getError

      .dingodb.pb.error.Error error = 2;
      Returns:
      The error.
    • getErrorOrBuilder

      ErrorOuterClass.ErrorOrBuilder getErrorOrBuilder()
      .dingodb.pb.error.Error error = 2;
    • hasHeader

      boolean hasHeader()
      .dingodb.pb.version.ResponseHeader header = 3;
      Returns:
      Whether the header field is set.
    • getHeader

      .dingodb.pb.version.ResponseHeader header = 3;
      Returns:
      The header.
    • getHeaderOrBuilder

      Version.ResponseHeaderOrBuilder getHeaderOrBuilder()
      .dingodb.pb.version.ResponseHeader header = 3;
    • getWatchId

      long getWatchId()
       watch_id is the ID of the watcher that corresponds to the response.
       
      int64 watch_id = 4;
      Returns:
      The watchId.
    • getCreated

      boolean getCreated()
       created is set to true if the response is for a create watch request.
       The client should record the watch_id and expect to receive events for
       the created watcher from the same stream.
       All events sent to the created watcher will attach with the same watch_id.
       
      bool created = 5;
      Returns:
      The created.
    • getCanceled

      boolean getCanceled()
       canceled is set to true if the response is for a cancel watch request.
       No further events will be sent to the canceled watcher.
       
      bool canceled = 6;
      Returns:
      The canceled.
    • getCompactRevision

      long getCompactRevision()
       compact_revision is set to the minimum index if a watcher tries to watch
       at a compacted index.
      
       This happens when creating a watcher at a compacted revision or the watcher cannot
       catch up with the progress of the key-value store.
      
       The client should treat the watcher as canceled and should not try to create any
       watcher with the same start_revision again.
       
      int64 compact_revision = 7;
      Returns:
      The compactRevision.
    • getCancelReason

      String getCancelReason()
       cancel_reason indicates the reason for canceling the watcher.
       
      string cancel_reason = 8;
      Returns:
      The cancelReason.
    • getCancelReasonBytes

      com.google.protobuf.ByteString getCancelReasonBytes()
       cancel_reason indicates the reason for canceling the watcher.
       
      string cancel_reason = 8;
      Returns:
      The bytes for cancelReason.
    • getFragment

      boolean getFragment()
       framgment is true if large watch response was split over multiple responses.
       
      bool fragment = 9;
      Returns:
      The fragment.
    • getEventsList

      List<Version.Event> getEventsList()
      repeated .dingodb.pb.version.Event events = 11;
    • getEvents

      Version.Event getEvents(int index)
      repeated .dingodb.pb.version.Event events = 11;
    • getEventsCount

      int getEventsCount()
      repeated .dingodb.pb.version.Event events = 11;
    • getEventsOrBuilderList

      List<? extends Version.EventOrBuilder> getEventsOrBuilderList()
      repeated .dingodb.pb.version.Event events = 11;
    • getEventsOrBuilder

      Version.EventOrBuilder getEventsOrBuilder(int index)
      repeated .dingodb.pb.version.Event events = 11;