Class Meta.WatchResponse

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

public static final class Meta.WatchResponse extends com.google.protobuf.GeneratedMessageV3 implements Meta.WatchResponseOrBuilder
Protobuf type dingodb.pb.meta.WatchResponse
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type dingodb.pb.meta.WatchResponse

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    canceled is set to true if the response is for a cancel watch request.
    cancel_reason indicates the reason for canceling the watcher.
    com.google.protobuf.ByteString
    cancel_reason indicates the reason for canceling the watcher.
    long
    compact_revision is set to the minimum index if a watcher tries to watch at a compacted index.
    boolean
    created is set to true if the response is for a create watch request.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    .dingodb.pb.error.Error error = 2;
    .dingodb.pb.error.Error error = 2;
    getEvents(int index)
    the events may be empty or more than one, the client should handle the events if the events is empty, this means the response may be a probe response client can ignore the response if the events is empty, and continue to progress watch until the watch_id is canceled ( EWATCH_NOT_EXIST will be returned if the watch_id is canceled)
    int
    the events may be empty or more than one, the client should handle the events if the events is empty, this means the response may be a probe response client can ignore the response if the events is empty, and continue to progress watch until the watch_id is canceled ( EWATCH_NOT_EXIST will be returned if the watch_id is canceled)
    the events may be empty or more than one, the client should handle the events if the events is empty, this means the response may be a probe response client can ignore the response if the events is empty, and continue to progress watch until the watch_id is canceled ( EWATCH_NOT_EXIST will be returned if the watch_id is canceled)
    getEventsOrBuilder(int index)
    the events may be empty or more than one, the client should handle the events if the events is empty, this means the response may be a probe response client can ignore the response if the events is empty, and continue to progress watch until the watch_id is canceled ( EWATCH_NOT_EXIST will be returned if the watch_id is canceled)
    the events may be empty or more than one, the client should handle the events if the events is empty, this means the response may be a probe response client can ignore the response if the events is empty, and continue to progress watch until the watch_id is canceled ( EWATCH_NOT_EXIST will be returned if the watch_id is canceled)
    com.google.protobuf.Parser<Meta.WatchResponse>
     
    .dingodb.pb.common.ResponseInfo response_info = 1;
    .dingodb.pb.common.ResponseInfo response_info = 1;
    int
     
    long
    watch_id is the ID of the watcher that corresponds to the response.
    boolean
    .dingodb.pb.error.Error error = 2;
    int
     
    boolean
    .dingodb.pb.common.ResponseInfo response_info = 1;
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Meta.WatchResponse>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • RESPONSE_INFO_FIELD_NUMBER

      public static final int RESPONSE_INFO_FIELD_NUMBER
      See Also:
    • ERROR_FIELD_NUMBER

      public static final int ERROR_FIELD_NUMBER
      See Also:
    • WATCH_ID_FIELD_NUMBER

      public static final int WATCH_ID_FIELD_NUMBER
      See Also:
    • CREATED_FIELD_NUMBER

      public static final int CREATED_FIELD_NUMBER
      See Also:
    • CANCELED_FIELD_NUMBER

      public static final int CANCELED_FIELD_NUMBER
      See Also:
    • COMPACT_REVISION_FIELD_NUMBER

      public static final int COMPACT_REVISION_FIELD_NUMBER
      See Also:
    • CANCEL_REASON_FIELD_NUMBER

      public static final int CANCEL_REASON_FIELD_NUMBER
      See Also:
    • EVENTS_FIELD_NUMBER

      public static final int EVENTS_FIELD_NUMBER
      See Also:
  • 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 Meta.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 Meta.WatchResponseOrBuilder
      Returns:
      The responseInfo.
    • getResponseInfoOrBuilder

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

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

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

      public ErrorOuterClass.ErrorOrBuilder getErrorOrBuilder()
      .dingodb.pb.error.Error error = 2;
      Specified by:
      getErrorOrBuilder in interface Meta.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 Meta.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 Meta.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 Meta.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 Meta.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 Meta.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 Meta.WatchResponseOrBuilder
      Returns:
      The bytes for cancelReason.
    • getEventsList

      public List<Meta.MetaEvent> getEventsList()
       the events may be empty or more than one, the client should handle the events
       if the events is empty, this means the response may be a probe response
       client can ignore the response if the events is empty, and continue to progress watch until
       the watch_id is canceled ( EWATCH_NOT_EXIST will be returned if the watch_id is canceled)
       
      repeated .dingodb.pb.meta.MetaEvent events = 11;
      Specified by:
      getEventsList in interface Meta.WatchResponseOrBuilder
    • getEventsOrBuilderList

      public List<? extends Meta.MetaEventOrBuilder> getEventsOrBuilderList()
       the events may be empty or more than one, the client should handle the events
       if the events is empty, this means the response may be a probe response
       client can ignore the response if the events is empty, and continue to progress watch until
       the watch_id is canceled ( EWATCH_NOT_EXIST will be returned if the watch_id is canceled)
       
      repeated .dingodb.pb.meta.MetaEvent events = 11;
      Specified by:
      getEventsOrBuilderList in interface Meta.WatchResponseOrBuilder
    • getEventsCount

      public int getEventsCount()
       the events may be empty or more than one, the client should handle the events
       if the events is empty, this means the response may be a probe response
       client can ignore the response if the events is empty, and continue to progress watch until
       the watch_id is canceled ( EWATCH_NOT_EXIST will be returned if the watch_id is canceled)
       
      repeated .dingodb.pb.meta.MetaEvent events = 11;
      Specified by:
      getEventsCount in interface Meta.WatchResponseOrBuilder
    • getEvents

      public Meta.MetaEvent getEvents(int index)
       the events may be empty or more than one, the client should handle the events
       if the events is empty, this means the response may be a probe response
       client can ignore the response if the events is empty, and continue to progress watch until
       the watch_id is canceled ( EWATCH_NOT_EXIST will be returned if the watch_id is canceled)
       
      repeated .dingodb.pb.meta.MetaEvent events = 11;
      Specified by:
      getEvents in interface Meta.WatchResponseOrBuilder
    • getEventsOrBuilder

      public Meta.MetaEventOrBuilder getEventsOrBuilder(int index)
       the events may be empty or more than one, the client should handle the events
       if the events is empty, this means the response may be a probe response
       client can ignore the response if the events is empty, and continue to progress watch until
       the watch_id is canceled ( EWATCH_NOT_EXIST will be returned if the watch_id is canceled)
       
      repeated .dingodb.pb.meta.MetaEvent events = 11;
      Specified by:
      getEventsOrBuilder in interface Meta.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 Meta.WatchResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Meta.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 Meta.WatchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Meta.WatchResponse getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Meta.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 Meta.WatchResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder