io.helidon.config.etcd.internal.client.proto.TxnRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of helidon-config-etcd Show documentation
Show all versions of helidon-config-etcd Show documentation
etcd config source implementation.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rpc.proto
package io.helidon.config.etcd.internal.client.proto;
/**
*
* From google paxosdb paper:
* Our implementation hinges around a powerful primitive which we call MultiOp. All other database
* operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically
* and consists of three components:
* 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check
* for the absence or presence of a value, or compare with a given value. Two different tests in the guard
* may apply to the same or different entries in the database. All tests in the guard are applied and
* MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise
* it executes f op (see item 3 below).
* 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or
* lookup operation, and applies to a single database entry. Two different operations in the list may apply
* to the same or different entries in the database. These operations are executed
* if guard evaluates to
* true.
* 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.
*
*
* Protobuf type {@code etcdserverpb.TxnRequest}
*/
public final class TxnRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:etcdserverpb.TxnRequest)
TxnRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TxnRequest.newBuilder() to construct.
private TxnRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private TxnRequest() {
compare_ = java.util.Collections.emptyList();
success_ = java.util.Collections.emptyList();
failure_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TxnRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
compare_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
compare_.add(
input.readMessage(io.helidon.config.etcd.internal.client.proto.Compare.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
success_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
success_.add(
input.readMessage(io.helidon.config.etcd.internal.client.proto.RequestOp.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
failure_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
failure_.add(
input.readMessage(io.helidon.config.etcd.internal.client.proto.RequestOp.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
compare_ = java.util.Collections.unmodifiableList(compare_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
success_ = java.util.Collections.unmodifiableList(success_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
failure_ = java.util.Collections.unmodifiableList(failure_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_TxnRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_TxnRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.helidon.config.etcd.internal.client.proto.TxnRequest.class, io.helidon.config.etcd.internal.client.proto.TxnRequest.Builder.class);
}
public static final int COMPARE_FIELD_NUMBER = 1;
private java.util.List compare_;
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public java.util.List getCompareList() {
return compare_;
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public java.util.List
getCompareOrBuilderList() {
return compare_;
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public int getCompareCount() {
return compare_.size();
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public io.helidon.config.etcd.internal.client.proto.Compare getCompare(int index) {
return compare_.get(index);
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public io.helidon.config.etcd.internal.client.proto.CompareOrBuilder getCompareOrBuilder(
int index) {
return compare_.get(index);
}
public static final int SUCCESS_FIELD_NUMBER = 2;
private java.util.List success_;
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public java.util.List getSuccessList() {
return success_;
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public java.util.List
getSuccessOrBuilderList() {
return success_;
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public int getSuccessCount() {
return success_.size();
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOp getSuccess(int index) {
return success_.get(index);
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOpOrBuilder getSuccessOrBuilder(
int index) {
return success_.get(index);
}
public static final int FAILURE_FIELD_NUMBER = 3;
private java.util.List failure_;
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public java.util.List getFailureList() {
return failure_;
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public java.util.List
getFailureOrBuilderList() {
return failure_;
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public int getFailureCount() {
return failure_.size();
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOp getFailure(int index) {
return failure_.get(index);
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOpOrBuilder getFailureOrBuilder(
int index) {
return failure_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < compare_.size(); i++) {
output.writeMessage(1, compare_.get(i));
}
for (int i = 0; i < success_.size(); i++) {
output.writeMessage(2, success_.get(i));
}
for (int i = 0; i < failure_.size(); i++) {
output.writeMessage(3, failure_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < compare_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, compare_.get(i));
}
for (int i = 0; i < success_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, success_.get(i));
}
for (int i = 0; i < failure_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, failure_.get(i));
}
size += unknownFields.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.TxnRequest)) {
return super.equals(obj);
}
io.helidon.config.etcd.internal.client.proto.TxnRequest other = (io.helidon.config.etcd.internal.client.proto.TxnRequest) obj;
boolean result = true;
result = result && getCompareList()
.equals(other.getCompareList());
result = result && getSuccessList()
.equals(other.getSuccessList());
result = result && getFailureList()
.equals(other.getFailureList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getCompareCount() > 0) {
hash = (37 * hash) + COMPARE_FIELD_NUMBER;
hash = (53 * hash) + getCompareList().hashCode();
}
if (getSuccessCount() > 0) {
hash = (37 * hash) + SUCCESS_FIELD_NUMBER;
hash = (53 * hash) + getSuccessList().hashCode();
}
if (getFailureCount() > 0) {
hash = (37 * hash) + FAILURE_FIELD_NUMBER;
hash = (53 * hash) + getFailureList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.helidon.config.etcd.internal.client.proto.TxnRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.helidon.config.etcd.internal.client.proto.TxnRequest 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.TxnRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.helidon.config.etcd.internal.client.proto.TxnRequest 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.TxnRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.helidon.config.etcd.internal.client.proto.TxnRequest 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.TxnRequest 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.TxnRequest 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.TxnRequest 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.TxnRequest 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.TxnRequest 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.TxnRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.helidon.config.etcd.internal.client.proto.TxnRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* From google paxosdb paper:
* Our implementation hinges around a powerful primitive which we call MultiOp. All other database
* operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically
* and consists of three components:
* 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check
* for the absence or presence of a value, or compare with a given value. Two different tests in the guard
* may apply to the same or different entries in the database. All tests in the guard are applied and
* MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise
* it executes f op (see item 3 below).
* 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or
* lookup operation, and applies to a single database entry. Two different operations in the list may apply
* to the same or different entries in the database. These operations are executed
* if guard evaluates to
* true.
* 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.
*
*
* Protobuf type {@code etcdserverpb.TxnRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:etcdserverpb.TxnRequest)
io.helidon.config.etcd.internal.client.proto.TxnRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_TxnRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_TxnRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.helidon.config.etcd.internal.client.proto.TxnRequest.class, io.helidon.config.etcd.internal.client.proto.TxnRequest.Builder.class);
}
// Construct using io.helidon.config.etcd.internal.client.proto.TxnRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCompareFieldBuilder();
getSuccessFieldBuilder();
getFailureFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (compareBuilder_ == null) {
compare_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
compareBuilder_.clear();
}
if (successBuilder_ == null) {
success_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
successBuilder_.clear();
}
if (failureBuilder_ == null) {
failure_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
failureBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_TxnRequest_descriptor;
}
public io.helidon.config.etcd.internal.client.proto.TxnRequest getDefaultInstanceForType() {
return io.helidon.config.etcd.internal.client.proto.TxnRequest.getDefaultInstance();
}
public io.helidon.config.etcd.internal.client.proto.TxnRequest build() {
io.helidon.config.etcd.internal.client.proto.TxnRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.helidon.config.etcd.internal.client.proto.TxnRequest buildPartial() {
io.helidon.config.etcd.internal.client.proto.TxnRequest result = new io.helidon.config.etcd.internal.client.proto.TxnRequest(this);
int from_bitField0_ = bitField0_;
if (compareBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
compare_ = java.util.Collections.unmodifiableList(compare_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.compare_ = compare_;
} else {
result.compare_ = compareBuilder_.build();
}
if (successBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
success_ = java.util.Collections.unmodifiableList(success_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.success_ = success_;
} else {
result.success_ = successBuilder_.build();
}
if (failureBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
failure_ = java.util.Collections.unmodifiableList(failure_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.failure_ = failure_;
} else {
result.failure_ = failureBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.helidon.config.etcd.internal.client.proto.TxnRequest) {
return mergeFrom((io.helidon.config.etcd.internal.client.proto.TxnRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.helidon.config.etcd.internal.client.proto.TxnRequest other) {
if (other == io.helidon.config.etcd.internal.client.proto.TxnRequest.getDefaultInstance()) return this;
if (compareBuilder_ == null) {
if (!other.compare_.isEmpty()) {
if (compare_.isEmpty()) {
compare_ = other.compare_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCompareIsMutable();
compare_.addAll(other.compare_);
}
onChanged();
}
} else {
if (!other.compare_.isEmpty()) {
if (compareBuilder_.isEmpty()) {
compareBuilder_.dispose();
compareBuilder_ = null;
compare_ = other.compare_;
bitField0_ = (bitField0_ & ~0x00000001);
compareBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCompareFieldBuilder() : null;
} else {
compareBuilder_.addAllMessages(other.compare_);
}
}
}
if (successBuilder_ == null) {
if (!other.success_.isEmpty()) {
if (success_.isEmpty()) {
success_ = other.success_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSuccessIsMutable();
success_.addAll(other.success_);
}
onChanged();
}
} else {
if (!other.success_.isEmpty()) {
if (successBuilder_.isEmpty()) {
successBuilder_.dispose();
successBuilder_ = null;
success_ = other.success_;
bitField0_ = (bitField0_ & ~0x00000002);
successBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSuccessFieldBuilder() : null;
} else {
successBuilder_.addAllMessages(other.success_);
}
}
}
if (failureBuilder_ == null) {
if (!other.failure_.isEmpty()) {
if (failure_.isEmpty()) {
failure_ = other.failure_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFailureIsMutable();
failure_.addAll(other.failure_);
}
onChanged();
}
} else {
if (!other.failure_.isEmpty()) {
if (failureBuilder_.isEmpty()) {
failureBuilder_.dispose();
failureBuilder_ = null;
failure_ = other.failure_;
bitField0_ = (bitField0_ & ~0x00000004);
failureBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFailureFieldBuilder() : null;
} else {
failureBuilder_.addAllMessages(other.failure_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.helidon.config.etcd.internal.client.proto.TxnRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.helidon.config.etcd.internal.client.proto.TxnRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List compare_ =
java.util.Collections.emptyList();
private void ensureCompareIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
compare_ = new java.util.ArrayList(compare_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.Compare, io.helidon.config.etcd.internal.client.proto.Compare.Builder, io.helidon.config.etcd.internal.client.proto.CompareOrBuilder> compareBuilder_;
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public java.util.List getCompareList() {
if (compareBuilder_ == null) {
return java.util.Collections.unmodifiableList(compare_);
} else {
return compareBuilder_.getMessageList();
}
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public int getCompareCount() {
if (compareBuilder_ == null) {
return compare_.size();
} else {
return compareBuilder_.getCount();
}
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public io.helidon.config.etcd.internal.client.proto.Compare getCompare(int index) {
if (compareBuilder_ == null) {
return compare_.get(index);
} else {
return compareBuilder_.getMessage(index);
}
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public Builder setCompare(
int index, io.helidon.config.etcd.internal.client.proto.Compare value) {
if (compareBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompareIsMutable();
compare_.set(index, value);
onChanged();
} else {
compareBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public Builder setCompare(
int index, io.helidon.config.etcd.internal.client.proto.Compare.Builder builderForValue) {
if (compareBuilder_ == null) {
ensureCompareIsMutable();
compare_.set(index, builderForValue.build());
onChanged();
} else {
compareBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public Builder addCompare(io.helidon.config.etcd.internal.client.proto.Compare value) {
if (compareBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompareIsMutable();
compare_.add(value);
onChanged();
} else {
compareBuilder_.addMessage(value);
}
return this;
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public Builder addCompare(
int index, io.helidon.config.etcd.internal.client.proto.Compare value) {
if (compareBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompareIsMutable();
compare_.add(index, value);
onChanged();
} else {
compareBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public Builder addCompare(
io.helidon.config.etcd.internal.client.proto.Compare.Builder builderForValue) {
if (compareBuilder_ == null) {
ensureCompareIsMutable();
compare_.add(builderForValue.build());
onChanged();
} else {
compareBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public Builder addCompare(
int index, io.helidon.config.etcd.internal.client.proto.Compare.Builder builderForValue) {
if (compareBuilder_ == null) {
ensureCompareIsMutable();
compare_.add(index, builderForValue.build());
onChanged();
} else {
compareBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public Builder addAllCompare(
java.lang.Iterable values) {
if (compareBuilder_ == null) {
ensureCompareIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, compare_);
onChanged();
} else {
compareBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public Builder clearCompare() {
if (compareBuilder_ == null) {
compare_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
compareBuilder_.clear();
}
return this;
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public Builder removeCompare(int index) {
if (compareBuilder_ == null) {
ensureCompareIsMutable();
compare_.remove(index);
onChanged();
} else {
compareBuilder_.remove(index);
}
return this;
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public io.helidon.config.etcd.internal.client.proto.Compare.Builder getCompareBuilder(
int index) {
return getCompareFieldBuilder().getBuilder(index);
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public io.helidon.config.etcd.internal.client.proto.CompareOrBuilder getCompareOrBuilder(
int index) {
if (compareBuilder_ == null) {
return compare_.get(index); } else {
return compareBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public java.util.List
getCompareOrBuilderList() {
if (compareBuilder_ != null) {
return compareBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(compare_);
}
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public io.helidon.config.etcd.internal.client.proto.Compare.Builder addCompareBuilder() {
return getCompareFieldBuilder().addBuilder(
io.helidon.config.etcd.internal.client.proto.Compare.getDefaultInstance());
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public io.helidon.config.etcd.internal.client.proto.Compare.Builder addCompareBuilder(
int index) {
return getCompareFieldBuilder().addBuilder(
index, io.helidon.config.etcd.internal.client.proto.Compare.getDefaultInstance());
}
/**
*
* compare is a list of predicates representing a conjunction of terms.
* If the comparisons succeed, then the success requests will be processed in order,
* and the response will contain their respective responses in order.
* If the comparisons fail, then the failure requests will be processed in order,
* and the response will contain their respective responses in order.
*
*
* repeated .etcdserverpb.Compare compare = 1;
*/
public java.util.List
getCompareBuilderList() {
return getCompareFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.Compare, io.helidon.config.etcd.internal.client.proto.Compare.Builder, io.helidon.config.etcd.internal.client.proto.CompareOrBuilder>
getCompareFieldBuilder() {
if (compareBuilder_ == null) {
compareBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.Compare, io.helidon.config.etcd.internal.client.proto.Compare.Builder, io.helidon.config.etcd.internal.client.proto.CompareOrBuilder>(
compare_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
compare_ = null;
}
return compareBuilder_;
}
private java.util.List success_ =
java.util.Collections.emptyList();
private void ensureSuccessIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
success_ = new java.util.ArrayList(success_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.RequestOp, io.helidon.config.etcd.internal.client.proto.RequestOp.Builder, io.helidon.config.etcd.internal.client.proto.RequestOpOrBuilder> successBuilder_;
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public java.util.List getSuccessList() {
if (successBuilder_ == null) {
return java.util.Collections.unmodifiableList(success_);
} else {
return successBuilder_.getMessageList();
}
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public int getSuccessCount() {
if (successBuilder_ == null) {
return success_.size();
} else {
return successBuilder_.getCount();
}
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOp getSuccess(int index) {
if (successBuilder_ == null) {
return success_.get(index);
} else {
return successBuilder_.getMessage(index);
}
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public Builder setSuccess(
int index, io.helidon.config.etcd.internal.client.proto.RequestOp value) {
if (successBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSuccessIsMutable();
success_.set(index, value);
onChanged();
} else {
successBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public Builder setSuccess(
int index, io.helidon.config.etcd.internal.client.proto.RequestOp.Builder builderForValue) {
if (successBuilder_ == null) {
ensureSuccessIsMutable();
success_.set(index, builderForValue.build());
onChanged();
} else {
successBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public Builder addSuccess(io.helidon.config.etcd.internal.client.proto.RequestOp value) {
if (successBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSuccessIsMutable();
success_.add(value);
onChanged();
} else {
successBuilder_.addMessage(value);
}
return this;
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public Builder addSuccess(
int index, io.helidon.config.etcd.internal.client.proto.RequestOp value) {
if (successBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSuccessIsMutable();
success_.add(index, value);
onChanged();
} else {
successBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public Builder addSuccess(
io.helidon.config.etcd.internal.client.proto.RequestOp.Builder builderForValue) {
if (successBuilder_ == null) {
ensureSuccessIsMutable();
success_.add(builderForValue.build());
onChanged();
} else {
successBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public Builder addSuccess(
int index, io.helidon.config.etcd.internal.client.proto.RequestOp.Builder builderForValue) {
if (successBuilder_ == null) {
ensureSuccessIsMutable();
success_.add(index, builderForValue.build());
onChanged();
} else {
successBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public Builder addAllSuccess(
java.lang.Iterable values) {
if (successBuilder_ == null) {
ensureSuccessIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, success_);
onChanged();
} else {
successBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public Builder clearSuccess() {
if (successBuilder_ == null) {
success_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
successBuilder_.clear();
}
return this;
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public Builder removeSuccess(int index) {
if (successBuilder_ == null) {
ensureSuccessIsMutable();
success_.remove(index);
onChanged();
} else {
successBuilder_.remove(index);
}
return this;
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOp.Builder getSuccessBuilder(
int index) {
return getSuccessFieldBuilder().getBuilder(index);
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOpOrBuilder getSuccessOrBuilder(
int index) {
if (successBuilder_ == null) {
return success_.get(index); } else {
return successBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public java.util.List
getSuccessOrBuilderList() {
if (successBuilder_ != null) {
return successBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(success_);
}
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOp.Builder addSuccessBuilder() {
return getSuccessFieldBuilder().addBuilder(
io.helidon.config.etcd.internal.client.proto.RequestOp.getDefaultInstance());
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOp.Builder addSuccessBuilder(
int index) {
return getSuccessFieldBuilder().addBuilder(
index, io.helidon.config.etcd.internal.client.proto.RequestOp.getDefaultInstance());
}
/**
*
* success is a list of requests which will be applied when compare evaluates to true.
*
*
* repeated .etcdserverpb.RequestOp success = 2;
*/
public java.util.List
getSuccessBuilderList() {
return getSuccessFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.RequestOp, io.helidon.config.etcd.internal.client.proto.RequestOp.Builder, io.helidon.config.etcd.internal.client.proto.RequestOpOrBuilder>
getSuccessFieldBuilder() {
if (successBuilder_ == null) {
successBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.RequestOp, io.helidon.config.etcd.internal.client.proto.RequestOp.Builder, io.helidon.config.etcd.internal.client.proto.RequestOpOrBuilder>(
success_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
success_ = null;
}
return successBuilder_;
}
private java.util.List failure_ =
java.util.Collections.emptyList();
private void ensureFailureIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
failure_ = new java.util.ArrayList(failure_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.RequestOp, io.helidon.config.etcd.internal.client.proto.RequestOp.Builder, io.helidon.config.etcd.internal.client.proto.RequestOpOrBuilder> failureBuilder_;
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public java.util.List getFailureList() {
if (failureBuilder_ == null) {
return java.util.Collections.unmodifiableList(failure_);
} else {
return failureBuilder_.getMessageList();
}
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public int getFailureCount() {
if (failureBuilder_ == null) {
return failure_.size();
} else {
return failureBuilder_.getCount();
}
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOp getFailure(int index) {
if (failureBuilder_ == null) {
return failure_.get(index);
} else {
return failureBuilder_.getMessage(index);
}
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public Builder setFailure(
int index, io.helidon.config.etcd.internal.client.proto.RequestOp value) {
if (failureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFailureIsMutable();
failure_.set(index, value);
onChanged();
} else {
failureBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public Builder setFailure(
int index, io.helidon.config.etcd.internal.client.proto.RequestOp.Builder builderForValue) {
if (failureBuilder_ == null) {
ensureFailureIsMutable();
failure_.set(index, builderForValue.build());
onChanged();
} else {
failureBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public Builder addFailure(io.helidon.config.etcd.internal.client.proto.RequestOp value) {
if (failureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFailureIsMutable();
failure_.add(value);
onChanged();
} else {
failureBuilder_.addMessage(value);
}
return this;
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public Builder addFailure(
int index, io.helidon.config.etcd.internal.client.proto.RequestOp value) {
if (failureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFailureIsMutable();
failure_.add(index, value);
onChanged();
} else {
failureBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public Builder addFailure(
io.helidon.config.etcd.internal.client.proto.RequestOp.Builder builderForValue) {
if (failureBuilder_ == null) {
ensureFailureIsMutable();
failure_.add(builderForValue.build());
onChanged();
} else {
failureBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public Builder addFailure(
int index, io.helidon.config.etcd.internal.client.proto.RequestOp.Builder builderForValue) {
if (failureBuilder_ == null) {
ensureFailureIsMutable();
failure_.add(index, builderForValue.build());
onChanged();
} else {
failureBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public Builder addAllFailure(
java.lang.Iterable values) {
if (failureBuilder_ == null) {
ensureFailureIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, failure_);
onChanged();
} else {
failureBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public Builder clearFailure() {
if (failureBuilder_ == null) {
failure_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
failureBuilder_.clear();
}
return this;
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public Builder removeFailure(int index) {
if (failureBuilder_ == null) {
ensureFailureIsMutable();
failure_.remove(index);
onChanged();
} else {
failureBuilder_.remove(index);
}
return this;
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOp.Builder getFailureBuilder(
int index) {
return getFailureFieldBuilder().getBuilder(index);
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOpOrBuilder getFailureOrBuilder(
int index) {
if (failureBuilder_ == null) {
return failure_.get(index); } else {
return failureBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public java.util.List
getFailureOrBuilderList() {
if (failureBuilder_ != null) {
return failureBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(failure_);
}
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOp.Builder addFailureBuilder() {
return getFailureFieldBuilder().addBuilder(
io.helidon.config.etcd.internal.client.proto.RequestOp.getDefaultInstance());
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public io.helidon.config.etcd.internal.client.proto.RequestOp.Builder addFailureBuilder(
int index) {
return getFailureFieldBuilder().addBuilder(
index, io.helidon.config.etcd.internal.client.proto.RequestOp.getDefaultInstance());
}
/**
*
* failure is a list of requests which will be applied when compare evaluates to false.
*
*
* repeated .etcdserverpb.RequestOp failure = 3;
*/
public java.util.List
getFailureBuilderList() {
return getFailureFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.RequestOp, io.helidon.config.etcd.internal.client.proto.RequestOp.Builder, io.helidon.config.etcd.internal.client.proto.RequestOpOrBuilder>
getFailureFieldBuilder() {
if (failureBuilder_ == null) {
failureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.helidon.config.etcd.internal.client.proto.RequestOp, io.helidon.config.etcd.internal.client.proto.RequestOp.Builder, io.helidon.config.etcd.internal.client.proto.RequestOpOrBuilder>(
failure_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
failure_ = null;
}
return failureBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:etcdserverpb.TxnRequest)
}
// @@protoc_insertion_point(class_scope:etcdserverpb.TxnRequest)
private static final io.helidon.config.etcd.internal.client.proto.TxnRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.helidon.config.etcd.internal.client.proto.TxnRequest();
}
public static io.helidon.config.etcd.internal.client.proto.TxnRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TxnRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TxnRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.helidon.config.etcd.internal.client.proto.TxnRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}