Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rpc.proto
package io.helidon.config.etcd.internal.client.proto;
/**
* Protobuf type {@code etcdserverpb.WatchResponse}
*/
public final class WatchResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:etcdserverpb.WatchResponse)
WatchResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use WatchResponse.newBuilder() to construct.
private WatchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private WatchResponse() {
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WatchResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_WatchResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_WatchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.helidon.config.etcd.internal.client.proto.WatchResponse.class, io.helidon.config.etcd.internal.client.proto.WatchResponse.Builder.class);
}
public static final int HEADER_FIELD_NUMBER = 1;
private io.helidon.config.etcd.internal.client.proto.ResponseHeader header_;
/**
* .etcdserverpb.ResponseHeader header = 1;
* @return Whether the header field is set.
*/
@java.lang.Override
public boolean hasHeader() {
return header_ != null;
}
/**
* .etcdserverpb.ResponseHeader header = 1;
* @return The header.
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.ResponseHeader getHeader() {
return header_ == null ? io.helidon.config.etcd.internal.client.proto.ResponseHeader.getDefaultInstance() : header_;
}
/**
* .etcdserverpb.ResponseHeader header = 1;
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.ResponseHeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int WATCH_ID_FIELD_NUMBER = 2;
private long watchId_;
/**
*
* watch_id is the ID of the watcher that corresponds to the response.
*
*
* int64 watch_id = 2;
* @return The watchId.
*/
@java.lang.Override
public long getWatchId() {
return watchId_;
}
public static final int CREATED_FIELD_NUMBER = 3;
private boolean created_;
/**
*
* 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;
* @return The created.
*/
@java.lang.Override
public boolean getCreated() {
return created_;
}
public static final int CANCELED_FIELD_NUMBER = 4;
private boolean canceled_;
/**
*
* 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;
* @return The canceled.
*/
@java.lang.Override
public boolean getCanceled() {
return canceled_;
}
public static final int COMPACT_REVISION_FIELD_NUMBER = 5;
private long compactRevision_;
/**
*
* 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;
* @return The compactRevision.
*/
@java.lang.Override
public long getCompactRevision() {
return compactRevision_;
}
public static final int EVENTS_FIELD_NUMBER = 11;
private java.util.List events_;
/**
* repeated .mvccpb.Event events = 11;
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .mvccpb.Event events = 11;
*/
@java.lang.Override
public java.util.List
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .mvccpb.Event events = 11;
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
* repeated .mvccpb.Event events = 11;
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.Event getEvents(int index) {
return events_.get(index);
}
/**
* repeated .mvccpb.Event events = 11;
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (header_ != null) {
output.writeMessage(1, getHeader());
}
if (watchId_ != 0L) {
output.writeInt64(2, watchId_);
}
if (created_ != false) {
output.writeBool(3, created_);
}
if (canceled_ != false) {
output.writeBool(4, canceled_);
}
if (compactRevision_ != 0L) {
output.writeInt64(5, compactRevision_);
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(11, events_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (watchId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, watchId_);
}
if (created_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, created_);
}
if (canceled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, canceled_);
}
if (compactRevision_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, compactRevision_);
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, events_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.helidon.config.etcd.internal.client.proto.WatchResponse)) {
return super.equals(obj);
}
io.helidon.config.etcd.internal.client.proto.WatchResponse other = (io.helidon.config.etcd.internal.client.proto.WatchResponse) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (getWatchId()
!= other.getWatchId()) return false;
if (getCreated()
!= other.getCreated()) return false;
if (getCanceled()
!= other.getCanceled()) return false;
if (getCompactRevision()
!= other.getCompactRevision()) return false;
if (!getEventsList()
.equals(other.getEventsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
hash = (37 * hash) + WATCH_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWatchId());
hash = (37 * hash) + CREATED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCreated());
hash = (37 * hash) + CANCELED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCanceled());
hash = (37 * hash) + COMPACT_REVISION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCompactRevision());
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.helidon.config.etcd.internal.client.proto.WatchResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.helidon.config.etcd.internal.client.proto.WatchResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code etcdserverpb.WatchResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:etcdserverpb.WatchResponse)
io.helidon.config.etcd.internal.client.proto.WatchResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_WatchResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_WatchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.helidon.config.etcd.internal.client.proto.WatchResponse.class, io.helidon.config.etcd.internal.client.proto.WatchResponse.Builder.class);
}
// Construct using io.helidon.config.etcd.internal.client.proto.WatchResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
watchId_ = 0L;
created_ = false;
canceled_ = false;
compactRevision_ = 0L;
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
} else {
events_ = null;
eventsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_WatchResponse_descriptor;
}
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchResponse getDefaultInstanceForType() {
return io.helidon.config.etcd.internal.client.proto.WatchResponse.getDefaultInstance();
}
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchResponse build() {
io.helidon.config.etcd.internal.client.proto.WatchResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchResponse buildPartial() {
io.helidon.config.etcd.internal.client.proto.WatchResponse result = new io.helidon.config.etcd.internal.client.proto.WatchResponse(this);
int from_bitField0_ = bitField0_;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
result.watchId_ = watchId_;
result.created_ = created_;
result.canceled_ = canceled_;
result.compactRevision_ = compactRevision_;
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.helidon.config.etcd.internal.client.proto.WatchResponse) {
return mergeFrom((io.helidon.config.etcd.internal.client.proto.WatchResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.helidon.config.etcd.internal.client.proto.WatchResponse other) {
if (other == io.helidon.config.etcd.internal.client.proto.WatchResponse.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.getWatchId() != 0L) {
setWatchId(other.getWatchId());
}
if (other.getCreated() != false) {
setCreated(other.getCreated());
}
if (other.getCanceled() != false) {
setCanceled(other.getCanceled());
}
if (other.getCompactRevision() != 0L) {
setCompactRevision(other.getCompactRevision());
}
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getHeaderFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 16: {
watchId_ = input.readInt64();
break;
} // case 16
case 24: {
created_ = input.readBool();
break;
} // case 24
case 32: {
canceled_ = input.readBool();
break;
} // case 32
case 40: {
compactRevision_ = input.readInt64();
break;
} // case 40
case 90: {
io.helidon.config.etcd.internal.client.proto.Event m =
input.readMessage(
io.helidon.config.etcd.internal.client.proto.Event.parser(),
extensionRegistry);
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(m);
} else {
eventsBuilder_.addMessage(m);
}
break;
} // case 90
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.helidon.config.etcd.internal.client.proto.ResponseHeader header_;
private com.google.protobuf.SingleFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.ResponseHeader, io.helidon.config.etcd.internal.client.proto.ResponseHeader.Builder, io.helidon.config.etcd.internal.client.proto.ResponseHeaderOrBuilder> headerBuilder_;
/**
* .etcdserverpb.ResponseHeader header = 1;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .etcdserverpb.ResponseHeader header = 1;
* @return The header.
*/
public io.helidon.config.etcd.internal.client.proto.ResponseHeader getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? io.helidon.config.etcd.internal.client.proto.ResponseHeader.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .etcdserverpb.ResponseHeader header = 1;
*/
public Builder setHeader(io.helidon.config.etcd.internal.client.proto.ResponseHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .etcdserverpb.ResponseHeader header = 1;
*/
public Builder setHeader(
io.helidon.config.etcd.internal.client.proto.ResponseHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .etcdserverpb.ResponseHeader header = 1;
*/
public Builder mergeHeader(io.helidon.config.etcd.internal.client.proto.ResponseHeader value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
io.helidon.config.etcd.internal.client.proto.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .etcdserverpb.ResponseHeader header = 1;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .etcdserverpb.ResponseHeader header = 1;
*/
public io.helidon.config.etcd.internal.client.proto.ResponseHeader.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .etcdserverpb.ResponseHeader header = 1;
*/
public io.helidon.config.etcd.internal.client.proto.ResponseHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
io.helidon.config.etcd.internal.client.proto.ResponseHeader.getDefaultInstance() : header_;
}
}
/**
* .etcdserverpb.ResponseHeader header = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.ResponseHeader, io.helidon.config.etcd.internal.client.proto.ResponseHeader.Builder, io.helidon.config.etcd.internal.client.proto.ResponseHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.ResponseHeader, io.helidon.config.etcd.internal.client.proto.ResponseHeader.Builder, io.helidon.config.etcd.internal.client.proto.ResponseHeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private long watchId_ ;
/**
*
* watch_id is the ID of the watcher that corresponds to the response.
*
*
* int64 watch_id = 2;
* @return The watchId.
*/
@java.lang.Override
public long getWatchId() {
return watchId_;
}
/**
*
* watch_id is the ID of the watcher that corresponds to the response.
*
*
* int64 watch_id = 2;
* @param value The watchId to set.
* @return This builder for chaining.
*/
public Builder setWatchId(long value) {
watchId_ = value;
onChanged();
return this;
}
/**
*
* watch_id is the ID of the watcher that corresponds to the response.
*
*
* int64 watch_id = 2;
* @return This builder for chaining.
*/
public Builder clearWatchId() {
watchId_ = 0L;
onChanged();
return this;
}
private boolean created_ ;
/**
*
* 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;
* @return The created.
*/
@java.lang.Override
public boolean getCreated() {
return created_;
}
/**
*
* 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;
* @param value The created to set.
* @return This builder for chaining.
*/
public Builder setCreated(boolean value) {
created_ = value;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearCreated() {
created_ = false;
onChanged();
return this;
}
private boolean canceled_ ;
/**
*
* canceled is set to true if the response is for a cancel watch request.
* No further events will be sent to the canceled watcher.
*
* 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;
* @param value The canceled to set.
* @return This builder for chaining.
*/
public Builder setCanceled(boolean value) {
canceled_ = value;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearCanceled() {
canceled_ = false;
onChanged();
return this;
}
private long compactRevision_ ;
/**
*
* 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;
* @return The compactRevision.
*/
@java.lang.Override
public long getCompactRevision() {
return compactRevision_;
}
/**
*
* 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;
* @param value The compactRevision to set.
* @return This builder for chaining.
*/
public Builder setCompactRevision(long value) {
compactRevision_ = value;
onChanged();
return this;
}
/**
*
* 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.
*