public interface WatchResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
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.
|
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; |
ResponseHeader |
getHeader()
.etcdserverpb.ResponseHeader header = 1; |
ResponseHeaderOrBuilder |
getHeaderOrBuilder()
.etcdserverpb.ResponseHeader header = 1; |
long |
getWatchId()
watch_id is the ID of the watcher that corresponds to the response.
|
boolean |
hasHeader()
.etcdserverpb.ResponseHeader header = 1; |
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasHeader()
.etcdserverpb.ResponseHeader header = 1;ResponseHeader getHeader()
.etcdserverpb.ResponseHeader header = 1;ResponseHeaderOrBuilder getHeaderOrBuilder()
.etcdserverpb.ResponseHeader header = 1;long getWatchId()
watch_id is the ID of the watcher that corresponds to the response.
int64 watch_id = 2;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;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;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;String getCancelReason()
cancel_reason indicates the reason for canceling the watcher.
string cancel_reason = 6;com.google.protobuf.ByteString getCancelReasonBytes()
cancel_reason indicates the reason for canceling the watcher.
string cancel_reason = 6;Event getEvents(int index)
repeated .mvccpb.Event events = 11;int getEventsCount()
repeated .mvccpb.Event events = 11;List<? extends EventOrBuilder> getEventsOrBuilderList()
repeated .mvccpb.Event events = 11;EventOrBuilder getEventsOrBuilder(int index)
repeated .mvccpb.Event events = 11;Copyright © 2020. All rights reserved.