Package io.dingodb.version
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 Summary
Modifier and TypeMethodDescriptionbooleancanceled 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.ByteStringcancel_reason indicates the reason for canceling the watcher.longcompact_revision is set to the minimum index if a watcher tries to watch at a compacted index.booleancreated is set to true if the response is for a create watch request.getError().dingodb.pb.error.Error error = 2;.dingodb.pb.error.Error error = 2;getEvents(int index) repeated .dingodb.pb.version.Event events = 11;intrepeated .dingodb.pb.version.Event events = 11;repeated .dingodb.pb.version.Event events = 11;getEventsOrBuilder(int index) repeated .dingodb.pb.version.Event events = 11;List<? extends Version.EventOrBuilder>repeated .dingodb.pb.version.Event events = 11;booleanframgment is true if large watch response was split over multiple responses..dingodb.pb.version.ResponseHeader header = 3;.dingodb.pb.version.ResponseHeader header = 3;.dingodb.pb.common.ResponseInfo response_info = 1;.dingodb.pb.common.ResponseInfo response_info = 1;longwatch_id is the ID of the watcher that corresponds to the response.booleanhasError().dingodb.pb.error.Error error = 2;boolean.dingodb.pb.version.ResponseHeader header = 3;boolean.dingodb.pb.common.ResponseInfo response_info = 1;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
ErrorOuterClass.Error 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
Version.ResponseHeader 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
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
repeated .dingodb.pb.version.Event events = 11;
-