All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.etcd.jetcd.api.TxnRequest Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: rpc.proto

// Protobuf Java Version: 3.25.1
package io.etcd.jetcd.api;

/**
 * 
 * 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TxnRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.etcd.jetcd.api.JetcdProto.internal_static_etcdserverpb_TxnRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.etcd.jetcd.api.JetcdProto.internal_static_etcdserverpb_TxnRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.etcd.jetcd.api.TxnRequest.class, io.etcd.jetcd.api.TxnRequest.Builder.class); } public static final int COMPARE_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override public io.etcd.jetcd.api.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; */ @java.lang.Override public io.etcd.jetcd.api.CompareOrBuilder getCompareOrBuilder( int index) { return compare_.get(index); } public static final int SUCCESS_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override public io.etcd.jetcd.api.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; */ @java.lang.Override public io.etcd.jetcd.api.RequestOpOrBuilder getSuccessOrBuilder( int index) { return success_.get(index); } public static final int FAILURE_FIELD_NUMBER = 3; @SuppressWarnings("serial") 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override public io.etcd.jetcd.api.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; */ @java.lang.Override public io.etcd.jetcd.api.RequestOpOrBuilder getFailureOrBuilder( int index) { return failure_.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 { 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)); } getUnknownFields().writeTo(output); } @java.lang.Override 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 += 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.etcd.jetcd.api.TxnRequest)) { return super.equals(obj); } io.etcd.jetcd.api.TxnRequest other = (io.etcd.jetcd.api.TxnRequest) obj; if (!getCompareList() .equals(other.getCompareList())) return false; if (!getSuccessList() .equals(other.getSuccessList())) return false; if (!getFailureList() .equals(other.getFailureList())) 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 (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.etcd.jetcd.api.TxnRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.etcd.jetcd.api.TxnRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.etcd.jetcd.api.TxnRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.etcd.jetcd.api.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.etcd.jetcd.api.TxnRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.etcd.jetcd.api.TxnRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.etcd.jetcd.api.TxnRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.etcd.jetcd.api.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.etcd.jetcd.api.TxnRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.etcd.jetcd.api.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.etcd.jetcd.api.TxnRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.etcd.jetcd.api.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); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.etcd.jetcd.api.TxnRequest 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; } /** *
   * 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.etcd.jetcd.api.TxnRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.etcd.jetcd.api.JetcdProto.internal_static_etcdserverpb_TxnRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.etcd.jetcd.api.JetcdProto.internal_static_etcdserverpb_TxnRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.etcd.jetcd.api.TxnRequest.class, io.etcd.jetcd.api.TxnRequest.Builder.class); } // Construct using io.etcd.jetcd.api.TxnRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (compareBuilder_ == null) { compare_ = java.util.Collections.emptyList(); } else { compare_ = null; compareBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (successBuilder_ == null) { success_ = java.util.Collections.emptyList(); } else { success_ = null; successBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (failureBuilder_ == null) { failure_ = java.util.Collections.emptyList(); } else { failure_ = null; failureBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.etcd.jetcd.api.JetcdProto.internal_static_etcdserverpb_TxnRequest_descriptor; } @java.lang.Override public io.etcd.jetcd.api.TxnRequest getDefaultInstanceForType() { return io.etcd.jetcd.api.TxnRequest.getDefaultInstance(); } @java.lang.Override public io.etcd.jetcd.api.TxnRequest build() { io.etcd.jetcd.api.TxnRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.etcd.jetcd.api.TxnRequest buildPartial() { io.etcd.jetcd.api.TxnRequest result = new io.etcd.jetcd.api.TxnRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.etcd.jetcd.api.TxnRequest result) { if (compareBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { compare_ = java.util.Collections.unmodifiableList(compare_); bitField0_ = (bitField0_ & ~0x00000001); } result.compare_ = compare_; } else { result.compare_ = compareBuilder_.build(); } if (successBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { success_ = java.util.Collections.unmodifiableList(success_); bitField0_ = (bitField0_ & ~0x00000002); } result.success_ = success_; } else { result.success_ = successBuilder_.build(); } if (failureBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { failure_ = java.util.Collections.unmodifiableList(failure_); bitField0_ = (bitField0_ & ~0x00000004); } result.failure_ = failure_; } else { result.failure_ = failureBuilder_.build(); } } private void buildPartial0(io.etcd.jetcd.api.TxnRequest result) { int from_bitField0_ = bitField0_; } @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.etcd.jetcd.api.TxnRequest) { return mergeFrom((io.etcd.jetcd.api.TxnRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.etcd.jetcd.api.TxnRequest other) { if (other == io.etcd.jetcd.api.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.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: { io.etcd.jetcd.api.Compare m = input.readMessage( io.etcd.jetcd.api.Compare.parser(), extensionRegistry); if (compareBuilder_ == null) { ensureCompareIsMutable(); compare_.add(m); } else { compareBuilder_.addMessage(m); } break; } // case 10 case 18: { io.etcd.jetcd.api.RequestOp m = input.readMessage( io.etcd.jetcd.api.RequestOp.parser(), extensionRegistry); if (successBuilder_ == null) { ensureSuccessIsMutable(); success_.add(m); } else { successBuilder_.addMessage(m); } break; } // case 18 case 26: { io.etcd.jetcd.api.RequestOp m = input.readMessage( io.etcd.jetcd.api.RequestOp.parser(), extensionRegistry); if (failureBuilder_ == null) { ensureFailureIsMutable(); failure_.add(m); } else { failureBuilder_.addMessage(m); } break; } // case 26 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 java.util.List compare_ = java.util.Collections.emptyList(); private void ensureCompareIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { compare_ = new java.util.ArrayList(compare_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.etcd.jetcd.api.Compare, io.etcd.jetcd.api.Compare.Builder, io.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.Compare.Builder addCompareBuilder() { return getCompareFieldBuilder().addBuilder( io.etcd.jetcd.api.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.etcd.jetcd.api.Compare.Builder addCompareBuilder( int index) { return getCompareFieldBuilder().addBuilder( index, io.etcd.jetcd.api.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.etcd.jetcd.api.Compare, io.etcd.jetcd.api.Compare.Builder, io.etcd.jetcd.api.CompareOrBuilder> getCompareFieldBuilder() { if (compareBuilder_ == null) { compareBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.etcd.jetcd.api.Compare, io.etcd.jetcd.api.Compare.Builder, io.etcd.jetcd.api.CompareOrBuilder>( compare_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); compare_ = null; } return compareBuilder_; } private java.util.List success_ = java.util.Collections.emptyList(); private void ensureSuccessIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { success_ = new java.util.ArrayList(success_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.etcd.jetcd.api.RequestOp, io.etcd.jetcd.api.RequestOp.Builder, io.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.RequestOp.Builder addSuccessBuilder() { return getSuccessFieldBuilder().addBuilder( io.etcd.jetcd.api.RequestOp.getDefaultInstance()); } /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ public io.etcd.jetcd.api.RequestOp.Builder addSuccessBuilder( int index) { return getSuccessFieldBuilder().addBuilder( index, io.etcd.jetcd.api.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.etcd.jetcd.api.RequestOp, io.etcd.jetcd.api.RequestOp.Builder, io.etcd.jetcd.api.RequestOpOrBuilder> getSuccessFieldBuilder() { if (successBuilder_ == null) { successBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.etcd.jetcd.api.RequestOp, io.etcd.jetcd.api.RequestOp.Builder, io.etcd.jetcd.api.RequestOpOrBuilder>( success_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); success_ = null; } return successBuilder_; } private java.util.List failure_ = java.util.Collections.emptyList(); private void ensureFailureIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { failure_ = new java.util.ArrayList(failure_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.etcd.jetcd.api.RequestOp, io.etcd.jetcd.api.RequestOp.Builder, io.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.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.etcd.jetcd.api.RequestOp.Builder addFailureBuilder() { return getFailureFieldBuilder().addBuilder( io.etcd.jetcd.api.RequestOp.getDefaultInstance()); } /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ public io.etcd.jetcd.api.RequestOp.Builder addFailureBuilder( int index) { return getFailureFieldBuilder().addBuilder( index, io.etcd.jetcd.api.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.etcd.jetcd.api.RequestOp, io.etcd.jetcd.api.RequestOp.Builder, io.etcd.jetcd.api.RequestOpOrBuilder> getFailureFieldBuilder() { if (failureBuilder_ == null) { failureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.etcd.jetcd.api.RequestOp, io.etcd.jetcd.api.RequestOp.Builder, io.etcd.jetcd.api.RequestOpOrBuilder>( failure_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); failure_ = null; } return failureBuilder_; } @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.TxnRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.TxnRequest) private static final io.etcd.jetcd.api.TxnRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.etcd.jetcd.api.TxnRequest(); } public static io.etcd.jetcd.api.TxnRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TxnRequest 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.etcd.jetcd.api.TxnRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy