public final class WatchResponse extends com.google.protobuf.GeneratedMessageV3 implements WatchResponseOrBuilder
etcdserverpb.WatchResponse| Modifier and Type | Class and Description |
|---|---|
static class |
WatchResponse.Builder
Protobuf type
etcdserverpb.WatchResponse |
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| Modifier and Type | Field and Description |
|---|---|
static int |
CANCEL_REASON_FIELD_NUMBER |
static int |
CANCELED_FIELD_NUMBER |
static int |
COMPACT_REVISION_FIELD_NUMBER |
static int |
CREATED_FIELD_NUMBER |
static int |
EVENTS_FIELD_NUMBER |
static int |
FRAGMENT_FIELD_NUMBER |
static int |
HEADER_FIELD_NUMBER |
static int |
WATCH_ID_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getCanceled()
canceled is set to true if the response is for a cancel watch request.
|
String |
getCancelReason()
cancel_reason indicates the reason for canceling the watcher.
|
com.google.protobuf.ByteString |
getCancelReasonBytes()
cancel_reason indicates the reason for canceling the watcher.
|
long |
getCompactRevision()
compact_revision is set to the minimum index if a watcher tries to watch
at a compacted index.
|
boolean |
getCreated()
created is set to true if the response is for a create watch request.
|
static WatchResponse |
getDefaultInstance() |
WatchResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Event |
getEvents(int index)
repeated .mvccpb.Event events = 11; |
int |
getEventsCount()
repeated .mvccpb.Event events = 11; |
List<Event> |
getEventsList()
repeated .mvccpb.Event events = 11; |
EventOrBuilder |
getEventsOrBuilder(int index)
repeated .mvccpb.Event events = 11; |
List<? extends EventOrBuilder> |
getEventsOrBuilderList()
repeated .mvccpb.Event events = 11; |
boolean |
getFragment()
framgment is true if large watch response was split over multiple responses.
|
ResponseHeader |
getHeader()
.etcdserverpb.ResponseHeader header = 1; |
ResponseHeaderOrBuilder |
getHeaderOrBuilder()
.etcdserverpb.ResponseHeader header = 1; |
com.google.protobuf.Parser<WatchResponse> |
getParserForType() |
int |
getSerializedSize() |
long |
getWatchId()
watch_id is the ID of the watcher that corresponds to the response.
|
int |
hashCode() |
boolean |
hasHeader()
.etcdserverpb.ResponseHeader header = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static WatchResponse.Builder |
newBuilder() |
static WatchResponse.Builder |
newBuilder(WatchResponse prototype) |
WatchResponse.Builder |
newBuilderForType() |
protected WatchResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static WatchResponse |
parseDelimitedFrom(InputStream input) |
static WatchResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WatchResponse |
parseFrom(byte[] data) |
static WatchResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WatchResponse |
parseFrom(ByteBuffer data) |
static WatchResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WatchResponse |
parseFrom(com.google.protobuf.ByteString data) |
static WatchResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WatchResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static WatchResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WatchResponse |
parseFrom(InputStream input) |
static WatchResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<WatchResponse> |
parser() |
WatchResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int HEADER_FIELD_NUMBER
public static final int WATCH_ID_FIELD_NUMBER
public static final int CREATED_FIELD_NUMBER
public static final int CANCELED_FIELD_NUMBER
public static final int COMPACT_REVISION_FIELD_NUMBER
public static final int CANCEL_REASON_FIELD_NUMBER
public static final int FRAGMENT_FIELD_NUMBER
public static final int EVENTS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasHeader()
.etcdserverpb.ResponseHeader header = 1;hasHeader in interface WatchResponseOrBuilderpublic ResponseHeader getHeader()
.etcdserverpb.ResponseHeader header = 1;getHeader in interface WatchResponseOrBuilderpublic ResponseHeaderOrBuilder getHeaderOrBuilder()
.etcdserverpb.ResponseHeader header = 1;getHeaderOrBuilder in interface WatchResponseOrBuilderpublic long getWatchId()
watch_id is the ID of the watcher that corresponds to the response.
int64 watch_id = 2;getWatchId in interface WatchResponseOrBuilderpublic 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 = 3;getCreated in interface WatchResponseOrBuilderpublic 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 = 4;getCanceled in interface WatchResponseOrBuilderpublic 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 = 5;getCompactRevision in interface WatchResponseOrBuilderpublic String getCancelReason()
cancel_reason indicates the reason for canceling the watcher.
string cancel_reason = 6;getCancelReason in interface WatchResponseOrBuilderpublic com.google.protobuf.ByteString getCancelReasonBytes()
cancel_reason indicates the reason for canceling the watcher.
string cancel_reason = 6;getCancelReasonBytes in interface WatchResponseOrBuilderpublic boolean getFragment()
framgment is true if large watch response was split over multiple responses.
bool fragment = 7;getFragment in interface WatchResponseOrBuilderpublic List<Event> getEventsList()
repeated .mvccpb.Event events = 11;getEventsList in interface WatchResponseOrBuilderpublic List<? extends EventOrBuilder> getEventsOrBuilderList()
repeated .mvccpb.Event events = 11;getEventsOrBuilderList in interface WatchResponseOrBuilderpublic int getEventsCount()
repeated .mvccpb.Event events = 11;getEventsCount in interface WatchResponseOrBuilderpublic Event getEvents(int index)
repeated .mvccpb.Event events = 11;getEvents in interface WatchResponseOrBuilderpublic EventOrBuilder getEventsOrBuilder(int index)
repeated .mvccpb.Event events = 11;getEventsOrBuilder in interface WatchResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static WatchResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WatchResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WatchResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WatchResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WatchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WatchResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WatchResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static WatchResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WatchResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static WatchResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WatchResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static WatchResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic WatchResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static WatchResponse.Builder newBuilder()
public static WatchResponse.Builder newBuilder(WatchResponse prototype)
public WatchResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected WatchResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static WatchResponse getDefaultInstance()
public static com.google.protobuf.Parser<WatchResponse> parser()
public com.google.protobuf.Parser<WatchResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public WatchResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023. All rights reserved.