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

com.ibm.etcd.api.TxnRequest Maven / Gradle / Ivy

There is a newer version: 0.0.24
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: rpc.proto

package com.ibm.etcd.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(); } @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; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { compare_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } compare_.add( input.readMessage(com.ibm.etcd.api.Compare.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { success_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } success_.add( input.readMessage(com.ibm.etcd.api.RequestOp.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { failure_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } failure_.add( input.readMessage(com.ibm.etcd.api.RequestOp.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { compare_ = java.util.Collections.unmodifiableList(compare_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { success_ = java.util.Collections.unmodifiableList(success_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { failure_ = java.util.Collections.unmodifiableList(failure_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.ibm.etcd.api.Rpc.internal_static_etcdserverpb_TxnRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.ibm.etcd.api.Rpc.internal_static_etcdserverpb_TxnRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.ibm.etcd.api.TxnRequest.class, com.ibm.etcd.api.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; */ @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 com.ibm.etcd.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 com.ibm.etcd.api.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; */ @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 com.ibm.etcd.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 com.ibm.etcd.api.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; */ @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 com.ibm.etcd.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 com.ibm.etcd.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)); } unknownFields.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 += 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 com.ibm.etcd.api.TxnRequest)) { return super.equals(obj); } com.ibm.etcd.api.TxnRequest other = (com.ibm.etcd.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.ibm.etcd.api.TxnRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.ibm.etcd.api.TxnRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.ibm.etcd.api.TxnRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.ibm.etcd.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 com.ibm.etcd.api.TxnRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.ibm.etcd.api.TxnRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.ibm.etcd.api.TxnRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.ibm.etcd.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 com.ibm.etcd.api.TxnRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.ibm.etcd.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 com.ibm.etcd.api.TxnRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.ibm.etcd.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(com.ibm.etcd.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) com.ibm.etcd.api.TxnRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.ibm.etcd.api.Rpc.internal_static_etcdserverpb_TxnRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.ibm.etcd.api.Rpc.internal_static_etcdserverpb_TxnRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.ibm.etcd.api.TxnRequest.class, com.ibm.etcd.api.TxnRequest.Builder.class); } // Construct using com.ibm.etcd.api.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(); } } @java.lang.Override 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; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.ibm.etcd.api.Rpc.internal_static_etcdserverpb_TxnRequest_descriptor; } @java.lang.Override public com.ibm.etcd.api.TxnRequest getDefaultInstanceForType() { return com.ibm.etcd.api.TxnRequest.getDefaultInstance(); } @java.lang.Override public com.ibm.etcd.api.TxnRequest build() { com.ibm.etcd.api.TxnRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.ibm.etcd.api.TxnRequest buildPartial() { com.ibm.etcd.api.TxnRequest result = new com.ibm.etcd.api.TxnRequest(this); int from_bitField0_ = bitField0_; 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(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.ibm.etcd.api.TxnRequest) { return mergeFrom((com.ibm.etcd.api.TxnRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.ibm.etcd.api.TxnRequest other) { if (other == com.ibm.etcd.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.unknownFields); 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 { com.ibm.etcd.api.TxnRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.ibm.etcd.api.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) != 0)) { compare_ = new java.util.ArrayList(compare_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.ibm.etcd.api.Compare, com.ibm.etcd.api.Compare.Builder, com.ibm.etcd.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 com.ibm.etcd.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, com.ibm.etcd.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, com.ibm.etcd.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(com.ibm.etcd.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, com.ibm.etcd.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( com.ibm.etcd.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, com.ibm.etcd.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 com.ibm.etcd.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 com.ibm.etcd.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 com.ibm.etcd.api.Compare.Builder addCompareBuilder() { return getCompareFieldBuilder().addBuilder( com.ibm.etcd.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 com.ibm.etcd.api.Compare.Builder addCompareBuilder( int index) { return getCompareFieldBuilder().addBuilder( index, com.ibm.etcd.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< com.ibm.etcd.api.Compare, com.ibm.etcd.api.Compare.Builder, com.ibm.etcd.api.CompareOrBuilder> getCompareFieldBuilder() { if (compareBuilder_ == null) { compareBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.ibm.etcd.api.Compare, com.ibm.etcd.api.Compare.Builder, com.ibm.etcd.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< com.ibm.etcd.api.RequestOp, com.ibm.etcd.api.RequestOp.Builder, com.ibm.etcd.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 com.ibm.etcd.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, com.ibm.etcd.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, com.ibm.etcd.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(com.ibm.etcd.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, com.ibm.etcd.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( com.ibm.etcd.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, com.ibm.etcd.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 com.ibm.etcd.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 com.ibm.etcd.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 com.ibm.etcd.api.RequestOp.Builder addSuccessBuilder() { return getSuccessFieldBuilder().addBuilder( com.ibm.etcd.api.RequestOp.getDefaultInstance()); } /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ public com.ibm.etcd.api.RequestOp.Builder addSuccessBuilder( int index) { return getSuccessFieldBuilder().addBuilder( index, com.ibm.etcd.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< com.ibm.etcd.api.RequestOp, com.ibm.etcd.api.RequestOp.Builder, com.ibm.etcd.api.RequestOpOrBuilder> getSuccessFieldBuilder() { if (successBuilder_ == null) { successBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.ibm.etcd.api.RequestOp, com.ibm.etcd.api.RequestOp.Builder, com.ibm.etcd.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< com.ibm.etcd.api.RequestOp, com.ibm.etcd.api.RequestOp.Builder, com.ibm.etcd.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 com.ibm.etcd.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, com.ibm.etcd.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, com.ibm.etcd.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(com.ibm.etcd.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, com.ibm.etcd.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( com.ibm.etcd.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, com.ibm.etcd.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 com.ibm.etcd.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 com.ibm.etcd.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 com.ibm.etcd.api.RequestOp.Builder addFailureBuilder() { return getFailureFieldBuilder().addBuilder( com.ibm.etcd.api.RequestOp.getDefaultInstance()); } /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ public com.ibm.etcd.api.RequestOp.Builder addFailureBuilder( int index) { return getFailureFieldBuilder().addBuilder( index, com.ibm.etcd.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< com.ibm.etcd.api.RequestOp, com.ibm.etcd.api.RequestOp.Builder, com.ibm.etcd.api.RequestOpOrBuilder> getFailureFieldBuilder() { if (failureBuilder_ == null) { failureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.ibm.etcd.api.RequestOp, com.ibm.etcd.api.RequestOp.Builder, com.ibm.etcd.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 com.ibm.etcd.api.TxnRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.ibm.etcd.api.TxnRequest(); } public static com.ibm.etcd.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 { 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; } @java.lang.Override public com.ibm.etcd.api.TxnRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy