Please wait. This can take some minutes ...
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.
protobuf.java.io.helidon.config.etcd.internal.client.proto.WatchRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rpc.proto
package io.helidon.config.etcd.internal.client.proto;
/**
* Protobuf type {@code etcdserverpb.WatchRequest}
*/
public final class WatchRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:etcdserverpb.WatchRequest)
WatchRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use WatchRequest.newBuilder() to construct.
private WatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private WatchRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WatchRequest();
}
@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_WatchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_WatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.helidon.config.etcd.internal.client.proto.WatchRequest.class, io.helidon.config.etcd.internal.client.proto.WatchRequest.Builder.class);
}
private int requestUnionCase_ = 0;
private java.lang.Object requestUnion_;
public enum RequestUnionCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CREATE_REQUEST(1),
CANCEL_REQUEST(2),
REQUESTUNION_NOT_SET(0);
private final int value;
private RequestUnionCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RequestUnionCase valueOf(int value) {
return forNumber(value);
}
public static RequestUnionCase forNumber(int value) {
switch (value) {
case 1: return CREATE_REQUEST;
case 2: return CANCEL_REQUEST;
case 0: return REQUESTUNION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public RequestUnionCase
getRequestUnionCase() {
return RequestUnionCase.forNumber(
requestUnionCase_);
}
public static final int CREATE_REQUEST_FIELD_NUMBER = 1;
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
* @return Whether the createRequest field is set.
*/
@java.lang.Override
public boolean hasCreateRequest() {
return requestUnionCase_ == 1;
}
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
* @return The createRequest.
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchCreateRequest getCreateRequest() {
if (requestUnionCase_ == 1) {
return (io.helidon.config.etcd.internal.client.proto.WatchCreateRequest) requestUnion_;
}
return io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.getDefaultInstance();
}
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchCreateRequestOrBuilder getCreateRequestOrBuilder() {
if (requestUnionCase_ == 1) {
return (io.helidon.config.etcd.internal.client.proto.WatchCreateRequest) requestUnion_;
}
return io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.getDefaultInstance();
}
public static final int CANCEL_REQUEST_FIELD_NUMBER = 2;
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
* @return Whether the cancelRequest field is set.
*/
@java.lang.Override
public boolean hasCancelRequest() {
return requestUnionCase_ == 2;
}
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
* @return The cancelRequest.
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchCancelRequest getCancelRequest() {
if (requestUnionCase_ == 2) {
return (io.helidon.config.etcd.internal.client.proto.WatchCancelRequest) requestUnion_;
}
return io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.getDefaultInstance();
}
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchCancelRequestOrBuilder getCancelRequestOrBuilder() {
if (requestUnionCase_ == 2) {
return (io.helidon.config.etcd.internal.client.proto.WatchCancelRequest) requestUnion_;
}
return io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.getDefaultInstance();
}
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 (requestUnionCase_ == 1) {
output.writeMessage(1, (io.helidon.config.etcd.internal.client.proto.WatchCreateRequest) requestUnion_);
}
if (requestUnionCase_ == 2) {
output.writeMessage(2, (io.helidon.config.etcd.internal.client.proto.WatchCancelRequest) requestUnion_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (requestUnionCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.helidon.config.etcd.internal.client.proto.WatchCreateRequest) requestUnion_);
}
if (requestUnionCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.helidon.config.etcd.internal.client.proto.WatchCancelRequest) requestUnion_);
}
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.WatchRequest)) {
return super.equals(obj);
}
io.helidon.config.etcd.internal.client.proto.WatchRequest other = (io.helidon.config.etcd.internal.client.proto.WatchRequest) obj;
if (!getRequestUnionCase().equals(other.getRequestUnionCase())) return false;
switch (requestUnionCase_) {
case 1:
if (!getCreateRequest()
.equals(other.getCreateRequest())) return false;
break;
case 2:
if (!getCancelRequest()
.equals(other.getCancelRequest())) return false;
break;
case 0:
default:
}
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();
switch (requestUnionCase_) {
case 1:
hash = (37 * hash) + CREATE_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getCreateRequest().hashCode();
break;
case 2:
hash = (37 * hash) + CANCEL_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getCancelRequest().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.helidon.config.etcd.internal.client.proto.WatchRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.helidon.config.etcd.internal.client.proto.WatchRequest 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.WatchRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.helidon.config.etcd.internal.client.proto.WatchRequest 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.WatchRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.helidon.config.etcd.internal.client.proto.WatchRequest 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.WatchRequest 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.WatchRequest 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.WatchRequest 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.WatchRequest 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.WatchRequest 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.WatchRequest 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.WatchRequest 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.WatchRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:etcdserverpb.WatchRequest)
io.helidon.config.etcd.internal.client.proto.WatchRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_WatchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_WatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.helidon.config.etcd.internal.client.proto.WatchRequest.class, io.helidon.config.etcd.internal.client.proto.WatchRequest.Builder.class);
}
// Construct using io.helidon.config.etcd.internal.client.proto.WatchRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (createRequestBuilder_ != null) {
createRequestBuilder_.clear();
}
if (cancelRequestBuilder_ != null) {
cancelRequestBuilder_.clear();
}
requestUnionCase_ = 0;
requestUnion_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_WatchRequest_descriptor;
}
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchRequest getDefaultInstanceForType() {
return io.helidon.config.etcd.internal.client.proto.WatchRequest.getDefaultInstance();
}
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchRequest build() {
io.helidon.config.etcd.internal.client.proto.WatchRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchRequest buildPartial() {
io.helidon.config.etcd.internal.client.proto.WatchRequest result = new io.helidon.config.etcd.internal.client.proto.WatchRequest(this);
if (requestUnionCase_ == 1) {
if (createRequestBuilder_ == null) {
result.requestUnion_ = requestUnion_;
} else {
result.requestUnion_ = createRequestBuilder_.build();
}
}
if (requestUnionCase_ == 2) {
if (cancelRequestBuilder_ == null) {
result.requestUnion_ = requestUnion_;
} else {
result.requestUnion_ = cancelRequestBuilder_.build();
}
}
result.requestUnionCase_ = requestUnionCase_;
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.WatchRequest) {
return mergeFrom((io.helidon.config.etcd.internal.client.proto.WatchRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.helidon.config.etcd.internal.client.proto.WatchRequest other) {
if (other == io.helidon.config.etcd.internal.client.proto.WatchRequest.getDefaultInstance()) return this;
switch (other.getRequestUnionCase()) {
case CREATE_REQUEST: {
mergeCreateRequest(other.getCreateRequest());
break;
}
case CANCEL_REQUEST: {
mergeCancelRequest(other.getCancelRequest());
break;
}
case REQUESTUNION_NOT_SET: {
break;
}
}
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(
getCreateRequestFieldBuilder().getBuilder(),
extensionRegistry);
requestUnionCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getCancelRequestFieldBuilder().getBuilder(),
extensionRegistry);
requestUnionCase_ = 2;
break;
} // case 18
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 requestUnionCase_ = 0;
private java.lang.Object requestUnion_;
public RequestUnionCase
getRequestUnionCase() {
return RequestUnionCase.forNumber(
requestUnionCase_);
}
public Builder clearRequestUnion() {
requestUnionCase_ = 0;
requestUnion_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.WatchCreateRequest, io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.Builder, io.helidon.config.etcd.internal.client.proto.WatchCreateRequestOrBuilder> createRequestBuilder_;
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
* @return Whether the createRequest field is set.
*/
@java.lang.Override
public boolean hasCreateRequest() {
return requestUnionCase_ == 1;
}
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
* @return The createRequest.
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchCreateRequest getCreateRequest() {
if (createRequestBuilder_ == null) {
if (requestUnionCase_ == 1) {
return (io.helidon.config.etcd.internal.client.proto.WatchCreateRequest) requestUnion_;
}
return io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.getDefaultInstance();
} else {
if (requestUnionCase_ == 1) {
return createRequestBuilder_.getMessage();
}
return io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.getDefaultInstance();
}
}
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
*/
public Builder setCreateRequest(io.helidon.config.etcd.internal.client.proto.WatchCreateRequest value) {
if (createRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
requestUnion_ = value;
onChanged();
} else {
createRequestBuilder_.setMessage(value);
}
requestUnionCase_ = 1;
return this;
}
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
*/
public Builder setCreateRequest(
io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.Builder builderForValue) {
if (createRequestBuilder_ == null) {
requestUnion_ = builderForValue.build();
onChanged();
} else {
createRequestBuilder_.setMessage(builderForValue.build());
}
requestUnionCase_ = 1;
return this;
}
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
*/
public Builder mergeCreateRequest(io.helidon.config.etcd.internal.client.proto.WatchCreateRequest value) {
if (createRequestBuilder_ == null) {
if (requestUnionCase_ == 1 &&
requestUnion_ != io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.getDefaultInstance()) {
requestUnion_ = io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.newBuilder((io.helidon.config.etcd.internal.client.proto.WatchCreateRequest) requestUnion_)
.mergeFrom(value).buildPartial();
} else {
requestUnion_ = value;
}
onChanged();
} else {
if (requestUnionCase_ == 1) {
createRequestBuilder_.mergeFrom(value);
} else {
createRequestBuilder_.setMessage(value);
}
}
requestUnionCase_ = 1;
return this;
}
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
*/
public Builder clearCreateRequest() {
if (createRequestBuilder_ == null) {
if (requestUnionCase_ == 1) {
requestUnionCase_ = 0;
requestUnion_ = null;
onChanged();
}
} else {
if (requestUnionCase_ == 1) {
requestUnionCase_ = 0;
requestUnion_ = null;
}
createRequestBuilder_.clear();
}
return this;
}
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
*/
public io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.Builder getCreateRequestBuilder() {
return getCreateRequestFieldBuilder().getBuilder();
}
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchCreateRequestOrBuilder getCreateRequestOrBuilder() {
if ((requestUnionCase_ == 1) && (createRequestBuilder_ != null)) {
return createRequestBuilder_.getMessageOrBuilder();
} else {
if (requestUnionCase_ == 1) {
return (io.helidon.config.etcd.internal.client.proto.WatchCreateRequest) requestUnion_;
}
return io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.getDefaultInstance();
}
}
/**
* .etcdserverpb.WatchCreateRequest create_request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.WatchCreateRequest, io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.Builder, io.helidon.config.etcd.internal.client.proto.WatchCreateRequestOrBuilder>
getCreateRequestFieldBuilder() {
if (createRequestBuilder_ == null) {
if (!(requestUnionCase_ == 1)) {
requestUnion_ = io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.getDefaultInstance();
}
createRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.WatchCreateRequest, io.helidon.config.etcd.internal.client.proto.WatchCreateRequest.Builder, io.helidon.config.etcd.internal.client.proto.WatchCreateRequestOrBuilder>(
(io.helidon.config.etcd.internal.client.proto.WatchCreateRequest) requestUnion_,
getParentForChildren(),
isClean());
requestUnion_ = null;
}
requestUnionCase_ = 1;
onChanged();;
return createRequestBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.WatchCancelRequest, io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.Builder, io.helidon.config.etcd.internal.client.proto.WatchCancelRequestOrBuilder> cancelRequestBuilder_;
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
* @return Whether the cancelRequest field is set.
*/
@java.lang.Override
public boolean hasCancelRequest() {
return requestUnionCase_ == 2;
}
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
* @return The cancelRequest.
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchCancelRequest getCancelRequest() {
if (cancelRequestBuilder_ == null) {
if (requestUnionCase_ == 2) {
return (io.helidon.config.etcd.internal.client.proto.WatchCancelRequest) requestUnion_;
}
return io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.getDefaultInstance();
} else {
if (requestUnionCase_ == 2) {
return cancelRequestBuilder_.getMessage();
}
return io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.getDefaultInstance();
}
}
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
*/
public Builder setCancelRequest(io.helidon.config.etcd.internal.client.proto.WatchCancelRequest value) {
if (cancelRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
requestUnion_ = value;
onChanged();
} else {
cancelRequestBuilder_.setMessage(value);
}
requestUnionCase_ = 2;
return this;
}
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
*/
public Builder setCancelRequest(
io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.Builder builderForValue) {
if (cancelRequestBuilder_ == null) {
requestUnion_ = builderForValue.build();
onChanged();
} else {
cancelRequestBuilder_.setMessage(builderForValue.build());
}
requestUnionCase_ = 2;
return this;
}
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
*/
public Builder mergeCancelRequest(io.helidon.config.etcd.internal.client.proto.WatchCancelRequest value) {
if (cancelRequestBuilder_ == null) {
if (requestUnionCase_ == 2 &&
requestUnion_ != io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.getDefaultInstance()) {
requestUnion_ = io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.newBuilder((io.helidon.config.etcd.internal.client.proto.WatchCancelRequest) requestUnion_)
.mergeFrom(value).buildPartial();
} else {
requestUnion_ = value;
}
onChanged();
} else {
if (requestUnionCase_ == 2) {
cancelRequestBuilder_.mergeFrom(value);
} else {
cancelRequestBuilder_.setMessage(value);
}
}
requestUnionCase_ = 2;
return this;
}
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
*/
public Builder clearCancelRequest() {
if (cancelRequestBuilder_ == null) {
if (requestUnionCase_ == 2) {
requestUnionCase_ = 0;
requestUnion_ = null;
onChanged();
}
} else {
if (requestUnionCase_ == 2) {
requestUnionCase_ = 0;
requestUnion_ = null;
}
cancelRequestBuilder_.clear();
}
return this;
}
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
*/
public io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.Builder getCancelRequestBuilder() {
return getCancelRequestFieldBuilder().getBuilder();
}
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchCancelRequestOrBuilder getCancelRequestOrBuilder() {
if ((requestUnionCase_ == 2) && (cancelRequestBuilder_ != null)) {
return cancelRequestBuilder_.getMessageOrBuilder();
} else {
if (requestUnionCase_ == 2) {
return (io.helidon.config.etcd.internal.client.proto.WatchCancelRequest) requestUnion_;
}
return io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.getDefaultInstance();
}
}
/**
* .etcdserverpb.WatchCancelRequest cancel_request = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.WatchCancelRequest, io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.Builder, io.helidon.config.etcd.internal.client.proto.WatchCancelRequestOrBuilder>
getCancelRequestFieldBuilder() {
if (cancelRequestBuilder_ == null) {
if (!(requestUnionCase_ == 2)) {
requestUnion_ = io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.getDefaultInstance();
}
cancelRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.WatchCancelRequest, io.helidon.config.etcd.internal.client.proto.WatchCancelRequest.Builder, io.helidon.config.etcd.internal.client.proto.WatchCancelRequestOrBuilder>(
(io.helidon.config.etcd.internal.client.proto.WatchCancelRequest) requestUnion_,
getParentForChildren(),
isClean());
requestUnion_ = null;
}
requestUnionCase_ = 2;
onChanged();;
return cancelRequestBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:etcdserverpb.WatchRequest)
}
// @@protoc_insertion_point(class_scope:etcdserverpb.WatchRequest)
private static final io.helidon.config.etcd.internal.client.proto.WatchRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.helidon.config.etcd.internal.client.proto.WatchRequest();
}
public static io.helidon.config.etcd.internal.client.proto.WatchRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WatchRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.WatchRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}