public static final class WatchResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder> implements WatchResponseOrBuilder
etcdserverpb.WatchResponse| Modifier and Type | Method and Description |
|---|---|
WatchResponse.Builder |
addAllEvents(Iterable<? extends Event> values)
repeated .mvccpb.Event events = 11; |
WatchResponse.Builder |
addEvents(Event.Builder builderForValue)
repeated .mvccpb.Event events = 11; |
WatchResponse.Builder |
addEvents(Event value)
repeated .mvccpb.Event events = 11; |
WatchResponse.Builder |
addEvents(int index,
Event.Builder builderForValue)
repeated .mvccpb.Event events = 11; |
WatchResponse.Builder |
addEvents(int index,
Event value)
repeated .mvccpb.Event events = 11; |
Event.Builder |
addEventsBuilder()
repeated .mvccpb.Event events = 11; |
Event.Builder |
addEventsBuilder(int index)
repeated .mvccpb.Event events = 11; |
WatchResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WatchResponse |
build() |
WatchResponse |
buildPartial() |
WatchResponse.Builder |
clear() |
WatchResponse.Builder |
clearCanceled()
canceled is set to true if the response is for a cancel watch request.
|
WatchResponse.Builder |
clearCancelReason()
cancel_reason indicates the reason for canceling the watcher.
|
WatchResponse.Builder |
clearCompactRevision()
compact_revision is set to the minimum index if a watcher tries to watch
at a compacted index.
|
WatchResponse.Builder |
clearCreated()
created is set to true if the response is for a create watch request.
|
WatchResponse.Builder |
clearEvents()
repeated .mvccpb.Event events = 11; |
WatchResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
WatchResponse.Builder |
clearHeader()
.etcdserverpb.ResponseHeader header = 1; |
WatchResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
WatchResponse.Builder |
clearWatchId()
watch_id is the ID of the watcher that corresponds to the response.
|
WatchResponse.Builder |
clone() |
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.
|
WatchResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Event |
getEvents(int index)
repeated .mvccpb.Event events = 11; |
Event.Builder |
getEventsBuilder(int index)
repeated .mvccpb.Event events = 11; |
List<Event.Builder> |
getEventsBuilderList()
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; |
ResponseHeader.Builder |
getHeaderBuilder()
.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; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
WatchResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
WatchResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
WatchResponse.Builder |
mergeFrom(WatchResponse other) |
WatchResponse.Builder |
mergeHeader(ResponseHeader value)
.etcdserverpb.ResponseHeader header = 1; |
WatchResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WatchResponse.Builder |
removeEvents(int index)
repeated .mvccpb.Event events = 11; |
WatchResponse.Builder |
setCanceled(boolean value)
canceled is set to true if the response is for a cancel watch request.
|
WatchResponse.Builder |
setCancelReason(String value)
cancel_reason indicates the reason for canceling the watcher.
|
WatchResponse.Builder |
setCancelReasonBytes(com.google.protobuf.ByteString value)
cancel_reason indicates the reason for canceling the watcher.
|
WatchResponse.Builder |
setCompactRevision(long value)
compact_revision is set to the minimum index if a watcher tries to watch
at a compacted index.
|
WatchResponse.Builder |
setCreated(boolean value)
created is set to true if the response is for a create watch request.
|
WatchResponse.Builder |
setEvents(int index,
Event.Builder builderForValue)
repeated .mvccpb.Event events = 11; |
WatchResponse.Builder |
setEvents(int index,
Event value)
repeated .mvccpb.Event events = 11; |
WatchResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WatchResponse.Builder |
setHeader(ResponseHeader.Builder builderForValue)
.etcdserverpb.ResponseHeader header = 1; |
WatchResponse.Builder |
setHeader(ResponseHeader value)
.etcdserverpb.ResponseHeader header = 1; |
WatchResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
WatchResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WatchResponse.Builder |
setWatchId(long value)
watch_id is the ID of the watcher that corresponds to the response.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>public WatchResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>public WatchResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic WatchResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic WatchResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic WatchResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>public WatchResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>public WatchResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>public WatchResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>public WatchResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>public WatchResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>public WatchResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WatchResponse.Builder>public WatchResponse.Builder mergeFrom(WatchResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>public WatchResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WatchResponse.Builder>IOExceptionpublic boolean hasHeader()
.etcdserverpb.ResponseHeader header = 1;hasHeader in interface WatchResponseOrBuilderpublic ResponseHeader getHeader()
.etcdserverpb.ResponseHeader header = 1;getHeader in interface WatchResponseOrBuilderpublic WatchResponse.Builder setHeader(ResponseHeader value)
.etcdserverpb.ResponseHeader header = 1;public WatchResponse.Builder setHeader(ResponseHeader.Builder builderForValue)
.etcdserverpb.ResponseHeader header = 1;public WatchResponse.Builder mergeHeader(ResponseHeader value)
.etcdserverpb.ResponseHeader header = 1;public WatchResponse.Builder clearHeader()
.etcdserverpb.ResponseHeader header = 1;public ResponseHeader.Builder getHeaderBuilder()
.etcdserverpb.ResponseHeader header = 1;public 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 WatchResponse.Builder setWatchId(long value)
watch_id is the ID of the watcher that corresponds to the response.
int64 watch_id = 2;value - The watchId to set.public WatchResponse.Builder clearWatchId()
watch_id is the ID of the watcher that corresponds to the response.
int64 watch_id = 2;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 = 3;getCreated in interface WatchResponseOrBuilderpublic WatchResponse.Builder setCreated(boolean value)
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;value - The created to set.public WatchResponse.Builder clearCreated()
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;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 = 4;getCanceled in interface WatchResponseOrBuilderpublic WatchResponse.Builder setCanceled(boolean value)
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;value - The canceled to set.public WatchResponse.Builder clearCanceled()
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;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 = 5;getCompactRevision in interface WatchResponseOrBuilderpublic WatchResponse.Builder setCompactRevision(long value)
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;value - The compactRevision to set.public WatchResponse.Builder clearCompactRevision()
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;public 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 WatchResponse.Builder setCancelReason(String value)
cancel_reason indicates the reason for canceling the watcher.
string cancel_reason = 6;value - The cancelReason to set.public WatchResponse.Builder clearCancelReason()
cancel_reason indicates the reason for canceling the watcher.
string cancel_reason = 6;public WatchResponse.Builder setCancelReasonBytes(com.google.protobuf.ByteString value)
cancel_reason indicates the reason for canceling the watcher.
string cancel_reason = 6;value - The bytes for cancelReason to set.public List<Event> getEventsList()
repeated .mvccpb.Event events = 11;getEventsList 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 WatchResponse.Builder setEvents(int index, Event value)
repeated .mvccpb.Event events = 11;public WatchResponse.Builder setEvents(int index, Event.Builder builderForValue)
repeated .mvccpb.Event events = 11;public WatchResponse.Builder addEvents(Event value)
repeated .mvccpb.Event events = 11;public WatchResponse.Builder addEvents(int index, Event value)
repeated .mvccpb.Event events = 11;public WatchResponse.Builder addEvents(Event.Builder builderForValue)
repeated .mvccpb.Event events = 11;public WatchResponse.Builder addEvents(int index, Event.Builder builderForValue)
repeated .mvccpb.Event events = 11;public WatchResponse.Builder addAllEvents(Iterable<? extends Event> values)
repeated .mvccpb.Event events = 11;public WatchResponse.Builder clearEvents()
repeated .mvccpb.Event events = 11;public WatchResponse.Builder removeEvents(int index)
repeated .mvccpb.Event events = 11;public Event.Builder getEventsBuilder(int index)
repeated .mvccpb.Event events = 11;public EventOrBuilder getEventsOrBuilder(int index)
repeated .mvccpb.Event events = 11;getEventsOrBuilder in interface WatchResponseOrBuilderpublic List<? extends EventOrBuilder> getEventsOrBuilderList()
repeated .mvccpb.Event events = 11;getEventsOrBuilderList in interface WatchResponseOrBuilderpublic Event.Builder addEventsBuilder()
repeated .mvccpb.Event events = 11;public Event.Builder addEventsBuilder(int index)
repeated .mvccpb.Event events = 11;public List<Event.Builder> getEventsBuilderList()
repeated .mvccpb.Event events = 11;public final WatchResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>public final WatchResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WatchResponse.Builder>Copyright © 2021. All rights reserved.