Class Version.WatchResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.version.Version.WatchResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Version.WatchResponseOrBuilder, Serializable
Enclosing class:
Version

public static final class Version.WatchResponse extends com.google.protobuf.GeneratedMessageV3 implements Version.WatchResponseOrBuilder
Protobuf type dingodb.pb.version.WatchResponse
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • hasResponseInfo

      public boolean hasResponseInfo()
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      hasResponseInfo in interface Version.WatchResponseOrBuilder
      Returns:
      Whether the responseInfo field is set.
    • getResponseInfo

      public Common.ResponseInfo getResponseInfo()
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      getResponseInfo in interface Version.WatchResponseOrBuilder
      Returns:
      The responseInfo.
    • getResponseInfoOrBuilder

      public Common.ResponseInfoOrBuilder getResponseInfoOrBuilder()
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      getResponseInfoOrBuilder in interface Version.WatchResponseOrBuilder
    • hasError

      public boolean hasError()
      .dingodb.pb.error.Error error = 2;
      Specified by:
      hasError in interface Version.WatchResponseOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public ErrorOuterClass.Error getError()
      .dingodb.pb.error.Error error = 2;
      Specified by:
      getError in interface Version.WatchResponseOrBuilder
      Returns:
      The error.
    • getErrorOrBuilder

      public ErrorOuterClass.ErrorOrBuilder getErrorOrBuilder()
      .dingodb.pb.error.Error error = 2;
      Specified by:
      getErrorOrBuilder in interface Version.WatchResponseOrBuilder
    • hasHeader

      public boolean hasHeader()
      .dingodb.pb.version.ResponseHeader header = 3;
      Specified by:
      hasHeader in interface Version.WatchResponseOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public Version.ResponseHeader getHeader()
      .dingodb.pb.version.ResponseHeader header = 3;
      Specified by:
      getHeader in interface Version.WatchResponseOrBuilder
      Returns:
      The header.
    • getHeaderOrBuilder

      public Version.ResponseHeaderOrBuilder getHeaderOrBuilder()
      .dingodb.pb.version.ResponseHeader header = 3;
      Specified by:
      getHeaderOrBuilder in interface Version.WatchResponseOrBuilder
    • getWatchId

      public long getWatchId()
       watch_id is the ID of the watcher that corresponds to the response.
       
      int64 watch_id = 4;
      Specified by:
      getWatchId in interface Version.WatchResponseOrBuilder
      Returns:
      The watchId.
    • getCreated

      public 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;
      Specified by:
      getCreated in interface Version.WatchResponseOrBuilder
      Returns:
      The created.
    • getCanceled

      public 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;
      Specified by:
      getCanceled in interface Version.WatchResponseOrBuilder
      Returns:
      The canceled.
    • getCompactRevision

      public 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;
      Specified by:
      getCompactRevision in interface Version.WatchResponseOrBuilder
      Returns:
      The compactRevision.
    • getCancelReason

      public String getCancelReason()
       cancel_reason indicates the reason for canceling the watcher.
       
      string cancel_reason = 8;
      Specified by:
      getCancelReason in interface Version.WatchResponseOrBuilder
      Returns:
      The cancelReason.
    • getCancelReasonBytes

      public com.google.protobuf.ByteString getCancelReasonBytes()
       cancel_reason indicates the reason for canceling the watcher.
       
      string cancel_reason = 8;
      Specified by:
      getCancelReasonBytes in interface Version.WatchResponseOrBuilder
      Returns:
      The bytes for cancelReason.
    • getFragment

      public boolean getFragment()
       framgment is true if large watch response was split over multiple responses.
       
      bool fragment = 9;
      Specified by:
      getFragment in interface Version.WatchResponseOrBuilder
      Returns:
      The fragment.
    • getEventsList

      public List<Version.Event> getEventsList()
      repeated .dingodb.pb.version.Event events = 11;
      Specified by:
      getEventsList in interface Version.WatchResponseOrBuilder
    • getEventsOrBuilderList

      public List<? extends Version.EventOrBuilder> getEventsOrBuilderList()
      repeated .dingodb.pb.version.Event events = 11;
      Specified by:
      getEventsOrBuilderList in interface Version.WatchResponseOrBuilder
    • getEventsCount

      public int getEventsCount()
      repeated .dingodb.pb.version.Event events = 11;
      Specified by:
      getEventsCount in interface Version.WatchResponseOrBuilder
    • getEvents

      public Version.Event getEvents(int index)
      repeated .dingodb.pb.version.Event events = 11;
      Specified by:
      getEvents in interface Version.WatchResponseOrBuilder
    • getEventsOrBuilder

      public Version.EventOrBuilder getEventsOrBuilder(int index)
      repeated .dingodb.pb.version.Event events = 11;
      Specified by:
      getEventsOrBuilder in interface Version.WatchResponseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Version.WatchResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version.WatchResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version.WatchResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version.WatchResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version.WatchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version.WatchResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version.WatchResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Version.WatchResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Version.WatchResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Version.WatchResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Version.WatchResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Version.WatchResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Version.WatchResponse.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Version.WatchResponse.Builder newBuilder()
    • newBuilder

      public static Version.WatchResponse.Builder newBuilder(Version.WatchResponse prototype)
    • toBuilder

      public Version.WatchResponse.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Version.WatchResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Version.WatchResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Version.WatchResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<Version.WatchResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Version.WatchResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder