Package io.dingodb.version
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.version.WatchResponseNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanceled 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.static Version.WatchResponsestatic final com.google.protobuf.Descriptors.DescriptorgetError().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;com.google.protobuf.Parser<Version.WatchResponse>.dingodb.pb.common.ResponseInfo response_info = 1;.dingodb.pb.common.ResponseInfo response_info = 1;intlongwatch_id is the ID of the watcher that corresponds to the response.booleanhasError().dingodb.pb.error.Error error = 2;inthashCode()boolean.dingodb.pb.version.ResponseHeader header = 3;boolean.dingodb.pb.common.ResponseInfo response_info = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Version.WatchResponse prototype) protected Version.WatchResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Version.WatchResponseparseDelimitedFrom(InputStream input) static Version.WatchResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Version.WatchResponseparseFrom(byte[] data) static Version.WatchResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Version.WatchResponseparseFrom(com.google.protobuf.ByteString data) static Version.WatchResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Version.WatchResponseparseFrom(com.google.protobuf.CodedInputStream input) static Version.WatchResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Version.WatchResponseparseFrom(InputStream input) static Version.WatchResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Version.WatchResponseparseFrom(ByteBuffer data) static Version.WatchResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Version.WatchResponse>parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods 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:
-
HEADER_FIELD_NUMBER
public static final int HEADER_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:
-
FRAGMENT_FIELD_NUMBER
public static final int FRAGMENT_FIELD_NUMBER- See Also:
-
EVENTS_FIELD_NUMBER
public static final int EVENTS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasResponseInfo
public boolean hasResponseInfo().dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
hasResponseInfoin interfaceVersion.WatchResponseOrBuilder- Returns:
- Whether the responseInfo field is set.
-
getResponseInfo
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
getResponseInfoin interfaceVersion.WatchResponseOrBuilder- Returns:
- The responseInfo.
-
getResponseInfoOrBuilder
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
getResponseInfoOrBuilderin interfaceVersion.WatchResponseOrBuilder
-
hasError
public boolean hasError().dingodb.pb.error.Error error = 2;- Specified by:
hasErrorin interfaceVersion.WatchResponseOrBuilder- Returns:
- Whether the error field is set.
-
getError
.dingodb.pb.error.Error error = 2;- Specified by:
getErrorin interfaceVersion.WatchResponseOrBuilder- Returns:
- The error.
-
getErrorOrBuilder
.dingodb.pb.error.Error error = 2;- Specified by:
getErrorOrBuilderin interfaceVersion.WatchResponseOrBuilder
-
hasHeader
public boolean hasHeader().dingodb.pb.version.ResponseHeader header = 3;- Specified by:
hasHeaderin interfaceVersion.WatchResponseOrBuilder- Returns:
- Whether the header field is set.
-
getHeader
.dingodb.pb.version.ResponseHeader header = 3;- Specified by:
getHeaderin interfaceVersion.WatchResponseOrBuilder- Returns:
- The header.
-
getHeaderOrBuilder
.dingodb.pb.version.ResponseHeader header = 3;- Specified by:
getHeaderOrBuilderin interfaceVersion.WatchResponseOrBuilder
-
getWatchId
public long getWatchId()watch_id is the ID of the watcher that corresponds to the response.
int64 watch_id = 4;- Specified by:
getWatchIdin interfaceVersion.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:
getCreatedin interfaceVersion.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:
getCanceledin interfaceVersion.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:
getCompactRevisionin interfaceVersion.WatchResponseOrBuilder- Returns:
- The compactRevision.
-
getCancelReason
cancel_reason indicates the reason for canceling the watcher.
string cancel_reason = 8;- Specified by:
getCancelReasonin interfaceVersion.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:
getCancelReasonBytesin interfaceVersion.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:
getFragmentin interfaceVersion.WatchResponseOrBuilder- Returns:
- The fragment.
-
getEventsList
repeated .dingodb.pb.version.Event events = 11;- Specified by:
getEventsListin interfaceVersion.WatchResponseOrBuilder
-
getEventsOrBuilderList
repeated .dingodb.pb.version.Event events = 11;- Specified by:
getEventsOrBuilderListin interfaceVersion.WatchResponseOrBuilder
-
getEventsCount
public int getEventsCount()repeated .dingodb.pb.version.Event events = 11;- Specified by:
getEventsCountin interfaceVersion.WatchResponseOrBuilder
-
getEvents
repeated .dingodb.pb.version.Event events = 11;- Specified by:
getEventsin interfaceVersion.WatchResponseOrBuilder
-
getEventsOrBuilder
repeated .dingodb.pb.version.Event events = 11;- Specified by:
getEventsOrBuilderin interfaceVersion.WatchResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Version.WatchResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Version.WatchResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-