public static final class WatchCreateRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WatchCreateRequest.Builder> implements WatchCreateRequestOrBuilder
etcdserverpb.WatchCreateRequest| Modifier and Type | Method and Description |
|---|---|
WatchCreateRequest.Builder |
addAllFilters(Iterable<? extends WatchCreateRequest.FilterType> values)
filters filter the events at server side before it sends back to the watcher.
|
WatchCreateRequest.Builder |
addAllFiltersValue(Iterable<Integer> values)
filters filter the events at server side before it sends back to the watcher.
|
WatchCreateRequest.Builder |
addFilters(WatchCreateRequest.FilterType value)
filters filter the events at server side before it sends back to the watcher.
|
WatchCreateRequest.Builder |
addFiltersValue(int value)
filters filter the events at server side before it sends back to the watcher.
|
WatchCreateRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WatchCreateRequest |
build() |
WatchCreateRequest |
buildPartial() |
WatchCreateRequest.Builder |
clear() |
WatchCreateRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
WatchCreateRequest.Builder |
clearFilters()
filters filter the events at server side before it sends back to the watcher.
|
WatchCreateRequest.Builder |
clearKey()
key is the key to register for watching.
|
WatchCreateRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
WatchCreateRequest.Builder |
clearPrevKv()
If prev_kv is set, created watcher gets the previous KV before the event happens.
|
WatchCreateRequest.Builder |
clearProgressNotify()
progress_notify is set so that the etcd server will periodically send a WatchResponse with
no events to the new watcher if there are no recent events.
|
WatchCreateRequest.Builder |
clearRangeEnd()
range_end is the end of the range [key, range_end) to watch.
|
WatchCreateRequest.Builder |
clearStartRevision()
start_revision is an optional revision to watch from (inclusive).
|
WatchCreateRequest.Builder |
clearWatchId()
If watch_id is provided and non-zero, it will be assigned to this watcher.
|
WatchCreateRequest.Builder |
clone() |
WatchCreateRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
WatchCreateRequest.FilterType |
getFilters(int index)
filters filter the events at server side before it sends back to the watcher.
|
int |
getFiltersCount()
filters filter the events at server side before it sends back to the watcher.
|
List<WatchCreateRequest.FilterType> |
getFiltersList()
filters filter the events at server side before it sends back to the watcher.
|
int |
getFiltersValue(int index)
filters filter the events at server side before it sends back to the watcher.
|
List<Integer> |
getFiltersValueList()
filters filter the events at server side before it sends back to the watcher.
|
com.google.protobuf.ByteString |
getKey()
key is the key to register for watching.
|
boolean |
getPrevKv()
If prev_kv is set, created watcher gets the previous KV before the event happens.
|
boolean |
getProgressNotify()
progress_notify is set so that the etcd server will periodically send a WatchResponse with
no events to the new watcher if there are no recent events.
|
com.google.protobuf.ByteString |
getRangeEnd()
range_end is the end of the range [key, range_end) to watch.
|
long |
getStartRevision()
start_revision is an optional revision to watch from (inclusive).
|
long |
getWatchId()
If watch_id is provided and non-zero, it will be assigned to this watcher.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
WatchCreateRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
WatchCreateRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
WatchCreateRequest.Builder |
mergeFrom(WatchCreateRequest other) |
WatchCreateRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WatchCreateRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WatchCreateRequest.Builder |
setFilters(int index,
WatchCreateRequest.FilterType value)
filters filter the events at server side before it sends back to the watcher.
|
WatchCreateRequest.Builder |
setFiltersValue(int index,
int value)
filters filter the events at server side before it sends back to the watcher.
|
WatchCreateRequest.Builder |
setKey(com.google.protobuf.ByteString value)
key is the key to register for watching.
|
WatchCreateRequest.Builder |
setPrevKv(boolean value)
If prev_kv is set, created watcher gets the previous KV before the event happens.
|
WatchCreateRequest.Builder |
setProgressNotify(boolean value)
progress_notify is set so that the etcd server will periodically send a WatchResponse with
no events to the new watcher if there are no recent events.
|
WatchCreateRequest.Builder |
setRangeEnd(com.google.protobuf.ByteString value)
range_end is the end of the range [key, range_end) to watch.
|
WatchCreateRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
WatchCreateRequest.Builder |
setStartRevision(long value)
start_revision is an optional revision to watch from (inclusive).
|
WatchCreateRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WatchCreateRequest.Builder |
setWatchId(long value)
If watch_id is provided and non-zero, it will be assigned to this watcher.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WatchCreateRequest.Builder>public WatchCreateRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<WatchCreateRequest.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<WatchCreateRequest.Builder>public WatchCreateRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic WatchCreateRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic WatchCreateRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic WatchCreateRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<WatchCreateRequest.Builder>public WatchCreateRequest.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<WatchCreateRequest.Builder>public WatchCreateRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<WatchCreateRequest.Builder>public WatchCreateRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WatchCreateRequest.Builder>public WatchCreateRequest.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<WatchCreateRequest.Builder>public WatchCreateRequest.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<WatchCreateRequest.Builder>public WatchCreateRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WatchCreateRequest.Builder>public WatchCreateRequest.Builder mergeFrom(WatchCreateRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WatchCreateRequest.Builder>public WatchCreateRequest.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<WatchCreateRequest.Builder>IOExceptionpublic com.google.protobuf.ByteString getKey()
key is the key to register for watching.
bytes key = 1;getKey in interface WatchCreateRequestOrBuilderpublic WatchCreateRequest.Builder setKey(com.google.protobuf.ByteString value)
key is the key to register for watching.
bytes key = 1;value - The key to set.public WatchCreateRequest.Builder clearKey()
key is the key to register for watching.
bytes key = 1;public com.google.protobuf.ByteString getRangeEnd()
range_end is the end of the range [key, range_end) to watch. If range_end is not given, only the key argument is watched. If range_end is equal to '\0', all keys greater than or equal to the key argument are watched. If the range_end is one bit larger than the given key, then all keys with the prefix (the given key) will be watched.
bytes range_end = 2;getRangeEnd in interface WatchCreateRequestOrBuilderpublic WatchCreateRequest.Builder setRangeEnd(com.google.protobuf.ByteString value)
range_end is the end of the range [key, range_end) to watch. If range_end is not given, only the key argument is watched. If range_end is equal to '\0', all keys greater than or equal to the key argument are watched. If the range_end is one bit larger than the given key, then all keys with the prefix (the given key) will be watched.
bytes range_end = 2;value - The rangeEnd to set.public WatchCreateRequest.Builder clearRangeEnd()
range_end is the end of the range [key, range_end) to watch. If range_end is not given, only the key argument is watched. If range_end is equal to '\0', all keys greater than or equal to the key argument are watched. If the range_end is one bit larger than the given key, then all keys with the prefix (the given key) will be watched.
bytes range_end = 2;public long getStartRevision()
start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
int64 start_revision = 3;getStartRevision in interface WatchCreateRequestOrBuilderpublic WatchCreateRequest.Builder setStartRevision(long value)
start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
int64 start_revision = 3;value - The startRevision to set.public WatchCreateRequest.Builder clearStartRevision()
start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
int64 start_revision = 3;public boolean getProgressNotify()
progress_notify is set so that the etcd server will periodically send a WatchResponse with no events to the new watcher if there are no recent events. It is useful when clients wish to recover a disconnected watcher starting from a recent known revision. The etcd server may decide how often it will send notifications based on current load.
bool progress_notify = 4;getProgressNotify in interface WatchCreateRequestOrBuilderpublic WatchCreateRequest.Builder setProgressNotify(boolean value)
progress_notify is set so that the etcd server will periodically send a WatchResponse with no events to the new watcher if there are no recent events. It is useful when clients wish to recover a disconnected watcher starting from a recent known revision. The etcd server may decide how often it will send notifications based on current load.
bool progress_notify = 4;value - The progressNotify to set.public WatchCreateRequest.Builder clearProgressNotify()
progress_notify is set so that the etcd server will periodically send a WatchResponse with no events to the new watcher if there are no recent events. It is useful when clients wish to recover a disconnected watcher starting from a recent known revision. The etcd server may decide how often it will send notifications based on current load.
bool progress_notify = 4;public List<WatchCreateRequest.FilterType> getFiltersList()
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;getFiltersList in interface WatchCreateRequestOrBuilderpublic int getFiltersCount()
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;getFiltersCount in interface WatchCreateRequestOrBuilderpublic WatchCreateRequest.FilterType getFilters(int index)
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;getFilters in interface WatchCreateRequestOrBuilderindex - The index of the element to return.public WatchCreateRequest.Builder setFilters(int index, WatchCreateRequest.FilterType value)
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;index - The index to set the value at.value - The filters to set.public WatchCreateRequest.Builder addFilters(WatchCreateRequest.FilterType value)
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;value - The filters to add.public WatchCreateRequest.Builder addAllFilters(Iterable<? extends WatchCreateRequest.FilterType> values)
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;values - The filters to add.public WatchCreateRequest.Builder clearFilters()
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;public List<Integer> getFiltersValueList()
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;getFiltersValueList in interface WatchCreateRequestOrBuilderpublic int getFiltersValue(int index)
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;getFiltersValue in interface WatchCreateRequestOrBuilderindex - The index of the value to return.public WatchCreateRequest.Builder setFiltersValue(int index, int value)
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;index - The index to set the value at.value - The enum numeric value on the wire for filters to set.public WatchCreateRequest.Builder addFiltersValue(int value)
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;value - The enum numeric value on the wire for filters to add.public WatchCreateRequest.Builder addAllFiltersValue(Iterable<Integer> values)
filters filter the events at server side before it sends back to the watcher.
repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5;values - The enum numeric values on the wire for filters to add.public boolean getPrevKv()
If prev_kv is set, created watcher gets the previous KV before the event happens. If the previous KV is already compacted, nothing will be returned.
bool prev_kv = 6;getPrevKv in interface WatchCreateRequestOrBuilderpublic WatchCreateRequest.Builder setPrevKv(boolean value)
If prev_kv is set, created watcher gets the previous KV before the event happens. If the previous KV is already compacted, nothing will be returned.
bool prev_kv = 6;value - The prevKv to set.public WatchCreateRequest.Builder clearPrevKv()
If prev_kv is set, created watcher gets the previous KV before the event happens. If the previous KV is already compacted, nothing will be returned.
bool prev_kv = 6;public long getWatchId()
If watch_id is provided and non-zero, it will be assigned to this watcher. Since creating a watcher in etcd is not a synchronous operation, this can be used ensure that ordering is correct when creating multiple watchers on the same stream. Creating a watcher with an ID already in use on the stream will cause an error to be returned.
int64 watch_id = 7;getWatchId in interface WatchCreateRequestOrBuilderpublic WatchCreateRequest.Builder setWatchId(long value)
If watch_id is provided and non-zero, it will be assigned to this watcher. Since creating a watcher in etcd is not a synchronous operation, this can be used ensure that ordering is correct when creating multiple watchers on the same stream. Creating a watcher with an ID already in use on the stream will cause an error to be returned.
int64 watch_id = 7;value - The watchId to set.public WatchCreateRequest.Builder clearWatchId()
If watch_id is provided and non-zero, it will be assigned to this watcher. Since creating a watcher in etcd is not a synchronous operation, this can be used ensure that ordering is correct when creating multiple watchers on the same stream. Creating a watcher with an ID already in use on the stream will cause an error to be returned.
int64 watch_id = 7;public final WatchCreateRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WatchCreateRequest.Builder>public final WatchCreateRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WatchCreateRequest.Builder>Copyright © 2022. All rights reserved.