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

etcdserverpb.Rpc Maven / Gradle / Ivy

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

package etcdserverpb;

public final class Rpc {
  private Rpc() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code etcdserverpb.AlarmType}
   */
  public enum AlarmType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * default, used to query if any alarm is active
     * 
* * NONE = 0; */ NONE(0), /** *
     * space quota is exhausted
     * 
* * NOSPACE = 1; */ NOSPACE(1), UNRECOGNIZED(-1), ; /** *
     * default, used to query if any alarm is active
     * 
* * NONE = 0; */ public static final int NONE_VALUE = 0; /** *
     * space quota is exhausted
     * 
* * NOSPACE = 1; */ public static final int NOSPACE_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AlarmType valueOf(int value) { return forNumber(value); } public static AlarmType forNumber(int value) { switch (value) { case 0: return NONE; case 1: return NOSPACE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AlarmType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AlarmType findValueByNumber(int number) { return AlarmType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return etcdserverpb.Rpc.getDescriptor().getEnumTypes().get(0); } private static final AlarmType[] VALUES = values(); public static AlarmType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private AlarmType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:etcdserverpb.AlarmType) } public interface ResponseHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.ResponseHeader) com.google.protobuf.MessageOrBuilder { /** *
     * cluster_id is the ID of the cluster which sent the response.
     * 
* * uint64 cluster_id = 1; */ long getClusterId(); /** *
     * member_id is the ID of the member which sent the response.
     * 
* * uint64 member_id = 2; */ long getMemberId(); /** *
     * revision is the key-value store revision when the request was applied.
     * 
* * int64 revision = 3; */ long getRevision(); /** *
     * raft_term is the raft term when the request was applied.
     * 
* * uint64 raft_term = 4; */ long getRaftTerm(); } /** * Protobuf type {@code etcdserverpb.ResponseHeader} */ public static final class ResponseHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.ResponseHeader) ResponseHeaderOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseHeader.newBuilder() to construct. private ResponseHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseHeader() { clusterId_ = 0L; memberId_ = 0L; revision_ = 0L; raftTerm_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResponseHeader( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { clusterId_ = input.readUInt64(); break; } case 16: { memberId_ = input.readUInt64(); break; } case 24: { revision_ = input.readInt64(); break; } case 32: { raftTerm_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_ResponseHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_ResponseHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.ResponseHeader.class, etcdserverpb.Rpc.ResponseHeader.Builder.class); } public static final int CLUSTER_ID_FIELD_NUMBER = 1; private long clusterId_; /** *
     * cluster_id is the ID of the cluster which sent the response.
     * 
* * uint64 cluster_id = 1; */ public long getClusterId() { return clusterId_; } public static final int MEMBER_ID_FIELD_NUMBER = 2; private long memberId_; /** *
     * member_id is the ID of the member which sent the response.
     * 
* * uint64 member_id = 2; */ public long getMemberId() { return memberId_; } public static final int REVISION_FIELD_NUMBER = 3; private long revision_; /** *
     * revision is the key-value store revision when the request was applied.
     * 
* * int64 revision = 3; */ public long getRevision() { return revision_; } public static final int RAFT_TERM_FIELD_NUMBER = 4; private long raftTerm_; /** *
     * raft_term is the raft term when the request was applied.
     * 
* * uint64 raft_term = 4; */ public long getRaftTerm() { return raftTerm_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (clusterId_ != 0L) { output.writeUInt64(1, clusterId_); } if (memberId_ != 0L) { output.writeUInt64(2, memberId_); } if (revision_ != 0L) { output.writeInt64(3, revision_); } if (raftTerm_ != 0L) { output.writeUInt64(4, raftTerm_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (clusterId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, clusterId_); } if (memberId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, memberId_); } if (revision_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, revision_); } if (raftTerm_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, raftTerm_); } 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 etcdserverpb.Rpc.ResponseHeader)) { return super.equals(obj); } etcdserverpb.Rpc.ResponseHeader other = (etcdserverpb.Rpc.ResponseHeader) obj; boolean result = true; result = result && (getClusterId() == other.getClusterId()); result = result && (getMemberId() == other.getMemberId()); result = result && (getRevision() == other.getRevision()); result = result && (getRaftTerm() == other.getRaftTerm()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getClusterId()); hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemberId()); hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRevision()); hash = (37 * hash) + RAFT_TERM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRaftTerm()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.ResponseHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.ResponseHeader parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.ResponseHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.ResponseHeader parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.ResponseHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.ResponseHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.ResponseHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.ResponseHeader 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 etcdserverpb.Rpc.ResponseHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.ResponseHeader 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 etcdserverpb.Rpc.ResponseHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.ResponseHeader parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.ResponseHeader prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.ResponseHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.ResponseHeader) etcdserverpb.Rpc.ResponseHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_ResponseHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_ResponseHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.ResponseHeader.class, etcdserverpb.Rpc.ResponseHeader.Builder.class); } // Construct using etcdserverpb.Rpc.ResponseHeader.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); clusterId_ = 0L; memberId_ = 0L; revision_ = 0L; raftTerm_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_ResponseHeader_descriptor; } public etcdserverpb.Rpc.ResponseHeader getDefaultInstanceForType() { return etcdserverpb.Rpc.ResponseHeader.getDefaultInstance(); } public etcdserverpb.Rpc.ResponseHeader build() { etcdserverpb.Rpc.ResponseHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.ResponseHeader buildPartial() { etcdserverpb.Rpc.ResponseHeader result = new etcdserverpb.Rpc.ResponseHeader(this); result.clusterId_ = clusterId_; result.memberId_ = memberId_; result.revision_ = revision_; result.raftTerm_ = raftTerm_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.ResponseHeader) { return mergeFrom((etcdserverpb.Rpc.ResponseHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.ResponseHeader other) { if (other == etcdserverpb.Rpc.ResponseHeader.getDefaultInstance()) return this; if (other.getClusterId() != 0L) { setClusterId(other.getClusterId()); } if (other.getMemberId() != 0L) { setMemberId(other.getMemberId()); } if (other.getRevision() != 0L) { setRevision(other.getRevision()); } if (other.getRaftTerm() != 0L) { setRaftTerm(other.getRaftTerm()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.ResponseHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.ResponseHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long clusterId_ ; /** *
       * cluster_id is the ID of the cluster which sent the response.
       * 
* * uint64 cluster_id = 1; */ public long getClusterId() { return clusterId_; } /** *
       * cluster_id is the ID of the cluster which sent the response.
       * 
* * uint64 cluster_id = 1; */ public Builder setClusterId(long value) { clusterId_ = value; onChanged(); return this; } /** *
       * cluster_id is the ID of the cluster which sent the response.
       * 
* * uint64 cluster_id = 1; */ public Builder clearClusterId() { clusterId_ = 0L; onChanged(); return this; } private long memberId_ ; /** *
       * member_id is the ID of the member which sent the response.
       * 
* * uint64 member_id = 2; */ public long getMemberId() { return memberId_; } /** *
       * member_id is the ID of the member which sent the response.
       * 
* * uint64 member_id = 2; */ public Builder setMemberId(long value) { memberId_ = value; onChanged(); return this; } /** *
       * member_id is the ID of the member which sent the response.
       * 
* * uint64 member_id = 2; */ public Builder clearMemberId() { memberId_ = 0L; onChanged(); return this; } private long revision_ ; /** *
       * revision is the key-value store revision when the request was applied.
       * 
* * int64 revision = 3; */ public long getRevision() { return revision_; } /** *
       * revision is the key-value store revision when the request was applied.
       * 
* * int64 revision = 3; */ public Builder setRevision(long value) { revision_ = value; onChanged(); return this; } /** *
       * revision is the key-value store revision when the request was applied.
       * 
* * int64 revision = 3; */ public Builder clearRevision() { revision_ = 0L; onChanged(); return this; } private long raftTerm_ ; /** *
       * raft_term is the raft term when the request was applied.
       * 
* * uint64 raft_term = 4; */ public long getRaftTerm() { return raftTerm_; } /** *
       * raft_term is the raft term when the request was applied.
       * 
* * uint64 raft_term = 4; */ public Builder setRaftTerm(long value) { raftTerm_ = value; onChanged(); return this; } /** *
       * raft_term is the raft term when the request was applied.
       * 
* * uint64 raft_term = 4; */ public Builder clearRaftTerm() { raftTerm_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.ResponseHeader) } // @@protoc_insertion_point(class_scope:etcdserverpb.ResponseHeader) private static final etcdserverpb.Rpc.ResponseHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.ResponseHeader(); } public static etcdserverpb.Rpc.ResponseHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResponseHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResponseHeader(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.ResponseHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RangeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.RangeRequest) com.google.protobuf.MessageOrBuilder { /** *
     * key is the first key for the range. If range_end is not given, the request only looks up key.
     * 
* * bytes key = 1; */ com.google.protobuf.ByteString getKey(); /** *
     * range_end is the upper bound on the requested range [key, range_end).
     * If range_end is '\0', the range is all keys >= key.
     * If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
     * then the range request gets all keys prefixed with key.
     * If both key and range_end are '\0', then the range request returns all keys.
     * 
* * bytes range_end = 2; */ com.google.protobuf.ByteString getRangeEnd(); /** *
     * limit is a limit on the number of keys returned for the request. When limit is set to 0,
     * it is treated as no limit.
     * 
* * int64 limit = 3; */ long getLimit(); /** *
     * revision is the point-in-time of the key-value store to use for the range.
     * If revision is less or equal to zero, the range is over the newest key-value store.
     * If the revision has been compacted, ErrCompacted is returned as a response.
     * 
* * int64 revision = 4; */ long getRevision(); /** *
     * sort_order is the order for returned sorted results.
     * 
* * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; */ int getSortOrderValue(); /** *
     * sort_order is the order for returned sorted results.
     * 
* * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; */ etcdserverpb.Rpc.RangeRequest.SortOrder getSortOrder(); /** *
     * sort_target is the key-value field to use for sorting.
     * 
* * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; */ int getSortTargetValue(); /** *
     * sort_target is the key-value field to use for sorting.
     * 
* * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; */ etcdserverpb.Rpc.RangeRequest.SortTarget getSortTarget(); /** *
     * serializable sets the range request to use serializable member-local reads.
     * Range requests are linearizable by default; linearizable requests have higher
     * latency and lower throughput than serializable requests but reflect the current
     * consensus of the cluster. For better performance, in exchange for possible stale reads,
     * a serializable range request is served locally without needing to reach consensus
     * with other nodes in the cluster.
     * 
* * bool serializable = 7; */ boolean getSerializable(); /** *
     * keys_only when set returns only the keys and not the values.
     * 
* * bool keys_only = 8; */ boolean getKeysOnly(); /** *
     * count_only when set returns only the count of the keys in the range.
     * 
* * bool count_only = 9; */ boolean getCountOnly(); /** *
     * min_mod_revision is the lower bound for returned key mod revisions; all keys with
     * lesser mod revisions will be filtered away.
     * 
* * int64 min_mod_revision = 10; */ long getMinModRevision(); /** *
     * max_mod_revision is the upper bound for returned key mod revisions; all keys with
     * greater mod revisions will be filtered away.
     * 
* * int64 max_mod_revision = 11; */ long getMaxModRevision(); /** *
     * min_create_revision is the lower bound for returned key create revisions; all keys with
     * lesser create trevisions will be filtered away.
     * 
* * int64 min_create_revision = 12; */ long getMinCreateRevision(); /** *
     * max_create_revision is the upper bound for returned key create revisions; all keys with
     * greater create revisions will be filtered away.
     * 
* * int64 max_create_revision = 13; */ long getMaxCreateRevision(); } /** * Protobuf type {@code etcdserverpb.RangeRequest} */ public static final class RangeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.RangeRequest) RangeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RangeRequest.newBuilder() to construct. private RangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RangeRequest() { key_ = com.google.protobuf.ByteString.EMPTY; rangeEnd_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0L; revision_ = 0L; sortOrder_ = 0; sortTarget_ = 0; serializable_ = false; keysOnly_ = false; countOnly_ = false; minModRevision_ = 0L; maxModRevision_ = 0L; minCreateRevision_ = 0L; maxCreateRevision_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { key_ = input.readBytes(); break; } case 18: { rangeEnd_ = input.readBytes(); break; } case 24: { limit_ = input.readInt64(); break; } case 32: { revision_ = input.readInt64(); break; } case 40: { int rawValue = input.readEnum(); sortOrder_ = rawValue; break; } case 48: { int rawValue = input.readEnum(); sortTarget_ = rawValue; break; } case 56: { serializable_ = input.readBool(); break; } case 64: { keysOnly_ = input.readBool(); break; } case 72: { countOnly_ = input.readBool(); break; } case 80: { minModRevision_ = input.readInt64(); break; } case 88: { maxModRevision_ = input.readInt64(); break; } case 96: { minCreateRevision_ = input.readInt64(); break; } case 104: { maxCreateRevision_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.RangeRequest.class, etcdserverpb.Rpc.RangeRequest.Builder.class); } /** * Protobuf enum {@code etcdserverpb.RangeRequest.SortOrder} */ public enum SortOrder implements com.google.protobuf.ProtocolMessageEnum { /** *
       * default, no sorting
       * 
* * NONE = 0; */ NONE(0), /** *
       * lowest target value first
       * 
* * ASCEND = 1; */ ASCEND(1), /** *
       * highest target value first
       * 
* * DESCEND = 2; */ DESCEND(2), UNRECOGNIZED(-1), ; /** *
       * default, no sorting
       * 
* * NONE = 0; */ public static final int NONE_VALUE = 0; /** *
       * lowest target value first
       * 
* * ASCEND = 1; */ public static final int ASCEND_VALUE = 1; /** *
       * highest target value first
       * 
* * DESCEND = 2; */ public static final int DESCEND_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SortOrder valueOf(int value) { return forNumber(value); } public static SortOrder forNumber(int value) { switch (value) { case 0: return NONE; case 1: return ASCEND; case 2: return DESCEND; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SortOrder> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SortOrder findValueByNumber(int number) { return SortOrder.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return etcdserverpb.Rpc.RangeRequest.getDescriptor().getEnumTypes().get(0); } private static final SortOrder[] VALUES = values(); public static SortOrder valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SortOrder(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:etcdserverpb.RangeRequest.SortOrder) } /** * Protobuf enum {@code etcdserverpb.RangeRequest.SortTarget} */ public enum SortTarget implements com.google.protobuf.ProtocolMessageEnum { /** * KEY = 0; */ KEY(0), /** * VERSION = 1; */ VERSION(1), /** * CREATE = 2; */ CREATE(2), /** * MOD = 3; */ MOD(3), /** * VALUE = 4; */ VALUE(4), UNRECOGNIZED(-1), ; /** * KEY = 0; */ public static final int KEY_VALUE = 0; /** * VERSION = 1; */ public static final int VERSION_VALUE = 1; /** * CREATE = 2; */ public static final int CREATE_VALUE = 2; /** * MOD = 3; */ public static final int MOD_VALUE = 3; /** * VALUE = 4; */ public static final int VALUE_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SortTarget valueOf(int value) { return forNumber(value); } public static SortTarget forNumber(int value) { switch (value) { case 0: return KEY; case 1: return VERSION; case 2: return CREATE; case 3: return MOD; case 4: return VALUE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SortTarget> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SortTarget findValueByNumber(int number) { return SortTarget.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return etcdserverpb.Rpc.RangeRequest.getDescriptor().getEnumTypes().get(1); } private static final SortTarget[] VALUES = values(); public static SortTarget valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SortTarget(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:etcdserverpb.RangeRequest.SortTarget) } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** *
     * key is the first key for the range. If range_end is not given, the request only looks up key.
     * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int RANGE_END_FIELD_NUMBER = 2; private com.google.protobuf.ByteString rangeEnd_; /** *
     * range_end is the upper bound on the requested range [key, range_end).
     * If range_end is '\0', the range is all keys >= key.
     * If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
     * then the range request gets all keys prefixed with key.
     * If both key and range_end are '\0', then the range request returns all keys.
     * 
* * bytes range_end = 2; */ public com.google.protobuf.ByteString getRangeEnd() { return rangeEnd_; } public static final int LIMIT_FIELD_NUMBER = 3; private long limit_; /** *
     * limit is a limit on the number of keys returned for the request. When limit is set to 0,
     * it is treated as no limit.
     * 
* * int64 limit = 3; */ public long getLimit() { return limit_; } public static final int REVISION_FIELD_NUMBER = 4; private long revision_; /** *
     * revision is the point-in-time of the key-value store to use for the range.
     * If revision is less or equal to zero, the range is over the newest key-value store.
     * If the revision has been compacted, ErrCompacted is returned as a response.
     * 
* * int64 revision = 4; */ public long getRevision() { return revision_; } public static final int SORT_ORDER_FIELD_NUMBER = 5; private int sortOrder_; /** *
     * sort_order is the order for returned sorted results.
     * 
* * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; */ public int getSortOrderValue() { return sortOrder_; } /** *
     * sort_order is the order for returned sorted results.
     * 
* * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; */ public etcdserverpb.Rpc.RangeRequest.SortOrder getSortOrder() { etcdserverpb.Rpc.RangeRequest.SortOrder result = etcdserverpb.Rpc.RangeRequest.SortOrder.valueOf(sortOrder_); return result == null ? etcdserverpb.Rpc.RangeRequest.SortOrder.UNRECOGNIZED : result; } public static final int SORT_TARGET_FIELD_NUMBER = 6; private int sortTarget_; /** *
     * sort_target is the key-value field to use for sorting.
     * 
* * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; */ public int getSortTargetValue() { return sortTarget_; } /** *
     * sort_target is the key-value field to use for sorting.
     * 
* * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; */ public etcdserverpb.Rpc.RangeRequest.SortTarget getSortTarget() { etcdserverpb.Rpc.RangeRequest.SortTarget result = etcdserverpb.Rpc.RangeRequest.SortTarget.valueOf(sortTarget_); return result == null ? etcdserverpb.Rpc.RangeRequest.SortTarget.UNRECOGNIZED : result; } public static final int SERIALIZABLE_FIELD_NUMBER = 7; private boolean serializable_; /** *
     * serializable sets the range request to use serializable member-local reads.
     * Range requests are linearizable by default; linearizable requests have higher
     * latency and lower throughput than serializable requests but reflect the current
     * consensus of the cluster. For better performance, in exchange for possible stale reads,
     * a serializable range request is served locally without needing to reach consensus
     * with other nodes in the cluster.
     * 
* * bool serializable = 7; */ public boolean getSerializable() { return serializable_; } public static final int KEYS_ONLY_FIELD_NUMBER = 8; private boolean keysOnly_; /** *
     * keys_only when set returns only the keys and not the values.
     * 
* * bool keys_only = 8; */ public boolean getKeysOnly() { return keysOnly_; } public static final int COUNT_ONLY_FIELD_NUMBER = 9; private boolean countOnly_; /** *
     * count_only when set returns only the count of the keys in the range.
     * 
* * bool count_only = 9; */ public boolean getCountOnly() { return countOnly_; } public static final int MIN_MOD_REVISION_FIELD_NUMBER = 10; private long minModRevision_; /** *
     * min_mod_revision is the lower bound for returned key mod revisions; all keys with
     * lesser mod revisions will be filtered away.
     * 
* * int64 min_mod_revision = 10; */ public long getMinModRevision() { return minModRevision_; } public static final int MAX_MOD_REVISION_FIELD_NUMBER = 11; private long maxModRevision_; /** *
     * max_mod_revision is the upper bound for returned key mod revisions; all keys with
     * greater mod revisions will be filtered away.
     * 
* * int64 max_mod_revision = 11; */ public long getMaxModRevision() { return maxModRevision_; } public static final int MIN_CREATE_REVISION_FIELD_NUMBER = 12; private long minCreateRevision_; /** *
     * min_create_revision is the lower bound for returned key create revisions; all keys with
     * lesser create trevisions will be filtered away.
     * 
* * int64 min_create_revision = 12; */ public long getMinCreateRevision() { return minCreateRevision_; } public static final int MAX_CREATE_REVISION_FIELD_NUMBER = 13; private long maxCreateRevision_; /** *
     * max_create_revision is the upper bound for returned key create revisions; all keys with
     * greater create revisions will be filtered away.
     * 
* * int64 max_create_revision = 13; */ public long getMaxCreateRevision() { return maxCreateRevision_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!key_.isEmpty()) { output.writeBytes(1, key_); } if (!rangeEnd_.isEmpty()) { output.writeBytes(2, rangeEnd_); } if (limit_ != 0L) { output.writeInt64(3, limit_); } if (revision_ != 0L) { output.writeInt64(4, revision_); } if (sortOrder_ != etcdserverpb.Rpc.RangeRequest.SortOrder.NONE.getNumber()) { output.writeEnum(5, sortOrder_); } if (sortTarget_ != etcdserverpb.Rpc.RangeRequest.SortTarget.KEY.getNumber()) { output.writeEnum(6, sortTarget_); } if (serializable_ != false) { output.writeBool(7, serializable_); } if (keysOnly_ != false) { output.writeBool(8, keysOnly_); } if (countOnly_ != false) { output.writeBool(9, countOnly_); } if (minModRevision_ != 0L) { output.writeInt64(10, minModRevision_); } if (maxModRevision_ != 0L) { output.writeInt64(11, maxModRevision_); } if (minCreateRevision_ != 0L) { output.writeInt64(12, minCreateRevision_); } if (maxCreateRevision_ != 0L) { output.writeInt64(13, maxCreateRevision_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, key_); } if (!rangeEnd_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, rangeEnd_); } if (limit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, limit_); } if (revision_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, revision_); } if (sortOrder_ != etcdserverpb.Rpc.RangeRequest.SortOrder.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, sortOrder_); } if (sortTarget_ != etcdserverpb.Rpc.RangeRequest.SortTarget.KEY.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, sortTarget_); } if (serializable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, serializable_); } if (keysOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, keysOnly_); } if (countOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, countOnly_); } if (minModRevision_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, minModRevision_); } if (maxModRevision_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, maxModRevision_); } if (minCreateRevision_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, minCreateRevision_); } if (maxCreateRevision_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, maxCreateRevision_); } 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 etcdserverpb.Rpc.RangeRequest)) { return super.equals(obj); } etcdserverpb.Rpc.RangeRequest other = (etcdserverpb.Rpc.RangeRequest) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && getRangeEnd() .equals(other.getRangeEnd()); result = result && (getLimit() == other.getLimit()); result = result && (getRevision() == other.getRevision()); result = result && sortOrder_ == other.sortOrder_; result = result && sortTarget_ == other.sortTarget_; result = result && (getSerializable() == other.getSerializable()); result = result && (getKeysOnly() == other.getKeysOnly()); result = result && (getCountOnly() == other.getCountOnly()); result = result && (getMinModRevision() == other.getMinModRevision()); result = result && (getMaxModRevision() == other.getMaxModRevision()); result = result && (getMinCreateRevision() == other.getMinCreateRevision()); result = result && (getMaxCreateRevision() == other.getMaxCreateRevision()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + RANGE_END_FIELD_NUMBER; hash = (53 * hash) + getRangeEnd().hashCode(); hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLimit()); hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRevision()); hash = (37 * hash) + SORT_ORDER_FIELD_NUMBER; hash = (53 * hash) + sortOrder_; hash = (37 * hash) + SORT_TARGET_FIELD_NUMBER; hash = (53 * hash) + sortTarget_; hash = (37 * hash) + SERIALIZABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSerializable()); hash = (37 * hash) + KEYS_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeysOnly()); hash = (37 * hash) + COUNT_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCountOnly()); hash = (37 * hash) + MIN_MOD_REVISION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinModRevision()); hash = (37 * hash) + MAX_MOD_REVISION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxModRevision()); hash = (37 * hash) + MIN_CREATE_REVISION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinCreateRevision()); hash = (37 * hash) + MAX_CREATE_REVISION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxCreateRevision()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.RangeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.RangeRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.RangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.RangeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.RangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.RangeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.RangeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.RangeRequest 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 etcdserverpb.Rpc.RangeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.RangeRequest 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 etcdserverpb.Rpc.RangeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.RangeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.RangeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.RangeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.RangeRequest) etcdserverpb.Rpc.RangeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.RangeRequest.class, etcdserverpb.Rpc.RangeRequest.Builder.class); } // Construct using etcdserverpb.Rpc.RangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = com.google.protobuf.ByteString.EMPTY; rangeEnd_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0L; revision_ = 0L; sortOrder_ = 0; sortTarget_ = 0; serializable_ = false; keysOnly_ = false; countOnly_ = false; minModRevision_ = 0L; maxModRevision_ = 0L; minCreateRevision_ = 0L; maxCreateRevision_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RangeRequest_descriptor; } public etcdserverpb.Rpc.RangeRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.RangeRequest.getDefaultInstance(); } public etcdserverpb.Rpc.RangeRequest build() { etcdserverpb.Rpc.RangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.RangeRequest buildPartial() { etcdserverpb.Rpc.RangeRequest result = new etcdserverpb.Rpc.RangeRequest(this); result.key_ = key_; result.rangeEnd_ = rangeEnd_; result.limit_ = limit_; result.revision_ = revision_; result.sortOrder_ = sortOrder_; result.sortTarget_ = sortTarget_; result.serializable_ = serializable_; result.keysOnly_ = keysOnly_; result.countOnly_ = countOnly_; result.minModRevision_ = minModRevision_; result.maxModRevision_ = maxModRevision_; result.minCreateRevision_ = minCreateRevision_; result.maxCreateRevision_ = maxCreateRevision_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.RangeRequest) { return mergeFrom((etcdserverpb.Rpc.RangeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.RangeRequest other) { if (other == etcdserverpb.Rpc.RangeRequest.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getRangeEnd() != com.google.protobuf.ByteString.EMPTY) { setRangeEnd(other.getRangeEnd()); } if (other.getLimit() != 0L) { setLimit(other.getLimit()); } if (other.getRevision() != 0L) { setRevision(other.getRevision()); } if (other.sortOrder_ != 0) { setSortOrderValue(other.getSortOrderValue()); } if (other.sortTarget_ != 0) { setSortTargetValue(other.getSortTargetValue()); } if (other.getSerializable() != false) { setSerializable(other.getSerializable()); } if (other.getKeysOnly() != false) { setKeysOnly(other.getKeysOnly()); } if (other.getCountOnly() != false) { setCountOnly(other.getCountOnly()); } if (other.getMinModRevision() != 0L) { setMinModRevision(other.getMinModRevision()); } if (other.getMaxModRevision() != 0L) { setMaxModRevision(other.getMaxModRevision()); } if (other.getMinCreateRevision() != 0L) { setMinCreateRevision(other.getMinCreateRevision()); } if (other.getMaxCreateRevision() != 0L) { setMaxCreateRevision(other.getMaxCreateRevision()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.RangeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.RangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** *
       * key is the first key for the range. If range_end is not given, the request only looks up key.
       * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } /** *
       * key is the first key for the range. If range_end is not given, the request only looks up key.
       * 
* * bytes key = 1; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * key is the first key for the range. If range_end is not given, the request only looks up key.
       * 
* * bytes key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString rangeEnd_ = com.google.protobuf.ByteString.EMPTY; /** *
       * range_end is the upper bound on the requested range [key, range_end).
       * If range_end is '\0', the range is all keys >= key.
       * If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
       * then the range request gets all keys prefixed with key.
       * If both key and range_end are '\0', then the range request returns all keys.
       * 
* * bytes range_end = 2; */ public com.google.protobuf.ByteString getRangeEnd() { return rangeEnd_; } /** *
       * range_end is the upper bound on the requested range [key, range_end).
       * If range_end is '\0', the range is all keys >= key.
       * If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
       * then the range request gets all keys prefixed with key.
       * If both key and range_end are '\0', then the range request returns all keys.
       * 
* * bytes range_end = 2; */ public Builder setRangeEnd(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } rangeEnd_ = value; onChanged(); return this; } /** *
       * range_end is the upper bound on the requested range [key, range_end).
       * If range_end is '\0', the range is all keys >= key.
       * If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
       * then the range request gets all keys prefixed with key.
       * If both key and range_end are '\0', then the range request returns all keys.
       * 
* * bytes range_end = 2; */ public Builder clearRangeEnd() { rangeEnd_ = getDefaultInstance().getRangeEnd(); onChanged(); return this; } private long limit_ ; /** *
       * limit is a limit on the number of keys returned for the request. When limit is set to 0,
       * it is treated as no limit.
       * 
* * int64 limit = 3; */ public long getLimit() { return limit_; } /** *
       * limit is a limit on the number of keys returned for the request. When limit is set to 0,
       * it is treated as no limit.
       * 
* * int64 limit = 3; */ public Builder setLimit(long value) { limit_ = value; onChanged(); return this; } /** *
       * limit is a limit on the number of keys returned for the request. When limit is set to 0,
       * it is treated as no limit.
       * 
* * int64 limit = 3; */ public Builder clearLimit() { limit_ = 0L; onChanged(); return this; } private long revision_ ; /** *
       * revision is the point-in-time of the key-value store to use for the range.
       * If revision is less or equal to zero, the range is over the newest key-value store.
       * If the revision has been compacted, ErrCompacted is returned as a response.
       * 
* * int64 revision = 4; */ public long getRevision() { return revision_; } /** *
       * revision is the point-in-time of the key-value store to use for the range.
       * If revision is less or equal to zero, the range is over the newest key-value store.
       * If the revision has been compacted, ErrCompacted is returned as a response.
       * 
* * int64 revision = 4; */ public Builder setRevision(long value) { revision_ = value; onChanged(); return this; } /** *
       * revision is the point-in-time of the key-value store to use for the range.
       * If revision is less or equal to zero, the range is over the newest key-value store.
       * If the revision has been compacted, ErrCompacted is returned as a response.
       * 
* * int64 revision = 4; */ public Builder clearRevision() { revision_ = 0L; onChanged(); return this; } private int sortOrder_ = 0; /** *
       * sort_order is the order for returned sorted results.
       * 
* * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; */ public int getSortOrderValue() { return sortOrder_; } /** *
       * sort_order is the order for returned sorted results.
       * 
* * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; */ public Builder setSortOrderValue(int value) { sortOrder_ = value; onChanged(); return this; } /** *
       * sort_order is the order for returned sorted results.
       * 
* * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; */ public etcdserverpb.Rpc.RangeRequest.SortOrder getSortOrder() { etcdserverpb.Rpc.RangeRequest.SortOrder result = etcdserverpb.Rpc.RangeRequest.SortOrder.valueOf(sortOrder_); return result == null ? etcdserverpb.Rpc.RangeRequest.SortOrder.UNRECOGNIZED : result; } /** *
       * sort_order is the order for returned sorted results.
       * 
* * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; */ public Builder setSortOrder(etcdserverpb.Rpc.RangeRequest.SortOrder value) { if (value == null) { throw new NullPointerException(); } sortOrder_ = value.getNumber(); onChanged(); return this; } /** *
       * sort_order is the order for returned sorted results.
       * 
* * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; */ public Builder clearSortOrder() { sortOrder_ = 0; onChanged(); return this; } private int sortTarget_ = 0; /** *
       * sort_target is the key-value field to use for sorting.
       * 
* * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; */ public int getSortTargetValue() { return sortTarget_; } /** *
       * sort_target is the key-value field to use for sorting.
       * 
* * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; */ public Builder setSortTargetValue(int value) { sortTarget_ = value; onChanged(); return this; } /** *
       * sort_target is the key-value field to use for sorting.
       * 
* * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; */ public etcdserverpb.Rpc.RangeRequest.SortTarget getSortTarget() { etcdserverpb.Rpc.RangeRequest.SortTarget result = etcdserverpb.Rpc.RangeRequest.SortTarget.valueOf(sortTarget_); return result == null ? etcdserverpb.Rpc.RangeRequest.SortTarget.UNRECOGNIZED : result; } /** *
       * sort_target is the key-value field to use for sorting.
       * 
* * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; */ public Builder setSortTarget(etcdserverpb.Rpc.RangeRequest.SortTarget value) { if (value == null) { throw new NullPointerException(); } sortTarget_ = value.getNumber(); onChanged(); return this; } /** *
       * sort_target is the key-value field to use for sorting.
       * 
* * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; */ public Builder clearSortTarget() { sortTarget_ = 0; onChanged(); return this; } private boolean serializable_ ; /** *
       * serializable sets the range request to use serializable member-local reads.
       * Range requests are linearizable by default; linearizable requests have higher
       * latency and lower throughput than serializable requests but reflect the current
       * consensus of the cluster. For better performance, in exchange for possible stale reads,
       * a serializable range request is served locally without needing to reach consensus
       * with other nodes in the cluster.
       * 
* * bool serializable = 7; */ public boolean getSerializable() { return serializable_; } /** *
       * serializable sets the range request to use serializable member-local reads.
       * Range requests are linearizable by default; linearizable requests have higher
       * latency and lower throughput than serializable requests but reflect the current
       * consensus of the cluster. For better performance, in exchange for possible stale reads,
       * a serializable range request is served locally without needing to reach consensus
       * with other nodes in the cluster.
       * 
* * bool serializable = 7; */ public Builder setSerializable(boolean value) { serializable_ = value; onChanged(); return this; } /** *
       * serializable sets the range request to use serializable member-local reads.
       * Range requests are linearizable by default; linearizable requests have higher
       * latency and lower throughput than serializable requests but reflect the current
       * consensus of the cluster. For better performance, in exchange for possible stale reads,
       * a serializable range request is served locally without needing to reach consensus
       * with other nodes in the cluster.
       * 
* * bool serializable = 7; */ public Builder clearSerializable() { serializable_ = false; onChanged(); return this; } private boolean keysOnly_ ; /** *
       * keys_only when set returns only the keys and not the values.
       * 
* * bool keys_only = 8; */ public boolean getKeysOnly() { return keysOnly_; } /** *
       * keys_only when set returns only the keys and not the values.
       * 
* * bool keys_only = 8; */ public Builder setKeysOnly(boolean value) { keysOnly_ = value; onChanged(); return this; } /** *
       * keys_only when set returns only the keys and not the values.
       * 
* * bool keys_only = 8; */ public Builder clearKeysOnly() { keysOnly_ = false; onChanged(); return this; } private boolean countOnly_ ; /** *
       * count_only when set returns only the count of the keys in the range.
       * 
* * bool count_only = 9; */ public boolean getCountOnly() { return countOnly_; } /** *
       * count_only when set returns only the count of the keys in the range.
       * 
* * bool count_only = 9; */ public Builder setCountOnly(boolean value) { countOnly_ = value; onChanged(); return this; } /** *
       * count_only when set returns only the count of the keys in the range.
       * 
* * bool count_only = 9; */ public Builder clearCountOnly() { countOnly_ = false; onChanged(); return this; } private long minModRevision_ ; /** *
       * min_mod_revision is the lower bound for returned key mod revisions; all keys with
       * lesser mod revisions will be filtered away.
       * 
* * int64 min_mod_revision = 10; */ public long getMinModRevision() { return minModRevision_; } /** *
       * min_mod_revision is the lower bound for returned key mod revisions; all keys with
       * lesser mod revisions will be filtered away.
       * 
* * int64 min_mod_revision = 10; */ public Builder setMinModRevision(long value) { minModRevision_ = value; onChanged(); return this; } /** *
       * min_mod_revision is the lower bound for returned key mod revisions; all keys with
       * lesser mod revisions will be filtered away.
       * 
* * int64 min_mod_revision = 10; */ public Builder clearMinModRevision() { minModRevision_ = 0L; onChanged(); return this; } private long maxModRevision_ ; /** *
       * max_mod_revision is the upper bound for returned key mod revisions; all keys with
       * greater mod revisions will be filtered away.
       * 
* * int64 max_mod_revision = 11; */ public long getMaxModRevision() { return maxModRevision_; } /** *
       * max_mod_revision is the upper bound for returned key mod revisions; all keys with
       * greater mod revisions will be filtered away.
       * 
* * int64 max_mod_revision = 11; */ public Builder setMaxModRevision(long value) { maxModRevision_ = value; onChanged(); return this; } /** *
       * max_mod_revision is the upper bound for returned key mod revisions; all keys with
       * greater mod revisions will be filtered away.
       * 
* * int64 max_mod_revision = 11; */ public Builder clearMaxModRevision() { maxModRevision_ = 0L; onChanged(); return this; } private long minCreateRevision_ ; /** *
       * min_create_revision is the lower bound for returned key create revisions; all keys with
       * lesser create trevisions will be filtered away.
       * 
* * int64 min_create_revision = 12; */ public long getMinCreateRevision() { return minCreateRevision_; } /** *
       * min_create_revision is the lower bound for returned key create revisions; all keys with
       * lesser create trevisions will be filtered away.
       * 
* * int64 min_create_revision = 12; */ public Builder setMinCreateRevision(long value) { minCreateRevision_ = value; onChanged(); return this; } /** *
       * min_create_revision is the lower bound for returned key create revisions; all keys with
       * lesser create trevisions will be filtered away.
       * 
* * int64 min_create_revision = 12; */ public Builder clearMinCreateRevision() { minCreateRevision_ = 0L; onChanged(); return this; } private long maxCreateRevision_ ; /** *
       * max_create_revision is the upper bound for returned key create revisions; all keys with
       * greater create revisions will be filtered away.
       * 
* * int64 max_create_revision = 13; */ public long getMaxCreateRevision() { return maxCreateRevision_; } /** *
       * max_create_revision is the upper bound for returned key create revisions; all keys with
       * greater create revisions will be filtered away.
       * 
* * int64 max_create_revision = 13; */ public Builder setMaxCreateRevision(long value) { maxCreateRevision_ = value; onChanged(); return this; } /** *
       * max_create_revision is the upper bound for returned key create revisions; all keys with
       * greater create revisions will be filtered away.
       * 
* * int64 max_create_revision = 13; */ public Builder clearMaxCreateRevision() { maxCreateRevision_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.RangeRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.RangeRequest) private static final etcdserverpb.Rpc.RangeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.RangeRequest(); } public static etcdserverpb.Rpc.RangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RangeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RangeRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.RangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RangeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.RangeResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * kvs is the list of key-value pairs matched by the range request.
     * kvs is empty when count is requested.
     * 
* * repeated .mvccpb.KeyValue kvs = 2; */ java.util.List getKvsList(); /** *
     * kvs is the list of key-value pairs matched by the range request.
     * kvs is empty when count is requested.
     * 
* * repeated .mvccpb.KeyValue kvs = 2; */ mvccpb.Kv.KeyValue getKvs(int index); /** *
     * kvs is the list of key-value pairs matched by the range request.
     * kvs is empty when count is requested.
     * 
* * repeated .mvccpb.KeyValue kvs = 2; */ int getKvsCount(); /** *
     * kvs is the list of key-value pairs matched by the range request.
     * kvs is empty when count is requested.
     * 
* * repeated .mvccpb.KeyValue kvs = 2; */ java.util.List getKvsOrBuilderList(); /** *
     * kvs is the list of key-value pairs matched by the range request.
     * kvs is empty when count is requested.
     * 
* * repeated .mvccpb.KeyValue kvs = 2; */ mvccpb.Kv.KeyValueOrBuilder getKvsOrBuilder( int index); /** *
     * more indicates if there are more keys to return in the requested range.
     * 
* * bool more = 3; */ boolean getMore(); /** *
     * count is set to the number of keys within the range when requested.
     * 
* * int64 count = 4; */ long getCount(); } /** * Protobuf type {@code etcdserverpb.RangeResponse} */ public static final class RangeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.RangeResponse) RangeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RangeResponse.newBuilder() to construct. private RangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RangeResponse() { kvs_ = java.util.Collections.emptyList(); more_ = false; count_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RangeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } kvs_.add( input.readMessage(mvccpb.Kv.KeyValue.parser(), extensionRegistry)); break; } case 24: { more_ = input.readBool(); break; } case 32: { count_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = java.util.Collections.unmodifiableList(kvs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.RangeResponse.class, etcdserverpb.Rpc.RangeResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int KVS_FIELD_NUMBER = 2; private java.util.List kvs_; /** *
     * kvs is the list of key-value pairs matched by the range request.
     * kvs is empty when count is requested.
     * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public java.util.List getKvsList() { return kvs_; } /** *
     * kvs is the list of key-value pairs matched by the range request.
     * kvs is empty when count is requested.
     * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public java.util.List getKvsOrBuilderList() { return kvs_; } /** *
     * kvs is the list of key-value pairs matched by the range request.
     * kvs is empty when count is requested.
     * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public int getKvsCount() { return kvs_.size(); } /** *
     * kvs is the list of key-value pairs matched by the range request.
     * kvs is empty when count is requested.
     * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public mvccpb.Kv.KeyValue getKvs(int index) { return kvs_.get(index); } /** *
     * kvs is the list of key-value pairs matched by the range request.
     * kvs is empty when count is requested.
     * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public mvccpb.Kv.KeyValueOrBuilder getKvsOrBuilder( int index) { return kvs_.get(index); } public static final int MORE_FIELD_NUMBER = 3; private boolean more_; /** *
     * more indicates if there are more keys to return in the requested range.
     * 
* * bool more = 3; */ public boolean getMore() { return more_; } public static final int COUNT_FIELD_NUMBER = 4; private long count_; /** *
     * count is set to the number of keys within the range when requested.
     * 
* * int64 count = 4; */ public long getCount() { return count_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < kvs_.size(); i++) { output.writeMessage(2, kvs_.get(i)); } if (more_ != false) { output.writeBool(3, more_); } if (count_ != 0L) { output.writeInt64(4, count_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < kvs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, kvs_.get(i)); } if (more_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, more_); } if (count_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, count_); } 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 etcdserverpb.Rpc.RangeResponse)) { return super.equals(obj); } etcdserverpb.Rpc.RangeResponse other = (etcdserverpb.Rpc.RangeResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getKvsList() .equals(other.getKvsList()); result = result && (getMore() == other.getMore()); result = result && (getCount() == other.getCount()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getKvsCount() > 0) { hash = (37 * hash) + KVS_FIELD_NUMBER; hash = (53 * hash) + getKvsList().hashCode(); } hash = (37 * hash) + MORE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMore()); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.RangeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.RangeResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.RangeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.RangeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.RangeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.RangeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.RangeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.RangeResponse 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 etcdserverpb.Rpc.RangeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.RangeResponse 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 etcdserverpb.Rpc.RangeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.RangeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.RangeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.RangeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.RangeResponse) etcdserverpb.Rpc.RangeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.RangeResponse.class, etcdserverpb.Rpc.RangeResponse.Builder.class); } // Construct using etcdserverpb.Rpc.RangeResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKvsFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (kvsBuilder_ == null) { kvs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { kvsBuilder_.clear(); } more_ = false; count_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RangeResponse_descriptor; } public etcdserverpb.Rpc.RangeResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.RangeResponse.getDefaultInstance(); } public etcdserverpb.Rpc.RangeResponse build() { etcdserverpb.Rpc.RangeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.RangeResponse buildPartial() { etcdserverpb.Rpc.RangeResponse result = new etcdserverpb.Rpc.RangeResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (kvsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = java.util.Collections.unmodifiableList(kvs_); bitField0_ = (bitField0_ & ~0x00000002); } result.kvs_ = kvs_; } else { result.kvs_ = kvsBuilder_.build(); } result.more_ = more_; result.count_ = count_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.RangeResponse) { return mergeFrom((etcdserverpb.Rpc.RangeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.RangeResponse other) { if (other == etcdserverpb.Rpc.RangeResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (kvsBuilder_ == null) { if (!other.kvs_.isEmpty()) { if (kvs_.isEmpty()) { kvs_ = other.kvs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKvsIsMutable(); kvs_.addAll(other.kvs_); } onChanged(); } } else { if (!other.kvs_.isEmpty()) { if (kvsBuilder_.isEmpty()) { kvsBuilder_.dispose(); kvsBuilder_ = null; kvs_ = other.kvs_; bitField0_ = (bitField0_ & ~0x00000002); kvsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKvsFieldBuilder() : null; } else { kvsBuilder_.addAllMessages(other.kvs_); } } } if (other.getMore() != false) { setMore(other.getMore()); } if (other.getCount() != 0L) { setCount(other.getCount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.RangeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.RangeResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List kvs_ = java.util.Collections.emptyList(); private void ensureKvsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = new java.util.ArrayList(kvs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< mvccpb.Kv.KeyValue, mvccpb.Kv.KeyValue.Builder, mvccpb.Kv.KeyValueOrBuilder> kvsBuilder_; /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public java.util.List getKvsList() { if (kvsBuilder_ == null) { return java.util.Collections.unmodifiableList(kvs_); } else { return kvsBuilder_.getMessageList(); } } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public int getKvsCount() { if (kvsBuilder_ == null) { return kvs_.size(); } else { return kvsBuilder_.getCount(); } } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public mvccpb.Kv.KeyValue getKvs(int index) { if (kvsBuilder_ == null) { return kvs_.get(index); } else { return kvsBuilder_.getMessage(index); } } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public Builder setKvs( int index, mvccpb.Kv.KeyValue value) { if (kvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKvsIsMutable(); kvs_.set(index, value); onChanged(); } else { kvsBuilder_.setMessage(index, value); } return this; } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public Builder setKvs( int index, mvccpb.Kv.KeyValue.Builder builderForValue) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.set(index, builderForValue.build()); onChanged(); } else { kvsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public Builder addKvs(mvccpb.Kv.KeyValue value) { if (kvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKvsIsMutable(); kvs_.add(value); onChanged(); } else { kvsBuilder_.addMessage(value); } return this; } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public Builder addKvs( int index, mvccpb.Kv.KeyValue value) { if (kvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKvsIsMutable(); kvs_.add(index, value); onChanged(); } else { kvsBuilder_.addMessage(index, value); } return this; } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public Builder addKvs( mvccpb.Kv.KeyValue.Builder builderForValue) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.add(builderForValue.build()); onChanged(); } else { kvsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public Builder addKvs( int index, mvccpb.Kv.KeyValue.Builder builderForValue) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.add(index, builderForValue.build()); onChanged(); } else { kvsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public Builder addAllKvs( java.lang.Iterable values) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, kvs_); onChanged(); } else { kvsBuilder_.addAllMessages(values); } return this; } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public Builder clearKvs() { if (kvsBuilder_ == null) { kvs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { kvsBuilder_.clear(); } return this; } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public Builder removeKvs(int index) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.remove(index); onChanged(); } else { kvsBuilder_.remove(index); } return this; } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public mvccpb.Kv.KeyValue.Builder getKvsBuilder( int index) { return getKvsFieldBuilder().getBuilder(index); } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public mvccpb.Kv.KeyValueOrBuilder getKvsOrBuilder( int index) { if (kvsBuilder_ == null) { return kvs_.get(index); } else { return kvsBuilder_.getMessageOrBuilder(index); } } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public java.util.List getKvsOrBuilderList() { if (kvsBuilder_ != null) { return kvsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(kvs_); } } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public mvccpb.Kv.KeyValue.Builder addKvsBuilder() { return getKvsFieldBuilder().addBuilder( mvccpb.Kv.KeyValue.getDefaultInstance()); } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public mvccpb.Kv.KeyValue.Builder addKvsBuilder( int index) { return getKvsFieldBuilder().addBuilder( index, mvccpb.Kv.KeyValue.getDefaultInstance()); } /** *
       * kvs is the list of key-value pairs matched by the range request.
       * kvs is empty when count is requested.
       * 
* * repeated .mvccpb.KeyValue kvs = 2; */ public java.util.List getKvsBuilderList() { return getKvsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< mvccpb.Kv.KeyValue, mvccpb.Kv.KeyValue.Builder, mvccpb.Kv.KeyValueOrBuilder> getKvsFieldBuilder() { if (kvsBuilder_ == null) { kvsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< mvccpb.Kv.KeyValue, mvccpb.Kv.KeyValue.Builder, mvccpb.Kv.KeyValueOrBuilder>( kvs_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); kvs_ = null; } return kvsBuilder_; } private boolean more_ ; /** *
       * more indicates if there are more keys to return in the requested range.
       * 
* * bool more = 3; */ public boolean getMore() { return more_; } /** *
       * more indicates if there are more keys to return in the requested range.
       * 
* * bool more = 3; */ public Builder setMore(boolean value) { more_ = value; onChanged(); return this; } /** *
       * more indicates if there are more keys to return in the requested range.
       * 
* * bool more = 3; */ public Builder clearMore() { more_ = false; onChanged(); return this; } private long count_ ; /** *
       * count is set to the number of keys within the range when requested.
       * 
* * int64 count = 4; */ public long getCount() { return count_; } /** *
       * count is set to the number of keys within the range when requested.
       * 
* * int64 count = 4; */ public Builder setCount(long value) { count_ = value; onChanged(); return this; } /** *
       * count is set to the number of keys within the range when requested.
       * 
* * int64 count = 4; */ public Builder clearCount() { count_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.RangeResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.RangeResponse) private static final etcdserverpb.Rpc.RangeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.RangeResponse(); } public static etcdserverpb.Rpc.RangeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RangeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RangeResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.RangeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PutRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.PutRequest) com.google.protobuf.MessageOrBuilder { /** *
     * key is the key, in bytes, to put into the key-value store.
     * 
* * bytes key = 1; */ com.google.protobuf.ByteString getKey(); /** *
     * value is the value, in bytes, to associate with the key in the key-value store.
     * 
* * bytes value = 2; */ com.google.protobuf.ByteString getValue(); /** *
     * lease is the lease ID to associate with the key in the key-value store. A lease
     * value of 0 indicates no lease.
     * 
* * int64 lease = 3; */ long getLease(); /** *
     * If prev_kv is set, etcd gets the previous key-value pair before changing it.
     * The previous key-value pair will be returned in the put response.
     * 
* * bool prev_kv = 4; */ boolean getPrevKv(); /** *
     * If ignore_value is set, etcd updates the key using its current value.
     * Returns an error if the key does not exist.
     * 
* * bool ignore_value = 5; */ boolean getIgnoreValue(); /** *
     * If ignore_lease is set, etcd updates the key using its current lease.
     * Returns an error if the key does not exist.
     * 
* * bool ignore_lease = 6; */ boolean getIgnoreLease(); } /** * Protobuf type {@code etcdserverpb.PutRequest} */ public static final class PutRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.PutRequest) PutRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PutRequest.newBuilder() to construct. private PutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PutRequest() { key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; lease_ = 0L; prevKv_ = false; ignoreValue_ = false; ignoreLease_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PutRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { key_ = input.readBytes(); break; } case 18: { value_ = input.readBytes(); break; } case 24: { lease_ = input.readInt64(); break; } case 32: { prevKv_ = input.readBool(); break; } case 40: { ignoreValue_ = input.readBool(); break; } case 48: { ignoreLease_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_PutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_PutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.PutRequest.class, etcdserverpb.Rpc.PutRequest.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** *
     * key is the key, in bytes, to put into the key-value store.
     * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; /** *
     * value is the value, in bytes, to associate with the key in the key-value store.
     * 
* * bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int LEASE_FIELD_NUMBER = 3; private long lease_; /** *
     * lease is the lease ID to associate with the key in the key-value store. A lease
     * value of 0 indicates no lease.
     * 
* * int64 lease = 3; */ public long getLease() { return lease_; } public static final int PREV_KV_FIELD_NUMBER = 4; private boolean prevKv_; /** *
     * If prev_kv is set, etcd gets the previous key-value pair before changing it.
     * The previous key-value pair will be returned in the put response.
     * 
* * bool prev_kv = 4; */ public boolean getPrevKv() { return prevKv_; } public static final int IGNORE_VALUE_FIELD_NUMBER = 5; private boolean ignoreValue_; /** *
     * If ignore_value is set, etcd updates the key using its current value.
     * Returns an error if the key does not exist.
     * 
* * bool ignore_value = 5; */ public boolean getIgnoreValue() { return ignoreValue_; } public static final int IGNORE_LEASE_FIELD_NUMBER = 6; private boolean ignoreLease_; /** *
     * If ignore_lease is set, etcd updates the key using its current lease.
     * Returns an error if the key does not exist.
     * 
* * bool ignore_lease = 6; */ public boolean getIgnoreLease() { return ignoreLease_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!key_.isEmpty()) { output.writeBytes(1, key_); } if (!value_.isEmpty()) { output.writeBytes(2, value_); } if (lease_ != 0L) { output.writeInt64(3, lease_); } if (prevKv_ != false) { output.writeBool(4, prevKv_); } if (ignoreValue_ != false) { output.writeBool(5, ignoreValue_); } if (ignoreLease_ != false) { output.writeBool(6, ignoreLease_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, value_); } if (lease_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, lease_); } if (prevKv_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, prevKv_); } if (ignoreValue_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, ignoreValue_); } if (ignoreLease_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, ignoreLease_); } 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 etcdserverpb.Rpc.PutRequest)) { return super.equals(obj); } etcdserverpb.Rpc.PutRequest other = (etcdserverpb.Rpc.PutRequest) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); result = result && (getLease() == other.getLease()); result = result && (getPrevKv() == other.getPrevKv()); result = result && (getIgnoreValue() == other.getIgnoreValue()); result = result && (getIgnoreLease() == other.getIgnoreLease()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + LEASE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLease()); hash = (37 * hash) + PREV_KV_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPrevKv()); hash = (37 * hash) + IGNORE_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIgnoreValue()); hash = (37 * hash) + IGNORE_LEASE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIgnoreLease()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.PutRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.PutRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.PutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.PutRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.PutRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.PutRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.PutRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.PutRequest 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 etcdserverpb.Rpc.PutRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.PutRequest 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 etcdserverpb.Rpc.PutRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.PutRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.PutRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.PutRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.PutRequest) etcdserverpb.Rpc.PutRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_PutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_PutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.PutRequest.class, etcdserverpb.Rpc.PutRequest.Builder.class); } // Construct using etcdserverpb.Rpc.PutRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; lease_ = 0L; prevKv_ = false; ignoreValue_ = false; ignoreLease_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_PutRequest_descriptor; } public etcdserverpb.Rpc.PutRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.PutRequest.getDefaultInstance(); } public etcdserverpb.Rpc.PutRequest build() { etcdserverpb.Rpc.PutRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.PutRequest buildPartial() { etcdserverpb.Rpc.PutRequest result = new etcdserverpb.Rpc.PutRequest(this); result.key_ = key_; result.value_ = value_; result.lease_ = lease_; result.prevKv_ = prevKv_; result.ignoreValue_ = ignoreValue_; result.ignoreLease_ = ignoreLease_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.PutRequest) { return mergeFrom((etcdserverpb.Rpc.PutRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.PutRequest other) { if (other == etcdserverpb.Rpc.PutRequest.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.getLease() != 0L) { setLease(other.getLease()); } if (other.getPrevKv() != false) { setPrevKv(other.getPrevKv()); } if (other.getIgnoreValue() != false) { setIgnoreValue(other.getIgnoreValue()); } if (other.getIgnoreLease() != false) { setIgnoreLease(other.getIgnoreLease()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.PutRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.PutRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** *
       * key is the key, in bytes, to put into the key-value store.
       * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } /** *
       * key is the key, in bytes, to put into the key-value store.
       * 
* * bytes key = 1; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * key is the key, in bytes, to put into the key-value store.
       * 
* * bytes key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** *
       * value is the value, in bytes, to associate with the key in the key-value store.
       * 
* * bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } /** *
       * value is the value, in bytes, to associate with the key in the key-value store.
       * 
* * bytes value = 2; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** *
       * value is the value, in bytes, to associate with the key in the key-value store.
       * 
* * bytes value = 2; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private long lease_ ; /** *
       * lease is the lease ID to associate with the key in the key-value store. A lease
       * value of 0 indicates no lease.
       * 
* * int64 lease = 3; */ public long getLease() { return lease_; } /** *
       * lease is the lease ID to associate with the key in the key-value store. A lease
       * value of 0 indicates no lease.
       * 
* * int64 lease = 3; */ public Builder setLease(long value) { lease_ = value; onChanged(); return this; } /** *
       * lease is the lease ID to associate with the key in the key-value store. A lease
       * value of 0 indicates no lease.
       * 
* * int64 lease = 3; */ public Builder clearLease() { lease_ = 0L; onChanged(); return this; } private boolean prevKv_ ; /** *
       * If prev_kv is set, etcd gets the previous key-value pair before changing it.
       * The previous key-value pair will be returned in the put response.
       * 
* * bool prev_kv = 4; */ public boolean getPrevKv() { return prevKv_; } /** *
       * If prev_kv is set, etcd gets the previous key-value pair before changing it.
       * The previous key-value pair will be returned in the put response.
       * 
* * bool prev_kv = 4; */ public Builder setPrevKv(boolean value) { prevKv_ = value; onChanged(); return this; } /** *
       * If prev_kv is set, etcd gets the previous key-value pair before changing it.
       * The previous key-value pair will be returned in the put response.
       * 
* * bool prev_kv = 4; */ public Builder clearPrevKv() { prevKv_ = false; onChanged(); return this; } private boolean ignoreValue_ ; /** *
       * If ignore_value is set, etcd updates the key using its current value.
       * Returns an error if the key does not exist.
       * 
* * bool ignore_value = 5; */ public boolean getIgnoreValue() { return ignoreValue_; } /** *
       * If ignore_value is set, etcd updates the key using its current value.
       * Returns an error if the key does not exist.
       * 
* * bool ignore_value = 5; */ public Builder setIgnoreValue(boolean value) { ignoreValue_ = value; onChanged(); return this; } /** *
       * If ignore_value is set, etcd updates the key using its current value.
       * Returns an error if the key does not exist.
       * 
* * bool ignore_value = 5; */ public Builder clearIgnoreValue() { ignoreValue_ = false; onChanged(); return this; } private boolean ignoreLease_ ; /** *
       * If ignore_lease is set, etcd updates the key using its current lease.
       * Returns an error if the key does not exist.
       * 
* * bool ignore_lease = 6; */ public boolean getIgnoreLease() { return ignoreLease_; } /** *
       * If ignore_lease is set, etcd updates the key using its current lease.
       * Returns an error if the key does not exist.
       * 
* * bool ignore_lease = 6; */ public Builder setIgnoreLease(boolean value) { ignoreLease_ = value; onChanged(); return this; } /** *
       * If ignore_lease is set, etcd updates the key using its current lease.
       * Returns an error if the key does not exist.
       * 
* * bool ignore_lease = 6; */ public Builder clearIgnoreLease() { ignoreLease_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.PutRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.PutRequest) private static final etcdserverpb.Rpc.PutRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.PutRequest(); } public static etcdserverpb.Rpc.PutRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PutRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PutRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.PutRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PutResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.PutResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * if prev_kv is set in the request, the previous key-value pair will be returned.
     * 
* * .mvccpb.KeyValue prev_kv = 2; */ boolean hasPrevKv(); /** *
     * if prev_kv is set in the request, the previous key-value pair will be returned.
     * 
* * .mvccpb.KeyValue prev_kv = 2; */ mvccpb.Kv.KeyValue getPrevKv(); /** *
     * if prev_kv is set in the request, the previous key-value pair will be returned.
     * 
* * .mvccpb.KeyValue prev_kv = 2; */ mvccpb.Kv.KeyValueOrBuilder getPrevKvOrBuilder(); } /** * Protobuf type {@code etcdserverpb.PutResponse} */ public static final class PutResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.PutResponse) PutResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PutResponse.newBuilder() to construct. private PutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PutResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PutResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { mvccpb.Kv.KeyValue.Builder subBuilder = null; if (prevKv_ != null) { subBuilder = prevKv_.toBuilder(); } prevKv_ = input.readMessage(mvccpb.Kv.KeyValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(prevKv_); prevKv_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_PutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_PutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.PutResponse.class, etcdserverpb.Rpc.PutResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int PREV_KV_FIELD_NUMBER = 2; private mvccpb.Kv.KeyValue prevKv_; /** *
     * if prev_kv is set in the request, the previous key-value pair will be returned.
     * 
* * .mvccpb.KeyValue prev_kv = 2; */ public boolean hasPrevKv() { return prevKv_ != null; } /** *
     * if prev_kv is set in the request, the previous key-value pair will be returned.
     * 
* * .mvccpb.KeyValue prev_kv = 2; */ public mvccpb.Kv.KeyValue getPrevKv() { return prevKv_ == null ? mvccpb.Kv.KeyValue.getDefaultInstance() : prevKv_; } /** *
     * if prev_kv is set in the request, the previous key-value pair will be returned.
     * 
* * .mvccpb.KeyValue prev_kv = 2; */ public mvccpb.Kv.KeyValueOrBuilder getPrevKvOrBuilder() { return getPrevKv(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (prevKv_ != null) { output.writeMessage(2, getPrevKv()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (prevKv_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPrevKv()); } 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 etcdserverpb.Rpc.PutResponse)) { return super.equals(obj); } etcdserverpb.Rpc.PutResponse other = (etcdserverpb.Rpc.PutResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasPrevKv() == other.hasPrevKv()); if (hasPrevKv()) { result = result && getPrevKv() .equals(other.getPrevKv()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasPrevKv()) { hash = (37 * hash) + PREV_KV_FIELD_NUMBER; hash = (53 * hash) + getPrevKv().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.PutResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.PutResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.PutResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.PutResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.PutResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.PutResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.PutResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.PutResponse 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 etcdserverpb.Rpc.PutResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.PutResponse 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 etcdserverpb.Rpc.PutResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.PutResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.PutResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.PutResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.PutResponse) etcdserverpb.Rpc.PutResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_PutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_PutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.PutResponse.class, etcdserverpb.Rpc.PutResponse.Builder.class); } // Construct using etcdserverpb.Rpc.PutResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (prevKvBuilder_ == null) { prevKv_ = null; } else { prevKv_ = null; prevKvBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_PutResponse_descriptor; } public etcdserverpb.Rpc.PutResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.PutResponse.getDefaultInstance(); } public etcdserverpb.Rpc.PutResponse build() { etcdserverpb.Rpc.PutResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.PutResponse buildPartial() { etcdserverpb.Rpc.PutResponse result = new etcdserverpb.Rpc.PutResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (prevKvBuilder_ == null) { result.prevKv_ = prevKv_; } else { result.prevKv_ = prevKvBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.PutResponse) { return mergeFrom((etcdserverpb.Rpc.PutResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.PutResponse other) { if (other == etcdserverpb.Rpc.PutResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasPrevKv()) { mergePrevKv(other.getPrevKv()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.PutResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.PutResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private mvccpb.Kv.KeyValue prevKv_ = null; private com.google.protobuf.SingleFieldBuilderV3< mvccpb.Kv.KeyValue, mvccpb.Kv.KeyValue.Builder, mvccpb.Kv.KeyValueOrBuilder> prevKvBuilder_; /** *
       * if prev_kv is set in the request, the previous key-value pair will be returned.
       * 
* * .mvccpb.KeyValue prev_kv = 2; */ public boolean hasPrevKv() { return prevKvBuilder_ != null || prevKv_ != null; } /** *
       * if prev_kv is set in the request, the previous key-value pair will be returned.
       * 
* * .mvccpb.KeyValue prev_kv = 2; */ public mvccpb.Kv.KeyValue getPrevKv() { if (prevKvBuilder_ == null) { return prevKv_ == null ? mvccpb.Kv.KeyValue.getDefaultInstance() : prevKv_; } else { return prevKvBuilder_.getMessage(); } } /** *
       * if prev_kv is set in the request, the previous key-value pair will be returned.
       * 
* * .mvccpb.KeyValue prev_kv = 2; */ public Builder setPrevKv(mvccpb.Kv.KeyValue value) { if (prevKvBuilder_ == null) { if (value == null) { throw new NullPointerException(); } prevKv_ = value; onChanged(); } else { prevKvBuilder_.setMessage(value); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pair will be returned.
       * 
* * .mvccpb.KeyValue prev_kv = 2; */ public Builder setPrevKv( mvccpb.Kv.KeyValue.Builder builderForValue) { if (prevKvBuilder_ == null) { prevKv_ = builderForValue.build(); onChanged(); } else { prevKvBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pair will be returned.
       * 
* * .mvccpb.KeyValue prev_kv = 2; */ public Builder mergePrevKv(mvccpb.Kv.KeyValue value) { if (prevKvBuilder_ == null) { if (prevKv_ != null) { prevKv_ = mvccpb.Kv.KeyValue.newBuilder(prevKv_).mergeFrom(value).buildPartial(); } else { prevKv_ = value; } onChanged(); } else { prevKvBuilder_.mergeFrom(value); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pair will be returned.
       * 
* * .mvccpb.KeyValue prev_kv = 2; */ public Builder clearPrevKv() { if (prevKvBuilder_ == null) { prevKv_ = null; onChanged(); } else { prevKv_ = null; prevKvBuilder_ = null; } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pair will be returned.
       * 
* * .mvccpb.KeyValue prev_kv = 2; */ public mvccpb.Kv.KeyValue.Builder getPrevKvBuilder() { onChanged(); return getPrevKvFieldBuilder().getBuilder(); } /** *
       * if prev_kv is set in the request, the previous key-value pair will be returned.
       * 
* * .mvccpb.KeyValue prev_kv = 2; */ public mvccpb.Kv.KeyValueOrBuilder getPrevKvOrBuilder() { if (prevKvBuilder_ != null) { return prevKvBuilder_.getMessageOrBuilder(); } else { return prevKv_ == null ? mvccpb.Kv.KeyValue.getDefaultInstance() : prevKv_; } } /** *
       * if prev_kv is set in the request, the previous key-value pair will be returned.
       * 
* * .mvccpb.KeyValue prev_kv = 2; */ private com.google.protobuf.SingleFieldBuilderV3< mvccpb.Kv.KeyValue, mvccpb.Kv.KeyValue.Builder, mvccpb.Kv.KeyValueOrBuilder> getPrevKvFieldBuilder() { if (prevKvBuilder_ == null) { prevKvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< mvccpb.Kv.KeyValue, mvccpb.Kv.KeyValue.Builder, mvccpb.Kv.KeyValueOrBuilder>( getPrevKv(), getParentForChildren(), isClean()); prevKv_ = null; } return prevKvBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.PutResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.PutResponse) private static final etcdserverpb.Rpc.PutResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.PutResponse(); } public static etcdserverpb.Rpc.PutResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PutResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PutResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.PutResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteRangeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.DeleteRangeRequest) com.google.protobuf.MessageOrBuilder { /** *
     * key is the first key to delete in the range.
     * 
* * bytes key = 1; */ com.google.protobuf.ByteString getKey(); /** *
     * range_end is the key following the last key to delete for the range [key, range_end).
     * If range_end is not given, the range is defined to contain only the key argument.
     * If range_end is one bit larger than the given key, then the range is all the keys
     * with the prefix (the given key).
     * If range_end is '\0', the range is all keys greater than or equal to the key argument.
     * 
* * bytes range_end = 2; */ com.google.protobuf.ByteString getRangeEnd(); /** *
     * If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
     * The previous key-value pairs will be returned in the delete response.
     * 
* * bool prev_kv = 3; */ boolean getPrevKv(); } /** * Protobuf type {@code etcdserverpb.DeleteRangeRequest} */ public static final class DeleteRangeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.DeleteRangeRequest) DeleteRangeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteRangeRequest.newBuilder() to construct. private DeleteRangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteRangeRequest() { key_ = com.google.protobuf.ByteString.EMPTY; rangeEnd_ = com.google.protobuf.ByteString.EMPTY; prevKv_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteRangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { key_ = input.readBytes(); break; } case 18: { rangeEnd_ = input.readBytes(); break; } case 24: { prevKv_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DeleteRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DeleteRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.DeleteRangeRequest.class, etcdserverpb.Rpc.DeleteRangeRequest.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** *
     * key is the first key to delete in the range.
     * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int RANGE_END_FIELD_NUMBER = 2; private com.google.protobuf.ByteString rangeEnd_; /** *
     * range_end is the key following the last key to delete for the range [key, range_end).
     * If range_end is not given, the range is defined to contain only the key argument.
     * If range_end is one bit larger than the given key, then the range is all the keys
     * with the prefix (the given key).
     * If range_end is '\0', the range is all keys greater than or equal to the key argument.
     * 
* * bytes range_end = 2; */ public com.google.protobuf.ByteString getRangeEnd() { return rangeEnd_; } public static final int PREV_KV_FIELD_NUMBER = 3; private boolean prevKv_; /** *
     * If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
     * The previous key-value pairs will be returned in the delete response.
     * 
* * bool prev_kv = 3; */ public boolean getPrevKv() { return prevKv_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!key_.isEmpty()) { output.writeBytes(1, key_); } if (!rangeEnd_.isEmpty()) { output.writeBytes(2, rangeEnd_); } if (prevKv_ != false) { output.writeBool(3, prevKv_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, key_); } if (!rangeEnd_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, rangeEnd_); } if (prevKv_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, prevKv_); } 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 etcdserverpb.Rpc.DeleteRangeRequest)) { return super.equals(obj); } etcdserverpb.Rpc.DeleteRangeRequest other = (etcdserverpb.Rpc.DeleteRangeRequest) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && getRangeEnd() .equals(other.getRangeEnd()); result = result && (getPrevKv() == other.getPrevKv()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + RANGE_END_FIELD_NUMBER; hash = (53 * hash) + getRangeEnd().hashCode(); hash = (37 * hash) + PREV_KV_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPrevKv()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.DeleteRangeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DeleteRangeRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DeleteRangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DeleteRangeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DeleteRangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DeleteRangeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DeleteRangeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DeleteRangeRequest 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 etcdserverpb.Rpc.DeleteRangeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DeleteRangeRequest 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 etcdserverpb.Rpc.DeleteRangeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DeleteRangeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.DeleteRangeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.DeleteRangeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.DeleteRangeRequest) etcdserverpb.Rpc.DeleteRangeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DeleteRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DeleteRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.DeleteRangeRequest.class, etcdserverpb.Rpc.DeleteRangeRequest.Builder.class); } // Construct using etcdserverpb.Rpc.DeleteRangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = com.google.protobuf.ByteString.EMPTY; rangeEnd_ = com.google.protobuf.ByteString.EMPTY; prevKv_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DeleteRangeRequest_descriptor; } public etcdserverpb.Rpc.DeleteRangeRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.DeleteRangeRequest.getDefaultInstance(); } public etcdserverpb.Rpc.DeleteRangeRequest build() { etcdserverpb.Rpc.DeleteRangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.DeleteRangeRequest buildPartial() { etcdserverpb.Rpc.DeleteRangeRequest result = new etcdserverpb.Rpc.DeleteRangeRequest(this); result.key_ = key_; result.rangeEnd_ = rangeEnd_; result.prevKv_ = prevKv_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.DeleteRangeRequest) { return mergeFrom((etcdserverpb.Rpc.DeleteRangeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.DeleteRangeRequest other) { if (other == etcdserverpb.Rpc.DeleteRangeRequest.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getRangeEnd() != com.google.protobuf.ByteString.EMPTY) { setRangeEnd(other.getRangeEnd()); } if (other.getPrevKv() != false) { setPrevKv(other.getPrevKv()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.DeleteRangeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.DeleteRangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** *
       * key is the first key to delete in the range.
       * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } /** *
       * key is the first key to delete in the range.
       * 
* * bytes key = 1; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * key is the first key to delete in the range.
       * 
* * bytes key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString rangeEnd_ = com.google.protobuf.ByteString.EMPTY; /** *
       * range_end is the key following the last key to delete for the range [key, range_end).
       * If range_end is not given, the range is defined to contain only the key argument.
       * If range_end is one bit larger than the given key, then the range is all the keys
       * with the prefix (the given key).
       * If range_end is '\0', the range is all keys greater than or equal to the key argument.
       * 
* * bytes range_end = 2; */ public com.google.protobuf.ByteString getRangeEnd() { return rangeEnd_; } /** *
       * range_end is the key following the last key to delete for the range [key, range_end).
       * If range_end is not given, the range is defined to contain only the key argument.
       * If range_end is one bit larger than the given key, then the range is all the keys
       * with the prefix (the given key).
       * If range_end is '\0', the range is all keys greater than or equal to the key argument.
       * 
* * bytes range_end = 2; */ public Builder setRangeEnd(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } rangeEnd_ = value; onChanged(); return this; } /** *
       * range_end is the key following the last key to delete for the range [key, range_end).
       * If range_end is not given, the range is defined to contain only the key argument.
       * If range_end is one bit larger than the given key, then the range is all the keys
       * with the prefix (the given key).
       * If range_end is '\0', the range is all keys greater than or equal to the key argument.
       * 
* * bytes range_end = 2; */ public Builder clearRangeEnd() { rangeEnd_ = getDefaultInstance().getRangeEnd(); onChanged(); return this; } private boolean prevKv_ ; /** *
       * If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
       * The previous key-value pairs will be returned in the delete response.
       * 
* * bool prev_kv = 3; */ public boolean getPrevKv() { return prevKv_; } /** *
       * If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
       * The previous key-value pairs will be returned in the delete response.
       * 
* * bool prev_kv = 3; */ public Builder setPrevKv(boolean value) { prevKv_ = value; onChanged(); return this; } /** *
       * If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
       * The previous key-value pairs will be returned in the delete response.
       * 
* * bool prev_kv = 3; */ public Builder clearPrevKv() { prevKv_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.DeleteRangeRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.DeleteRangeRequest) private static final etcdserverpb.Rpc.DeleteRangeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.DeleteRangeRequest(); } public static etcdserverpb.Rpc.DeleteRangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeleteRangeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteRangeRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.DeleteRangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteRangeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.DeleteRangeResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * deleted is the number of keys deleted by the delete range request.
     * 
* * int64 deleted = 2; */ long getDeleted(); /** *
     * if prev_kv is set in the request, the previous key-value pairs will be returned.
     * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ java.util.List getPrevKvsList(); /** *
     * if prev_kv is set in the request, the previous key-value pairs will be returned.
     * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ mvccpb.Kv.KeyValue getPrevKvs(int index); /** *
     * if prev_kv is set in the request, the previous key-value pairs will be returned.
     * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ int getPrevKvsCount(); /** *
     * if prev_kv is set in the request, the previous key-value pairs will be returned.
     * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ java.util.List getPrevKvsOrBuilderList(); /** *
     * if prev_kv is set in the request, the previous key-value pairs will be returned.
     * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ mvccpb.Kv.KeyValueOrBuilder getPrevKvsOrBuilder( int index); } /** * Protobuf type {@code etcdserverpb.DeleteRangeResponse} */ public static final class DeleteRangeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.DeleteRangeResponse) DeleteRangeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteRangeResponse.newBuilder() to construct. private DeleteRangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteRangeResponse() { deleted_ = 0L; prevKvs_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteRangeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { deleted_ = input.readInt64(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { prevKvs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } prevKvs_.add( input.readMessage(mvccpb.Kv.KeyValue.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { prevKvs_ = java.util.Collections.unmodifiableList(prevKvs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DeleteRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DeleteRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.DeleteRangeResponse.class, etcdserverpb.Rpc.DeleteRangeResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int DELETED_FIELD_NUMBER = 2; private long deleted_; /** *
     * deleted is the number of keys deleted by the delete range request.
     * 
* * int64 deleted = 2; */ public long getDeleted() { return deleted_; } public static final int PREV_KVS_FIELD_NUMBER = 3; private java.util.List prevKvs_; /** *
     * if prev_kv is set in the request, the previous key-value pairs will be returned.
     * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public java.util.List getPrevKvsList() { return prevKvs_; } /** *
     * if prev_kv is set in the request, the previous key-value pairs will be returned.
     * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public java.util.List getPrevKvsOrBuilderList() { return prevKvs_; } /** *
     * if prev_kv is set in the request, the previous key-value pairs will be returned.
     * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public int getPrevKvsCount() { return prevKvs_.size(); } /** *
     * if prev_kv is set in the request, the previous key-value pairs will be returned.
     * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public mvccpb.Kv.KeyValue getPrevKvs(int index) { return prevKvs_.get(index); } /** *
     * if prev_kv is set in the request, the previous key-value pairs will be returned.
     * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public mvccpb.Kv.KeyValueOrBuilder getPrevKvsOrBuilder( int index) { return prevKvs_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (deleted_ != 0L) { output.writeInt64(2, deleted_); } for (int i = 0; i < prevKvs_.size(); i++) { output.writeMessage(3, prevKvs_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (deleted_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, deleted_); } for (int i = 0; i < prevKvs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, prevKvs_.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 etcdserverpb.Rpc.DeleteRangeResponse)) { return super.equals(obj); } etcdserverpb.Rpc.DeleteRangeResponse other = (etcdserverpb.Rpc.DeleteRangeResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getDeleted() == other.getDeleted()); result = result && getPrevKvsList() .equals(other.getPrevKvsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + DELETED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDeleted()); if (getPrevKvsCount() > 0) { hash = (37 * hash) + PREV_KVS_FIELD_NUMBER; hash = (53 * hash) + getPrevKvsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.DeleteRangeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DeleteRangeResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DeleteRangeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DeleteRangeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DeleteRangeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DeleteRangeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DeleteRangeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DeleteRangeResponse 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 etcdserverpb.Rpc.DeleteRangeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DeleteRangeResponse 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 etcdserverpb.Rpc.DeleteRangeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DeleteRangeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.DeleteRangeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.DeleteRangeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.DeleteRangeResponse) etcdserverpb.Rpc.DeleteRangeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DeleteRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DeleteRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.DeleteRangeResponse.class, etcdserverpb.Rpc.DeleteRangeResponse.Builder.class); } // Construct using etcdserverpb.Rpc.DeleteRangeResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPrevKvsFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } deleted_ = 0L; if (prevKvsBuilder_ == null) { prevKvs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { prevKvsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DeleteRangeResponse_descriptor; } public etcdserverpb.Rpc.DeleteRangeResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.DeleteRangeResponse.getDefaultInstance(); } public etcdserverpb.Rpc.DeleteRangeResponse build() { etcdserverpb.Rpc.DeleteRangeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.DeleteRangeResponse buildPartial() { etcdserverpb.Rpc.DeleteRangeResponse result = new etcdserverpb.Rpc.DeleteRangeResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.deleted_ = deleted_; if (prevKvsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { prevKvs_ = java.util.Collections.unmodifiableList(prevKvs_); bitField0_ = (bitField0_ & ~0x00000004); } result.prevKvs_ = prevKvs_; } else { result.prevKvs_ = prevKvsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.DeleteRangeResponse) { return mergeFrom((etcdserverpb.Rpc.DeleteRangeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.DeleteRangeResponse other) { if (other == etcdserverpb.Rpc.DeleteRangeResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getDeleted() != 0L) { setDeleted(other.getDeleted()); } if (prevKvsBuilder_ == null) { if (!other.prevKvs_.isEmpty()) { if (prevKvs_.isEmpty()) { prevKvs_ = other.prevKvs_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePrevKvsIsMutable(); prevKvs_.addAll(other.prevKvs_); } onChanged(); } } else { if (!other.prevKvs_.isEmpty()) { if (prevKvsBuilder_.isEmpty()) { prevKvsBuilder_.dispose(); prevKvsBuilder_ = null; prevKvs_ = other.prevKvs_; bitField0_ = (bitField0_ & ~0x00000004); prevKvsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPrevKvsFieldBuilder() : null; } else { prevKvsBuilder_.addAllMessages(other.prevKvs_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.DeleteRangeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.DeleteRangeResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long deleted_ ; /** *
       * deleted is the number of keys deleted by the delete range request.
       * 
* * int64 deleted = 2; */ public long getDeleted() { return deleted_; } /** *
       * deleted is the number of keys deleted by the delete range request.
       * 
* * int64 deleted = 2; */ public Builder setDeleted(long value) { deleted_ = value; onChanged(); return this; } /** *
       * deleted is the number of keys deleted by the delete range request.
       * 
* * int64 deleted = 2; */ public Builder clearDeleted() { deleted_ = 0L; onChanged(); return this; } private java.util.List prevKvs_ = java.util.Collections.emptyList(); private void ensurePrevKvsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { prevKvs_ = new java.util.ArrayList(prevKvs_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< mvccpb.Kv.KeyValue, mvccpb.Kv.KeyValue.Builder, mvccpb.Kv.KeyValueOrBuilder> prevKvsBuilder_; /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public java.util.List getPrevKvsList() { if (prevKvsBuilder_ == null) { return java.util.Collections.unmodifiableList(prevKvs_); } else { return prevKvsBuilder_.getMessageList(); } } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public int getPrevKvsCount() { if (prevKvsBuilder_ == null) { return prevKvs_.size(); } else { return prevKvsBuilder_.getCount(); } } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public mvccpb.Kv.KeyValue getPrevKvs(int index) { if (prevKvsBuilder_ == null) { return prevKvs_.get(index); } else { return prevKvsBuilder_.getMessage(index); } } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public Builder setPrevKvs( int index, mvccpb.Kv.KeyValue value) { if (prevKvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrevKvsIsMutable(); prevKvs_.set(index, value); onChanged(); } else { prevKvsBuilder_.setMessage(index, value); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public Builder setPrevKvs( int index, mvccpb.Kv.KeyValue.Builder builderForValue) { if (prevKvsBuilder_ == null) { ensurePrevKvsIsMutable(); prevKvs_.set(index, builderForValue.build()); onChanged(); } else { prevKvsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public Builder addPrevKvs(mvccpb.Kv.KeyValue value) { if (prevKvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrevKvsIsMutable(); prevKvs_.add(value); onChanged(); } else { prevKvsBuilder_.addMessage(value); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public Builder addPrevKvs( int index, mvccpb.Kv.KeyValue value) { if (prevKvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrevKvsIsMutable(); prevKvs_.add(index, value); onChanged(); } else { prevKvsBuilder_.addMessage(index, value); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public Builder addPrevKvs( mvccpb.Kv.KeyValue.Builder builderForValue) { if (prevKvsBuilder_ == null) { ensurePrevKvsIsMutable(); prevKvs_.add(builderForValue.build()); onChanged(); } else { prevKvsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public Builder addPrevKvs( int index, mvccpb.Kv.KeyValue.Builder builderForValue) { if (prevKvsBuilder_ == null) { ensurePrevKvsIsMutable(); prevKvs_.add(index, builderForValue.build()); onChanged(); } else { prevKvsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public Builder addAllPrevKvs( java.lang.Iterable values) { if (prevKvsBuilder_ == null) { ensurePrevKvsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, prevKvs_); onChanged(); } else { prevKvsBuilder_.addAllMessages(values); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public Builder clearPrevKvs() { if (prevKvsBuilder_ == null) { prevKvs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { prevKvsBuilder_.clear(); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public Builder removePrevKvs(int index) { if (prevKvsBuilder_ == null) { ensurePrevKvsIsMutable(); prevKvs_.remove(index); onChanged(); } else { prevKvsBuilder_.remove(index); } return this; } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public mvccpb.Kv.KeyValue.Builder getPrevKvsBuilder( int index) { return getPrevKvsFieldBuilder().getBuilder(index); } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public mvccpb.Kv.KeyValueOrBuilder getPrevKvsOrBuilder( int index) { if (prevKvsBuilder_ == null) { return prevKvs_.get(index); } else { return prevKvsBuilder_.getMessageOrBuilder(index); } } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public java.util.List getPrevKvsOrBuilderList() { if (prevKvsBuilder_ != null) { return prevKvsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(prevKvs_); } } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public mvccpb.Kv.KeyValue.Builder addPrevKvsBuilder() { return getPrevKvsFieldBuilder().addBuilder( mvccpb.Kv.KeyValue.getDefaultInstance()); } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public mvccpb.Kv.KeyValue.Builder addPrevKvsBuilder( int index) { return getPrevKvsFieldBuilder().addBuilder( index, mvccpb.Kv.KeyValue.getDefaultInstance()); } /** *
       * if prev_kv is set in the request, the previous key-value pairs will be returned.
       * 
* * repeated .mvccpb.KeyValue prev_kvs = 3; */ public java.util.List getPrevKvsBuilderList() { return getPrevKvsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< mvccpb.Kv.KeyValue, mvccpb.Kv.KeyValue.Builder, mvccpb.Kv.KeyValueOrBuilder> getPrevKvsFieldBuilder() { if (prevKvsBuilder_ == null) { prevKvsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< mvccpb.Kv.KeyValue, mvccpb.Kv.KeyValue.Builder, mvccpb.Kv.KeyValueOrBuilder>( prevKvs_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); prevKvs_ = null; } return prevKvsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.DeleteRangeResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.DeleteRangeResponse) private static final etcdserverpb.Rpc.DeleteRangeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.DeleteRangeResponse(); } public static etcdserverpb.Rpc.DeleteRangeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeleteRangeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteRangeResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.DeleteRangeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestOpOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.RequestOp) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.RangeRequest request_range = 1; */ boolean hasRequestRange(); /** * .etcdserverpb.RangeRequest request_range = 1; */ etcdserverpb.Rpc.RangeRequest getRequestRange(); /** * .etcdserverpb.RangeRequest request_range = 1; */ etcdserverpb.Rpc.RangeRequestOrBuilder getRequestRangeOrBuilder(); /** * .etcdserverpb.PutRequest request_put = 2; */ boolean hasRequestPut(); /** * .etcdserverpb.PutRequest request_put = 2; */ etcdserverpb.Rpc.PutRequest getRequestPut(); /** * .etcdserverpb.PutRequest request_put = 2; */ etcdserverpb.Rpc.PutRequestOrBuilder getRequestPutOrBuilder(); /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ boolean hasRequestDeleteRange(); /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ etcdserverpb.Rpc.DeleteRangeRequest getRequestDeleteRange(); /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ etcdserverpb.Rpc.DeleteRangeRequestOrBuilder getRequestDeleteRangeOrBuilder(); /** * .etcdserverpb.TxnRequest request_txn = 4; */ boolean hasRequestTxn(); /** * .etcdserverpb.TxnRequest request_txn = 4; */ etcdserverpb.Rpc.TxnRequest getRequestTxn(); /** * .etcdserverpb.TxnRequest request_txn = 4; */ etcdserverpb.Rpc.TxnRequestOrBuilder getRequestTxnOrBuilder(); public etcdserverpb.Rpc.RequestOp.RequestCase getRequestCase(); } /** * Protobuf type {@code etcdserverpb.RequestOp} */ public static final class RequestOp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.RequestOp) RequestOpOrBuilder { private static final long serialVersionUID = 0L; // Use RequestOp.newBuilder() to construct. private RequestOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestOp() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RequestOp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.RangeRequest.Builder subBuilder = null; if (requestCase_ == 1) { subBuilder = ((etcdserverpb.Rpc.RangeRequest) request_).toBuilder(); } request_ = input.readMessage(etcdserverpb.Rpc.RangeRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((etcdserverpb.Rpc.RangeRequest) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 1; break; } case 18: { etcdserverpb.Rpc.PutRequest.Builder subBuilder = null; if (requestCase_ == 2) { subBuilder = ((etcdserverpb.Rpc.PutRequest) request_).toBuilder(); } request_ = input.readMessage(etcdserverpb.Rpc.PutRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((etcdserverpb.Rpc.PutRequest) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 2; break; } case 26: { etcdserverpb.Rpc.DeleteRangeRequest.Builder subBuilder = null; if (requestCase_ == 3) { subBuilder = ((etcdserverpb.Rpc.DeleteRangeRequest) request_).toBuilder(); } request_ = input.readMessage(etcdserverpb.Rpc.DeleteRangeRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((etcdserverpb.Rpc.DeleteRangeRequest) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 3; break; } case 34: { etcdserverpb.Rpc.TxnRequest.Builder subBuilder = null; if (requestCase_ == 4) { subBuilder = ((etcdserverpb.Rpc.TxnRequest) request_).toBuilder(); } request_ = input.readMessage(etcdserverpb.Rpc.TxnRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((etcdserverpb.Rpc.TxnRequest) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 4; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RequestOp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RequestOp_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.RequestOp.class, etcdserverpb.Rpc.RequestOp.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite { REQUEST_RANGE(1), REQUEST_PUT(2), REQUEST_DELETE_RANGE(3), REQUEST_TXN(4), REQUEST_NOT_SET(0); private final int value; private RequestCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RequestCase valueOf(int value) { return forNumber(value); } public static RequestCase forNumber(int value) { switch (value) { case 1: return REQUEST_RANGE; case 2: return REQUEST_PUT; case 3: return REQUEST_DELETE_RANGE; case 4: return REQUEST_TXN; case 0: return REQUEST_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public static final int REQUEST_RANGE_FIELD_NUMBER = 1; /** * .etcdserverpb.RangeRequest request_range = 1; */ public boolean hasRequestRange() { return requestCase_ == 1; } /** * .etcdserverpb.RangeRequest request_range = 1; */ public etcdserverpb.Rpc.RangeRequest getRequestRange() { if (requestCase_ == 1) { return (etcdserverpb.Rpc.RangeRequest) request_; } return etcdserverpb.Rpc.RangeRequest.getDefaultInstance(); } /** * .etcdserverpb.RangeRequest request_range = 1; */ public etcdserverpb.Rpc.RangeRequestOrBuilder getRequestRangeOrBuilder() { if (requestCase_ == 1) { return (etcdserverpb.Rpc.RangeRequest) request_; } return etcdserverpb.Rpc.RangeRequest.getDefaultInstance(); } public static final int REQUEST_PUT_FIELD_NUMBER = 2; /** * .etcdserverpb.PutRequest request_put = 2; */ public boolean hasRequestPut() { return requestCase_ == 2; } /** * .etcdserverpb.PutRequest request_put = 2; */ public etcdserverpb.Rpc.PutRequest getRequestPut() { if (requestCase_ == 2) { return (etcdserverpb.Rpc.PutRequest) request_; } return etcdserverpb.Rpc.PutRequest.getDefaultInstance(); } /** * .etcdserverpb.PutRequest request_put = 2; */ public etcdserverpb.Rpc.PutRequestOrBuilder getRequestPutOrBuilder() { if (requestCase_ == 2) { return (etcdserverpb.Rpc.PutRequest) request_; } return etcdserverpb.Rpc.PutRequest.getDefaultInstance(); } public static final int REQUEST_DELETE_RANGE_FIELD_NUMBER = 3; /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ public boolean hasRequestDeleteRange() { return requestCase_ == 3; } /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ public etcdserverpb.Rpc.DeleteRangeRequest getRequestDeleteRange() { if (requestCase_ == 3) { return (etcdserverpb.Rpc.DeleteRangeRequest) request_; } return etcdserverpb.Rpc.DeleteRangeRequest.getDefaultInstance(); } /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ public etcdserverpb.Rpc.DeleteRangeRequestOrBuilder getRequestDeleteRangeOrBuilder() { if (requestCase_ == 3) { return (etcdserverpb.Rpc.DeleteRangeRequest) request_; } return etcdserverpb.Rpc.DeleteRangeRequest.getDefaultInstance(); } public static final int REQUEST_TXN_FIELD_NUMBER = 4; /** * .etcdserverpb.TxnRequest request_txn = 4; */ public boolean hasRequestTxn() { return requestCase_ == 4; } /** * .etcdserverpb.TxnRequest request_txn = 4; */ public etcdserverpb.Rpc.TxnRequest getRequestTxn() { if (requestCase_ == 4) { return (etcdserverpb.Rpc.TxnRequest) request_; } return etcdserverpb.Rpc.TxnRequest.getDefaultInstance(); } /** * .etcdserverpb.TxnRequest request_txn = 4; */ public etcdserverpb.Rpc.TxnRequestOrBuilder getRequestTxnOrBuilder() { if (requestCase_ == 4) { return (etcdserverpb.Rpc.TxnRequest) request_; } return etcdserverpb.Rpc.TxnRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (requestCase_ == 1) { output.writeMessage(1, (etcdserverpb.Rpc.RangeRequest) request_); } if (requestCase_ == 2) { output.writeMessage(2, (etcdserverpb.Rpc.PutRequest) request_); } if (requestCase_ == 3) { output.writeMessage(3, (etcdserverpb.Rpc.DeleteRangeRequest) request_); } if (requestCase_ == 4) { output.writeMessage(4, (etcdserverpb.Rpc.TxnRequest) request_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (etcdserverpb.Rpc.RangeRequest) request_); } if (requestCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (etcdserverpb.Rpc.PutRequest) request_); } if (requestCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (etcdserverpb.Rpc.DeleteRangeRequest) request_); } if (requestCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (etcdserverpb.Rpc.TxnRequest) request_); } 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 etcdserverpb.Rpc.RequestOp)) { return super.equals(obj); } etcdserverpb.Rpc.RequestOp other = (etcdserverpb.Rpc.RequestOp) obj; boolean result = true; result = result && getRequestCase().equals( other.getRequestCase()); if (!result) return false; switch (requestCase_) { case 1: result = result && getRequestRange() .equals(other.getRequestRange()); break; case 2: result = result && getRequestPut() .equals(other.getRequestPut()); break; case 3: result = result && getRequestDeleteRange() .equals(other.getRequestDeleteRange()); break; case 4: result = result && getRequestTxn() .equals(other.getRequestTxn()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (requestCase_) { case 1: hash = (37 * hash) + REQUEST_RANGE_FIELD_NUMBER; hash = (53 * hash) + getRequestRange().hashCode(); break; case 2: hash = (37 * hash) + REQUEST_PUT_FIELD_NUMBER; hash = (53 * hash) + getRequestPut().hashCode(); break; case 3: hash = (37 * hash) + REQUEST_DELETE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getRequestDeleteRange().hashCode(); break; case 4: hash = (37 * hash) + REQUEST_TXN_FIELD_NUMBER; hash = (53 * hash) + getRequestTxn().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.RequestOp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.RequestOp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.RequestOp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.RequestOp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.RequestOp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.RequestOp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.RequestOp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.RequestOp 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 etcdserverpb.Rpc.RequestOp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.RequestOp 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 etcdserverpb.Rpc.RequestOp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.RequestOp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.RequestOp prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.RequestOp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.RequestOp) etcdserverpb.Rpc.RequestOpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RequestOp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RequestOp_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.RequestOp.class, etcdserverpb.Rpc.RequestOp.Builder.class); } // Construct using etcdserverpb.Rpc.RequestOp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); requestCase_ = 0; request_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_RequestOp_descriptor; } public etcdserverpb.Rpc.RequestOp getDefaultInstanceForType() { return etcdserverpb.Rpc.RequestOp.getDefaultInstance(); } public etcdserverpb.Rpc.RequestOp build() { etcdserverpb.Rpc.RequestOp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.RequestOp buildPartial() { etcdserverpb.Rpc.RequestOp result = new etcdserverpb.Rpc.RequestOp(this); if (requestCase_ == 1) { if (requestRangeBuilder_ == null) { result.request_ = request_; } else { result.request_ = requestRangeBuilder_.build(); } } if (requestCase_ == 2) { if (requestPutBuilder_ == null) { result.request_ = request_; } else { result.request_ = requestPutBuilder_.build(); } } if (requestCase_ == 3) { if (requestDeleteRangeBuilder_ == null) { result.request_ = request_; } else { result.request_ = requestDeleteRangeBuilder_.build(); } } if (requestCase_ == 4) { if (requestTxnBuilder_ == null) { result.request_ = request_; } else { result.request_ = requestTxnBuilder_.build(); } } result.requestCase_ = requestCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.RequestOp) { return mergeFrom((etcdserverpb.Rpc.RequestOp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.RequestOp other) { if (other == etcdserverpb.Rpc.RequestOp.getDefaultInstance()) return this; switch (other.getRequestCase()) { case REQUEST_RANGE: { mergeRequestRange(other.getRequestRange()); break; } case REQUEST_PUT: { mergeRequestPut(other.getRequestPut()); break; } case REQUEST_DELETE_RANGE: { mergeRequestDeleteRange(other.getRequestDeleteRange()); break; } case REQUEST_TXN: { mergeRequestTxn(other.getRequestTxn()); break; } case REQUEST_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.RequestOp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.RequestOp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int requestCase_ = 0; private java.lang.Object request_; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public Builder clearRequest() { requestCase_ = 0; request_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.RangeRequest, etcdserverpb.Rpc.RangeRequest.Builder, etcdserverpb.Rpc.RangeRequestOrBuilder> requestRangeBuilder_; /** * .etcdserverpb.RangeRequest request_range = 1; */ public boolean hasRequestRange() { return requestCase_ == 1; } /** * .etcdserverpb.RangeRequest request_range = 1; */ public etcdserverpb.Rpc.RangeRequest getRequestRange() { if (requestRangeBuilder_ == null) { if (requestCase_ == 1) { return (etcdserverpb.Rpc.RangeRequest) request_; } return etcdserverpb.Rpc.RangeRequest.getDefaultInstance(); } else { if (requestCase_ == 1) { return requestRangeBuilder_.getMessage(); } return etcdserverpb.Rpc.RangeRequest.getDefaultInstance(); } } /** * .etcdserverpb.RangeRequest request_range = 1; */ public Builder setRequestRange(etcdserverpb.Rpc.RangeRequest value) { if (requestRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { requestRangeBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** * .etcdserverpb.RangeRequest request_range = 1; */ public Builder setRequestRange( etcdserverpb.Rpc.RangeRequest.Builder builderForValue) { if (requestRangeBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { requestRangeBuilder_.setMessage(builderForValue.build()); } requestCase_ = 1; return this; } /** * .etcdserverpb.RangeRequest request_range = 1; */ public Builder mergeRequestRange(etcdserverpb.Rpc.RangeRequest value) { if (requestRangeBuilder_ == null) { if (requestCase_ == 1 && request_ != etcdserverpb.Rpc.RangeRequest.getDefaultInstance()) { request_ = etcdserverpb.Rpc.RangeRequest.newBuilder((etcdserverpb.Rpc.RangeRequest) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 1) { requestRangeBuilder_.mergeFrom(value); } requestRangeBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** * .etcdserverpb.RangeRequest request_range = 1; */ public Builder clearRequestRange() { if (requestRangeBuilder_ == null) { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; } requestRangeBuilder_.clear(); } return this; } /** * .etcdserverpb.RangeRequest request_range = 1; */ public etcdserverpb.Rpc.RangeRequest.Builder getRequestRangeBuilder() { return getRequestRangeFieldBuilder().getBuilder(); } /** * .etcdserverpb.RangeRequest request_range = 1; */ public etcdserverpb.Rpc.RangeRequestOrBuilder getRequestRangeOrBuilder() { if ((requestCase_ == 1) && (requestRangeBuilder_ != null)) { return requestRangeBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 1) { return (etcdserverpb.Rpc.RangeRequest) request_; } return etcdserverpb.Rpc.RangeRequest.getDefaultInstance(); } } /** * .etcdserverpb.RangeRequest request_range = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.RangeRequest, etcdserverpb.Rpc.RangeRequest.Builder, etcdserverpb.Rpc.RangeRequestOrBuilder> getRequestRangeFieldBuilder() { if (requestRangeBuilder_ == null) { if (!(requestCase_ == 1)) { request_ = etcdserverpb.Rpc.RangeRequest.getDefaultInstance(); } requestRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.RangeRequest, etcdserverpb.Rpc.RangeRequest.Builder, etcdserverpb.Rpc.RangeRequestOrBuilder>( (etcdserverpb.Rpc.RangeRequest) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 1; onChanged();; return requestRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.PutRequest, etcdserverpb.Rpc.PutRequest.Builder, etcdserverpb.Rpc.PutRequestOrBuilder> requestPutBuilder_; /** * .etcdserverpb.PutRequest request_put = 2; */ public boolean hasRequestPut() { return requestCase_ == 2; } /** * .etcdserverpb.PutRequest request_put = 2; */ public etcdserverpb.Rpc.PutRequest getRequestPut() { if (requestPutBuilder_ == null) { if (requestCase_ == 2) { return (etcdserverpb.Rpc.PutRequest) request_; } return etcdserverpb.Rpc.PutRequest.getDefaultInstance(); } else { if (requestCase_ == 2) { return requestPutBuilder_.getMessage(); } return etcdserverpb.Rpc.PutRequest.getDefaultInstance(); } } /** * .etcdserverpb.PutRequest request_put = 2; */ public Builder setRequestPut(etcdserverpb.Rpc.PutRequest value) { if (requestPutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { requestPutBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** * .etcdserverpb.PutRequest request_put = 2; */ public Builder setRequestPut( etcdserverpb.Rpc.PutRequest.Builder builderForValue) { if (requestPutBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { requestPutBuilder_.setMessage(builderForValue.build()); } requestCase_ = 2; return this; } /** * .etcdserverpb.PutRequest request_put = 2; */ public Builder mergeRequestPut(etcdserverpb.Rpc.PutRequest value) { if (requestPutBuilder_ == null) { if (requestCase_ == 2 && request_ != etcdserverpb.Rpc.PutRequest.getDefaultInstance()) { request_ = etcdserverpb.Rpc.PutRequest.newBuilder((etcdserverpb.Rpc.PutRequest) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 2) { requestPutBuilder_.mergeFrom(value); } requestPutBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** * .etcdserverpb.PutRequest request_put = 2; */ public Builder clearRequestPut() { if (requestPutBuilder_ == null) { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; } requestPutBuilder_.clear(); } return this; } /** * .etcdserverpb.PutRequest request_put = 2; */ public etcdserverpb.Rpc.PutRequest.Builder getRequestPutBuilder() { return getRequestPutFieldBuilder().getBuilder(); } /** * .etcdserverpb.PutRequest request_put = 2; */ public etcdserverpb.Rpc.PutRequestOrBuilder getRequestPutOrBuilder() { if ((requestCase_ == 2) && (requestPutBuilder_ != null)) { return requestPutBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 2) { return (etcdserverpb.Rpc.PutRequest) request_; } return etcdserverpb.Rpc.PutRequest.getDefaultInstance(); } } /** * .etcdserverpb.PutRequest request_put = 2; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.PutRequest, etcdserverpb.Rpc.PutRequest.Builder, etcdserverpb.Rpc.PutRequestOrBuilder> getRequestPutFieldBuilder() { if (requestPutBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = etcdserverpb.Rpc.PutRequest.getDefaultInstance(); } requestPutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.PutRequest, etcdserverpb.Rpc.PutRequest.Builder, etcdserverpb.Rpc.PutRequestOrBuilder>( (etcdserverpb.Rpc.PutRequest) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 2; onChanged();; return requestPutBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.DeleteRangeRequest, etcdserverpb.Rpc.DeleteRangeRequest.Builder, etcdserverpb.Rpc.DeleteRangeRequestOrBuilder> requestDeleteRangeBuilder_; /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ public boolean hasRequestDeleteRange() { return requestCase_ == 3; } /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ public etcdserverpb.Rpc.DeleteRangeRequest getRequestDeleteRange() { if (requestDeleteRangeBuilder_ == null) { if (requestCase_ == 3) { return (etcdserverpb.Rpc.DeleteRangeRequest) request_; } return etcdserverpb.Rpc.DeleteRangeRequest.getDefaultInstance(); } else { if (requestCase_ == 3) { return requestDeleteRangeBuilder_.getMessage(); } return etcdserverpb.Rpc.DeleteRangeRequest.getDefaultInstance(); } } /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ public Builder setRequestDeleteRange(etcdserverpb.Rpc.DeleteRangeRequest value) { if (requestDeleteRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { requestDeleteRangeBuilder_.setMessage(value); } requestCase_ = 3; return this; } /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ public Builder setRequestDeleteRange( etcdserverpb.Rpc.DeleteRangeRequest.Builder builderForValue) { if (requestDeleteRangeBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { requestDeleteRangeBuilder_.setMessage(builderForValue.build()); } requestCase_ = 3; return this; } /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ public Builder mergeRequestDeleteRange(etcdserverpb.Rpc.DeleteRangeRequest value) { if (requestDeleteRangeBuilder_ == null) { if (requestCase_ == 3 && request_ != etcdserverpb.Rpc.DeleteRangeRequest.getDefaultInstance()) { request_ = etcdserverpb.Rpc.DeleteRangeRequest.newBuilder((etcdserverpb.Rpc.DeleteRangeRequest) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 3) { requestDeleteRangeBuilder_.mergeFrom(value); } requestDeleteRangeBuilder_.setMessage(value); } requestCase_ = 3; return this; } /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ public Builder clearRequestDeleteRange() { if (requestDeleteRangeBuilder_ == null) { if (requestCase_ == 3) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 3) { requestCase_ = 0; request_ = null; } requestDeleteRangeBuilder_.clear(); } return this; } /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ public etcdserverpb.Rpc.DeleteRangeRequest.Builder getRequestDeleteRangeBuilder() { return getRequestDeleteRangeFieldBuilder().getBuilder(); } /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ public etcdserverpb.Rpc.DeleteRangeRequestOrBuilder getRequestDeleteRangeOrBuilder() { if ((requestCase_ == 3) && (requestDeleteRangeBuilder_ != null)) { return requestDeleteRangeBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 3) { return (etcdserverpb.Rpc.DeleteRangeRequest) request_; } return etcdserverpb.Rpc.DeleteRangeRequest.getDefaultInstance(); } } /** * .etcdserverpb.DeleteRangeRequest request_delete_range = 3; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.DeleteRangeRequest, etcdserverpb.Rpc.DeleteRangeRequest.Builder, etcdserverpb.Rpc.DeleteRangeRequestOrBuilder> getRequestDeleteRangeFieldBuilder() { if (requestDeleteRangeBuilder_ == null) { if (!(requestCase_ == 3)) { request_ = etcdserverpb.Rpc.DeleteRangeRequest.getDefaultInstance(); } requestDeleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.DeleteRangeRequest, etcdserverpb.Rpc.DeleteRangeRequest.Builder, etcdserverpb.Rpc.DeleteRangeRequestOrBuilder>( (etcdserverpb.Rpc.DeleteRangeRequest) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 3; onChanged();; return requestDeleteRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.TxnRequest, etcdserverpb.Rpc.TxnRequest.Builder, etcdserverpb.Rpc.TxnRequestOrBuilder> requestTxnBuilder_; /** * .etcdserverpb.TxnRequest request_txn = 4; */ public boolean hasRequestTxn() { return requestCase_ == 4; } /** * .etcdserverpb.TxnRequest request_txn = 4; */ public etcdserverpb.Rpc.TxnRequest getRequestTxn() { if (requestTxnBuilder_ == null) { if (requestCase_ == 4) { return (etcdserverpb.Rpc.TxnRequest) request_; } return etcdserverpb.Rpc.TxnRequest.getDefaultInstance(); } else { if (requestCase_ == 4) { return requestTxnBuilder_.getMessage(); } return etcdserverpb.Rpc.TxnRequest.getDefaultInstance(); } } /** * .etcdserverpb.TxnRequest request_txn = 4; */ public Builder setRequestTxn(etcdserverpb.Rpc.TxnRequest value) { if (requestTxnBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { requestTxnBuilder_.setMessage(value); } requestCase_ = 4; return this; } /** * .etcdserverpb.TxnRequest request_txn = 4; */ public Builder setRequestTxn( etcdserverpb.Rpc.TxnRequest.Builder builderForValue) { if (requestTxnBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { requestTxnBuilder_.setMessage(builderForValue.build()); } requestCase_ = 4; return this; } /** * .etcdserverpb.TxnRequest request_txn = 4; */ public Builder mergeRequestTxn(etcdserverpb.Rpc.TxnRequest value) { if (requestTxnBuilder_ == null) { if (requestCase_ == 4 && request_ != etcdserverpb.Rpc.TxnRequest.getDefaultInstance()) { request_ = etcdserverpb.Rpc.TxnRequest.newBuilder((etcdserverpb.Rpc.TxnRequest) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 4) { requestTxnBuilder_.mergeFrom(value); } requestTxnBuilder_.setMessage(value); } requestCase_ = 4; return this; } /** * .etcdserverpb.TxnRequest request_txn = 4; */ public Builder clearRequestTxn() { if (requestTxnBuilder_ == null) { if (requestCase_ == 4) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 4) { requestCase_ = 0; request_ = null; } requestTxnBuilder_.clear(); } return this; } /** * .etcdserverpb.TxnRequest request_txn = 4; */ public etcdserverpb.Rpc.TxnRequest.Builder getRequestTxnBuilder() { return getRequestTxnFieldBuilder().getBuilder(); } /** * .etcdserverpb.TxnRequest request_txn = 4; */ public etcdserverpb.Rpc.TxnRequestOrBuilder getRequestTxnOrBuilder() { if ((requestCase_ == 4) && (requestTxnBuilder_ != null)) { return requestTxnBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 4) { return (etcdserverpb.Rpc.TxnRequest) request_; } return etcdserverpb.Rpc.TxnRequest.getDefaultInstance(); } } /** * .etcdserverpb.TxnRequest request_txn = 4; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.TxnRequest, etcdserverpb.Rpc.TxnRequest.Builder, etcdserverpb.Rpc.TxnRequestOrBuilder> getRequestTxnFieldBuilder() { if (requestTxnBuilder_ == null) { if (!(requestCase_ == 4)) { request_ = etcdserverpb.Rpc.TxnRequest.getDefaultInstance(); } requestTxnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.TxnRequest, etcdserverpb.Rpc.TxnRequest.Builder, etcdserverpb.Rpc.TxnRequestOrBuilder>( (etcdserverpb.Rpc.TxnRequest) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 4; onChanged();; return requestTxnBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.RequestOp) } // @@protoc_insertion_point(class_scope:etcdserverpb.RequestOp) private static final etcdserverpb.Rpc.RequestOp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.RequestOp(); } public static etcdserverpb.Rpc.RequestOp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RequestOp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RequestOp(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.RequestOp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOpOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.ResponseOp) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.RangeResponse response_range = 1; */ boolean hasResponseRange(); /** * .etcdserverpb.RangeResponse response_range = 1; */ etcdserverpb.Rpc.RangeResponse getResponseRange(); /** * .etcdserverpb.RangeResponse response_range = 1; */ etcdserverpb.Rpc.RangeResponseOrBuilder getResponseRangeOrBuilder(); /** * .etcdserverpb.PutResponse response_put = 2; */ boolean hasResponsePut(); /** * .etcdserverpb.PutResponse response_put = 2; */ etcdserverpb.Rpc.PutResponse getResponsePut(); /** * .etcdserverpb.PutResponse response_put = 2; */ etcdserverpb.Rpc.PutResponseOrBuilder getResponsePutOrBuilder(); /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ boolean hasResponseDeleteRange(); /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ etcdserverpb.Rpc.DeleteRangeResponse getResponseDeleteRange(); /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ etcdserverpb.Rpc.DeleteRangeResponseOrBuilder getResponseDeleteRangeOrBuilder(); /** * .etcdserverpb.TxnResponse response_txn = 4; */ boolean hasResponseTxn(); /** * .etcdserverpb.TxnResponse response_txn = 4; */ etcdserverpb.Rpc.TxnResponse getResponseTxn(); /** * .etcdserverpb.TxnResponse response_txn = 4; */ etcdserverpb.Rpc.TxnResponseOrBuilder getResponseTxnOrBuilder(); public etcdserverpb.Rpc.ResponseOp.ResponseCase getResponseCase(); } /** * Protobuf type {@code etcdserverpb.ResponseOp} */ public static final class ResponseOp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.ResponseOp) ResponseOpOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseOp.newBuilder() to construct. private ResponseOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseOp() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResponseOp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.RangeResponse.Builder subBuilder = null; if (responseCase_ == 1) { subBuilder = ((etcdserverpb.Rpc.RangeResponse) response_).toBuilder(); } response_ = input.readMessage(etcdserverpb.Rpc.RangeResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((etcdserverpb.Rpc.RangeResponse) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 1; break; } case 18: { etcdserverpb.Rpc.PutResponse.Builder subBuilder = null; if (responseCase_ == 2) { subBuilder = ((etcdserverpb.Rpc.PutResponse) response_).toBuilder(); } response_ = input.readMessage(etcdserverpb.Rpc.PutResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((etcdserverpb.Rpc.PutResponse) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 2; break; } case 26: { etcdserverpb.Rpc.DeleteRangeResponse.Builder subBuilder = null; if (responseCase_ == 3) { subBuilder = ((etcdserverpb.Rpc.DeleteRangeResponse) response_).toBuilder(); } response_ = input.readMessage(etcdserverpb.Rpc.DeleteRangeResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((etcdserverpb.Rpc.DeleteRangeResponse) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 3; break; } case 34: { etcdserverpb.Rpc.TxnResponse.Builder subBuilder = null; if (responseCase_ == 4) { subBuilder = ((etcdserverpb.Rpc.TxnResponse) response_).toBuilder(); } response_ = input.readMessage(etcdserverpb.Rpc.TxnResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((etcdserverpb.Rpc.TxnResponse) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 4; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_ResponseOp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_ResponseOp_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.ResponseOp.class, etcdserverpb.Rpc.ResponseOp.Builder.class); } private int responseCase_ = 0; private java.lang.Object response_; public enum ResponseCase implements com.google.protobuf.Internal.EnumLite { RESPONSE_RANGE(1), RESPONSE_PUT(2), RESPONSE_DELETE_RANGE(3), RESPONSE_TXN(4), RESPONSE_NOT_SET(0); private final int value; private ResponseCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ResponseCase valueOf(int value) { return forNumber(value); } public static ResponseCase forNumber(int value) { switch (value) { case 1: return RESPONSE_RANGE; case 2: return RESPONSE_PUT; case 3: return RESPONSE_DELETE_RANGE; case 4: return RESPONSE_TXN; case 0: return RESPONSE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResponseCase getResponseCase() { return ResponseCase.forNumber( responseCase_); } public static final int RESPONSE_RANGE_FIELD_NUMBER = 1; /** * .etcdserverpb.RangeResponse response_range = 1; */ public boolean hasResponseRange() { return responseCase_ == 1; } /** * .etcdserverpb.RangeResponse response_range = 1; */ public etcdserverpb.Rpc.RangeResponse getResponseRange() { if (responseCase_ == 1) { return (etcdserverpb.Rpc.RangeResponse) response_; } return etcdserverpb.Rpc.RangeResponse.getDefaultInstance(); } /** * .etcdserverpb.RangeResponse response_range = 1; */ public etcdserverpb.Rpc.RangeResponseOrBuilder getResponseRangeOrBuilder() { if (responseCase_ == 1) { return (etcdserverpb.Rpc.RangeResponse) response_; } return etcdserverpb.Rpc.RangeResponse.getDefaultInstance(); } public static final int RESPONSE_PUT_FIELD_NUMBER = 2; /** * .etcdserverpb.PutResponse response_put = 2; */ public boolean hasResponsePut() { return responseCase_ == 2; } /** * .etcdserverpb.PutResponse response_put = 2; */ public etcdserverpb.Rpc.PutResponse getResponsePut() { if (responseCase_ == 2) { return (etcdserverpb.Rpc.PutResponse) response_; } return etcdserverpb.Rpc.PutResponse.getDefaultInstance(); } /** * .etcdserverpb.PutResponse response_put = 2; */ public etcdserverpb.Rpc.PutResponseOrBuilder getResponsePutOrBuilder() { if (responseCase_ == 2) { return (etcdserverpb.Rpc.PutResponse) response_; } return etcdserverpb.Rpc.PutResponse.getDefaultInstance(); } public static final int RESPONSE_DELETE_RANGE_FIELD_NUMBER = 3; /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ public boolean hasResponseDeleteRange() { return responseCase_ == 3; } /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ public etcdserverpb.Rpc.DeleteRangeResponse getResponseDeleteRange() { if (responseCase_ == 3) { return (etcdserverpb.Rpc.DeleteRangeResponse) response_; } return etcdserverpb.Rpc.DeleteRangeResponse.getDefaultInstance(); } /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ public etcdserverpb.Rpc.DeleteRangeResponseOrBuilder getResponseDeleteRangeOrBuilder() { if (responseCase_ == 3) { return (etcdserverpb.Rpc.DeleteRangeResponse) response_; } return etcdserverpb.Rpc.DeleteRangeResponse.getDefaultInstance(); } public static final int RESPONSE_TXN_FIELD_NUMBER = 4; /** * .etcdserverpb.TxnResponse response_txn = 4; */ public boolean hasResponseTxn() { return responseCase_ == 4; } /** * .etcdserverpb.TxnResponse response_txn = 4; */ public etcdserverpb.Rpc.TxnResponse getResponseTxn() { if (responseCase_ == 4) { return (etcdserverpb.Rpc.TxnResponse) response_; } return etcdserverpb.Rpc.TxnResponse.getDefaultInstance(); } /** * .etcdserverpb.TxnResponse response_txn = 4; */ public etcdserverpb.Rpc.TxnResponseOrBuilder getResponseTxnOrBuilder() { if (responseCase_ == 4) { return (etcdserverpb.Rpc.TxnResponse) response_; } return etcdserverpb.Rpc.TxnResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (responseCase_ == 1) { output.writeMessage(1, (etcdserverpb.Rpc.RangeResponse) response_); } if (responseCase_ == 2) { output.writeMessage(2, (etcdserverpb.Rpc.PutResponse) response_); } if (responseCase_ == 3) { output.writeMessage(3, (etcdserverpb.Rpc.DeleteRangeResponse) response_); } if (responseCase_ == 4) { output.writeMessage(4, (etcdserverpb.Rpc.TxnResponse) response_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (responseCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (etcdserverpb.Rpc.RangeResponse) response_); } if (responseCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (etcdserverpb.Rpc.PutResponse) response_); } if (responseCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (etcdserverpb.Rpc.DeleteRangeResponse) response_); } if (responseCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (etcdserverpb.Rpc.TxnResponse) response_); } 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 etcdserverpb.Rpc.ResponseOp)) { return super.equals(obj); } etcdserverpb.Rpc.ResponseOp other = (etcdserverpb.Rpc.ResponseOp) obj; boolean result = true; result = result && getResponseCase().equals( other.getResponseCase()); if (!result) return false; switch (responseCase_) { case 1: result = result && getResponseRange() .equals(other.getResponseRange()); break; case 2: result = result && getResponsePut() .equals(other.getResponsePut()); break; case 3: result = result && getResponseDeleteRange() .equals(other.getResponseDeleteRange()); break; case 4: result = result && getResponseTxn() .equals(other.getResponseTxn()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (responseCase_) { case 1: hash = (37 * hash) + RESPONSE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getResponseRange().hashCode(); break; case 2: hash = (37 * hash) + RESPONSE_PUT_FIELD_NUMBER; hash = (53 * hash) + getResponsePut().hashCode(); break; case 3: hash = (37 * hash) + RESPONSE_DELETE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getResponseDeleteRange().hashCode(); break; case 4: hash = (37 * hash) + RESPONSE_TXN_FIELD_NUMBER; hash = (53 * hash) + getResponseTxn().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.ResponseOp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.ResponseOp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.ResponseOp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.ResponseOp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.ResponseOp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.ResponseOp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.ResponseOp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.ResponseOp 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 etcdserverpb.Rpc.ResponseOp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.ResponseOp 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 etcdserverpb.Rpc.ResponseOp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.ResponseOp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.ResponseOp prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.ResponseOp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.ResponseOp) etcdserverpb.Rpc.ResponseOpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_ResponseOp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_ResponseOp_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.ResponseOp.class, etcdserverpb.Rpc.ResponseOp.Builder.class); } // Construct using etcdserverpb.Rpc.ResponseOp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); responseCase_ = 0; response_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_ResponseOp_descriptor; } public etcdserverpb.Rpc.ResponseOp getDefaultInstanceForType() { return etcdserverpb.Rpc.ResponseOp.getDefaultInstance(); } public etcdserverpb.Rpc.ResponseOp build() { etcdserverpb.Rpc.ResponseOp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.ResponseOp buildPartial() { etcdserverpb.Rpc.ResponseOp result = new etcdserverpb.Rpc.ResponseOp(this); if (responseCase_ == 1) { if (responseRangeBuilder_ == null) { result.response_ = response_; } else { result.response_ = responseRangeBuilder_.build(); } } if (responseCase_ == 2) { if (responsePutBuilder_ == null) { result.response_ = response_; } else { result.response_ = responsePutBuilder_.build(); } } if (responseCase_ == 3) { if (responseDeleteRangeBuilder_ == null) { result.response_ = response_; } else { result.response_ = responseDeleteRangeBuilder_.build(); } } if (responseCase_ == 4) { if (responseTxnBuilder_ == null) { result.response_ = response_; } else { result.response_ = responseTxnBuilder_.build(); } } result.responseCase_ = responseCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.ResponseOp) { return mergeFrom((etcdserverpb.Rpc.ResponseOp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.ResponseOp other) { if (other == etcdserverpb.Rpc.ResponseOp.getDefaultInstance()) return this; switch (other.getResponseCase()) { case RESPONSE_RANGE: { mergeResponseRange(other.getResponseRange()); break; } case RESPONSE_PUT: { mergeResponsePut(other.getResponsePut()); break; } case RESPONSE_DELETE_RANGE: { mergeResponseDeleteRange(other.getResponseDeleteRange()); break; } case RESPONSE_TXN: { mergeResponseTxn(other.getResponseTxn()); break; } case RESPONSE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.ResponseOp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.ResponseOp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int responseCase_ = 0; private java.lang.Object response_; public ResponseCase getResponseCase() { return ResponseCase.forNumber( responseCase_); } public Builder clearResponse() { responseCase_ = 0; response_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.RangeResponse, etcdserverpb.Rpc.RangeResponse.Builder, etcdserverpb.Rpc.RangeResponseOrBuilder> responseRangeBuilder_; /** * .etcdserverpb.RangeResponse response_range = 1; */ public boolean hasResponseRange() { return responseCase_ == 1; } /** * .etcdserverpb.RangeResponse response_range = 1; */ public etcdserverpb.Rpc.RangeResponse getResponseRange() { if (responseRangeBuilder_ == null) { if (responseCase_ == 1) { return (etcdserverpb.Rpc.RangeResponse) response_; } return etcdserverpb.Rpc.RangeResponse.getDefaultInstance(); } else { if (responseCase_ == 1) { return responseRangeBuilder_.getMessage(); } return etcdserverpb.Rpc.RangeResponse.getDefaultInstance(); } } /** * .etcdserverpb.RangeResponse response_range = 1; */ public Builder setResponseRange(etcdserverpb.Rpc.RangeResponse value) { if (responseRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { responseRangeBuilder_.setMessage(value); } responseCase_ = 1; return this; } /** * .etcdserverpb.RangeResponse response_range = 1; */ public Builder setResponseRange( etcdserverpb.Rpc.RangeResponse.Builder builderForValue) { if (responseRangeBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { responseRangeBuilder_.setMessage(builderForValue.build()); } responseCase_ = 1; return this; } /** * .etcdserverpb.RangeResponse response_range = 1; */ public Builder mergeResponseRange(etcdserverpb.Rpc.RangeResponse value) { if (responseRangeBuilder_ == null) { if (responseCase_ == 1 && response_ != etcdserverpb.Rpc.RangeResponse.getDefaultInstance()) { response_ = etcdserverpb.Rpc.RangeResponse.newBuilder((etcdserverpb.Rpc.RangeResponse) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 1) { responseRangeBuilder_.mergeFrom(value); } responseRangeBuilder_.setMessage(value); } responseCase_ = 1; return this; } /** * .etcdserverpb.RangeResponse response_range = 1; */ public Builder clearResponseRange() { if (responseRangeBuilder_ == null) { if (responseCase_ == 1) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 1) { responseCase_ = 0; response_ = null; } responseRangeBuilder_.clear(); } return this; } /** * .etcdserverpb.RangeResponse response_range = 1; */ public etcdserverpb.Rpc.RangeResponse.Builder getResponseRangeBuilder() { return getResponseRangeFieldBuilder().getBuilder(); } /** * .etcdserverpb.RangeResponse response_range = 1; */ public etcdserverpb.Rpc.RangeResponseOrBuilder getResponseRangeOrBuilder() { if ((responseCase_ == 1) && (responseRangeBuilder_ != null)) { return responseRangeBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 1) { return (etcdserverpb.Rpc.RangeResponse) response_; } return etcdserverpb.Rpc.RangeResponse.getDefaultInstance(); } } /** * .etcdserverpb.RangeResponse response_range = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.RangeResponse, etcdserverpb.Rpc.RangeResponse.Builder, etcdserverpb.Rpc.RangeResponseOrBuilder> getResponseRangeFieldBuilder() { if (responseRangeBuilder_ == null) { if (!(responseCase_ == 1)) { response_ = etcdserverpb.Rpc.RangeResponse.getDefaultInstance(); } responseRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.RangeResponse, etcdserverpb.Rpc.RangeResponse.Builder, etcdserverpb.Rpc.RangeResponseOrBuilder>( (etcdserverpb.Rpc.RangeResponse) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 1; onChanged();; return responseRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.PutResponse, etcdserverpb.Rpc.PutResponse.Builder, etcdserverpb.Rpc.PutResponseOrBuilder> responsePutBuilder_; /** * .etcdserverpb.PutResponse response_put = 2; */ public boolean hasResponsePut() { return responseCase_ == 2; } /** * .etcdserverpb.PutResponse response_put = 2; */ public etcdserverpb.Rpc.PutResponse getResponsePut() { if (responsePutBuilder_ == null) { if (responseCase_ == 2) { return (etcdserverpb.Rpc.PutResponse) response_; } return etcdserverpb.Rpc.PutResponse.getDefaultInstance(); } else { if (responseCase_ == 2) { return responsePutBuilder_.getMessage(); } return etcdserverpb.Rpc.PutResponse.getDefaultInstance(); } } /** * .etcdserverpb.PutResponse response_put = 2; */ public Builder setResponsePut(etcdserverpb.Rpc.PutResponse value) { if (responsePutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { responsePutBuilder_.setMessage(value); } responseCase_ = 2; return this; } /** * .etcdserverpb.PutResponse response_put = 2; */ public Builder setResponsePut( etcdserverpb.Rpc.PutResponse.Builder builderForValue) { if (responsePutBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { responsePutBuilder_.setMessage(builderForValue.build()); } responseCase_ = 2; return this; } /** * .etcdserverpb.PutResponse response_put = 2; */ public Builder mergeResponsePut(etcdserverpb.Rpc.PutResponse value) { if (responsePutBuilder_ == null) { if (responseCase_ == 2 && response_ != etcdserverpb.Rpc.PutResponse.getDefaultInstance()) { response_ = etcdserverpb.Rpc.PutResponse.newBuilder((etcdserverpb.Rpc.PutResponse) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 2) { responsePutBuilder_.mergeFrom(value); } responsePutBuilder_.setMessage(value); } responseCase_ = 2; return this; } /** * .etcdserverpb.PutResponse response_put = 2; */ public Builder clearResponsePut() { if (responsePutBuilder_ == null) { if (responseCase_ == 2) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 2) { responseCase_ = 0; response_ = null; } responsePutBuilder_.clear(); } return this; } /** * .etcdserverpb.PutResponse response_put = 2; */ public etcdserverpb.Rpc.PutResponse.Builder getResponsePutBuilder() { return getResponsePutFieldBuilder().getBuilder(); } /** * .etcdserverpb.PutResponse response_put = 2; */ public etcdserverpb.Rpc.PutResponseOrBuilder getResponsePutOrBuilder() { if ((responseCase_ == 2) && (responsePutBuilder_ != null)) { return responsePutBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 2) { return (etcdserverpb.Rpc.PutResponse) response_; } return etcdserverpb.Rpc.PutResponse.getDefaultInstance(); } } /** * .etcdserverpb.PutResponse response_put = 2; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.PutResponse, etcdserverpb.Rpc.PutResponse.Builder, etcdserverpb.Rpc.PutResponseOrBuilder> getResponsePutFieldBuilder() { if (responsePutBuilder_ == null) { if (!(responseCase_ == 2)) { response_ = etcdserverpb.Rpc.PutResponse.getDefaultInstance(); } responsePutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.PutResponse, etcdserverpb.Rpc.PutResponse.Builder, etcdserverpb.Rpc.PutResponseOrBuilder>( (etcdserverpb.Rpc.PutResponse) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 2; onChanged();; return responsePutBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.DeleteRangeResponse, etcdserverpb.Rpc.DeleteRangeResponse.Builder, etcdserverpb.Rpc.DeleteRangeResponseOrBuilder> responseDeleteRangeBuilder_; /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ public boolean hasResponseDeleteRange() { return responseCase_ == 3; } /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ public etcdserverpb.Rpc.DeleteRangeResponse getResponseDeleteRange() { if (responseDeleteRangeBuilder_ == null) { if (responseCase_ == 3) { return (etcdserverpb.Rpc.DeleteRangeResponse) response_; } return etcdserverpb.Rpc.DeleteRangeResponse.getDefaultInstance(); } else { if (responseCase_ == 3) { return responseDeleteRangeBuilder_.getMessage(); } return etcdserverpb.Rpc.DeleteRangeResponse.getDefaultInstance(); } } /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ public Builder setResponseDeleteRange(etcdserverpb.Rpc.DeleteRangeResponse value) { if (responseDeleteRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { responseDeleteRangeBuilder_.setMessage(value); } responseCase_ = 3; return this; } /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ public Builder setResponseDeleteRange( etcdserverpb.Rpc.DeleteRangeResponse.Builder builderForValue) { if (responseDeleteRangeBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { responseDeleteRangeBuilder_.setMessage(builderForValue.build()); } responseCase_ = 3; return this; } /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ public Builder mergeResponseDeleteRange(etcdserverpb.Rpc.DeleteRangeResponse value) { if (responseDeleteRangeBuilder_ == null) { if (responseCase_ == 3 && response_ != etcdserverpb.Rpc.DeleteRangeResponse.getDefaultInstance()) { response_ = etcdserverpb.Rpc.DeleteRangeResponse.newBuilder((etcdserverpb.Rpc.DeleteRangeResponse) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 3) { responseDeleteRangeBuilder_.mergeFrom(value); } responseDeleteRangeBuilder_.setMessage(value); } responseCase_ = 3; return this; } /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ public Builder clearResponseDeleteRange() { if (responseDeleteRangeBuilder_ == null) { if (responseCase_ == 3) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 3) { responseCase_ = 0; response_ = null; } responseDeleteRangeBuilder_.clear(); } return this; } /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ public etcdserverpb.Rpc.DeleteRangeResponse.Builder getResponseDeleteRangeBuilder() { return getResponseDeleteRangeFieldBuilder().getBuilder(); } /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ public etcdserverpb.Rpc.DeleteRangeResponseOrBuilder getResponseDeleteRangeOrBuilder() { if ((responseCase_ == 3) && (responseDeleteRangeBuilder_ != null)) { return responseDeleteRangeBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 3) { return (etcdserverpb.Rpc.DeleteRangeResponse) response_; } return etcdserverpb.Rpc.DeleteRangeResponse.getDefaultInstance(); } } /** * .etcdserverpb.DeleteRangeResponse response_delete_range = 3; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.DeleteRangeResponse, etcdserverpb.Rpc.DeleteRangeResponse.Builder, etcdserverpb.Rpc.DeleteRangeResponseOrBuilder> getResponseDeleteRangeFieldBuilder() { if (responseDeleteRangeBuilder_ == null) { if (!(responseCase_ == 3)) { response_ = etcdserverpb.Rpc.DeleteRangeResponse.getDefaultInstance(); } responseDeleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.DeleteRangeResponse, etcdserverpb.Rpc.DeleteRangeResponse.Builder, etcdserverpb.Rpc.DeleteRangeResponseOrBuilder>( (etcdserverpb.Rpc.DeleteRangeResponse) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 3; onChanged();; return responseDeleteRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.TxnResponse, etcdserverpb.Rpc.TxnResponse.Builder, etcdserverpb.Rpc.TxnResponseOrBuilder> responseTxnBuilder_; /** * .etcdserverpb.TxnResponse response_txn = 4; */ public boolean hasResponseTxn() { return responseCase_ == 4; } /** * .etcdserverpb.TxnResponse response_txn = 4; */ public etcdserverpb.Rpc.TxnResponse getResponseTxn() { if (responseTxnBuilder_ == null) { if (responseCase_ == 4) { return (etcdserverpb.Rpc.TxnResponse) response_; } return etcdserverpb.Rpc.TxnResponse.getDefaultInstance(); } else { if (responseCase_ == 4) { return responseTxnBuilder_.getMessage(); } return etcdserverpb.Rpc.TxnResponse.getDefaultInstance(); } } /** * .etcdserverpb.TxnResponse response_txn = 4; */ public Builder setResponseTxn(etcdserverpb.Rpc.TxnResponse value) { if (responseTxnBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { responseTxnBuilder_.setMessage(value); } responseCase_ = 4; return this; } /** * .etcdserverpb.TxnResponse response_txn = 4; */ public Builder setResponseTxn( etcdserverpb.Rpc.TxnResponse.Builder builderForValue) { if (responseTxnBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { responseTxnBuilder_.setMessage(builderForValue.build()); } responseCase_ = 4; return this; } /** * .etcdserverpb.TxnResponse response_txn = 4; */ public Builder mergeResponseTxn(etcdserverpb.Rpc.TxnResponse value) { if (responseTxnBuilder_ == null) { if (responseCase_ == 4 && response_ != etcdserverpb.Rpc.TxnResponse.getDefaultInstance()) { response_ = etcdserverpb.Rpc.TxnResponse.newBuilder((etcdserverpb.Rpc.TxnResponse) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 4) { responseTxnBuilder_.mergeFrom(value); } responseTxnBuilder_.setMessage(value); } responseCase_ = 4; return this; } /** * .etcdserverpb.TxnResponse response_txn = 4; */ public Builder clearResponseTxn() { if (responseTxnBuilder_ == null) { if (responseCase_ == 4) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 4) { responseCase_ = 0; response_ = null; } responseTxnBuilder_.clear(); } return this; } /** * .etcdserverpb.TxnResponse response_txn = 4; */ public etcdserverpb.Rpc.TxnResponse.Builder getResponseTxnBuilder() { return getResponseTxnFieldBuilder().getBuilder(); } /** * .etcdserverpb.TxnResponse response_txn = 4; */ public etcdserverpb.Rpc.TxnResponseOrBuilder getResponseTxnOrBuilder() { if ((responseCase_ == 4) && (responseTxnBuilder_ != null)) { return responseTxnBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 4) { return (etcdserverpb.Rpc.TxnResponse) response_; } return etcdserverpb.Rpc.TxnResponse.getDefaultInstance(); } } /** * .etcdserverpb.TxnResponse response_txn = 4; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.TxnResponse, etcdserverpb.Rpc.TxnResponse.Builder, etcdserverpb.Rpc.TxnResponseOrBuilder> getResponseTxnFieldBuilder() { if (responseTxnBuilder_ == null) { if (!(responseCase_ == 4)) { response_ = etcdserverpb.Rpc.TxnResponse.getDefaultInstance(); } responseTxnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.TxnResponse, etcdserverpb.Rpc.TxnResponse.Builder, etcdserverpb.Rpc.TxnResponseOrBuilder>( (etcdserverpb.Rpc.TxnResponse) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 4; onChanged();; return responseTxnBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.ResponseOp) } // @@protoc_insertion_point(class_scope:etcdserverpb.ResponseOp) private static final etcdserverpb.Rpc.ResponseOp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.ResponseOp(); } public static etcdserverpb.Rpc.ResponseOp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResponseOp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResponseOp(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.ResponseOp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CompareOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.Compare) com.google.protobuf.MessageOrBuilder { /** *
     * result is logical comparison operation for this comparison.
     * 
* * .etcdserverpb.Compare.CompareResult result = 1; */ int getResultValue(); /** *
     * result is logical comparison operation for this comparison.
     * 
* * .etcdserverpb.Compare.CompareResult result = 1; */ etcdserverpb.Rpc.Compare.CompareResult getResult(); /** *
     * target is the key-value field to inspect for the comparison.
     * 
* * .etcdserverpb.Compare.CompareTarget target = 2; */ int getTargetValue(); /** *
     * target is the key-value field to inspect for the comparison.
     * 
* * .etcdserverpb.Compare.CompareTarget target = 2; */ etcdserverpb.Rpc.Compare.CompareTarget getTarget(); /** *
     * key is the subject key for the comparison operation.
     * 
* * bytes key = 3; */ com.google.protobuf.ByteString getKey(); /** *
     * version is the version of the given key
     * 
* * int64 version = 4; */ long getVersion(); /** *
     * create_revision is the creation revision of the given key
     * 
* * int64 create_revision = 5; */ long getCreateRevision(); /** *
     * mod_revision is the last modified revision of the given key.
     * 
* * int64 mod_revision = 6; */ long getModRevision(); /** *
     * value is the value of the given key, in bytes.
     * 
* * bytes value = 7; */ com.google.protobuf.ByteString getValue(); /** *
     * range_end compares the given target to all keys in the range [key, range_end).
     * See RangeRequest for more details on key ranges.
     * 
* * bytes range_end = 8; */ com.google.protobuf.ByteString getRangeEnd(); public etcdserverpb.Rpc.Compare.TargetUnionCase getTargetUnionCase(); } /** * Protobuf type {@code etcdserverpb.Compare} */ public static final class Compare extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.Compare) CompareOrBuilder { private static final long serialVersionUID = 0L; // Use Compare.newBuilder() to construct. private Compare(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Compare() { result_ = 0; target_ = 0; key_ = com.google.protobuf.ByteString.EMPTY; rangeEnd_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Compare( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); result_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); target_ = rawValue; break; } case 26: { key_ = input.readBytes(); break; } case 32: { targetUnionCase_ = 4; targetUnion_ = input.readInt64(); break; } case 40: { targetUnionCase_ = 5; targetUnion_ = input.readInt64(); break; } case 48: { targetUnionCase_ = 6; targetUnion_ = input.readInt64(); break; } case 58: { targetUnionCase_ = 7; targetUnion_ = input.readBytes(); break; } case 66: { rangeEnd_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_Compare_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_Compare_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.Compare.class, etcdserverpb.Rpc.Compare.Builder.class); } /** * Protobuf enum {@code etcdserverpb.Compare.CompareResult} */ public enum CompareResult implements com.google.protobuf.ProtocolMessageEnum { /** * EQUAL = 0; */ EQUAL(0), /** * GREATER = 1; */ GREATER(1), /** * LESS = 2; */ LESS(2), /** * NOT_EQUAL = 3; */ NOT_EQUAL(3), UNRECOGNIZED(-1), ; /** * EQUAL = 0; */ public static final int EQUAL_VALUE = 0; /** * GREATER = 1; */ public static final int GREATER_VALUE = 1; /** * LESS = 2; */ public static final int LESS_VALUE = 2; /** * NOT_EQUAL = 3; */ public static final int NOT_EQUAL_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CompareResult valueOf(int value) { return forNumber(value); } public static CompareResult forNumber(int value) { switch (value) { case 0: return EQUAL; case 1: return GREATER; case 2: return LESS; case 3: return NOT_EQUAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CompareResult> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CompareResult findValueByNumber(int number) { return CompareResult.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return etcdserverpb.Rpc.Compare.getDescriptor().getEnumTypes().get(0); } private static final CompareResult[] VALUES = values(); public static CompareResult valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private CompareResult(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:etcdserverpb.Compare.CompareResult) } /** * Protobuf enum {@code etcdserverpb.Compare.CompareTarget} */ public enum CompareTarget implements com.google.protobuf.ProtocolMessageEnum { /** * VERSION = 0; */ VERSION(0), /** * CREATE = 1; */ CREATE(1), /** * MOD = 2; */ MOD(2), /** * VALUE = 3; */ VALUE(3), UNRECOGNIZED(-1), ; /** * VERSION = 0; */ public static final int VERSION_VALUE = 0; /** * CREATE = 1; */ public static final int CREATE_VALUE = 1; /** * MOD = 2; */ public static final int MOD_VALUE = 2; /** * VALUE = 3; */ public static final int VALUE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CompareTarget valueOf(int value) { return forNumber(value); } public static CompareTarget forNumber(int value) { switch (value) { case 0: return VERSION; case 1: return CREATE; case 2: return MOD; case 3: return VALUE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CompareTarget> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CompareTarget findValueByNumber(int number) { return CompareTarget.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return etcdserverpb.Rpc.Compare.getDescriptor().getEnumTypes().get(1); } private static final CompareTarget[] VALUES = values(); public static CompareTarget valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private CompareTarget(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:etcdserverpb.Compare.CompareTarget) } private int targetUnionCase_ = 0; private java.lang.Object targetUnion_; public enum TargetUnionCase implements com.google.protobuf.Internal.EnumLite { VERSION(4), CREATE_REVISION(5), MOD_REVISION(6), VALUE(7), TARGETUNION_NOT_SET(0); private final int value; private TargetUnionCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TargetUnionCase valueOf(int value) { return forNumber(value); } public static TargetUnionCase forNumber(int value) { switch (value) { case 4: return VERSION; case 5: return CREATE_REVISION; case 6: return MOD_REVISION; case 7: return VALUE; case 0: return TARGETUNION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TargetUnionCase getTargetUnionCase() { return TargetUnionCase.forNumber( targetUnionCase_); } public static final int RESULT_FIELD_NUMBER = 1; private int result_; /** *
     * result is logical comparison operation for this comparison.
     * 
* * .etcdserverpb.Compare.CompareResult result = 1; */ public int getResultValue() { return result_; } /** *
     * result is logical comparison operation for this comparison.
     * 
* * .etcdserverpb.Compare.CompareResult result = 1; */ public etcdserverpb.Rpc.Compare.CompareResult getResult() { etcdserverpb.Rpc.Compare.CompareResult result = etcdserverpb.Rpc.Compare.CompareResult.valueOf(result_); return result == null ? etcdserverpb.Rpc.Compare.CompareResult.UNRECOGNIZED : result; } public static final int TARGET_FIELD_NUMBER = 2; private int target_; /** *
     * target is the key-value field to inspect for the comparison.
     * 
* * .etcdserverpb.Compare.CompareTarget target = 2; */ public int getTargetValue() { return target_; } /** *
     * target is the key-value field to inspect for the comparison.
     * 
* * .etcdserverpb.Compare.CompareTarget target = 2; */ public etcdserverpb.Rpc.Compare.CompareTarget getTarget() { etcdserverpb.Rpc.Compare.CompareTarget result = etcdserverpb.Rpc.Compare.CompareTarget.valueOf(target_); return result == null ? etcdserverpb.Rpc.Compare.CompareTarget.UNRECOGNIZED : result; } public static final int KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString key_; /** *
     * key is the subject key for the comparison operation.
     * 
* * bytes key = 3; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VERSION_FIELD_NUMBER = 4; /** *
     * version is the version of the given key
     * 
* * int64 version = 4; */ public long getVersion() { if (targetUnionCase_ == 4) { return (java.lang.Long) targetUnion_; } return 0L; } public static final int CREATE_REVISION_FIELD_NUMBER = 5; /** *
     * create_revision is the creation revision of the given key
     * 
* * int64 create_revision = 5; */ public long getCreateRevision() { if (targetUnionCase_ == 5) { return (java.lang.Long) targetUnion_; } return 0L; } public static final int MOD_REVISION_FIELD_NUMBER = 6; /** *
     * mod_revision is the last modified revision of the given key.
     * 
* * int64 mod_revision = 6; */ public long getModRevision() { if (targetUnionCase_ == 6) { return (java.lang.Long) targetUnion_; } return 0L; } public static final int VALUE_FIELD_NUMBER = 7; /** *
     * value is the value of the given key, in bytes.
     * 
* * bytes value = 7; */ public com.google.protobuf.ByteString getValue() { if (targetUnionCase_ == 7) { return (com.google.protobuf.ByteString) targetUnion_; } return com.google.protobuf.ByteString.EMPTY; } public static final int RANGE_END_FIELD_NUMBER = 8; private com.google.protobuf.ByteString rangeEnd_; /** *
     * range_end compares the given target to all keys in the range [key, range_end).
     * See RangeRequest for more details on key ranges.
     * 
* * bytes range_end = 8; */ public com.google.protobuf.ByteString getRangeEnd() { return rangeEnd_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (result_ != etcdserverpb.Rpc.Compare.CompareResult.EQUAL.getNumber()) { output.writeEnum(1, result_); } if (target_ != etcdserverpb.Rpc.Compare.CompareTarget.VERSION.getNumber()) { output.writeEnum(2, target_); } if (!key_.isEmpty()) { output.writeBytes(3, key_); } if (targetUnionCase_ == 4) { output.writeInt64( 4, (long)((java.lang.Long) targetUnion_)); } if (targetUnionCase_ == 5) { output.writeInt64( 5, (long)((java.lang.Long) targetUnion_)); } if (targetUnionCase_ == 6) { output.writeInt64( 6, (long)((java.lang.Long) targetUnion_)); } if (targetUnionCase_ == 7) { output.writeBytes( 7, (com.google.protobuf.ByteString) targetUnion_); } if (!rangeEnd_.isEmpty()) { output.writeBytes(8, rangeEnd_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (result_ != etcdserverpb.Rpc.Compare.CompareResult.EQUAL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, result_); } if (target_ != etcdserverpb.Rpc.Compare.CompareTarget.VERSION.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, target_); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, key_); } if (targetUnionCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 4, (long)((java.lang.Long) targetUnion_)); } if (targetUnionCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 5, (long)((java.lang.Long) targetUnion_)); } if (targetUnionCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 6, (long)((java.lang.Long) targetUnion_)); } if (targetUnionCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 7, (com.google.protobuf.ByteString) targetUnion_); } if (!rangeEnd_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, rangeEnd_); } 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 etcdserverpb.Rpc.Compare)) { return super.equals(obj); } etcdserverpb.Rpc.Compare other = (etcdserverpb.Rpc.Compare) obj; boolean result = true; result = result && result_ == other.result_; result = result && target_ == other.target_; result = result && getKey() .equals(other.getKey()); result = result && getRangeEnd() .equals(other.getRangeEnd()); result = result && getTargetUnionCase().equals( other.getTargetUnionCase()); if (!result) return false; switch (targetUnionCase_) { case 4: result = result && (getVersion() == other.getVersion()); break; case 5: result = result && (getCreateRevision() == other.getCreateRevision()); break; case 6: result = result && (getModRevision() == other.getModRevision()); break; case 7: result = result && getValue() .equals(other.getValue()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + result_; hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + target_; hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + RANGE_END_FIELD_NUMBER; hash = (53 * hash) + getRangeEnd().hashCode(); switch (targetUnionCase_) { case 4: hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); break; case 5: hash = (37 * hash) + CREATE_REVISION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreateRevision()); break; case 6: hash = (37 * hash) + MOD_REVISION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getModRevision()); break; case 7: hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.Compare parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.Compare parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.Compare parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.Compare parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.Compare parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.Compare parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.Compare parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.Compare 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 etcdserverpb.Rpc.Compare parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.Compare 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 etcdserverpb.Rpc.Compare parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.Compare parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.Compare prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.Compare} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.Compare) etcdserverpb.Rpc.CompareOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_Compare_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_Compare_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.Compare.class, etcdserverpb.Rpc.Compare.Builder.class); } // Construct using etcdserverpb.Rpc.Compare.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); result_ = 0; target_ = 0; key_ = com.google.protobuf.ByteString.EMPTY; rangeEnd_ = com.google.protobuf.ByteString.EMPTY; targetUnionCase_ = 0; targetUnion_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_Compare_descriptor; } public etcdserverpb.Rpc.Compare getDefaultInstanceForType() { return etcdserverpb.Rpc.Compare.getDefaultInstance(); } public etcdserverpb.Rpc.Compare build() { etcdserverpb.Rpc.Compare result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.Compare buildPartial() { etcdserverpb.Rpc.Compare result = new etcdserverpb.Rpc.Compare(this); result.result_ = result_; result.target_ = target_; result.key_ = key_; if (targetUnionCase_ == 4) { result.targetUnion_ = targetUnion_; } if (targetUnionCase_ == 5) { result.targetUnion_ = targetUnion_; } if (targetUnionCase_ == 6) { result.targetUnion_ = targetUnion_; } if (targetUnionCase_ == 7) { result.targetUnion_ = targetUnion_; } result.rangeEnd_ = rangeEnd_; result.targetUnionCase_ = targetUnionCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.Compare) { return mergeFrom((etcdserverpb.Rpc.Compare)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.Compare other) { if (other == etcdserverpb.Rpc.Compare.getDefaultInstance()) return this; if (other.result_ != 0) { setResultValue(other.getResultValue()); } if (other.target_ != 0) { setTargetValue(other.getTargetValue()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getRangeEnd() != com.google.protobuf.ByteString.EMPTY) { setRangeEnd(other.getRangeEnd()); } switch (other.getTargetUnionCase()) { case VERSION: { setVersion(other.getVersion()); break; } case CREATE_REVISION: { setCreateRevision(other.getCreateRevision()); break; } case MOD_REVISION: { setModRevision(other.getModRevision()); break; } case VALUE: { setValue(other.getValue()); break; } case TARGETUNION_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.Compare parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.Compare) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int targetUnionCase_ = 0; private java.lang.Object targetUnion_; public TargetUnionCase getTargetUnionCase() { return TargetUnionCase.forNumber( targetUnionCase_); } public Builder clearTargetUnion() { targetUnionCase_ = 0; targetUnion_ = null; onChanged(); return this; } private int result_ = 0; /** *
       * result is logical comparison operation for this comparison.
       * 
* * .etcdserverpb.Compare.CompareResult result = 1; */ public int getResultValue() { return result_; } /** *
       * result is logical comparison operation for this comparison.
       * 
* * .etcdserverpb.Compare.CompareResult result = 1; */ public Builder setResultValue(int value) { result_ = value; onChanged(); return this; } /** *
       * result is logical comparison operation for this comparison.
       * 
* * .etcdserverpb.Compare.CompareResult result = 1; */ public etcdserverpb.Rpc.Compare.CompareResult getResult() { etcdserverpb.Rpc.Compare.CompareResult result = etcdserverpb.Rpc.Compare.CompareResult.valueOf(result_); return result == null ? etcdserverpb.Rpc.Compare.CompareResult.UNRECOGNIZED : result; } /** *
       * result is logical comparison operation for this comparison.
       * 
* * .etcdserverpb.Compare.CompareResult result = 1; */ public Builder setResult(etcdserverpb.Rpc.Compare.CompareResult value) { if (value == null) { throw new NullPointerException(); } result_ = value.getNumber(); onChanged(); return this; } /** *
       * result is logical comparison operation for this comparison.
       * 
* * .etcdserverpb.Compare.CompareResult result = 1; */ public Builder clearResult() { result_ = 0; onChanged(); return this; } private int target_ = 0; /** *
       * target is the key-value field to inspect for the comparison.
       * 
* * .etcdserverpb.Compare.CompareTarget target = 2; */ public int getTargetValue() { return target_; } /** *
       * target is the key-value field to inspect for the comparison.
       * 
* * .etcdserverpb.Compare.CompareTarget target = 2; */ public Builder setTargetValue(int value) { target_ = value; onChanged(); return this; } /** *
       * target is the key-value field to inspect for the comparison.
       * 
* * .etcdserverpb.Compare.CompareTarget target = 2; */ public etcdserverpb.Rpc.Compare.CompareTarget getTarget() { etcdserverpb.Rpc.Compare.CompareTarget result = etcdserverpb.Rpc.Compare.CompareTarget.valueOf(target_); return result == null ? etcdserverpb.Rpc.Compare.CompareTarget.UNRECOGNIZED : result; } /** *
       * target is the key-value field to inspect for the comparison.
       * 
* * .etcdserverpb.Compare.CompareTarget target = 2; */ public Builder setTarget(etcdserverpb.Rpc.Compare.CompareTarget value) { if (value == null) { throw new NullPointerException(); } target_ = value.getNumber(); onChanged(); return this; } /** *
       * target is the key-value field to inspect for the comparison.
       * 
* * .etcdserverpb.Compare.CompareTarget target = 2; */ public Builder clearTarget() { target_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** *
       * key is the subject key for the comparison operation.
       * 
* * bytes key = 3; */ public com.google.protobuf.ByteString getKey() { return key_; } /** *
       * key is the subject key for the comparison operation.
       * 
* * bytes key = 3; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * key is the subject key for the comparison operation.
       * 
* * bytes key = 3; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
       * version is the version of the given key
       * 
* * int64 version = 4; */ public long getVersion() { if (targetUnionCase_ == 4) { return (java.lang.Long) targetUnion_; } return 0L; } /** *
       * version is the version of the given key
       * 
* * int64 version = 4; */ public Builder setVersion(long value) { targetUnionCase_ = 4; targetUnion_ = value; onChanged(); return this; } /** *
       * version is the version of the given key
       * 
* * int64 version = 4; */ public Builder clearVersion() { if (targetUnionCase_ == 4) { targetUnionCase_ = 0; targetUnion_ = null; onChanged(); } return this; } /** *
       * create_revision is the creation revision of the given key
       * 
* * int64 create_revision = 5; */ public long getCreateRevision() { if (targetUnionCase_ == 5) { return (java.lang.Long) targetUnion_; } return 0L; } /** *
       * create_revision is the creation revision of the given key
       * 
* * int64 create_revision = 5; */ public Builder setCreateRevision(long value) { targetUnionCase_ = 5; targetUnion_ = value; onChanged(); return this; } /** *
       * create_revision is the creation revision of the given key
       * 
* * int64 create_revision = 5; */ public Builder clearCreateRevision() { if (targetUnionCase_ == 5) { targetUnionCase_ = 0; targetUnion_ = null; onChanged(); } return this; } /** *
       * mod_revision is the last modified revision of the given key.
       * 
* * int64 mod_revision = 6; */ public long getModRevision() { if (targetUnionCase_ == 6) { return (java.lang.Long) targetUnion_; } return 0L; } /** *
       * mod_revision is the last modified revision of the given key.
       * 
* * int64 mod_revision = 6; */ public Builder setModRevision(long value) { targetUnionCase_ = 6; targetUnion_ = value; onChanged(); return this; } /** *
       * mod_revision is the last modified revision of the given key.
       * 
* * int64 mod_revision = 6; */ public Builder clearModRevision() { if (targetUnionCase_ == 6) { targetUnionCase_ = 0; targetUnion_ = null; onChanged(); } return this; } /** *
       * value is the value of the given key, in bytes.
       * 
* * bytes value = 7; */ public com.google.protobuf.ByteString getValue() { if (targetUnionCase_ == 7) { return (com.google.protobuf.ByteString) targetUnion_; } return com.google.protobuf.ByteString.EMPTY; } /** *
       * value is the value of the given key, in bytes.
       * 
* * bytes value = 7; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } targetUnionCase_ = 7; targetUnion_ = value; onChanged(); return this; } /** *
       * value is the value of the given key, in bytes.
       * 
* * bytes value = 7; */ public Builder clearValue() { if (targetUnionCase_ == 7) { targetUnionCase_ = 0; targetUnion_ = null; onChanged(); } return this; } private com.google.protobuf.ByteString rangeEnd_ = com.google.protobuf.ByteString.EMPTY; /** *
       * range_end compares the given target to all keys in the range [key, range_end).
       * See RangeRequest for more details on key ranges.
       * 
* * bytes range_end = 8; */ public com.google.protobuf.ByteString getRangeEnd() { return rangeEnd_; } /** *
       * range_end compares the given target to all keys in the range [key, range_end).
       * See RangeRequest for more details on key ranges.
       * 
* * bytes range_end = 8; */ public Builder setRangeEnd(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } rangeEnd_ = value; onChanged(); return this; } /** *
       * range_end compares the given target to all keys in the range [key, range_end).
       * See RangeRequest for more details on key ranges.
       * 
* * bytes range_end = 8; */ public Builder clearRangeEnd() { rangeEnd_ = getDefaultInstance().getRangeEnd(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.Compare) } // @@protoc_insertion_point(class_scope:etcdserverpb.Compare) private static final etcdserverpb.Rpc.Compare DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.Compare(); } public static etcdserverpb.Rpc.Compare getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Compare parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Compare(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.Compare getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TxnRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.TxnRequest) com.google.protobuf.MessageOrBuilder { /** *
     * 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.util.List getCompareList(); /** *
     * 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; */ etcdserverpb.Rpc.Compare getCompare(int 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; */ int getCompareCount(); /** *
     * 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.util.List getCompareOrBuilderList(); /** *
     * 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; */ etcdserverpb.Rpc.CompareOrBuilder getCompareOrBuilder( int index); /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ java.util.List getSuccessList(); /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ etcdserverpb.Rpc.RequestOp getSuccess(int index); /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ int getSuccessCount(); /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ java.util.List getSuccessOrBuilderList(); /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ etcdserverpb.Rpc.RequestOpOrBuilder getSuccessOrBuilder( int index); /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ java.util.List getFailureList(); /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ etcdserverpb.Rpc.RequestOp getFailure(int index); /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ int getFailureCount(); /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ java.util.List getFailureOrBuilderList(); /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ etcdserverpb.Rpc.RequestOpOrBuilder getFailureOrBuilder( int index); } /** *
   * 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 TxnRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.TxnRequest) TxnRequestOrBuilder { private static final long serialVersionUID = 0L; // Use TxnRequest.newBuilder() to construct. private TxnRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TxnRequest() { compare_ = java.util.Collections.emptyList(); success_ = java.util.Collections.emptyList(); failure_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TxnRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { compare_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } compare_.add( input.readMessage(etcdserverpb.Rpc.Compare.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { success_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } success_.add( input.readMessage(etcdserverpb.Rpc.RequestOp.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { failure_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } failure_.add( input.readMessage(etcdserverpb.Rpc.RequestOp.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { compare_ = java.util.Collections.unmodifiableList(compare_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { success_ = java.util.Collections.unmodifiableList(success_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { failure_ = java.util.Collections.unmodifiableList(failure_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_TxnRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_TxnRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.TxnRequest.class, etcdserverpb.Rpc.TxnRequest.Builder.class); } public static final int COMPARE_FIELD_NUMBER = 1; private java.util.List compare_; /** *
     * compare is a list of predicates representing a conjunction of terms.
     * If the comparisons succeed, then the success requests will be processed in order,
     * and the response will contain their respective responses in order.
     * If the comparisons fail, then the failure requests will be processed in order,
     * and the response will contain their respective responses in order.
     * 
* * repeated .etcdserverpb.Compare compare = 1; */ public java.util.List getCompareList() { return compare_; } /** *
     * compare is a list of predicates representing a conjunction of terms.
     * If the comparisons succeed, then the success requests will be processed in order,
     * and the response will contain their respective responses in order.
     * If the comparisons fail, then the failure requests will be processed in order,
     * and the response will contain their respective responses in order.
     * 
* * repeated .etcdserverpb.Compare compare = 1; */ public java.util.List getCompareOrBuilderList() { return compare_; } /** *
     * compare is a list of predicates representing a conjunction of terms.
     * If the comparisons succeed, then the success requests will be processed in order,
     * and the response will contain their respective responses in order.
     * If the comparisons fail, then the failure requests will be processed in order,
     * and the response will contain their respective responses in order.
     * 
* * repeated .etcdserverpb.Compare compare = 1; */ public int getCompareCount() { return compare_.size(); } /** *
     * compare is a list of predicates representing a conjunction of terms.
     * If the comparisons succeed, then the success requests will be processed in order,
     * and the response will contain their respective responses in order.
     * If the comparisons fail, then the failure requests will be processed in order,
     * and the response will contain their respective responses in order.
     * 
* * repeated .etcdserverpb.Compare compare = 1; */ public etcdserverpb.Rpc.Compare getCompare(int index) { return compare_.get(index); } /** *
     * compare is a list of predicates representing a conjunction of terms.
     * If the comparisons succeed, then the success requests will be processed in order,
     * and the response will contain their respective responses in order.
     * If the comparisons fail, then the failure requests will be processed in order,
     * and the response will contain their respective responses in order.
     * 
* * repeated .etcdserverpb.Compare compare = 1; */ public etcdserverpb.Rpc.CompareOrBuilder getCompareOrBuilder( int index) { return compare_.get(index); } public static final int SUCCESS_FIELD_NUMBER = 2; private java.util.List success_; /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ public java.util.List getSuccessList() { return success_; } /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ public java.util.List getSuccessOrBuilderList() { return success_; } /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ public int getSuccessCount() { return success_.size(); } /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ public etcdserverpb.Rpc.RequestOp getSuccess(int index) { return success_.get(index); } /** *
     * success is a list of requests which will be applied when compare evaluates to true.
     * 
* * repeated .etcdserverpb.RequestOp success = 2; */ public etcdserverpb.Rpc.RequestOpOrBuilder getSuccessOrBuilder( int index) { return success_.get(index); } public static final int FAILURE_FIELD_NUMBER = 3; private java.util.List failure_; /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ public java.util.List getFailureList() { return failure_; } /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ public java.util.List getFailureOrBuilderList() { return failure_; } /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ public int getFailureCount() { return failure_.size(); } /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ public etcdserverpb.Rpc.RequestOp getFailure(int index) { return failure_.get(index); } /** *
     * failure is a list of requests which will be applied when compare evaluates to false.
     * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ public etcdserverpb.Rpc.RequestOpOrBuilder getFailureOrBuilder( int index) { return failure_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < compare_.size(); i++) { output.writeMessage(1, compare_.get(i)); } for (int i = 0; i < success_.size(); i++) { output.writeMessage(2, success_.get(i)); } for (int i = 0; i < failure_.size(); i++) { output.writeMessage(3, failure_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < compare_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, compare_.get(i)); } for (int i = 0; i < success_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, success_.get(i)); } for (int i = 0; i < failure_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, failure_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof etcdserverpb.Rpc.TxnRequest)) { return super.equals(obj); } etcdserverpb.Rpc.TxnRequest other = (etcdserverpb.Rpc.TxnRequest) obj; boolean result = true; result = result && getCompareList() .equals(other.getCompareList()); result = result && getSuccessList() .equals(other.getSuccessList()); result = result && getFailureList() .equals(other.getFailureList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCompareCount() > 0) { hash = (37 * hash) + COMPARE_FIELD_NUMBER; hash = (53 * hash) + getCompareList().hashCode(); } if (getSuccessCount() > 0) { hash = (37 * hash) + SUCCESS_FIELD_NUMBER; hash = (53 * hash) + getSuccessList().hashCode(); } if (getFailureCount() > 0) { hash = (37 * hash) + FAILURE_FIELD_NUMBER; hash = (53 * hash) + getFailureList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.TxnRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.TxnRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.TxnRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.TxnRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.TxnRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.TxnRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.TxnRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.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 etcdserverpb.Rpc.TxnRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.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 etcdserverpb.Rpc.TxnRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.TxnRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.TxnRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * From google paxosdb paper:
     * Our implementation hinges around a powerful primitive which we call MultiOp. All other database
     * operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically
     * and consists of three components:
     * 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check
     * for the absence or presence of a value, or compare with a given value. Two different tests in the guard
     * may apply to the same or different entries in the database. All tests in the guard are applied and
     * MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise
     * it executes f op (see item 3 below).
     * 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or
     * lookup operation, and applies to a single database entry. Two different operations in the list may apply
     * to the same or different entries in the database. These operations are executed
     * if guard evaluates to
     * true.
     * 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.
     * 
* * Protobuf type {@code etcdserverpb.TxnRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.TxnRequest) etcdserverpb.Rpc.TxnRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_TxnRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_TxnRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.TxnRequest.class, etcdserverpb.Rpc.TxnRequest.Builder.class); } // Construct using etcdserverpb.Rpc.TxnRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCompareFieldBuilder(); getSuccessFieldBuilder(); getFailureFieldBuilder(); } } public Builder clear() { super.clear(); if (compareBuilder_ == null) { compare_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { compareBuilder_.clear(); } if (successBuilder_ == null) { success_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { successBuilder_.clear(); } if (failureBuilder_ == null) { failure_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { failureBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_TxnRequest_descriptor; } public etcdserverpb.Rpc.TxnRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.TxnRequest.getDefaultInstance(); } public etcdserverpb.Rpc.TxnRequest build() { etcdserverpb.Rpc.TxnRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.TxnRequest buildPartial() { etcdserverpb.Rpc.TxnRequest result = new etcdserverpb.Rpc.TxnRequest(this); int from_bitField0_ = bitField0_; if (compareBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { compare_ = java.util.Collections.unmodifiableList(compare_); bitField0_ = (bitField0_ & ~0x00000001); } result.compare_ = compare_; } else { result.compare_ = compareBuilder_.build(); } if (successBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { success_ = java.util.Collections.unmodifiableList(success_); bitField0_ = (bitField0_ & ~0x00000002); } result.success_ = success_; } else { result.success_ = successBuilder_.build(); } if (failureBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { failure_ = java.util.Collections.unmodifiableList(failure_); bitField0_ = (bitField0_ & ~0x00000004); } result.failure_ = failure_; } else { result.failure_ = failureBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.TxnRequest) { return mergeFrom((etcdserverpb.Rpc.TxnRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.TxnRequest other) { if (other == etcdserverpb.Rpc.TxnRequest.getDefaultInstance()) return this; if (compareBuilder_ == null) { if (!other.compare_.isEmpty()) { if (compare_.isEmpty()) { compare_ = other.compare_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCompareIsMutable(); compare_.addAll(other.compare_); } onChanged(); } } else { if (!other.compare_.isEmpty()) { if (compareBuilder_.isEmpty()) { compareBuilder_.dispose(); compareBuilder_ = null; compare_ = other.compare_; bitField0_ = (bitField0_ & ~0x00000001); compareBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCompareFieldBuilder() : null; } else { compareBuilder_.addAllMessages(other.compare_); } } } if (successBuilder_ == null) { if (!other.success_.isEmpty()) { if (success_.isEmpty()) { success_ = other.success_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSuccessIsMutable(); success_.addAll(other.success_); } onChanged(); } } else { if (!other.success_.isEmpty()) { if (successBuilder_.isEmpty()) { successBuilder_.dispose(); successBuilder_ = null; success_ = other.success_; bitField0_ = (bitField0_ & ~0x00000002); successBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSuccessFieldBuilder() : null; } else { successBuilder_.addAllMessages(other.success_); } } } if (failureBuilder_ == null) { if (!other.failure_.isEmpty()) { if (failure_.isEmpty()) { failure_ = other.failure_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFailureIsMutable(); failure_.addAll(other.failure_); } onChanged(); } } else { if (!other.failure_.isEmpty()) { if (failureBuilder_.isEmpty()) { failureBuilder_.dispose(); failureBuilder_ = null; failure_ = other.failure_; bitField0_ = (bitField0_ & ~0x00000004); failureBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFailureFieldBuilder() : null; } else { failureBuilder_.addAllMessages(other.failure_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.TxnRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.TxnRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List compare_ = java.util.Collections.emptyList(); private void ensureCompareIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { compare_ = new java.util.ArrayList(compare_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Compare, etcdserverpb.Rpc.Compare.Builder, etcdserverpb.Rpc.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 etcdserverpb.Rpc.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, etcdserverpb.Rpc.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, etcdserverpb.Rpc.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(etcdserverpb.Rpc.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, etcdserverpb.Rpc.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( etcdserverpb.Rpc.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, etcdserverpb.Rpc.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 etcdserverpb.Rpc.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 etcdserverpb.Rpc.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 etcdserverpb.Rpc.Compare.Builder addCompareBuilder() { return getCompareFieldBuilder().addBuilder( etcdserverpb.Rpc.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 etcdserverpb.Rpc.Compare.Builder addCompareBuilder( int index) { return getCompareFieldBuilder().addBuilder( index, etcdserverpb.Rpc.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< etcdserverpb.Rpc.Compare, etcdserverpb.Rpc.Compare.Builder, etcdserverpb.Rpc.CompareOrBuilder> getCompareFieldBuilder() { if (compareBuilder_ == null) { compareBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Compare, etcdserverpb.Rpc.Compare.Builder, etcdserverpb.Rpc.CompareOrBuilder>( compare_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); compare_ = null; } return compareBuilder_; } private java.util.List success_ = java.util.Collections.emptyList(); private void ensureSuccessIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { success_ = new java.util.ArrayList(success_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.RequestOp, etcdserverpb.Rpc.RequestOp.Builder, etcdserverpb.Rpc.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 etcdserverpb.Rpc.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, etcdserverpb.Rpc.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, etcdserverpb.Rpc.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(etcdserverpb.Rpc.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, etcdserverpb.Rpc.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( etcdserverpb.Rpc.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, etcdserverpb.Rpc.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 etcdserverpb.Rpc.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 etcdserverpb.Rpc.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 etcdserverpb.Rpc.RequestOp.Builder addSuccessBuilder() { return getSuccessFieldBuilder().addBuilder( etcdserverpb.Rpc.RequestOp.getDefaultInstance()); } /** *
       * success is a list of requests which will be applied when compare evaluates to true.
       * 
* * repeated .etcdserverpb.RequestOp success = 2; */ public etcdserverpb.Rpc.RequestOp.Builder addSuccessBuilder( int index) { return getSuccessFieldBuilder().addBuilder( index, etcdserverpb.Rpc.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< etcdserverpb.Rpc.RequestOp, etcdserverpb.Rpc.RequestOp.Builder, etcdserverpb.Rpc.RequestOpOrBuilder> getSuccessFieldBuilder() { if (successBuilder_ == null) { successBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.RequestOp, etcdserverpb.Rpc.RequestOp.Builder, etcdserverpb.Rpc.RequestOpOrBuilder>( success_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); success_ = null; } return successBuilder_; } private java.util.List failure_ = java.util.Collections.emptyList(); private void ensureFailureIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { failure_ = new java.util.ArrayList(failure_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.RequestOp, etcdserverpb.Rpc.RequestOp.Builder, etcdserverpb.Rpc.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 etcdserverpb.Rpc.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, etcdserverpb.Rpc.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, etcdserverpb.Rpc.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(etcdserverpb.Rpc.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, etcdserverpb.Rpc.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( etcdserverpb.Rpc.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, etcdserverpb.Rpc.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 etcdserverpb.Rpc.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 etcdserverpb.Rpc.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 etcdserverpb.Rpc.RequestOp.Builder addFailureBuilder() { return getFailureFieldBuilder().addBuilder( etcdserverpb.Rpc.RequestOp.getDefaultInstance()); } /** *
       * failure is a list of requests which will be applied when compare evaluates to false.
       * 
* * repeated .etcdserverpb.RequestOp failure = 3; */ public etcdserverpb.Rpc.RequestOp.Builder addFailureBuilder( int index) { return getFailureFieldBuilder().addBuilder( index, etcdserverpb.Rpc.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< etcdserverpb.Rpc.RequestOp, etcdserverpb.Rpc.RequestOp.Builder, etcdserverpb.Rpc.RequestOpOrBuilder> getFailureFieldBuilder() { if (failureBuilder_ == null) { failureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.RequestOp, etcdserverpb.Rpc.RequestOp.Builder, etcdserverpb.Rpc.RequestOpOrBuilder>( failure_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); failure_ = null; } return failureBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.TxnRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.TxnRequest) private static final etcdserverpb.Rpc.TxnRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.TxnRequest(); } public static etcdserverpb.Rpc.TxnRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TxnRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TxnRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.TxnRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TxnResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.TxnResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * succeeded is set to true if the compare evaluated to true or false otherwise.
     * 
* * bool succeeded = 2; */ boolean getSucceeded(); /** *
     * responses is a list of responses corresponding to the results from applying
     * success if succeeded is true or failure if succeeded is false.
     * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ java.util.List getResponsesList(); /** *
     * responses is a list of responses corresponding to the results from applying
     * success if succeeded is true or failure if succeeded is false.
     * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ etcdserverpb.Rpc.ResponseOp getResponses(int index); /** *
     * responses is a list of responses corresponding to the results from applying
     * success if succeeded is true or failure if succeeded is false.
     * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ int getResponsesCount(); /** *
     * responses is a list of responses corresponding to the results from applying
     * success if succeeded is true or failure if succeeded is false.
     * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ java.util.List getResponsesOrBuilderList(); /** *
     * responses is a list of responses corresponding to the results from applying
     * success if succeeded is true or failure if succeeded is false.
     * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ etcdserverpb.Rpc.ResponseOpOrBuilder getResponsesOrBuilder( int index); } /** * Protobuf type {@code etcdserverpb.TxnResponse} */ public static final class TxnResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.TxnResponse) TxnResponseOrBuilder { private static final long serialVersionUID = 0L; // Use TxnResponse.newBuilder() to construct. private TxnResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TxnResponse() { succeeded_ = false; responses_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TxnResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { succeeded_ = input.readBool(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { responses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } responses_.add( input.readMessage(etcdserverpb.Rpc.ResponseOp.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { responses_ = java.util.Collections.unmodifiableList(responses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_TxnResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_TxnResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.TxnResponse.class, etcdserverpb.Rpc.TxnResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int SUCCEEDED_FIELD_NUMBER = 2; private boolean succeeded_; /** *
     * succeeded is set to true if the compare evaluated to true or false otherwise.
     * 
* * bool succeeded = 2; */ public boolean getSucceeded() { return succeeded_; } public static final int RESPONSES_FIELD_NUMBER = 3; private java.util.List responses_; /** *
     * responses is a list of responses corresponding to the results from applying
     * success if succeeded is true or failure if succeeded is false.
     * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public java.util.List getResponsesList() { return responses_; } /** *
     * responses is a list of responses corresponding to the results from applying
     * success if succeeded is true or failure if succeeded is false.
     * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public java.util.List getResponsesOrBuilderList() { return responses_; } /** *
     * responses is a list of responses corresponding to the results from applying
     * success if succeeded is true or failure if succeeded is false.
     * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public int getResponsesCount() { return responses_.size(); } /** *
     * responses is a list of responses corresponding to the results from applying
     * success if succeeded is true or failure if succeeded is false.
     * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public etcdserverpb.Rpc.ResponseOp getResponses(int index) { return responses_.get(index); } /** *
     * responses is a list of responses corresponding to the results from applying
     * success if succeeded is true or failure if succeeded is false.
     * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public etcdserverpb.Rpc.ResponseOpOrBuilder getResponsesOrBuilder( int index) { return responses_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (succeeded_ != false) { output.writeBool(2, succeeded_); } for (int i = 0; i < responses_.size(); i++) { output.writeMessage(3, responses_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (succeeded_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, succeeded_); } for (int i = 0; i < responses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, responses_.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 etcdserverpb.Rpc.TxnResponse)) { return super.equals(obj); } etcdserverpb.Rpc.TxnResponse other = (etcdserverpb.Rpc.TxnResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getSucceeded() == other.getSucceeded()); result = result && getResponsesList() .equals(other.getResponsesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + SUCCEEDED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSucceeded()); if (getResponsesCount() > 0) { hash = (37 * hash) + RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getResponsesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.TxnResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.TxnResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.TxnResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.TxnResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.TxnResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.TxnResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.TxnResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.TxnResponse 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 etcdserverpb.Rpc.TxnResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.TxnResponse 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 etcdserverpb.Rpc.TxnResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.TxnResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.TxnResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.TxnResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.TxnResponse) etcdserverpb.Rpc.TxnResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_TxnResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_TxnResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.TxnResponse.class, etcdserverpb.Rpc.TxnResponse.Builder.class); } // Construct using etcdserverpb.Rpc.TxnResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } succeeded_ = false; if (responsesBuilder_ == null) { responses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { responsesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_TxnResponse_descriptor; } public etcdserverpb.Rpc.TxnResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.TxnResponse.getDefaultInstance(); } public etcdserverpb.Rpc.TxnResponse build() { etcdserverpb.Rpc.TxnResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.TxnResponse buildPartial() { etcdserverpb.Rpc.TxnResponse result = new etcdserverpb.Rpc.TxnResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.succeeded_ = succeeded_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { responses_ = java.util.Collections.unmodifiableList(responses_); bitField0_ = (bitField0_ & ~0x00000004); } result.responses_ = responses_; } else { result.responses_ = responsesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.TxnResponse) { return mergeFrom((etcdserverpb.Rpc.TxnResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.TxnResponse other) { if (other == etcdserverpb.Rpc.TxnResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getSucceeded() != false) { setSucceeded(other.getSucceeded()); } if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureResponsesIsMutable(); responses_.addAll(other.responses_); } onChanged(); } } else { if (!other.responses_.isEmpty()) { if (responsesBuilder_.isEmpty()) { responsesBuilder_.dispose(); responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000004); responsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.TxnResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.TxnResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private boolean succeeded_ ; /** *
       * succeeded is set to true if the compare evaluated to true or false otherwise.
       * 
* * bool succeeded = 2; */ public boolean getSucceeded() { return succeeded_; } /** *
       * succeeded is set to true if the compare evaluated to true or false otherwise.
       * 
* * bool succeeded = 2; */ public Builder setSucceeded(boolean value) { succeeded_ = value; onChanged(); return this; } /** *
       * succeeded is set to true if the compare evaluated to true or false otherwise.
       * 
* * bool succeeded = 2; */ public Builder clearSucceeded() { succeeded_ = false; onChanged(); return this; } private java.util.List responses_ = java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.ResponseOp, etcdserverpb.Rpc.ResponseOp.Builder, etcdserverpb.Rpc.ResponseOpOrBuilder> responsesBuilder_; /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public java.util.List getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { return responsesBuilder_.getMessageList(); } } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public int getResponsesCount() { if (responsesBuilder_ == null) { return responses_.size(); } else { return responsesBuilder_.getCount(); } } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public etcdserverpb.Rpc.ResponseOp getResponses(int index) { if (responsesBuilder_ == null) { return responses_.get(index); } else { return responsesBuilder_.getMessage(index); } } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public Builder setResponses( int index, etcdserverpb.Rpc.ResponseOp value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.set(index, value); onChanged(); } else { responsesBuilder_.setMessage(index, value); } return this; } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public Builder setResponses( int index, etcdserverpb.Rpc.ResponseOp.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); onChanged(); } else { responsesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public Builder addResponses(etcdserverpb.Rpc.ResponseOp value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.add(value); onChanged(); } else { responsesBuilder_.addMessage(value); } return this; } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public Builder addResponses( int index, etcdserverpb.Rpc.ResponseOp value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.add(index, value); onChanged(); } else { responsesBuilder_.addMessage(index, value); } return this; } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public Builder addResponses( etcdserverpb.Rpc.ResponseOp.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(builderForValue.build()); onChanged(); } else { responsesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public Builder addResponses( int index, etcdserverpb.Rpc.ResponseOp.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); onChanged(); } else { responsesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public Builder addAllResponses( java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); } return this; } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public Builder clearResponses() { if (responsesBuilder_ == null) { responses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { responsesBuilder_.clear(); } return this; } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public Builder removeResponses(int index) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.remove(index); onChanged(); } else { responsesBuilder_.remove(index); } return this; } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public etcdserverpb.Rpc.ResponseOp.Builder getResponsesBuilder( int index) { return getResponsesFieldBuilder().getBuilder(index); } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public etcdserverpb.Rpc.ResponseOpOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public java.util.List getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(responses_); } } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public etcdserverpb.Rpc.ResponseOp.Builder addResponsesBuilder() { return getResponsesFieldBuilder().addBuilder( etcdserverpb.Rpc.ResponseOp.getDefaultInstance()); } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public etcdserverpb.Rpc.ResponseOp.Builder addResponsesBuilder( int index) { return getResponsesFieldBuilder().addBuilder( index, etcdserverpb.Rpc.ResponseOp.getDefaultInstance()); } /** *
       * responses is a list of responses corresponding to the results from applying
       * success if succeeded is true or failure if succeeded is false.
       * 
* * repeated .etcdserverpb.ResponseOp responses = 3; */ public java.util.List getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.ResponseOp, etcdserverpb.Rpc.ResponseOp.Builder, etcdserverpb.Rpc.ResponseOpOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.ResponseOp, etcdserverpb.Rpc.ResponseOp.Builder, etcdserverpb.Rpc.ResponseOpOrBuilder>( responses_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.TxnResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.TxnResponse) private static final etcdserverpb.Rpc.TxnResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.TxnResponse(); } public static etcdserverpb.Rpc.TxnResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TxnResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TxnResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.TxnResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CompactionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.CompactionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * revision is the key-value store revision for the compaction operation.
     * 
* * int64 revision = 1; */ long getRevision(); /** *
     * physical is set so the RPC will wait until the compaction is physically
     * applied to the local database such that compacted entries are totally
     * removed from the backend database.
     * 
* * bool physical = 2; */ boolean getPhysical(); } /** *
   * CompactionRequest compacts the key-value store up to a given revision. All superseded keys
   * with a revision less than the compaction revision will be removed.
   * 
* * Protobuf type {@code etcdserverpb.CompactionRequest} */ public static final class CompactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.CompactionRequest) CompactionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CompactionRequest.newBuilder() to construct. private CompactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompactionRequest() { revision_ = 0L; physical_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CompactionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { revision_ = input.readInt64(); break; } case 16: { physical_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_CompactionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_CompactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.CompactionRequest.class, etcdserverpb.Rpc.CompactionRequest.Builder.class); } public static final int REVISION_FIELD_NUMBER = 1; private long revision_; /** *
     * revision is the key-value store revision for the compaction operation.
     * 
* * int64 revision = 1; */ public long getRevision() { return revision_; } public static final int PHYSICAL_FIELD_NUMBER = 2; private boolean physical_; /** *
     * physical is set so the RPC will wait until the compaction is physically
     * applied to the local database such that compacted entries are totally
     * removed from the backend database.
     * 
* * bool physical = 2; */ public boolean getPhysical() { return physical_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (revision_ != 0L) { output.writeInt64(1, revision_); } if (physical_ != false) { output.writeBool(2, physical_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (revision_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, revision_); } if (physical_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, physical_); } 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 etcdserverpb.Rpc.CompactionRequest)) { return super.equals(obj); } etcdserverpb.Rpc.CompactionRequest other = (etcdserverpb.Rpc.CompactionRequest) obj; boolean result = true; result = result && (getRevision() == other.getRevision()); result = result && (getPhysical() == other.getPhysical()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRevision()); hash = (37 * hash) + PHYSICAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPhysical()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.CompactionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.CompactionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.CompactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.CompactionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.CompactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.CompactionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.CompactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.CompactionRequest 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 etcdserverpb.Rpc.CompactionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.CompactionRequest 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 etcdserverpb.Rpc.CompactionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.CompactionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.CompactionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * CompactionRequest compacts the key-value store up to a given revision. All superseded keys
     * with a revision less than the compaction revision will be removed.
     * 
* * Protobuf type {@code etcdserverpb.CompactionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.CompactionRequest) etcdserverpb.Rpc.CompactionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_CompactionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_CompactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.CompactionRequest.class, etcdserverpb.Rpc.CompactionRequest.Builder.class); } // Construct using etcdserverpb.Rpc.CompactionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); revision_ = 0L; physical_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_CompactionRequest_descriptor; } public etcdserverpb.Rpc.CompactionRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.CompactionRequest.getDefaultInstance(); } public etcdserverpb.Rpc.CompactionRequest build() { etcdserverpb.Rpc.CompactionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.CompactionRequest buildPartial() { etcdserverpb.Rpc.CompactionRequest result = new etcdserverpb.Rpc.CompactionRequest(this); result.revision_ = revision_; result.physical_ = physical_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.CompactionRequest) { return mergeFrom((etcdserverpb.Rpc.CompactionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.CompactionRequest other) { if (other == etcdserverpb.Rpc.CompactionRequest.getDefaultInstance()) return this; if (other.getRevision() != 0L) { setRevision(other.getRevision()); } if (other.getPhysical() != false) { setPhysical(other.getPhysical()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.CompactionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.CompactionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long revision_ ; /** *
       * revision is the key-value store revision for the compaction operation.
       * 
* * int64 revision = 1; */ public long getRevision() { return revision_; } /** *
       * revision is the key-value store revision for the compaction operation.
       * 
* * int64 revision = 1; */ public Builder setRevision(long value) { revision_ = value; onChanged(); return this; } /** *
       * revision is the key-value store revision for the compaction operation.
       * 
* * int64 revision = 1; */ public Builder clearRevision() { revision_ = 0L; onChanged(); return this; } private boolean physical_ ; /** *
       * physical is set so the RPC will wait until the compaction is physically
       * applied to the local database such that compacted entries are totally
       * removed from the backend database.
       * 
* * bool physical = 2; */ public boolean getPhysical() { return physical_; } /** *
       * physical is set so the RPC will wait until the compaction is physically
       * applied to the local database such that compacted entries are totally
       * removed from the backend database.
       * 
* * bool physical = 2; */ public Builder setPhysical(boolean value) { physical_ = value; onChanged(); return this; } /** *
       * physical is set so the RPC will wait until the compaction is physically
       * applied to the local database such that compacted entries are totally
       * removed from the backend database.
       * 
* * bool physical = 2; */ public Builder clearPhysical() { physical_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.CompactionRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.CompactionRequest) private static final etcdserverpb.Rpc.CompactionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.CompactionRequest(); } public static etcdserverpb.Rpc.CompactionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CompactionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CompactionRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.CompactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CompactionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.CompactionResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.CompactionResponse} */ public static final class CompactionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.CompactionResponse) CompactionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CompactionResponse.newBuilder() to construct. private CompactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompactionResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CompactionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_CompactionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_CompactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.CompactionResponse.class, etcdserverpb.Rpc.CompactionResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.CompactionResponse)) { return super.equals(obj); } etcdserverpb.Rpc.CompactionResponse other = (etcdserverpb.Rpc.CompactionResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.CompactionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.CompactionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.CompactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.CompactionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.CompactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.CompactionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.CompactionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.CompactionResponse 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 etcdserverpb.Rpc.CompactionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.CompactionResponse 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 etcdserverpb.Rpc.CompactionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.CompactionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.CompactionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.CompactionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.CompactionResponse) etcdserverpb.Rpc.CompactionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_CompactionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_CompactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.CompactionResponse.class, etcdserverpb.Rpc.CompactionResponse.Builder.class); } // Construct using etcdserverpb.Rpc.CompactionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_CompactionResponse_descriptor; } public etcdserverpb.Rpc.CompactionResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.CompactionResponse.getDefaultInstance(); } public etcdserverpb.Rpc.CompactionResponse build() { etcdserverpb.Rpc.CompactionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.CompactionResponse buildPartial() { etcdserverpb.Rpc.CompactionResponse result = new etcdserverpb.Rpc.CompactionResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.CompactionResponse) { return mergeFrom((etcdserverpb.Rpc.CompactionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.CompactionResponse other) { if (other == etcdserverpb.Rpc.CompactionResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.CompactionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.CompactionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.CompactionResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.CompactionResponse) private static final etcdserverpb.Rpc.CompactionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.CompactionResponse(); } public static etcdserverpb.Rpc.CompactionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CompactionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CompactionResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.CompactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HashRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.HashRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code etcdserverpb.HashRequest} */ public static final class HashRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.HashRequest) HashRequestOrBuilder { private static final long serialVersionUID = 0L; // Use HashRequest.newBuilder() to construct. private HashRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HashRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HashRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_HashRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_HashRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.HashRequest.class, etcdserverpb.Rpc.HashRequest.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 etcdserverpb.Rpc.HashRequest)) { return super.equals(obj); } etcdserverpb.Rpc.HashRequest other = (etcdserverpb.Rpc.HashRequest) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.HashRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.HashRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.HashRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.HashRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.HashRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.HashRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.HashRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.HashRequest 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 etcdserverpb.Rpc.HashRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.HashRequest 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 etcdserverpb.Rpc.HashRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.HashRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.HashRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.HashRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.HashRequest) etcdserverpb.Rpc.HashRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_HashRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_HashRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.HashRequest.class, etcdserverpb.Rpc.HashRequest.Builder.class); } // Construct using etcdserverpb.Rpc.HashRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_HashRequest_descriptor; } public etcdserverpb.Rpc.HashRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.HashRequest.getDefaultInstance(); } public etcdserverpb.Rpc.HashRequest build() { etcdserverpb.Rpc.HashRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.HashRequest buildPartial() { etcdserverpb.Rpc.HashRequest result = new etcdserverpb.Rpc.HashRequest(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.HashRequest) { return mergeFrom((etcdserverpb.Rpc.HashRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.HashRequest other) { if (other == etcdserverpb.Rpc.HashRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.HashRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.HashRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.HashRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.HashRequest) private static final etcdserverpb.Rpc.HashRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.HashRequest(); } public static etcdserverpb.Rpc.HashRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public HashRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HashRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.HashRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HashResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.HashResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * hash is the hash value computed from the responding member's key-value store.
     * 
* * uint32 hash = 2; */ int getHash(); } /** * Protobuf type {@code etcdserverpb.HashResponse} */ public static final class HashResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.HashResponse) HashResponseOrBuilder { private static final long serialVersionUID = 0L; // Use HashResponse.newBuilder() to construct. private HashResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HashResponse() { hash_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HashResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { hash_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_HashResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_HashResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.HashResponse.class, etcdserverpb.Rpc.HashResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int HASH_FIELD_NUMBER = 2; private int hash_; /** *
     * hash is the hash value computed from the responding member's key-value store.
     * 
* * uint32 hash = 2; */ public int getHash() { return hash_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (hash_ != 0) { output.writeUInt32(2, hash_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (hash_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, hash_); } 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 etcdserverpb.Rpc.HashResponse)) { return super.equals(obj); } etcdserverpb.Rpc.HashResponse other = (etcdserverpb.Rpc.HashResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getHash() == other.getHash()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.HashResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.HashResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.HashResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.HashResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.HashResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.HashResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.HashResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.HashResponse 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 etcdserverpb.Rpc.HashResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.HashResponse 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 etcdserverpb.Rpc.HashResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.HashResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.HashResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.HashResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.HashResponse) etcdserverpb.Rpc.HashResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_HashResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_HashResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.HashResponse.class, etcdserverpb.Rpc.HashResponse.Builder.class); } // Construct using etcdserverpb.Rpc.HashResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } hash_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_HashResponse_descriptor; } public etcdserverpb.Rpc.HashResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.HashResponse.getDefaultInstance(); } public etcdserverpb.Rpc.HashResponse build() { etcdserverpb.Rpc.HashResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.HashResponse buildPartial() { etcdserverpb.Rpc.HashResponse result = new etcdserverpb.Rpc.HashResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.hash_ = hash_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.HashResponse) { return mergeFrom((etcdserverpb.Rpc.HashResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.HashResponse other) { if (other == etcdserverpb.Rpc.HashResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getHash() != 0) { setHash(other.getHash()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.HashResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.HashResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private int hash_ ; /** *
       * hash is the hash value computed from the responding member's key-value store.
       * 
* * uint32 hash = 2; */ public int getHash() { return hash_; } /** *
       * hash is the hash value computed from the responding member's key-value store.
       * 
* * uint32 hash = 2; */ public Builder setHash(int value) { hash_ = value; onChanged(); return this; } /** *
       * hash is the hash value computed from the responding member's key-value store.
       * 
* * uint32 hash = 2; */ public Builder clearHash() { hash_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.HashResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.HashResponse) private static final etcdserverpb.Rpc.HashResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.HashResponse(); } public static etcdserverpb.Rpc.HashResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public HashResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HashResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.HashResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SnapshotRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.SnapshotRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code etcdserverpb.SnapshotRequest} */ public static final class SnapshotRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.SnapshotRequest) SnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SnapshotRequest.newBuilder() to construct. private SnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SnapshotRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_SnapshotRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_SnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.SnapshotRequest.class, etcdserverpb.Rpc.SnapshotRequest.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 etcdserverpb.Rpc.SnapshotRequest)) { return super.equals(obj); } etcdserverpb.Rpc.SnapshotRequest other = (etcdserverpb.Rpc.SnapshotRequest) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.SnapshotRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.SnapshotRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.SnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.SnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.SnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.SnapshotRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.SnapshotRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.SnapshotRequest 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 etcdserverpb.Rpc.SnapshotRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.SnapshotRequest 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 etcdserverpb.Rpc.SnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.SnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.SnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.SnapshotRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.SnapshotRequest) etcdserverpb.Rpc.SnapshotRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_SnapshotRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_SnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.SnapshotRequest.class, etcdserverpb.Rpc.SnapshotRequest.Builder.class); } // Construct using etcdserverpb.Rpc.SnapshotRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_SnapshotRequest_descriptor; } public etcdserverpb.Rpc.SnapshotRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.SnapshotRequest.getDefaultInstance(); } public etcdserverpb.Rpc.SnapshotRequest build() { etcdserverpb.Rpc.SnapshotRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.SnapshotRequest buildPartial() { etcdserverpb.Rpc.SnapshotRequest result = new etcdserverpb.Rpc.SnapshotRequest(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.SnapshotRequest) { return mergeFrom((etcdserverpb.Rpc.SnapshotRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.SnapshotRequest other) { if (other == etcdserverpb.Rpc.SnapshotRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.SnapshotRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.SnapshotRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.SnapshotRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.SnapshotRequest) private static final etcdserverpb.Rpc.SnapshotRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.SnapshotRequest(); } public static etcdserverpb.Rpc.SnapshotRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SnapshotRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.SnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SnapshotResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.SnapshotResponse) com.google.protobuf.MessageOrBuilder { /** *
     * header has the current key-value store information. The first header in the snapshot
     * stream indicates the point in time of the snapshot.
     * 
* * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** *
     * header has the current key-value store information. The first header in the snapshot
     * stream indicates the point in time of the snapshot.
     * 
* * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** *
     * header has the current key-value store information. The first header in the snapshot
     * stream indicates the point in time of the snapshot.
     * 
* * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * remaining_bytes is the number of blob bytes to be sent after this message
     * 
* * uint64 remaining_bytes = 2; */ long getRemainingBytes(); /** *
     * blob contains the next chunk of the snapshot in the snapshot stream.
     * 
* * bytes blob = 3; */ com.google.protobuf.ByteString getBlob(); } /** * Protobuf type {@code etcdserverpb.SnapshotResponse} */ public static final class SnapshotResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.SnapshotResponse) SnapshotResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SnapshotResponse.newBuilder() to construct. private SnapshotResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SnapshotResponse() { remainingBytes_ = 0L; blob_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapshotResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { remainingBytes_ = input.readUInt64(); break; } case 26: { blob_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_SnapshotResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_SnapshotResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.SnapshotResponse.class, etcdserverpb.Rpc.SnapshotResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** *
     * header has the current key-value store information. The first header in the snapshot
     * stream indicates the point in time of the snapshot.
     * 
* * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** *
     * header has the current key-value store information. The first header in the snapshot
     * stream indicates the point in time of the snapshot.
     * 
* * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** *
     * header has the current key-value store information. The first header in the snapshot
     * stream indicates the point in time of the snapshot.
     * 
* * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REMAINING_BYTES_FIELD_NUMBER = 2; private long remainingBytes_; /** *
     * remaining_bytes is the number of blob bytes to be sent after this message
     * 
* * uint64 remaining_bytes = 2; */ public long getRemainingBytes() { return remainingBytes_; } public static final int BLOB_FIELD_NUMBER = 3; private com.google.protobuf.ByteString blob_; /** *
     * blob contains the next chunk of the snapshot in the snapshot stream.
     * 
* * bytes blob = 3; */ public com.google.protobuf.ByteString getBlob() { return blob_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (remainingBytes_ != 0L) { output.writeUInt64(2, remainingBytes_); } if (!blob_.isEmpty()) { output.writeBytes(3, blob_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (remainingBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, remainingBytes_); } if (!blob_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, blob_); } 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 etcdserverpb.Rpc.SnapshotResponse)) { return super.equals(obj); } etcdserverpb.Rpc.SnapshotResponse other = (etcdserverpb.Rpc.SnapshotResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getRemainingBytes() == other.getRemainingBytes()); result = result && getBlob() .equals(other.getBlob()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + REMAINING_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRemainingBytes()); hash = (37 * hash) + BLOB_FIELD_NUMBER; hash = (53 * hash) + getBlob().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.SnapshotResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.SnapshotResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.SnapshotResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.SnapshotResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.SnapshotResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.SnapshotResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.SnapshotResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.SnapshotResponse 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 etcdserverpb.Rpc.SnapshotResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.SnapshotResponse 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 etcdserverpb.Rpc.SnapshotResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.SnapshotResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.SnapshotResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.SnapshotResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.SnapshotResponse) etcdserverpb.Rpc.SnapshotResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_SnapshotResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_SnapshotResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.SnapshotResponse.class, etcdserverpb.Rpc.SnapshotResponse.Builder.class); } // Construct using etcdserverpb.Rpc.SnapshotResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } remainingBytes_ = 0L; blob_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_SnapshotResponse_descriptor; } public etcdserverpb.Rpc.SnapshotResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.SnapshotResponse.getDefaultInstance(); } public etcdserverpb.Rpc.SnapshotResponse build() { etcdserverpb.Rpc.SnapshotResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.SnapshotResponse buildPartial() { etcdserverpb.Rpc.SnapshotResponse result = new etcdserverpb.Rpc.SnapshotResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.remainingBytes_ = remainingBytes_; result.blob_ = blob_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.SnapshotResponse) { return mergeFrom((etcdserverpb.Rpc.SnapshotResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.SnapshotResponse other) { if (other == etcdserverpb.Rpc.SnapshotResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getRemainingBytes() != 0L) { setRemainingBytes(other.getRemainingBytes()); } if (other.getBlob() != com.google.protobuf.ByteString.EMPTY) { setBlob(other.getBlob()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.SnapshotResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.SnapshotResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** *
       * header has the current key-value store information. The first header in the snapshot
       * stream indicates the point in time of the snapshot.
       * 
* * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** *
       * header has the current key-value store information. The first header in the snapshot
       * stream indicates the point in time of the snapshot.
       * 
* * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** *
       * header has the current key-value store information. The first header in the snapshot
       * stream indicates the point in time of the snapshot.
       * 
* * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** *
       * header has the current key-value store information. The first header in the snapshot
       * stream indicates the point in time of the snapshot.
       * 
* * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * header has the current key-value store information. The first header in the snapshot
       * stream indicates the point in time of the snapshot.
       * 
* * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** *
       * header has the current key-value store information. The first header in the snapshot
       * stream indicates the point in time of the snapshot.
       * 
* * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** *
       * header has the current key-value store information. The first header in the snapshot
       * stream indicates the point in time of the snapshot.
       * 
* * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** *
       * header has the current key-value store information. The first header in the snapshot
       * stream indicates the point in time of the snapshot.
       * 
* * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** *
       * header has the current key-value store information. The first header in the snapshot
       * stream indicates the point in time of the snapshot.
       * 
* * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long remainingBytes_ ; /** *
       * remaining_bytes is the number of blob bytes to be sent after this message
       * 
* * uint64 remaining_bytes = 2; */ public long getRemainingBytes() { return remainingBytes_; } /** *
       * remaining_bytes is the number of blob bytes to be sent after this message
       * 
* * uint64 remaining_bytes = 2; */ public Builder setRemainingBytes(long value) { remainingBytes_ = value; onChanged(); return this; } /** *
       * remaining_bytes is the number of blob bytes to be sent after this message
       * 
* * uint64 remaining_bytes = 2; */ public Builder clearRemainingBytes() { remainingBytes_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString blob_ = com.google.protobuf.ByteString.EMPTY; /** *
       * blob contains the next chunk of the snapshot in the snapshot stream.
       * 
* * bytes blob = 3; */ public com.google.protobuf.ByteString getBlob() { return blob_; } /** *
       * blob contains the next chunk of the snapshot in the snapshot stream.
       * 
* * bytes blob = 3; */ public Builder setBlob(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } blob_ = value; onChanged(); return this; } /** *
       * blob contains the next chunk of the snapshot in the snapshot stream.
       * 
* * bytes blob = 3; */ public Builder clearBlob() { blob_ = getDefaultInstance().getBlob(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.SnapshotResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.SnapshotResponse) private static final etcdserverpb.Rpc.SnapshotResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.SnapshotResponse(); } public static etcdserverpb.Rpc.SnapshotResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SnapshotResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SnapshotResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.SnapshotResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WatchRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.WatchRequest) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ boolean hasCreateRequest(); /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ etcdserverpb.Rpc.WatchCreateRequest getCreateRequest(); /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ etcdserverpb.Rpc.WatchCreateRequestOrBuilder getCreateRequestOrBuilder(); /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ boolean hasCancelRequest(); /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ etcdserverpb.Rpc.WatchCancelRequest getCancelRequest(); /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ etcdserverpb.Rpc.WatchCancelRequestOrBuilder getCancelRequestOrBuilder(); public etcdserverpb.Rpc.WatchRequest.RequestUnionCase getRequestUnionCase(); } /** * Protobuf type {@code etcdserverpb.WatchRequest} */ public static final class WatchRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.WatchRequest) WatchRequestOrBuilder { private static final long serialVersionUID = 0L; // Use WatchRequest.newBuilder() to construct. private WatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WatchRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WatchRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.WatchCreateRequest.Builder subBuilder = null; if (requestUnionCase_ == 1) { subBuilder = ((etcdserverpb.Rpc.WatchCreateRequest) requestUnion_).toBuilder(); } requestUnion_ = input.readMessage(etcdserverpb.Rpc.WatchCreateRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((etcdserverpb.Rpc.WatchCreateRequest) requestUnion_); requestUnion_ = subBuilder.buildPartial(); } requestUnionCase_ = 1; break; } case 18: { etcdserverpb.Rpc.WatchCancelRequest.Builder subBuilder = null; if (requestUnionCase_ == 2) { subBuilder = ((etcdserverpb.Rpc.WatchCancelRequest) requestUnion_).toBuilder(); } requestUnion_ = input.readMessage(etcdserverpb.Rpc.WatchCancelRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((etcdserverpb.Rpc.WatchCancelRequest) requestUnion_); requestUnion_ = subBuilder.buildPartial(); } requestUnionCase_ = 2; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.WatchRequest.class, etcdserverpb.Rpc.WatchRequest.Builder.class); } private int requestUnionCase_ = 0; private java.lang.Object requestUnion_; public enum RequestUnionCase implements com.google.protobuf.Internal.EnumLite { CREATE_REQUEST(1), CANCEL_REQUEST(2), REQUESTUNION_NOT_SET(0); private final int value; private RequestUnionCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RequestUnionCase valueOf(int value) { return forNumber(value); } public static RequestUnionCase forNumber(int value) { switch (value) { case 1: return CREATE_REQUEST; case 2: return CANCEL_REQUEST; case 0: return REQUESTUNION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RequestUnionCase getRequestUnionCase() { return RequestUnionCase.forNumber( requestUnionCase_); } public static final int CREATE_REQUEST_FIELD_NUMBER = 1; /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ public boolean hasCreateRequest() { return requestUnionCase_ == 1; } /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ public etcdserverpb.Rpc.WatchCreateRequest getCreateRequest() { if (requestUnionCase_ == 1) { return (etcdserverpb.Rpc.WatchCreateRequest) requestUnion_; } return etcdserverpb.Rpc.WatchCreateRequest.getDefaultInstance(); } /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ public etcdserverpb.Rpc.WatchCreateRequestOrBuilder getCreateRequestOrBuilder() { if (requestUnionCase_ == 1) { return (etcdserverpb.Rpc.WatchCreateRequest) requestUnion_; } return etcdserverpb.Rpc.WatchCreateRequest.getDefaultInstance(); } public static final int CANCEL_REQUEST_FIELD_NUMBER = 2; /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ public boolean hasCancelRequest() { return requestUnionCase_ == 2; } /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ public etcdserverpb.Rpc.WatchCancelRequest getCancelRequest() { if (requestUnionCase_ == 2) { return (etcdserverpb.Rpc.WatchCancelRequest) requestUnion_; } return etcdserverpb.Rpc.WatchCancelRequest.getDefaultInstance(); } /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ public etcdserverpb.Rpc.WatchCancelRequestOrBuilder getCancelRequestOrBuilder() { if (requestUnionCase_ == 2) { return (etcdserverpb.Rpc.WatchCancelRequest) requestUnion_; } return etcdserverpb.Rpc.WatchCancelRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (requestUnionCase_ == 1) { output.writeMessage(1, (etcdserverpb.Rpc.WatchCreateRequest) requestUnion_); } if (requestUnionCase_ == 2) { output.writeMessage(2, (etcdserverpb.Rpc.WatchCancelRequest) requestUnion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestUnionCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (etcdserverpb.Rpc.WatchCreateRequest) requestUnion_); } if (requestUnionCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (etcdserverpb.Rpc.WatchCancelRequest) requestUnion_); } 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 etcdserverpb.Rpc.WatchRequest)) { return super.equals(obj); } etcdserverpb.Rpc.WatchRequest other = (etcdserverpb.Rpc.WatchRequest) obj; boolean result = true; result = result && getRequestUnionCase().equals( other.getRequestUnionCase()); if (!result) return false; switch (requestUnionCase_) { case 1: result = result && getCreateRequest() .equals(other.getCreateRequest()); break; case 2: result = result && getCancelRequest() .equals(other.getCancelRequest()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (requestUnionCase_) { case 1: hash = (37 * hash) + CREATE_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getCreateRequest().hashCode(); break; case 2: hash = (37 * hash) + CANCEL_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getCancelRequest().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.WatchRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static etcdserverpb.Rpc.WatchRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static etcdserverpb.Rpc.WatchRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.WatchRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.WatchRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.WatchRequest) etcdserverpb.Rpc.WatchRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.WatchRequest.class, etcdserverpb.Rpc.WatchRequest.Builder.class); } // Construct using etcdserverpb.Rpc.WatchRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); requestUnionCase_ = 0; requestUnion_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchRequest_descriptor; } public etcdserverpb.Rpc.WatchRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.WatchRequest.getDefaultInstance(); } public etcdserverpb.Rpc.WatchRequest build() { etcdserverpb.Rpc.WatchRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.WatchRequest buildPartial() { etcdserverpb.Rpc.WatchRequest result = new etcdserverpb.Rpc.WatchRequest(this); if (requestUnionCase_ == 1) { if (createRequestBuilder_ == null) { result.requestUnion_ = requestUnion_; } else { result.requestUnion_ = createRequestBuilder_.build(); } } if (requestUnionCase_ == 2) { if (cancelRequestBuilder_ == null) { result.requestUnion_ = requestUnion_; } else { result.requestUnion_ = cancelRequestBuilder_.build(); } } result.requestUnionCase_ = requestUnionCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.WatchRequest) { return mergeFrom((etcdserverpb.Rpc.WatchRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.WatchRequest other) { if (other == etcdserverpb.Rpc.WatchRequest.getDefaultInstance()) return this; switch (other.getRequestUnionCase()) { case CREATE_REQUEST: { mergeCreateRequest(other.getCreateRequest()); break; } case CANCEL_REQUEST: { mergeCancelRequest(other.getCancelRequest()); break; } case REQUESTUNION_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.WatchRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.WatchRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int requestUnionCase_ = 0; private java.lang.Object requestUnion_; public RequestUnionCase getRequestUnionCase() { return RequestUnionCase.forNumber( requestUnionCase_); } public Builder clearRequestUnion() { requestUnionCase_ = 0; requestUnion_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.WatchCreateRequest, etcdserverpb.Rpc.WatchCreateRequest.Builder, etcdserverpb.Rpc.WatchCreateRequestOrBuilder> createRequestBuilder_; /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ public boolean hasCreateRequest() { return requestUnionCase_ == 1; } /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ public etcdserverpb.Rpc.WatchCreateRequest getCreateRequest() { if (createRequestBuilder_ == null) { if (requestUnionCase_ == 1) { return (etcdserverpb.Rpc.WatchCreateRequest) requestUnion_; } return etcdserverpb.Rpc.WatchCreateRequest.getDefaultInstance(); } else { if (requestUnionCase_ == 1) { return createRequestBuilder_.getMessage(); } return etcdserverpb.Rpc.WatchCreateRequest.getDefaultInstance(); } } /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ public Builder setCreateRequest(etcdserverpb.Rpc.WatchCreateRequest value) { if (createRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requestUnion_ = value; onChanged(); } else { createRequestBuilder_.setMessage(value); } requestUnionCase_ = 1; return this; } /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ public Builder setCreateRequest( etcdserverpb.Rpc.WatchCreateRequest.Builder builderForValue) { if (createRequestBuilder_ == null) { requestUnion_ = builderForValue.build(); onChanged(); } else { createRequestBuilder_.setMessage(builderForValue.build()); } requestUnionCase_ = 1; return this; } /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ public Builder mergeCreateRequest(etcdserverpb.Rpc.WatchCreateRequest value) { if (createRequestBuilder_ == null) { if (requestUnionCase_ == 1 && requestUnion_ != etcdserverpb.Rpc.WatchCreateRequest.getDefaultInstance()) { requestUnion_ = etcdserverpb.Rpc.WatchCreateRequest.newBuilder((etcdserverpb.Rpc.WatchCreateRequest) requestUnion_) .mergeFrom(value).buildPartial(); } else { requestUnion_ = value; } onChanged(); } else { if (requestUnionCase_ == 1) { createRequestBuilder_.mergeFrom(value); } createRequestBuilder_.setMessage(value); } requestUnionCase_ = 1; return this; } /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ public Builder clearCreateRequest() { if (createRequestBuilder_ == null) { if (requestUnionCase_ == 1) { requestUnionCase_ = 0; requestUnion_ = null; onChanged(); } } else { if (requestUnionCase_ == 1) { requestUnionCase_ = 0; requestUnion_ = null; } createRequestBuilder_.clear(); } return this; } /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ public etcdserverpb.Rpc.WatchCreateRequest.Builder getCreateRequestBuilder() { return getCreateRequestFieldBuilder().getBuilder(); } /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ public etcdserverpb.Rpc.WatchCreateRequestOrBuilder getCreateRequestOrBuilder() { if ((requestUnionCase_ == 1) && (createRequestBuilder_ != null)) { return createRequestBuilder_.getMessageOrBuilder(); } else { if (requestUnionCase_ == 1) { return (etcdserverpb.Rpc.WatchCreateRequest) requestUnion_; } return etcdserverpb.Rpc.WatchCreateRequest.getDefaultInstance(); } } /** * .etcdserverpb.WatchCreateRequest create_request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.WatchCreateRequest, etcdserverpb.Rpc.WatchCreateRequest.Builder, etcdserverpb.Rpc.WatchCreateRequestOrBuilder> getCreateRequestFieldBuilder() { if (createRequestBuilder_ == null) { if (!(requestUnionCase_ == 1)) { requestUnion_ = etcdserverpb.Rpc.WatchCreateRequest.getDefaultInstance(); } createRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.WatchCreateRequest, etcdserverpb.Rpc.WatchCreateRequest.Builder, etcdserverpb.Rpc.WatchCreateRequestOrBuilder>( (etcdserverpb.Rpc.WatchCreateRequest) requestUnion_, getParentForChildren(), isClean()); requestUnion_ = null; } requestUnionCase_ = 1; onChanged();; return createRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.WatchCancelRequest, etcdserverpb.Rpc.WatchCancelRequest.Builder, etcdserverpb.Rpc.WatchCancelRequestOrBuilder> cancelRequestBuilder_; /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ public boolean hasCancelRequest() { return requestUnionCase_ == 2; } /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ public etcdserverpb.Rpc.WatchCancelRequest getCancelRequest() { if (cancelRequestBuilder_ == null) { if (requestUnionCase_ == 2) { return (etcdserverpb.Rpc.WatchCancelRequest) requestUnion_; } return etcdserverpb.Rpc.WatchCancelRequest.getDefaultInstance(); } else { if (requestUnionCase_ == 2) { return cancelRequestBuilder_.getMessage(); } return etcdserverpb.Rpc.WatchCancelRequest.getDefaultInstance(); } } /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ public Builder setCancelRequest(etcdserverpb.Rpc.WatchCancelRequest value) { if (cancelRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requestUnion_ = value; onChanged(); } else { cancelRequestBuilder_.setMessage(value); } requestUnionCase_ = 2; return this; } /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ public Builder setCancelRequest( etcdserverpb.Rpc.WatchCancelRequest.Builder builderForValue) { if (cancelRequestBuilder_ == null) { requestUnion_ = builderForValue.build(); onChanged(); } else { cancelRequestBuilder_.setMessage(builderForValue.build()); } requestUnionCase_ = 2; return this; } /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ public Builder mergeCancelRequest(etcdserverpb.Rpc.WatchCancelRequest value) { if (cancelRequestBuilder_ == null) { if (requestUnionCase_ == 2 && requestUnion_ != etcdserverpb.Rpc.WatchCancelRequest.getDefaultInstance()) { requestUnion_ = etcdserverpb.Rpc.WatchCancelRequest.newBuilder((etcdserverpb.Rpc.WatchCancelRequest) requestUnion_) .mergeFrom(value).buildPartial(); } else { requestUnion_ = value; } onChanged(); } else { if (requestUnionCase_ == 2) { cancelRequestBuilder_.mergeFrom(value); } cancelRequestBuilder_.setMessage(value); } requestUnionCase_ = 2; return this; } /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ public Builder clearCancelRequest() { if (cancelRequestBuilder_ == null) { if (requestUnionCase_ == 2) { requestUnionCase_ = 0; requestUnion_ = null; onChanged(); } } else { if (requestUnionCase_ == 2) { requestUnionCase_ = 0; requestUnion_ = null; } cancelRequestBuilder_.clear(); } return this; } /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ public etcdserverpb.Rpc.WatchCancelRequest.Builder getCancelRequestBuilder() { return getCancelRequestFieldBuilder().getBuilder(); } /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ public etcdserverpb.Rpc.WatchCancelRequestOrBuilder getCancelRequestOrBuilder() { if ((requestUnionCase_ == 2) && (cancelRequestBuilder_ != null)) { return cancelRequestBuilder_.getMessageOrBuilder(); } else { if (requestUnionCase_ == 2) { return (etcdserverpb.Rpc.WatchCancelRequest) requestUnion_; } return etcdserverpb.Rpc.WatchCancelRequest.getDefaultInstance(); } } /** * .etcdserverpb.WatchCancelRequest cancel_request = 2; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.WatchCancelRequest, etcdserverpb.Rpc.WatchCancelRequest.Builder, etcdserverpb.Rpc.WatchCancelRequestOrBuilder> getCancelRequestFieldBuilder() { if (cancelRequestBuilder_ == null) { if (!(requestUnionCase_ == 2)) { requestUnion_ = etcdserverpb.Rpc.WatchCancelRequest.getDefaultInstance(); } cancelRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.WatchCancelRequest, etcdserverpb.Rpc.WatchCancelRequest.Builder, etcdserverpb.Rpc.WatchCancelRequestOrBuilder>( (etcdserverpb.Rpc.WatchCancelRequest) requestUnion_, getParentForChildren(), isClean()); requestUnion_ = null; } requestUnionCase_ = 2; onChanged();; return cancelRequestBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.WatchRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.WatchRequest) private static final etcdserverpb.Rpc.WatchRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.WatchRequest(); } public static etcdserverpb.Rpc.WatchRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WatchRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WatchRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.WatchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WatchCreateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.WatchCreateRequest) com.google.protobuf.MessageOrBuilder { /** *
     * key is the key to register for watching.
     * 
* * bytes key = 1; */ com.google.protobuf.ByteString getKey(); /** *
     * range_end is the end of the range [key, range_end) to watch. If range_end is not given,
     * only the key argument is watched. If range_end is equal to '\0', all keys greater than
     * or equal to the key argument are watched.
     * If the range_end is one bit larger than the given key,
     * then all keys with the prefix (the given key) will be watched.
     * 
* * bytes range_end = 2; */ com.google.protobuf.ByteString getRangeEnd(); /** *
     * start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
     * 
* * int64 start_revision = 3; */ long getStartRevision(); /** *
     * progress_notify is set so that the etcd server will periodically send a WatchResponse with
     * no events to the new watcher if there are no recent events. It is useful when clients
     * wish to recover a disconnected watcher starting from a recent known revision.
     * The etcd server may decide how often it will send notifications based on current load.
     * 
* * bool progress_notify = 4; */ boolean getProgressNotify(); /** *
     * filters filter the events at server side before it sends back to the watcher.
     * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ java.util.List getFiltersList(); /** *
     * filters filter the events at server side before it sends back to the watcher.
     * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ int getFiltersCount(); /** *
     * filters filter the events at server side before it sends back to the watcher.
     * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ etcdserverpb.Rpc.WatchCreateRequest.FilterType getFilters(int index); /** *
     * filters filter the events at server side before it sends back to the watcher.
     * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ java.util.List getFiltersValueList(); /** *
     * filters filter the events at server side before it sends back to the watcher.
     * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ int getFiltersValue(int index); /** *
     * If prev_kv is set, created watcher gets the previous KV before the event happens.
     * If the previous KV is already compacted, nothing will be returned.
     * 
* * bool prev_kv = 6; */ boolean getPrevKv(); } /** * Protobuf type {@code etcdserverpb.WatchCreateRequest} */ public static final class WatchCreateRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.WatchCreateRequest) WatchCreateRequestOrBuilder { private static final long serialVersionUID = 0L; // Use WatchCreateRequest.newBuilder() to construct. private WatchCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WatchCreateRequest() { key_ = com.google.protobuf.ByteString.EMPTY; rangeEnd_ = com.google.protobuf.ByteString.EMPTY; startRevision_ = 0L; progressNotify_ = false; filters_ = java.util.Collections.emptyList(); prevKv_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WatchCreateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { key_ = input.readBytes(); break; } case 18: { rangeEnd_ = input.readBytes(); break; } case 24: { startRevision_ = input.readInt64(); break; } case 32: { progressNotify_ = input.readBool(); break; } case 40: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { filters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } filters_.add(rawValue); break; } case 42: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { filters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } filters_.add(rawValue); } input.popLimit(oldLimit); break; } case 48: { prevKv_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { filters_ = java.util.Collections.unmodifiableList(filters_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchCreateRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchCreateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.WatchCreateRequest.class, etcdserverpb.Rpc.WatchCreateRequest.Builder.class); } /** * Protobuf enum {@code etcdserverpb.WatchCreateRequest.FilterType} */ public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { /** *
       * filter out put event.
       * 
* * NOPUT = 0; */ NOPUT(0), /** *
       * filter out delete event.
       * 
* * NODELETE = 1; */ NODELETE(1), UNRECOGNIZED(-1), ; /** *
       * filter out put event.
       * 
* * NOPUT = 0; */ public static final int NOPUT_VALUE = 0; /** *
       * filter out delete event.
       * 
* * NODELETE = 1; */ public static final int NODELETE_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FilterType valueOf(int value) { return forNumber(value); } public static FilterType forNumber(int value) { switch (value) { case 0: return NOPUT; case 1: return NODELETE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< FilterType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public FilterType findValueByNumber(int number) { return FilterType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return etcdserverpb.Rpc.WatchCreateRequest.getDescriptor().getEnumTypes().get(0); } private static final FilterType[] VALUES = values(); public static FilterType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private FilterType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:etcdserverpb.WatchCreateRequest.FilterType) } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** *
     * key is the key to register for watching.
     * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int RANGE_END_FIELD_NUMBER = 2; private com.google.protobuf.ByteString rangeEnd_; /** *
     * range_end is the end of the range [key, range_end) to watch. If range_end is not given,
     * only the key argument is watched. If range_end is equal to '\0', all keys greater than
     * or equal to the key argument are watched.
     * If the range_end is one bit larger than the given key,
     * then all keys with the prefix (the given key) will be watched.
     * 
* * bytes range_end = 2; */ public com.google.protobuf.ByteString getRangeEnd() { return rangeEnd_; } public static final int START_REVISION_FIELD_NUMBER = 3; private long startRevision_; /** *
     * start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
     * 
* * int64 start_revision = 3; */ public long getStartRevision() { return startRevision_; } public static final int PROGRESS_NOTIFY_FIELD_NUMBER = 4; private boolean progressNotify_; /** *
     * progress_notify is set so that the etcd server will periodically send a WatchResponse with
     * no events to the new watcher if there are no recent events. It is useful when clients
     * wish to recover a disconnected watcher starting from a recent known revision.
     * The etcd server may decide how often it will send notifications based on current load.
     * 
* * bool progress_notify = 4; */ public boolean getProgressNotify() { return progressNotify_; } public static final int FILTERS_FIELD_NUMBER = 5; private java.util.List filters_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, etcdserverpb.Rpc.WatchCreateRequest.FilterType> filters_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, etcdserverpb.Rpc.WatchCreateRequest.FilterType>() { public etcdserverpb.Rpc.WatchCreateRequest.FilterType convert(java.lang.Integer from) { etcdserverpb.Rpc.WatchCreateRequest.FilterType result = etcdserverpb.Rpc.WatchCreateRequest.FilterType.valueOf(from); return result == null ? etcdserverpb.Rpc.WatchCreateRequest.FilterType.UNRECOGNIZED : result; } }; /** *
     * filters filter the events at server side before it sends back to the watcher.
     * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public java.util.List getFiltersList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, etcdserverpb.Rpc.WatchCreateRequest.FilterType>(filters_, filters_converter_); } /** *
     * filters filter the events at server side before it sends back to the watcher.
     * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public int getFiltersCount() { return filters_.size(); } /** *
     * filters filter the events at server side before it sends back to the watcher.
     * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public etcdserverpb.Rpc.WatchCreateRequest.FilterType getFilters(int index) { return filters_converter_.convert(filters_.get(index)); } /** *
     * filters filter the events at server side before it sends back to the watcher.
     * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public java.util.List getFiltersValueList() { return filters_; } /** *
     * filters filter the events at server side before it sends back to the watcher.
     * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public int getFiltersValue(int index) { return filters_.get(index); } private int filtersMemoizedSerializedSize; public static final int PREV_KV_FIELD_NUMBER = 6; private boolean prevKv_; /** *
     * If prev_kv is set, created watcher gets the previous KV before the event happens.
     * If the previous KV is already compacted, nothing will be returned.
     * 
* * bool prev_kv = 6; */ public boolean getPrevKv() { return prevKv_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!key_.isEmpty()) { output.writeBytes(1, key_); } if (!rangeEnd_.isEmpty()) { output.writeBytes(2, rangeEnd_); } if (startRevision_ != 0L) { output.writeInt64(3, startRevision_); } if (progressNotify_ != false) { output.writeBool(4, progressNotify_); } if (getFiltersList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(filtersMemoizedSerializedSize); } for (int i = 0; i < filters_.size(); i++) { output.writeEnumNoTag(filters_.get(i)); } if (prevKv_ != false) { output.writeBool(6, prevKv_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, key_); } if (!rangeEnd_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, rangeEnd_); } if (startRevision_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, startRevision_); } if (progressNotify_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, progressNotify_); } { int dataSize = 0; for (int i = 0; i < filters_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(filters_.get(i)); } size += dataSize; if (!getFiltersList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }filtersMemoizedSerializedSize = dataSize; } if (prevKv_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, prevKv_); } 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 etcdserverpb.Rpc.WatchCreateRequest)) { return super.equals(obj); } etcdserverpb.Rpc.WatchCreateRequest other = (etcdserverpb.Rpc.WatchCreateRequest) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && getRangeEnd() .equals(other.getRangeEnd()); result = result && (getStartRevision() == other.getStartRevision()); result = result && (getProgressNotify() == other.getProgressNotify()); result = result && filters_.equals(other.filters_); result = result && (getPrevKv() == other.getPrevKv()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + RANGE_END_FIELD_NUMBER; hash = (53 * hash) + getRangeEnd().hashCode(); hash = (37 * hash) + START_REVISION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartRevision()); hash = (37 * hash) + PROGRESS_NOTIFY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getProgressNotify()); if (getFiltersCount() > 0) { hash = (37 * hash) + FILTERS_FIELD_NUMBER; hash = (53 * hash) + filters_.hashCode(); } hash = (37 * hash) + PREV_KV_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPrevKv()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.WatchCreateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchCreateRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchCreateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchCreateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchCreateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchCreateRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchCreateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchCreateRequest 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 etcdserverpb.Rpc.WatchCreateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchCreateRequest 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 etcdserverpb.Rpc.WatchCreateRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchCreateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.WatchCreateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.WatchCreateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.WatchCreateRequest) etcdserverpb.Rpc.WatchCreateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchCreateRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchCreateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.WatchCreateRequest.class, etcdserverpb.Rpc.WatchCreateRequest.Builder.class); } // Construct using etcdserverpb.Rpc.WatchCreateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = com.google.protobuf.ByteString.EMPTY; rangeEnd_ = com.google.protobuf.ByteString.EMPTY; startRevision_ = 0L; progressNotify_ = false; filters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); prevKv_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchCreateRequest_descriptor; } public etcdserverpb.Rpc.WatchCreateRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.WatchCreateRequest.getDefaultInstance(); } public etcdserverpb.Rpc.WatchCreateRequest build() { etcdserverpb.Rpc.WatchCreateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.WatchCreateRequest buildPartial() { etcdserverpb.Rpc.WatchCreateRequest result = new etcdserverpb.Rpc.WatchCreateRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.key_ = key_; result.rangeEnd_ = rangeEnd_; result.startRevision_ = startRevision_; result.progressNotify_ = progressNotify_; if (((bitField0_ & 0x00000010) == 0x00000010)) { filters_ = java.util.Collections.unmodifiableList(filters_); bitField0_ = (bitField0_ & ~0x00000010); } result.filters_ = filters_; result.prevKv_ = prevKv_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.WatchCreateRequest) { return mergeFrom((etcdserverpb.Rpc.WatchCreateRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.WatchCreateRequest other) { if (other == etcdserverpb.Rpc.WatchCreateRequest.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getRangeEnd() != com.google.protobuf.ByteString.EMPTY) { setRangeEnd(other.getRangeEnd()); } if (other.getStartRevision() != 0L) { setStartRevision(other.getStartRevision()); } if (other.getProgressNotify() != false) { setProgressNotify(other.getProgressNotify()); } if (!other.filters_.isEmpty()) { if (filters_.isEmpty()) { filters_ = other.filters_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFiltersIsMutable(); filters_.addAll(other.filters_); } onChanged(); } if (other.getPrevKv() != false) { setPrevKv(other.getPrevKv()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.WatchCreateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.WatchCreateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** *
       * key is the key to register for watching.
       * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } /** *
       * key is the key to register for watching.
       * 
* * bytes key = 1; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * key is the key to register for watching.
       * 
* * bytes key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString rangeEnd_ = com.google.protobuf.ByteString.EMPTY; /** *
       * range_end is the end of the range [key, range_end) to watch. If range_end is not given,
       * only the key argument is watched. If range_end is equal to '\0', all keys greater than
       * or equal to the key argument are watched.
       * If the range_end is one bit larger than the given key,
       * then all keys with the prefix (the given key) will be watched.
       * 
* * bytes range_end = 2; */ public com.google.protobuf.ByteString getRangeEnd() { return rangeEnd_; } /** *
       * range_end is the end of the range [key, range_end) to watch. If range_end is not given,
       * only the key argument is watched. If range_end is equal to '\0', all keys greater than
       * or equal to the key argument are watched.
       * If the range_end is one bit larger than the given key,
       * then all keys with the prefix (the given key) will be watched.
       * 
* * bytes range_end = 2; */ public Builder setRangeEnd(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } rangeEnd_ = value; onChanged(); return this; } /** *
       * range_end is the end of the range [key, range_end) to watch. If range_end is not given,
       * only the key argument is watched. If range_end is equal to '\0', all keys greater than
       * or equal to the key argument are watched.
       * If the range_end is one bit larger than the given key,
       * then all keys with the prefix (the given key) will be watched.
       * 
* * bytes range_end = 2; */ public Builder clearRangeEnd() { rangeEnd_ = getDefaultInstance().getRangeEnd(); onChanged(); return this; } private long startRevision_ ; /** *
       * start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
       * 
* * int64 start_revision = 3; */ public long getStartRevision() { return startRevision_; } /** *
       * start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
       * 
* * int64 start_revision = 3; */ public Builder setStartRevision(long value) { startRevision_ = value; onChanged(); return this; } /** *
       * start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
       * 
* * int64 start_revision = 3; */ public Builder clearStartRevision() { startRevision_ = 0L; onChanged(); return this; } private boolean progressNotify_ ; /** *
       * progress_notify is set so that the etcd server will periodically send a WatchResponse with
       * no events to the new watcher if there are no recent events. It is useful when clients
       * wish to recover a disconnected watcher starting from a recent known revision.
       * The etcd server may decide how often it will send notifications based on current load.
       * 
* * bool progress_notify = 4; */ public boolean getProgressNotify() { return progressNotify_; } /** *
       * progress_notify is set so that the etcd server will periodically send a WatchResponse with
       * no events to the new watcher if there are no recent events. It is useful when clients
       * wish to recover a disconnected watcher starting from a recent known revision.
       * The etcd server may decide how often it will send notifications based on current load.
       * 
* * bool progress_notify = 4; */ public Builder setProgressNotify(boolean value) { progressNotify_ = value; onChanged(); return this; } /** *
       * progress_notify is set so that the etcd server will periodically send a WatchResponse with
       * no events to the new watcher if there are no recent events. It is useful when clients
       * wish to recover a disconnected watcher starting from a recent known revision.
       * The etcd server may decide how often it will send notifications based on current load.
       * 
* * bool progress_notify = 4; */ public Builder clearProgressNotify() { progressNotify_ = false; onChanged(); return this; } private java.util.List filters_ = java.util.Collections.emptyList(); private void ensureFiltersIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { filters_ = new java.util.ArrayList(filters_); bitField0_ |= 0x00000010; } } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public java.util.List getFiltersList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, etcdserverpb.Rpc.WatchCreateRequest.FilterType>(filters_, filters_converter_); } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public int getFiltersCount() { return filters_.size(); } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public etcdserverpb.Rpc.WatchCreateRequest.FilterType getFilters(int index) { return filters_converter_.convert(filters_.get(index)); } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public Builder setFilters( int index, etcdserverpb.Rpc.WatchCreateRequest.FilterType value) { if (value == null) { throw new NullPointerException(); } ensureFiltersIsMutable(); filters_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public Builder addFilters(etcdserverpb.Rpc.WatchCreateRequest.FilterType value) { if (value == null) { throw new NullPointerException(); } ensureFiltersIsMutable(); filters_.add(value.getNumber()); onChanged(); return this; } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public Builder addAllFilters( java.lang.Iterable values) { ensureFiltersIsMutable(); for (etcdserverpb.Rpc.WatchCreateRequest.FilterType value : values) { filters_.add(value.getNumber()); } onChanged(); return this; } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public Builder clearFilters() { filters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public java.util.List getFiltersValueList() { return java.util.Collections.unmodifiableList(filters_); } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public int getFiltersValue(int index) { return filters_.get(index); } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public Builder setFiltersValue( int index, int value) { ensureFiltersIsMutable(); filters_.set(index, value); onChanged(); return this; } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public Builder addFiltersValue(int value) { ensureFiltersIsMutable(); filters_.add(value); onChanged(); return this; } /** *
       * filters filter the events at server side before it sends back to the watcher.
       * 
* * repeated .etcdserverpb.WatchCreateRequest.FilterType filters = 5; */ public Builder addAllFiltersValue( java.lang.Iterable values) { ensureFiltersIsMutable(); for (int value : values) { filters_.add(value); } onChanged(); return this; } private boolean prevKv_ ; /** *
       * If prev_kv is set, created watcher gets the previous KV before the event happens.
       * If the previous KV is already compacted, nothing will be returned.
       * 
* * bool prev_kv = 6; */ public boolean getPrevKv() { return prevKv_; } /** *
       * If prev_kv is set, created watcher gets the previous KV before the event happens.
       * If the previous KV is already compacted, nothing will be returned.
       * 
* * bool prev_kv = 6; */ public Builder setPrevKv(boolean value) { prevKv_ = value; onChanged(); return this; } /** *
       * If prev_kv is set, created watcher gets the previous KV before the event happens.
       * If the previous KV is already compacted, nothing will be returned.
       * 
* * bool prev_kv = 6; */ public Builder clearPrevKv() { prevKv_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.WatchCreateRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.WatchCreateRequest) private static final etcdserverpb.Rpc.WatchCreateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.WatchCreateRequest(); } public static etcdserverpb.Rpc.WatchCreateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WatchCreateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WatchCreateRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.WatchCreateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WatchCancelRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.WatchCancelRequest) com.google.protobuf.MessageOrBuilder { /** *
     * watch_id is the watcher id to cancel so that no more events are transmitted.
     * 
* * int64 watch_id = 1; */ long getWatchId(); } /** * Protobuf type {@code etcdserverpb.WatchCancelRequest} */ public static final class WatchCancelRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.WatchCancelRequest) WatchCancelRequestOrBuilder { private static final long serialVersionUID = 0L; // Use WatchCancelRequest.newBuilder() to construct. private WatchCancelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WatchCancelRequest() { watchId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WatchCancelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { watchId_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchCancelRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchCancelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.WatchCancelRequest.class, etcdserverpb.Rpc.WatchCancelRequest.Builder.class); } public static final int WATCH_ID_FIELD_NUMBER = 1; private long watchId_; /** *
     * watch_id is the watcher id to cancel so that no more events are transmitted.
     * 
* * int64 watch_id = 1; */ public long getWatchId() { return watchId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (watchId_ != 0L) { output.writeInt64(1, watchId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (watchId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, watchId_); } 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 etcdserverpb.Rpc.WatchCancelRequest)) { return super.equals(obj); } etcdserverpb.Rpc.WatchCancelRequest other = (etcdserverpb.Rpc.WatchCancelRequest) obj; boolean result = true; result = result && (getWatchId() == other.getWatchId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WATCH_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWatchId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.WatchCancelRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchCancelRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchCancelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchCancelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchCancelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchCancelRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchCancelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchCancelRequest 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 etcdserverpb.Rpc.WatchCancelRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchCancelRequest 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 etcdserverpb.Rpc.WatchCancelRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchCancelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.WatchCancelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.WatchCancelRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.WatchCancelRequest) etcdserverpb.Rpc.WatchCancelRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchCancelRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchCancelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.WatchCancelRequest.class, etcdserverpb.Rpc.WatchCancelRequest.Builder.class); } // Construct using etcdserverpb.Rpc.WatchCancelRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); watchId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchCancelRequest_descriptor; } public etcdserverpb.Rpc.WatchCancelRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.WatchCancelRequest.getDefaultInstance(); } public etcdserverpb.Rpc.WatchCancelRequest build() { etcdserverpb.Rpc.WatchCancelRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.WatchCancelRequest buildPartial() { etcdserverpb.Rpc.WatchCancelRequest result = new etcdserverpb.Rpc.WatchCancelRequest(this); result.watchId_ = watchId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.WatchCancelRequest) { return mergeFrom((etcdserverpb.Rpc.WatchCancelRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.WatchCancelRequest other) { if (other == etcdserverpb.Rpc.WatchCancelRequest.getDefaultInstance()) return this; if (other.getWatchId() != 0L) { setWatchId(other.getWatchId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.WatchCancelRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.WatchCancelRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long watchId_ ; /** *
       * watch_id is the watcher id to cancel so that no more events are transmitted.
       * 
* * int64 watch_id = 1; */ public long getWatchId() { return watchId_; } /** *
       * watch_id is the watcher id to cancel so that no more events are transmitted.
       * 
* * int64 watch_id = 1; */ public Builder setWatchId(long value) { watchId_ = value; onChanged(); return this; } /** *
       * watch_id is the watcher id to cancel so that no more events are transmitted.
       * 
* * int64 watch_id = 1; */ public Builder clearWatchId() { watchId_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.WatchCancelRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.WatchCancelRequest) private static final etcdserverpb.Rpc.WatchCancelRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.WatchCancelRequest(); } public static etcdserverpb.Rpc.WatchCancelRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WatchCancelRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WatchCancelRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.WatchCancelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WatchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.WatchResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * watch_id is the ID of the watcher that corresponds to the response.
     * 
* * int64 watch_id = 2; */ long getWatchId(); /** *
     * created is set to true if the response is for a create watch request.
     * The client should record the watch_id and expect to receive events for
     * the created watcher from the same stream.
     * All events sent to the created watcher will attach with the same watch_id.
     * 
* * bool created = 3; */ boolean getCreated(); /** *
     * canceled is set to true if the response is for a cancel watch request.
     * No further events will be sent to the canceled watcher.
     * 
* * bool canceled = 4; */ boolean getCanceled(); /** *
     * compact_revision is set to the minimum index if a watcher tries to watch
     * at a compacted index.
     * This happens when creating a watcher at a compacted revision or the watcher cannot
     * catch up with the progress of the key-value store.
     * The client should treat the watcher as canceled and should not try to create any
     * watcher with the same start_revision again.
     * 
* * int64 compact_revision = 5; */ long getCompactRevision(); /** *
     * cancel_reason indicates the reason for canceling the watcher.
     * 
* * string cancel_reason = 6; */ java.lang.String getCancelReason(); /** *
     * cancel_reason indicates the reason for canceling the watcher.
     * 
* * string cancel_reason = 6; */ com.google.protobuf.ByteString getCancelReasonBytes(); /** * repeated .mvccpb.Event events = 11; */ java.util.List getEventsList(); /** * repeated .mvccpb.Event events = 11; */ mvccpb.Kv.Event getEvents(int index); /** * repeated .mvccpb.Event events = 11; */ int getEventsCount(); /** * repeated .mvccpb.Event events = 11; */ java.util.List getEventsOrBuilderList(); /** * repeated .mvccpb.Event events = 11; */ mvccpb.Kv.EventOrBuilder getEventsOrBuilder( int index); } /** * Protobuf type {@code etcdserverpb.WatchResponse} */ public static final class WatchResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.WatchResponse) WatchResponseOrBuilder { private static final long serialVersionUID = 0L; // Use WatchResponse.newBuilder() to construct. private WatchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WatchResponse() { watchId_ = 0L; created_ = false; canceled_ = false; compactRevision_ = 0L; cancelReason_ = ""; events_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WatchResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { watchId_ = input.readInt64(); break; } case 24: { created_ = input.readBool(); break; } case 32: { canceled_ = input.readBool(); break; } case 40: { compactRevision_ = input.readInt64(); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); cancelReason_ = s; break; } case 90: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { events_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } events_.add( input.readMessage(mvccpb.Kv.Event.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { events_ = java.util.Collections.unmodifiableList(events_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.WatchResponse.class, etcdserverpb.Rpc.WatchResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int WATCH_ID_FIELD_NUMBER = 2; private long watchId_; /** *
     * watch_id is the ID of the watcher that corresponds to the response.
     * 
* * int64 watch_id = 2; */ public long getWatchId() { return watchId_; } public static final int CREATED_FIELD_NUMBER = 3; private boolean created_; /** *
     * created is set to true if the response is for a create watch request.
     * The client should record the watch_id and expect to receive events for
     * the created watcher from the same stream.
     * All events sent to the created watcher will attach with the same watch_id.
     * 
* * bool created = 3; */ public boolean getCreated() { return created_; } public static final int CANCELED_FIELD_NUMBER = 4; private boolean canceled_; /** *
     * canceled is set to true if the response is for a cancel watch request.
     * No further events will be sent to the canceled watcher.
     * 
* * bool canceled = 4; */ public boolean getCanceled() { return canceled_; } public static final int COMPACT_REVISION_FIELD_NUMBER = 5; private long compactRevision_; /** *
     * compact_revision is set to the minimum index if a watcher tries to watch
     * at a compacted index.
     * This happens when creating a watcher at a compacted revision or the watcher cannot
     * catch up with the progress of the key-value store.
     * The client should treat the watcher as canceled and should not try to create any
     * watcher with the same start_revision again.
     * 
* * int64 compact_revision = 5; */ public long getCompactRevision() { return compactRevision_; } public static final int CANCEL_REASON_FIELD_NUMBER = 6; private volatile java.lang.Object cancelReason_; /** *
     * cancel_reason indicates the reason for canceling the watcher.
     * 
* * string cancel_reason = 6; */ public java.lang.String getCancelReason() { java.lang.Object ref = cancelReason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cancelReason_ = s; return s; } } /** *
     * cancel_reason indicates the reason for canceling the watcher.
     * 
* * string cancel_reason = 6; */ public com.google.protobuf.ByteString getCancelReasonBytes() { java.lang.Object ref = cancelReason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cancelReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EVENTS_FIELD_NUMBER = 11; private java.util.List events_; /** * repeated .mvccpb.Event events = 11; */ public java.util.List getEventsList() { return events_; } /** * repeated .mvccpb.Event events = 11; */ public java.util.List getEventsOrBuilderList() { return events_; } /** * repeated .mvccpb.Event events = 11; */ public int getEventsCount() { return events_.size(); } /** * repeated .mvccpb.Event events = 11; */ public mvccpb.Kv.Event getEvents(int index) { return events_.get(index); } /** * repeated .mvccpb.Event events = 11; */ public mvccpb.Kv.EventOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (watchId_ != 0L) { output.writeInt64(2, watchId_); } if (created_ != false) { output.writeBool(3, created_); } if (canceled_ != false) { output.writeBool(4, canceled_); } if (compactRevision_ != 0L) { output.writeInt64(5, compactRevision_); } if (!getCancelReasonBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cancelReason_); } for (int i = 0; i < events_.size(); i++) { output.writeMessage(11, events_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (watchId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, watchId_); } if (created_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, created_); } if (canceled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, canceled_); } if (compactRevision_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, compactRevision_); } if (!getCancelReasonBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cancelReason_); } for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, events_.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 etcdserverpb.Rpc.WatchResponse)) { return super.equals(obj); } etcdserverpb.Rpc.WatchResponse other = (etcdserverpb.Rpc.WatchResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getWatchId() == other.getWatchId()); result = result && (getCreated() == other.getCreated()); result = result && (getCanceled() == other.getCanceled()); result = result && (getCompactRevision() == other.getCompactRevision()); result = result && getCancelReason() .equals(other.getCancelReason()); result = result && getEventsList() .equals(other.getEventsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + WATCH_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWatchId()); hash = (37 * hash) + CREATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCreated()); hash = (37 * hash) + CANCELED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCanceled()); hash = (37 * hash) + COMPACT_REVISION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCompactRevision()); hash = (37 * hash) + CANCEL_REASON_FIELD_NUMBER; hash = (53 * hash) + getCancelReason().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.WatchResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.WatchResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.WatchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static etcdserverpb.Rpc.WatchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static etcdserverpb.Rpc.WatchResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.WatchResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.WatchResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.WatchResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.WatchResponse) etcdserverpb.Rpc.WatchResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.WatchResponse.class, etcdserverpb.Rpc.WatchResponse.Builder.class); } // Construct using etcdserverpb.Rpc.WatchResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEventsFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } watchId_ = 0L; created_ = false; canceled_ = false; compactRevision_ = 0L; cancelReason_ = ""; if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { eventsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_WatchResponse_descriptor; } public etcdserverpb.Rpc.WatchResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.WatchResponse.getDefaultInstance(); } public etcdserverpb.Rpc.WatchResponse build() { etcdserverpb.Rpc.WatchResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.WatchResponse buildPartial() { etcdserverpb.Rpc.WatchResponse result = new etcdserverpb.Rpc.WatchResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.watchId_ = watchId_; result.created_ = created_; result.canceled_ = canceled_; result.compactRevision_ = compactRevision_; result.cancelReason_ = cancelReason_; if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000040); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.WatchResponse) { return mergeFrom((etcdserverpb.Rpc.WatchResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.WatchResponse other) { if (other == etcdserverpb.Rpc.WatchResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getWatchId() != 0L) { setWatchId(other.getWatchId()); } if (other.getCreated() != false) { setCreated(other.getCreated()); } if (other.getCanceled() != false) { setCanceled(other.getCanceled()); } if (other.getCompactRevision() != 0L) { setCompactRevision(other.getCompactRevision()); } if (!other.getCancelReason().isEmpty()) { cancelReason_ = other.cancelReason_; onChanged(); } if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } } else { if (!other.events_.isEmpty()) { if (eventsBuilder_.isEmpty()) { eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000040); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.WatchResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.WatchResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long watchId_ ; /** *
       * watch_id is the ID of the watcher that corresponds to the response.
       * 
* * int64 watch_id = 2; */ public long getWatchId() { return watchId_; } /** *
       * watch_id is the ID of the watcher that corresponds to the response.
       * 
* * int64 watch_id = 2; */ public Builder setWatchId(long value) { watchId_ = value; onChanged(); return this; } /** *
       * watch_id is the ID of the watcher that corresponds to the response.
       * 
* * int64 watch_id = 2; */ public Builder clearWatchId() { watchId_ = 0L; onChanged(); return this; } private boolean created_ ; /** *
       * created is set to true if the response is for a create watch request.
       * The client should record the watch_id and expect to receive events for
       * the created watcher from the same stream.
       * All events sent to the created watcher will attach with the same watch_id.
       * 
* * bool created = 3; */ public boolean getCreated() { return created_; } /** *
       * created is set to true if the response is for a create watch request.
       * The client should record the watch_id and expect to receive events for
       * the created watcher from the same stream.
       * All events sent to the created watcher will attach with the same watch_id.
       * 
* * bool created = 3; */ public Builder setCreated(boolean value) { created_ = value; onChanged(); return this; } /** *
       * created is set to true if the response is for a create watch request.
       * The client should record the watch_id and expect to receive events for
       * the created watcher from the same stream.
       * All events sent to the created watcher will attach with the same watch_id.
       * 
* * bool created = 3; */ public Builder clearCreated() { created_ = false; onChanged(); return this; } private boolean canceled_ ; /** *
       * canceled is set to true if the response is for a cancel watch request.
       * No further events will be sent to the canceled watcher.
       * 
* * bool canceled = 4; */ public boolean getCanceled() { return canceled_; } /** *
       * canceled is set to true if the response is for a cancel watch request.
       * No further events will be sent to the canceled watcher.
       * 
* * bool canceled = 4; */ public Builder setCanceled(boolean value) { canceled_ = value; onChanged(); return this; } /** *
       * canceled is set to true if the response is for a cancel watch request.
       * No further events will be sent to the canceled watcher.
       * 
* * bool canceled = 4; */ public Builder clearCanceled() { canceled_ = false; onChanged(); return this; } private long compactRevision_ ; /** *
       * compact_revision is set to the minimum index if a watcher tries to watch
       * at a compacted index.
       * This happens when creating a watcher at a compacted revision or the watcher cannot
       * catch up with the progress of the key-value store.
       * The client should treat the watcher as canceled and should not try to create any
       * watcher with the same start_revision again.
       * 
* * int64 compact_revision = 5; */ public long getCompactRevision() { return compactRevision_; } /** *
       * compact_revision is set to the minimum index if a watcher tries to watch
       * at a compacted index.
       * This happens when creating a watcher at a compacted revision or the watcher cannot
       * catch up with the progress of the key-value store.
       * The client should treat the watcher as canceled and should not try to create any
       * watcher with the same start_revision again.
       * 
* * int64 compact_revision = 5; */ public Builder setCompactRevision(long value) { compactRevision_ = value; onChanged(); return this; } /** *
       * compact_revision is set to the minimum index if a watcher tries to watch
       * at a compacted index.
       * This happens when creating a watcher at a compacted revision or the watcher cannot
       * catch up with the progress of the key-value store.
       * The client should treat the watcher as canceled and should not try to create any
       * watcher with the same start_revision again.
       * 
* * int64 compact_revision = 5; */ public Builder clearCompactRevision() { compactRevision_ = 0L; onChanged(); return this; } private java.lang.Object cancelReason_ = ""; /** *
       * cancel_reason indicates the reason for canceling the watcher.
       * 
* * string cancel_reason = 6; */ public java.lang.String getCancelReason() { java.lang.Object ref = cancelReason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cancelReason_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * cancel_reason indicates the reason for canceling the watcher.
       * 
* * string cancel_reason = 6; */ public com.google.protobuf.ByteString getCancelReasonBytes() { java.lang.Object ref = cancelReason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cancelReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * cancel_reason indicates the reason for canceling the watcher.
       * 
* * string cancel_reason = 6; */ public Builder setCancelReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cancelReason_ = value; onChanged(); return this; } /** *
       * cancel_reason indicates the reason for canceling the watcher.
       * 
* * string cancel_reason = 6; */ public Builder clearCancelReason() { cancelReason_ = getDefaultInstance().getCancelReason(); onChanged(); return this; } /** *
       * cancel_reason indicates the reason for canceling the watcher.
       * 
* * string cancel_reason = 6; */ public Builder setCancelReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cancelReason_ = value; onChanged(); return this; } private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< mvccpb.Kv.Event, mvccpb.Kv.Event.Builder, mvccpb.Kv.EventOrBuilder> eventsBuilder_; /** * repeated .mvccpb.Event events = 11; */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { return java.util.Collections.unmodifiableList(events_); } else { return eventsBuilder_.getMessageList(); } } /** * repeated .mvccpb.Event events = 11; */ public int getEventsCount() { if (eventsBuilder_ == null) { return events_.size(); } else { return eventsBuilder_.getCount(); } } /** * repeated .mvccpb.Event events = 11; */ public mvccpb.Kv.Event getEvents(int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessage(index); } } /** * repeated .mvccpb.Event events = 11; */ public Builder setEvents( int index, mvccpb.Kv.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); onChanged(); } else { eventsBuilder_.setMessage(index, value); } return this; } /** * repeated .mvccpb.Event events = 11; */ public Builder setEvents( int index, mvccpb.Kv.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mvccpb.Event events = 11; */ public Builder addEvents(mvccpb.Kv.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); onChanged(); } else { eventsBuilder_.addMessage(value); } return this; } /** * repeated .mvccpb.Event events = 11; */ public Builder addEvents( int index, mvccpb.Kv.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(index, value); onChanged(); } else { eventsBuilder_.addMessage(index, value); } return this; } /** * repeated .mvccpb.Event events = 11; */ public Builder addEvents( mvccpb.Kv.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mvccpb.Event events = 11; */ public Builder addEvents( int index, mvccpb.Kv.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mvccpb.Event events = 11; */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); } return this; } /** * repeated .mvccpb.Event events = 11; */ public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { eventsBuilder_.clear(); } return this; } /** * repeated .mvccpb.Event events = 11; */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.remove(index); onChanged(); } else { eventsBuilder_.remove(index); } return this; } /** * repeated .mvccpb.Event events = 11; */ public mvccpb.Kv.Event.Builder getEventsBuilder( int index) { return getEventsFieldBuilder().getBuilder(index); } /** * repeated .mvccpb.Event events = 11; */ public mvccpb.Kv.EventOrBuilder getEventsOrBuilder( int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mvccpb.Event events = 11; */ public java.util.List getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(events_); } } /** * repeated .mvccpb.Event events = 11; */ public mvccpb.Kv.Event.Builder addEventsBuilder() { return getEventsFieldBuilder().addBuilder( mvccpb.Kv.Event.getDefaultInstance()); } /** * repeated .mvccpb.Event events = 11; */ public mvccpb.Kv.Event.Builder addEventsBuilder( int index) { return getEventsFieldBuilder().addBuilder( index, mvccpb.Kv.Event.getDefaultInstance()); } /** * repeated .mvccpb.Event events = 11; */ public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< mvccpb.Kv.Event, mvccpb.Kv.Event.Builder, mvccpb.Kv.EventOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< mvccpb.Kv.Event, mvccpb.Kv.Event.Builder, mvccpb.Kv.EventOrBuilder>( events_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.WatchResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.WatchResponse) private static final etcdserverpb.Rpc.WatchResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.WatchResponse(); } public static etcdserverpb.Rpc.WatchResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WatchResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WatchResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.WatchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeaseGrantRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseGrantRequest) com.google.protobuf.MessageOrBuilder { /** *
     * TTL is the advisory time-to-live in seconds.
     * 
* * int64 TTL = 1; */ long getTTL(); /** *
     * ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
     * 
* * int64 ID = 2; */ long getID(); } /** * Protobuf type {@code etcdserverpb.LeaseGrantRequest} */ public static final class LeaseGrantRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseGrantRequest) LeaseGrantRequestOrBuilder { private static final long serialVersionUID = 0L; // Use LeaseGrantRequest.newBuilder() to construct. private LeaseGrantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeaseGrantRequest() { tTL_ = 0L; iD_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LeaseGrantRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { tTL_ = input.readInt64(); break; } case 16: { iD_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseGrantRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseGrantRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseGrantRequest.class, etcdserverpb.Rpc.LeaseGrantRequest.Builder.class); } public static final int TTL_FIELD_NUMBER = 1; private long tTL_; /** *
     * TTL is the advisory time-to-live in seconds.
     * 
* * int64 TTL = 1; */ public long getTTL() { return tTL_; } public static final int ID_FIELD_NUMBER = 2; private long iD_; /** *
     * ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
     * 
* * int64 ID = 2; */ public long getID() { return iD_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tTL_ != 0L) { output.writeInt64(1, tTL_); } if (iD_ != 0L) { output.writeInt64(2, iD_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tTL_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, tTL_); } if (iD_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, iD_); } 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 etcdserverpb.Rpc.LeaseGrantRequest)) { return super.equals(obj); } etcdserverpb.Rpc.LeaseGrantRequest other = (etcdserverpb.Rpc.LeaseGrantRequest) obj; boolean result = true; result = result && (getTTL() == other.getTTL()); result = result && (getID() == other.getID()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTTL()); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getID()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.LeaseGrantRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseGrantRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseGrantRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseGrantRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseGrantRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseGrantRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseGrantRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseGrantRequest 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 etcdserverpb.Rpc.LeaseGrantRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseGrantRequest 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 etcdserverpb.Rpc.LeaseGrantRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseGrantRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.LeaseGrantRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.LeaseGrantRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseGrantRequest) etcdserverpb.Rpc.LeaseGrantRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseGrantRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseGrantRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseGrantRequest.class, etcdserverpb.Rpc.LeaseGrantRequest.Builder.class); } // Construct using etcdserverpb.Rpc.LeaseGrantRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); tTL_ = 0L; iD_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseGrantRequest_descriptor; } public etcdserverpb.Rpc.LeaseGrantRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.LeaseGrantRequest.getDefaultInstance(); } public etcdserverpb.Rpc.LeaseGrantRequest build() { etcdserverpb.Rpc.LeaseGrantRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.LeaseGrantRequest buildPartial() { etcdserverpb.Rpc.LeaseGrantRequest result = new etcdserverpb.Rpc.LeaseGrantRequest(this); result.tTL_ = tTL_; result.iD_ = iD_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.LeaseGrantRequest) { return mergeFrom((etcdserverpb.Rpc.LeaseGrantRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.LeaseGrantRequest other) { if (other == etcdserverpb.Rpc.LeaseGrantRequest.getDefaultInstance()) return this; if (other.getTTL() != 0L) { setTTL(other.getTTL()); } if (other.getID() != 0L) { setID(other.getID()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.LeaseGrantRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.LeaseGrantRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long tTL_ ; /** *
       * TTL is the advisory time-to-live in seconds.
       * 
* * int64 TTL = 1; */ public long getTTL() { return tTL_; } /** *
       * TTL is the advisory time-to-live in seconds.
       * 
* * int64 TTL = 1; */ public Builder setTTL(long value) { tTL_ = value; onChanged(); return this; } /** *
       * TTL is the advisory time-to-live in seconds.
       * 
* * int64 TTL = 1; */ public Builder clearTTL() { tTL_ = 0L; onChanged(); return this; } private long iD_ ; /** *
       * ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
       * 
* * int64 ID = 2; */ public long getID() { return iD_; } /** *
       * ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
       * 
* * int64 ID = 2; */ public Builder setID(long value) { iD_ = value; onChanged(); return this; } /** *
       * ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
       * 
* * int64 ID = 2; */ public Builder clearID() { iD_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseGrantRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseGrantRequest) private static final etcdserverpb.Rpc.LeaseGrantRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.LeaseGrantRequest(); } public static etcdserverpb.Rpc.LeaseGrantRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LeaseGrantRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LeaseGrantRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.LeaseGrantRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeaseGrantResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseGrantResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * ID is the lease ID for the granted lease.
     * 
* * int64 ID = 2; */ long getID(); /** *
     * TTL is the server chosen lease time-to-live in seconds.
     * 
* * int64 TTL = 3; */ long getTTL(); /** * string error = 4; */ java.lang.String getError(); /** * string error = 4; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code etcdserverpb.LeaseGrantResponse} */ public static final class LeaseGrantResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseGrantResponse) LeaseGrantResponseOrBuilder { private static final long serialVersionUID = 0L; // Use LeaseGrantResponse.newBuilder() to construct. private LeaseGrantResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeaseGrantResponse() { iD_ = 0L; tTL_ = 0L; error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LeaseGrantResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { iD_ = input.readInt64(); break; } case 24: { tTL_ = input.readInt64(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseGrantResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseGrantResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseGrantResponse.class, etcdserverpb.Rpc.LeaseGrantResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int ID_FIELD_NUMBER = 2; private long iD_; /** *
     * ID is the lease ID for the granted lease.
     * 
* * int64 ID = 2; */ public long getID() { return iD_; } public static final int TTL_FIELD_NUMBER = 3; private long tTL_; /** *
     * TTL is the server chosen lease time-to-live in seconds.
     * 
* * int64 TTL = 3; */ public long getTTL() { return tTL_; } public static final int ERROR_FIELD_NUMBER = 4; private volatile java.lang.Object error_; /** * string error = 4; */ public java.lang.String getError() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** * string error = 4; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (iD_ != 0L) { output.writeInt64(2, iD_); } if (tTL_ != 0L) { output.writeInt64(3, tTL_); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (iD_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, iD_); } if (tTL_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, tTL_); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, error_); } 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 etcdserverpb.Rpc.LeaseGrantResponse)) { return super.equals(obj); } etcdserverpb.Rpc.LeaseGrantResponse other = (etcdserverpb.Rpc.LeaseGrantResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getID() == other.getID()); result = result && (getTTL() == other.getTTL()); result = result && getError() .equals(other.getError()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getID()); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTTL()); hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.LeaseGrantResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseGrantResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseGrantResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseGrantResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseGrantResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseGrantResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseGrantResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseGrantResponse 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 etcdserverpb.Rpc.LeaseGrantResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseGrantResponse 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 etcdserverpb.Rpc.LeaseGrantResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseGrantResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.LeaseGrantResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.LeaseGrantResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseGrantResponse) etcdserverpb.Rpc.LeaseGrantResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseGrantResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseGrantResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseGrantResponse.class, etcdserverpb.Rpc.LeaseGrantResponse.Builder.class); } // Construct using etcdserverpb.Rpc.LeaseGrantResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } iD_ = 0L; tTL_ = 0L; error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseGrantResponse_descriptor; } public etcdserverpb.Rpc.LeaseGrantResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.LeaseGrantResponse.getDefaultInstance(); } public etcdserverpb.Rpc.LeaseGrantResponse build() { etcdserverpb.Rpc.LeaseGrantResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.LeaseGrantResponse buildPartial() { etcdserverpb.Rpc.LeaseGrantResponse result = new etcdserverpb.Rpc.LeaseGrantResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.iD_ = iD_; result.tTL_ = tTL_; result.error_ = error_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.LeaseGrantResponse) { return mergeFrom((etcdserverpb.Rpc.LeaseGrantResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.LeaseGrantResponse other) { if (other == etcdserverpb.Rpc.LeaseGrantResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getID() != 0L) { setID(other.getID()); } if (other.getTTL() != 0L) { setTTL(other.getTTL()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.LeaseGrantResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.LeaseGrantResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long iD_ ; /** *
       * ID is the lease ID for the granted lease.
       * 
* * int64 ID = 2; */ public long getID() { return iD_; } /** *
       * ID is the lease ID for the granted lease.
       * 
* * int64 ID = 2; */ public Builder setID(long value) { iD_ = value; onChanged(); return this; } /** *
       * ID is the lease ID for the granted lease.
       * 
* * int64 ID = 2; */ public Builder clearID() { iD_ = 0L; onChanged(); return this; } private long tTL_ ; /** *
       * TTL is the server chosen lease time-to-live in seconds.
       * 
* * int64 TTL = 3; */ public long getTTL() { return tTL_; } /** *
       * TTL is the server chosen lease time-to-live in seconds.
       * 
* * int64 TTL = 3; */ public Builder setTTL(long value) { tTL_ = value; onChanged(); return this; } /** *
       * TTL is the server chosen lease time-to-live in seconds.
       * 
* * int64 TTL = 3; */ public Builder clearTTL() { tTL_ = 0L; onChanged(); return this; } private java.lang.Object error_ = ""; /** * string error = 4; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 4; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 4; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 4; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 4; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseGrantResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseGrantResponse) private static final etcdserverpb.Rpc.LeaseGrantResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.LeaseGrantResponse(); } public static etcdserverpb.Rpc.LeaseGrantResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LeaseGrantResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LeaseGrantResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.LeaseGrantResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeaseRevokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseRevokeRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
     * 
* * int64 ID = 1; */ long getID(); } /** * Protobuf type {@code etcdserverpb.LeaseRevokeRequest} */ public static final class LeaseRevokeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseRevokeRequest) LeaseRevokeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use LeaseRevokeRequest.newBuilder() to construct. private LeaseRevokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeaseRevokeRequest() { iD_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LeaseRevokeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { iD_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseRevokeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseRevokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseRevokeRequest.class, etcdserverpb.Rpc.LeaseRevokeRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private long iD_; /** *
     * ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
     * 
* * int64 ID = 1; */ public long getID() { return iD_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (iD_ != 0L) { output.writeInt64(1, iD_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (iD_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, iD_); } 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 etcdserverpb.Rpc.LeaseRevokeRequest)) { return super.equals(obj); } etcdserverpb.Rpc.LeaseRevokeRequest other = (etcdserverpb.Rpc.LeaseRevokeRequest) obj; boolean result = true; result = result && (getID() == other.getID()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getID()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.LeaseRevokeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseRevokeRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseRevokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseRevokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseRevokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseRevokeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseRevokeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseRevokeRequest 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 etcdserverpb.Rpc.LeaseRevokeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseRevokeRequest 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 etcdserverpb.Rpc.LeaseRevokeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseRevokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.LeaseRevokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.LeaseRevokeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseRevokeRequest) etcdserverpb.Rpc.LeaseRevokeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseRevokeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseRevokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseRevokeRequest.class, etcdserverpb.Rpc.LeaseRevokeRequest.Builder.class); } // Construct using etcdserverpb.Rpc.LeaseRevokeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); iD_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseRevokeRequest_descriptor; } public etcdserverpb.Rpc.LeaseRevokeRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.LeaseRevokeRequest.getDefaultInstance(); } public etcdserverpb.Rpc.LeaseRevokeRequest build() { etcdserverpb.Rpc.LeaseRevokeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.LeaseRevokeRequest buildPartial() { etcdserverpb.Rpc.LeaseRevokeRequest result = new etcdserverpb.Rpc.LeaseRevokeRequest(this); result.iD_ = iD_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.LeaseRevokeRequest) { return mergeFrom((etcdserverpb.Rpc.LeaseRevokeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.LeaseRevokeRequest other) { if (other == etcdserverpb.Rpc.LeaseRevokeRequest.getDefaultInstance()) return this; if (other.getID() != 0L) { setID(other.getID()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.LeaseRevokeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.LeaseRevokeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long iD_ ; /** *
       * ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
       * 
* * int64 ID = 1; */ public long getID() { return iD_; } /** *
       * ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
       * 
* * int64 ID = 1; */ public Builder setID(long value) { iD_ = value; onChanged(); return this; } /** *
       * ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
       * 
* * int64 ID = 1; */ public Builder clearID() { iD_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseRevokeRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseRevokeRequest) private static final etcdserverpb.Rpc.LeaseRevokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.LeaseRevokeRequest(); } public static etcdserverpb.Rpc.LeaseRevokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LeaseRevokeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LeaseRevokeRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.LeaseRevokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeaseRevokeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseRevokeResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.LeaseRevokeResponse} */ public static final class LeaseRevokeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseRevokeResponse) LeaseRevokeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use LeaseRevokeResponse.newBuilder() to construct. private LeaseRevokeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeaseRevokeResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LeaseRevokeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseRevokeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseRevokeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseRevokeResponse.class, etcdserverpb.Rpc.LeaseRevokeResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.LeaseRevokeResponse)) { return super.equals(obj); } etcdserverpb.Rpc.LeaseRevokeResponse other = (etcdserverpb.Rpc.LeaseRevokeResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.LeaseRevokeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseRevokeResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseRevokeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseRevokeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseRevokeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseRevokeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseRevokeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseRevokeResponse 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 etcdserverpb.Rpc.LeaseRevokeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseRevokeResponse 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 etcdserverpb.Rpc.LeaseRevokeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseRevokeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.LeaseRevokeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.LeaseRevokeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseRevokeResponse) etcdserverpb.Rpc.LeaseRevokeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseRevokeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseRevokeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseRevokeResponse.class, etcdserverpb.Rpc.LeaseRevokeResponse.Builder.class); } // Construct using etcdserverpb.Rpc.LeaseRevokeResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseRevokeResponse_descriptor; } public etcdserverpb.Rpc.LeaseRevokeResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.LeaseRevokeResponse.getDefaultInstance(); } public etcdserverpb.Rpc.LeaseRevokeResponse build() { etcdserverpb.Rpc.LeaseRevokeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.LeaseRevokeResponse buildPartial() { etcdserverpb.Rpc.LeaseRevokeResponse result = new etcdserverpb.Rpc.LeaseRevokeResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.LeaseRevokeResponse) { return mergeFrom((etcdserverpb.Rpc.LeaseRevokeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.LeaseRevokeResponse other) { if (other == etcdserverpb.Rpc.LeaseRevokeResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.LeaseRevokeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.LeaseRevokeResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseRevokeResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseRevokeResponse) private static final etcdserverpb.Rpc.LeaseRevokeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.LeaseRevokeResponse(); } public static etcdserverpb.Rpc.LeaseRevokeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LeaseRevokeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LeaseRevokeResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.LeaseRevokeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeaseKeepAliveRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseKeepAliveRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID is the lease ID for the lease to keep alive.
     * 
* * int64 ID = 1; */ long getID(); } /** * Protobuf type {@code etcdserverpb.LeaseKeepAliveRequest} */ public static final class LeaseKeepAliveRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseKeepAliveRequest) LeaseKeepAliveRequestOrBuilder { private static final long serialVersionUID = 0L; // Use LeaseKeepAliveRequest.newBuilder() to construct. private LeaseKeepAliveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeaseKeepAliveRequest() { iD_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LeaseKeepAliveRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { iD_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseKeepAliveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseKeepAliveRequest.class, etcdserverpb.Rpc.LeaseKeepAliveRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private long iD_; /** *
     * ID is the lease ID for the lease to keep alive.
     * 
* * int64 ID = 1; */ public long getID() { return iD_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (iD_ != 0L) { output.writeInt64(1, iD_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (iD_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, iD_); } 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 etcdserverpb.Rpc.LeaseKeepAliveRequest)) { return super.equals(obj); } etcdserverpb.Rpc.LeaseKeepAliveRequest other = (etcdserverpb.Rpc.LeaseKeepAliveRequest) obj; boolean result = true; result = result && (getID() == other.getID()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getID()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.LeaseKeepAliveRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseKeepAliveRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseKeepAliveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseKeepAliveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseKeepAliveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseKeepAliveRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseKeepAliveRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseKeepAliveRequest 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 etcdserverpb.Rpc.LeaseKeepAliveRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseKeepAliveRequest 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 etcdserverpb.Rpc.LeaseKeepAliveRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseKeepAliveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.LeaseKeepAliveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.LeaseKeepAliveRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseKeepAliveRequest) etcdserverpb.Rpc.LeaseKeepAliveRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseKeepAliveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseKeepAliveRequest.class, etcdserverpb.Rpc.LeaseKeepAliveRequest.Builder.class); } // Construct using etcdserverpb.Rpc.LeaseKeepAliveRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); iD_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor; } public etcdserverpb.Rpc.LeaseKeepAliveRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.LeaseKeepAliveRequest.getDefaultInstance(); } public etcdserverpb.Rpc.LeaseKeepAliveRequest build() { etcdserverpb.Rpc.LeaseKeepAliveRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.LeaseKeepAliveRequest buildPartial() { etcdserverpb.Rpc.LeaseKeepAliveRequest result = new etcdserverpb.Rpc.LeaseKeepAliveRequest(this); result.iD_ = iD_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.LeaseKeepAliveRequest) { return mergeFrom((etcdserverpb.Rpc.LeaseKeepAliveRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.LeaseKeepAliveRequest other) { if (other == etcdserverpb.Rpc.LeaseKeepAliveRequest.getDefaultInstance()) return this; if (other.getID() != 0L) { setID(other.getID()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.LeaseKeepAliveRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.LeaseKeepAliveRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long iD_ ; /** *
       * ID is the lease ID for the lease to keep alive.
       * 
* * int64 ID = 1; */ public long getID() { return iD_; } /** *
       * ID is the lease ID for the lease to keep alive.
       * 
* * int64 ID = 1; */ public Builder setID(long value) { iD_ = value; onChanged(); return this; } /** *
       * ID is the lease ID for the lease to keep alive.
       * 
* * int64 ID = 1; */ public Builder clearID() { iD_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseKeepAliveRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseKeepAliveRequest) private static final etcdserverpb.Rpc.LeaseKeepAliveRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.LeaseKeepAliveRequest(); } public static etcdserverpb.Rpc.LeaseKeepAliveRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LeaseKeepAliveRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LeaseKeepAliveRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.LeaseKeepAliveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeaseKeepAliveResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseKeepAliveResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * ID is the lease ID from the keep alive request.
     * 
* * int64 ID = 2; */ long getID(); /** *
     * TTL is the new time-to-live for the lease.
     * 
* * int64 TTL = 3; */ long getTTL(); } /** * Protobuf type {@code etcdserverpb.LeaseKeepAliveResponse} */ public static final class LeaseKeepAliveResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseKeepAliveResponse) LeaseKeepAliveResponseOrBuilder { private static final long serialVersionUID = 0L; // Use LeaseKeepAliveResponse.newBuilder() to construct. private LeaseKeepAliveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeaseKeepAliveResponse() { iD_ = 0L; tTL_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LeaseKeepAliveResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { iD_ = input.readInt64(); break; } case 24: { tTL_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseKeepAliveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseKeepAliveResponse.class, etcdserverpb.Rpc.LeaseKeepAliveResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int ID_FIELD_NUMBER = 2; private long iD_; /** *
     * ID is the lease ID from the keep alive request.
     * 
* * int64 ID = 2; */ public long getID() { return iD_; } public static final int TTL_FIELD_NUMBER = 3; private long tTL_; /** *
     * TTL is the new time-to-live for the lease.
     * 
* * int64 TTL = 3; */ public long getTTL() { return tTL_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (iD_ != 0L) { output.writeInt64(2, iD_); } if (tTL_ != 0L) { output.writeInt64(3, tTL_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (iD_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, iD_); } if (tTL_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, tTL_); } 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 etcdserverpb.Rpc.LeaseKeepAliveResponse)) { return super.equals(obj); } etcdserverpb.Rpc.LeaseKeepAliveResponse other = (etcdserverpb.Rpc.LeaseKeepAliveResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getID() == other.getID()); result = result && (getTTL() == other.getTTL()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getID()); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTTL()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.LeaseKeepAliveResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseKeepAliveResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseKeepAliveResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseKeepAliveResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseKeepAliveResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseKeepAliveResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseKeepAliveResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseKeepAliveResponse 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 etcdserverpb.Rpc.LeaseKeepAliveResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseKeepAliveResponse 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 etcdserverpb.Rpc.LeaseKeepAliveResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseKeepAliveResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.LeaseKeepAliveResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.LeaseKeepAliveResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseKeepAliveResponse) etcdserverpb.Rpc.LeaseKeepAliveResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseKeepAliveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseKeepAliveResponse.class, etcdserverpb.Rpc.LeaseKeepAliveResponse.Builder.class); } // Construct using etcdserverpb.Rpc.LeaseKeepAliveResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } iD_ = 0L; tTL_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor; } public etcdserverpb.Rpc.LeaseKeepAliveResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.LeaseKeepAliveResponse.getDefaultInstance(); } public etcdserverpb.Rpc.LeaseKeepAliveResponse build() { etcdserverpb.Rpc.LeaseKeepAliveResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.LeaseKeepAliveResponse buildPartial() { etcdserverpb.Rpc.LeaseKeepAliveResponse result = new etcdserverpb.Rpc.LeaseKeepAliveResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.iD_ = iD_; result.tTL_ = tTL_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.LeaseKeepAliveResponse) { return mergeFrom((etcdserverpb.Rpc.LeaseKeepAliveResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.LeaseKeepAliveResponse other) { if (other == etcdserverpb.Rpc.LeaseKeepAliveResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getID() != 0L) { setID(other.getID()); } if (other.getTTL() != 0L) { setTTL(other.getTTL()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.LeaseKeepAliveResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.LeaseKeepAliveResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long iD_ ; /** *
       * ID is the lease ID from the keep alive request.
       * 
* * int64 ID = 2; */ public long getID() { return iD_; } /** *
       * ID is the lease ID from the keep alive request.
       * 
* * int64 ID = 2; */ public Builder setID(long value) { iD_ = value; onChanged(); return this; } /** *
       * ID is the lease ID from the keep alive request.
       * 
* * int64 ID = 2; */ public Builder clearID() { iD_ = 0L; onChanged(); return this; } private long tTL_ ; /** *
       * TTL is the new time-to-live for the lease.
       * 
* * int64 TTL = 3; */ public long getTTL() { return tTL_; } /** *
       * TTL is the new time-to-live for the lease.
       * 
* * int64 TTL = 3; */ public Builder setTTL(long value) { tTL_ = value; onChanged(); return this; } /** *
       * TTL is the new time-to-live for the lease.
       * 
* * int64 TTL = 3; */ public Builder clearTTL() { tTL_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseKeepAliveResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseKeepAliveResponse) private static final etcdserverpb.Rpc.LeaseKeepAliveResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.LeaseKeepAliveResponse(); } public static etcdserverpb.Rpc.LeaseKeepAliveResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LeaseKeepAliveResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LeaseKeepAliveResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.LeaseKeepAliveResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeaseTimeToLiveRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseTimeToLiveRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID is the lease ID for the lease.
     * 
* * int64 ID = 1; */ long getID(); /** *
     * keys is true to query all the keys attached to this lease.
     * 
* * bool keys = 2; */ boolean getKeys(); } /** * Protobuf type {@code etcdserverpb.LeaseTimeToLiveRequest} */ public static final class LeaseTimeToLiveRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseTimeToLiveRequest) LeaseTimeToLiveRequestOrBuilder { private static final long serialVersionUID = 0L; // Use LeaseTimeToLiveRequest.newBuilder() to construct. private LeaseTimeToLiveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeaseTimeToLiveRequest() { iD_ = 0L; keys_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LeaseTimeToLiveRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { iD_ = input.readInt64(); break; } case 16: { keys_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseTimeToLiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseTimeToLiveRequest.class, etcdserverpb.Rpc.LeaseTimeToLiveRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private long iD_; /** *
     * ID is the lease ID for the lease.
     * 
* * int64 ID = 1; */ public long getID() { return iD_; } public static final int KEYS_FIELD_NUMBER = 2; private boolean keys_; /** *
     * keys is true to query all the keys attached to this lease.
     * 
* * bool keys = 2; */ public boolean getKeys() { return keys_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (iD_ != 0L) { output.writeInt64(1, iD_); } if (keys_ != false) { output.writeBool(2, keys_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (iD_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, iD_); } if (keys_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, keys_); } 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 etcdserverpb.Rpc.LeaseTimeToLiveRequest)) { return super.equals(obj); } etcdserverpb.Rpc.LeaseTimeToLiveRequest other = (etcdserverpb.Rpc.LeaseTimeToLiveRequest) obj; boolean result = true; result = result && (getID() == other.getID()); result = result && (getKeys() == other.getKeys()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getID()); hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeys()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.LeaseTimeToLiveRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseTimeToLiveRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseTimeToLiveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseTimeToLiveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseTimeToLiveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseTimeToLiveRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseTimeToLiveRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseTimeToLiveRequest 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 etcdserverpb.Rpc.LeaseTimeToLiveRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseTimeToLiveRequest 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 etcdserverpb.Rpc.LeaseTimeToLiveRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseTimeToLiveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.LeaseTimeToLiveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.LeaseTimeToLiveRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseTimeToLiveRequest) etcdserverpb.Rpc.LeaseTimeToLiveRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseTimeToLiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseTimeToLiveRequest.class, etcdserverpb.Rpc.LeaseTimeToLiveRequest.Builder.class); } // Construct using etcdserverpb.Rpc.LeaseTimeToLiveRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); iD_ = 0L; keys_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor; } public etcdserverpb.Rpc.LeaseTimeToLiveRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.LeaseTimeToLiveRequest.getDefaultInstance(); } public etcdserverpb.Rpc.LeaseTimeToLiveRequest build() { etcdserverpb.Rpc.LeaseTimeToLiveRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.LeaseTimeToLiveRequest buildPartial() { etcdserverpb.Rpc.LeaseTimeToLiveRequest result = new etcdserverpb.Rpc.LeaseTimeToLiveRequest(this); result.iD_ = iD_; result.keys_ = keys_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.LeaseTimeToLiveRequest) { return mergeFrom((etcdserverpb.Rpc.LeaseTimeToLiveRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.LeaseTimeToLiveRequest other) { if (other == etcdserverpb.Rpc.LeaseTimeToLiveRequest.getDefaultInstance()) return this; if (other.getID() != 0L) { setID(other.getID()); } if (other.getKeys() != false) { setKeys(other.getKeys()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.LeaseTimeToLiveRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.LeaseTimeToLiveRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long iD_ ; /** *
       * ID is the lease ID for the lease.
       * 
* * int64 ID = 1; */ public long getID() { return iD_; } /** *
       * ID is the lease ID for the lease.
       * 
* * int64 ID = 1; */ public Builder setID(long value) { iD_ = value; onChanged(); return this; } /** *
       * ID is the lease ID for the lease.
       * 
* * int64 ID = 1; */ public Builder clearID() { iD_ = 0L; onChanged(); return this; } private boolean keys_ ; /** *
       * keys is true to query all the keys attached to this lease.
       * 
* * bool keys = 2; */ public boolean getKeys() { return keys_; } /** *
       * keys is true to query all the keys attached to this lease.
       * 
* * bool keys = 2; */ public Builder setKeys(boolean value) { keys_ = value; onChanged(); return this; } /** *
       * keys is true to query all the keys attached to this lease.
       * 
* * bool keys = 2; */ public Builder clearKeys() { keys_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseTimeToLiveRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseTimeToLiveRequest) private static final etcdserverpb.Rpc.LeaseTimeToLiveRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.LeaseTimeToLiveRequest(); } public static etcdserverpb.Rpc.LeaseTimeToLiveRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LeaseTimeToLiveRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LeaseTimeToLiveRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.LeaseTimeToLiveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeaseTimeToLiveResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.LeaseTimeToLiveResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * ID is the lease ID from the keep alive request.
     * 
* * int64 ID = 2; */ long getID(); /** *
     * TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
     * 
* * int64 TTL = 3; */ long getTTL(); /** *
     * GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
     * 
* * int64 grantedTTL = 4; */ long getGrantedTTL(); /** *
     * Keys is the list of keys attached to this lease.
     * 
* * repeated bytes keys = 5; */ java.util.List getKeysList(); /** *
     * Keys is the list of keys attached to this lease.
     * 
* * repeated bytes keys = 5; */ int getKeysCount(); /** *
     * Keys is the list of keys attached to this lease.
     * 
* * repeated bytes keys = 5; */ com.google.protobuf.ByteString getKeys(int index); } /** * Protobuf type {@code etcdserverpb.LeaseTimeToLiveResponse} */ public static final class LeaseTimeToLiveResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.LeaseTimeToLiveResponse) LeaseTimeToLiveResponseOrBuilder { private static final long serialVersionUID = 0L; // Use LeaseTimeToLiveResponse.newBuilder() to construct. private LeaseTimeToLiveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeaseTimeToLiveResponse() { iD_ = 0L; tTL_ = 0L; grantedTTL_ = 0L; keys_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LeaseTimeToLiveResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { iD_ = input.readInt64(); break; } case 24: { tTL_ = input.readInt64(); break; } case 32: { grantedTTL_ = input.readInt64(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } keys_.add(input.readBytes()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { keys_ = java.util.Collections.unmodifiableList(keys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseTimeToLiveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseTimeToLiveResponse.class, etcdserverpb.Rpc.LeaseTimeToLiveResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int ID_FIELD_NUMBER = 2; private long iD_; /** *
     * ID is the lease ID from the keep alive request.
     * 
* * int64 ID = 2; */ public long getID() { return iD_; } public static final int TTL_FIELD_NUMBER = 3; private long tTL_; /** *
     * TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
     * 
* * int64 TTL = 3; */ public long getTTL() { return tTL_; } public static final int GRANTEDTTL_FIELD_NUMBER = 4; private long grantedTTL_; /** *
     * GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
     * 
* * int64 grantedTTL = 4; */ public long getGrantedTTL() { return grantedTTL_; } public static final int KEYS_FIELD_NUMBER = 5; private java.util.List keys_; /** *
     * Keys is the list of keys attached to this lease.
     * 
* * repeated bytes keys = 5; */ public java.util.List getKeysList() { return keys_; } /** *
     * Keys is the list of keys attached to this lease.
     * 
* * repeated bytes keys = 5; */ public int getKeysCount() { return keys_.size(); } /** *
     * Keys is the list of keys attached to this lease.
     * 
* * repeated bytes keys = 5; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (iD_ != 0L) { output.writeInt64(2, iD_); } if (tTL_ != 0L) { output.writeInt64(3, tTL_); } if (grantedTTL_ != 0L) { output.writeInt64(4, grantedTTL_); } for (int i = 0; i < keys_.size(); i++) { output.writeBytes(5, keys_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (iD_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, iD_); } if (tTL_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, tTL_); } if (grantedTTL_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, grantedTTL_); } { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(keys_.get(i)); } size += dataSize; size += 1 * getKeysList().size(); } 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 etcdserverpb.Rpc.LeaseTimeToLiveResponse)) { return super.equals(obj); } etcdserverpb.Rpc.LeaseTimeToLiveResponse other = (etcdserverpb.Rpc.LeaseTimeToLiveResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getID() == other.getID()); result = result && (getTTL() == other.getTTL()); result = result && (getGrantedTTL() == other.getGrantedTTL()); result = result && getKeysList() .equals(other.getKeysList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getID()); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTTL()); hash = (37 * hash) + GRANTEDTTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGrantedTTL()); if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.LeaseTimeToLiveResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseTimeToLiveResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseTimeToLiveResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseTimeToLiveResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseTimeToLiveResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.LeaseTimeToLiveResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.LeaseTimeToLiveResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseTimeToLiveResponse 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 etcdserverpb.Rpc.LeaseTimeToLiveResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseTimeToLiveResponse 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 etcdserverpb.Rpc.LeaseTimeToLiveResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.LeaseTimeToLiveResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.LeaseTimeToLiveResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.LeaseTimeToLiveResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.LeaseTimeToLiveResponse) etcdserverpb.Rpc.LeaseTimeToLiveResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseTimeToLiveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.LeaseTimeToLiveResponse.class, etcdserverpb.Rpc.LeaseTimeToLiveResponse.Builder.class); } // Construct using etcdserverpb.Rpc.LeaseTimeToLiveResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } iD_ = 0L; tTL_ = 0L; grantedTTL_ = 0L; keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor; } public etcdserverpb.Rpc.LeaseTimeToLiveResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.LeaseTimeToLiveResponse.getDefaultInstance(); } public etcdserverpb.Rpc.LeaseTimeToLiveResponse build() { etcdserverpb.Rpc.LeaseTimeToLiveResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.LeaseTimeToLiveResponse buildPartial() { etcdserverpb.Rpc.LeaseTimeToLiveResponse result = new etcdserverpb.Rpc.LeaseTimeToLiveResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.iD_ = iD_; result.tTL_ = tTL_; result.grantedTTL_ = grantedTTL_; if (((bitField0_ & 0x00000010) == 0x00000010)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000010); } result.keys_ = keys_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.LeaseTimeToLiveResponse) { return mergeFrom((etcdserverpb.Rpc.LeaseTimeToLiveResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.LeaseTimeToLiveResponse other) { if (other == etcdserverpb.Rpc.LeaseTimeToLiveResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getID() != 0L) { setID(other.getID()); } if (other.getTTL() != 0L) { setTTL(other.getTTL()); } if (other.getGrantedTTL() != 0L) { setGrantedTTL(other.getGrantedTTL()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.LeaseTimeToLiveResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.LeaseTimeToLiveResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long iD_ ; /** *
       * ID is the lease ID from the keep alive request.
       * 
* * int64 ID = 2; */ public long getID() { return iD_; } /** *
       * ID is the lease ID from the keep alive request.
       * 
* * int64 ID = 2; */ public Builder setID(long value) { iD_ = value; onChanged(); return this; } /** *
       * ID is the lease ID from the keep alive request.
       * 
* * int64 ID = 2; */ public Builder clearID() { iD_ = 0L; onChanged(); return this; } private long tTL_ ; /** *
       * TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
       * 
* * int64 TTL = 3; */ public long getTTL() { return tTL_; } /** *
       * TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
       * 
* * int64 TTL = 3; */ public Builder setTTL(long value) { tTL_ = value; onChanged(); return this; } /** *
       * TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
       * 
* * int64 TTL = 3; */ public Builder clearTTL() { tTL_ = 0L; onChanged(); return this; } private long grantedTTL_ ; /** *
       * GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
       * 
* * int64 grantedTTL = 4; */ public long getGrantedTTL() { return grantedTTL_; } /** *
       * GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
       * 
* * int64 grantedTTL = 4; */ public Builder setGrantedTTL(long value) { grantedTTL_ = value; onChanged(); return this; } /** *
       * GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
       * 
* * int64 grantedTTL = 4; */ public Builder clearGrantedTTL() { grantedTTL_ = 0L; onChanged(); return this; } private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000010; } } /** *
       * Keys is the list of keys attached to this lease.
       * 
* * repeated bytes keys = 5; */ public java.util.List getKeysList() { return java.util.Collections.unmodifiableList(keys_); } /** *
       * Keys is the list of keys attached to this lease.
       * 
* * repeated bytes keys = 5; */ public int getKeysCount() { return keys_.size(); } /** *
       * Keys is the list of keys attached to this lease.
       * 
* * repeated bytes keys = 5; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } /** *
       * Keys is the list of keys attached to this lease.
       * 
* * repeated bytes keys = 5; */ public Builder setKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** *
       * Keys is the list of keys attached to this lease.
       * 
* * repeated bytes keys = 5; */ public Builder addKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** *
       * Keys is the list of keys attached to this lease.
       * 
* * repeated bytes keys = 5; */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** *
       * Keys is the list of keys attached to this lease.
       * 
* * repeated bytes keys = 5; */ public Builder clearKeys() { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.LeaseTimeToLiveResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.LeaseTimeToLiveResponse) private static final etcdserverpb.Rpc.LeaseTimeToLiveResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.LeaseTimeToLiveResponse(); } public static etcdserverpb.Rpc.LeaseTimeToLiveResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LeaseTimeToLiveResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LeaseTimeToLiveResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.LeaseTimeToLiveResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.Member) com.google.protobuf.MessageOrBuilder { /** *
     * ID is the member ID for this member.
     * 
* * uint64 ID = 1; */ long getID(); /** *
     * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
     * 
* * string name = 2; */ java.lang.String getName(); /** *
     * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
     * 
* * string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * peerURLs is the list of URLs the member exposes to the cluster for communication.
     * 
* * repeated string peerURLs = 3; */ java.util.List getPeerURLsList(); /** *
     * peerURLs is the list of URLs the member exposes to the cluster for communication.
     * 
* * repeated string peerURLs = 3; */ int getPeerURLsCount(); /** *
     * peerURLs is the list of URLs the member exposes to the cluster for communication.
     * 
* * repeated string peerURLs = 3; */ java.lang.String getPeerURLs(int index); /** *
     * peerURLs is the list of URLs the member exposes to the cluster for communication.
     * 
* * repeated string peerURLs = 3; */ com.google.protobuf.ByteString getPeerURLsBytes(int index); /** *
     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
     * 
* * repeated string clientURLs = 4; */ java.util.List getClientURLsList(); /** *
     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
     * 
* * repeated string clientURLs = 4; */ int getClientURLsCount(); /** *
     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
     * 
* * repeated string clientURLs = 4; */ java.lang.String getClientURLs(int index); /** *
     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
     * 
* * repeated string clientURLs = 4; */ com.google.protobuf.ByteString getClientURLsBytes(int index); } /** * Protobuf type {@code etcdserverpb.Member} */ public static final class Member extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.Member) MemberOrBuilder { private static final long serialVersionUID = 0L; // Use Member.newBuilder() to construct. private Member(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Member() { iD_ = 0L; name_ = ""; peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; clientURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Member( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { iD_ = input.readUInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { peerURLs_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } peerURLs_.add(s); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { clientURLs_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } clientURLs_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { peerURLs_ = peerURLs_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { clientURLs_ = clientURLs_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_Member_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_Member_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.Member.class, etcdserverpb.Rpc.Member.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private long iD_; /** *
     * ID is the member ID for this member.
     * 
* * uint64 ID = 1; */ public long getID() { return iD_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
     * 
* * string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
     * 
* * string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PEERURLS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList peerURLs_; /** *
     * peerURLs is the list of URLs the member exposes to the cluster for communication.
     * 
* * repeated string peerURLs = 3; */ public com.google.protobuf.ProtocolStringList getPeerURLsList() { return peerURLs_; } /** *
     * peerURLs is the list of URLs the member exposes to the cluster for communication.
     * 
* * repeated string peerURLs = 3; */ public int getPeerURLsCount() { return peerURLs_.size(); } /** *
     * peerURLs is the list of URLs the member exposes to the cluster for communication.
     * 
* * repeated string peerURLs = 3; */ public java.lang.String getPeerURLs(int index) { return peerURLs_.get(index); } /** *
     * peerURLs is the list of URLs the member exposes to the cluster for communication.
     * 
* * repeated string peerURLs = 3; */ public com.google.protobuf.ByteString getPeerURLsBytes(int index) { return peerURLs_.getByteString(index); } public static final int CLIENTURLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList clientURLs_; /** *
     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
     * 
* * repeated string clientURLs = 4; */ public com.google.protobuf.ProtocolStringList getClientURLsList() { return clientURLs_; } /** *
     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
     * 
* * repeated string clientURLs = 4; */ public int getClientURLsCount() { return clientURLs_.size(); } /** *
     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
     * 
* * repeated string clientURLs = 4; */ public java.lang.String getClientURLs(int index) { return clientURLs_.get(index); } /** *
     * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
     * 
* * repeated string clientURLs = 4; */ public com.google.protobuf.ByteString getClientURLsBytes(int index) { return clientURLs_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (iD_ != 0L) { output.writeUInt64(1, iD_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } for (int i = 0; i < peerURLs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, peerURLs_.getRaw(i)); } for (int i = 0; i < clientURLs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clientURLs_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (iD_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, iD_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } { int dataSize = 0; for (int i = 0; i < peerURLs_.size(); i++) { dataSize += computeStringSizeNoTag(peerURLs_.getRaw(i)); } size += dataSize; size += 1 * getPeerURLsList().size(); } { int dataSize = 0; for (int i = 0; i < clientURLs_.size(); i++) { dataSize += computeStringSizeNoTag(clientURLs_.getRaw(i)); } size += dataSize; size += 1 * getClientURLsList().size(); } 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 etcdserverpb.Rpc.Member)) { return super.equals(obj); } etcdserverpb.Rpc.Member other = (etcdserverpb.Rpc.Member) obj; boolean result = true; result = result && (getID() == other.getID()); result = result && getName() .equals(other.getName()); result = result && getPeerURLsList() .equals(other.getPeerURLsList()); result = result && getClientURLsList() .equals(other.getClientURLsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getID()); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getPeerURLsCount() > 0) { hash = (37 * hash) + PEERURLS_FIELD_NUMBER; hash = (53 * hash) + getPeerURLsList().hashCode(); } if (getClientURLsCount() > 0) { hash = (37 * hash) + CLIENTURLS_FIELD_NUMBER; hash = (53 * hash) + getClientURLsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.Member parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.Member parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.Member parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.Member parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.Member parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.Member parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.Member parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.Member 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 etcdserverpb.Rpc.Member parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.Member 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 etcdserverpb.Rpc.Member parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.Member parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.Member prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.Member} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.Member) etcdserverpb.Rpc.MemberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_Member_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_Member_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.Member.class, etcdserverpb.Rpc.Member.Builder.class); } // Construct using etcdserverpb.Rpc.Member.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); iD_ = 0L; name_ = ""; peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); clientURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_Member_descriptor; } public etcdserverpb.Rpc.Member getDefaultInstanceForType() { return etcdserverpb.Rpc.Member.getDefaultInstance(); } public etcdserverpb.Rpc.Member build() { etcdserverpb.Rpc.Member result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.Member buildPartial() { etcdserverpb.Rpc.Member result = new etcdserverpb.Rpc.Member(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.iD_ = iD_; result.name_ = name_; if (((bitField0_ & 0x00000004) == 0x00000004)) { peerURLs_ = peerURLs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.peerURLs_ = peerURLs_; if (((bitField0_ & 0x00000008) == 0x00000008)) { clientURLs_ = clientURLs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.clientURLs_ = clientURLs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.Member) { return mergeFrom((etcdserverpb.Rpc.Member)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.Member other) { if (other == etcdserverpb.Rpc.Member.getDefaultInstance()) return this; if (other.getID() != 0L) { setID(other.getID()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.peerURLs_.isEmpty()) { if (peerURLs_.isEmpty()) { peerURLs_ = other.peerURLs_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePeerURLsIsMutable(); peerURLs_.addAll(other.peerURLs_); } onChanged(); } if (!other.clientURLs_.isEmpty()) { if (clientURLs_.isEmpty()) { clientURLs_ = other.clientURLs_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureClientURLsIsMutable(); clientURLs_.addAll(other.clientURLs_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.Member parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.Member) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long iD_ ; /** *
       * ID is the member ID for this member.
       * 
* * uint64 ID = 1; */ public long getID() { return iD_; } /** *
       * ID is the member ID for this member.
       * 
* * uint64 ID = 1; */ public Builder setID(long value) { iD_ = value; onChanged(); return this; } /** *
       * ID is the member ID for this member.
       * 
* * uint64 ID = 1; */ public Builder clearID() { iD_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
       * 
* * string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
       * 
* * string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
       * 
* * string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
       * 
* * string name = 2; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name is the human-readable name of the member. If the member is not started, the name will be an empty string.
       * 
* * string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePeerURLsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { peerURLs_ = new com.google.protobuf.LazyStringArrayList(peerURLs_); bitField0_ |= 0x00000004; } } /** *
       * peerURLs is the list of URLs the member exposes to the cluster for communication.
       * 
* * repeated string peerURLs = 3; */ public com.google.protobuf.ProtocolStringList getPeerURLsList() { return peerURLs_.getUnmodifiableView(); } /** *
       * peerURLs is the list of URLs the member exposes to the cluster for communication.
       * 
* * repeated string peerURLs = 3; */ public int getPeerURLsCount() { return peerURLs_.size(); } /** *
       * peerURLs is the list of URLs the member exposes to the cluster for communication.
       * 
* * repeated string peerURLs = 3; */ public java.lang.String getPeerURLs(int index) { return peerURLs_.get(index); } /** *
       * peerURLs is the list of URLs the member exposes to the cluster for communication.
       * 
* * repeated string peerURLs = 3; */ public com.google.protobuf.ByteString getPeerURLsBytes(int index) { return peerURLs_.getByteString(index); } /** *
       * peerURLs is the list of URLs the member exposes to the cluster for communication.
       * 
* * repeated string peerURLs = 3; */ public Builder setPeerURLs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePeerURLsIsMutable(); peerURLs_.set(index, value); onChanged(); return this; } /** *
       * peerURLs is the list of URLs the member exposes to the cluster for communication.
       * 
* * repeated string peerURLs = 3; */ public Builder addPeerURLs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePeerURLsIsMutable(); peerURLs_.add(value); onChanged(); return this; } /** *
       * peerURLs is the list of URLs the member exposes to the cluster for communication.
       * 
* * repeated string peerURLs = 3; */ public Builder addAllPeerURLs( java.lang.Iterable values) { ensurePeerURLsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, peerURLs_); onChanged(); return this; } /** *
       * peerURLs is the list of URLs the member exposes to the cluster for communication.
       * 
* * repeated string peerURLs = 3; */ public Builder clearPeerURLs() { peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * peerURLs is the list of URLs the member exposes to the cluster for communication.
       * 
* * repeated string peerURLs = 3; */ public Builder addPeerURLsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePeerURLsIsMutable(); peerURLs_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList clientURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureClientURLsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { clientURLs_ = new com.google.protobuf.LazyStringArrayList(clientURLs_); bitField0_ |= 0x00000008; } } /** *
       * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
       * 
* * repeated string clientURLs = 4; */ public com.google.protobuf.ProtocolStringList getClientURLsList() { return clientURLs_.getUnmodifiableView(); } /** *
       * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
       * 
* * repeated string clientURLs = 4; */ public int getClientURLsCount() { return clientURLs_.size(); } /** *
       * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
       * 
* * repeated string clientURLs = 4; */ public java.lang.String getClientURLs(int index) { return clientURLs_.get(index); } /** *
       * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
       * 
* * repeated string clientURLs = 4; */ public com.google.protobuf.ByteString getClientURLsBytes(int index) { return clientURLs_.getByteString(index); } /** *
       * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
       * 
* * repeated string clientURLs = 4; */ public Builder setClientURLs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClientURLsIsMutable(); clientURLs_.set(index, value); onChanged(); return this; } /** *
       * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
       * 
* * repeated string clientURLs = 4; */ public Builder addClientURLs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClientURLsIsMutable(); clientURLs_.add(value); onChanged(); return this; } /** *
       * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
       * 
* * repeated string clientURLs = 4; */ public Builder addAllClientURLs( java.lang.Iterable values) { ensureClientURLsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clientURLs_); onChanged(); return this; } /** *
       * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
       * 
* * repeated string clientURLs = 4; */ public Builder clearClientURLs() { clientURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
       * 
* * repeated string clientURLs = 4; */ public Builder addClientURLsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureClientURLsIsMutable(); clientURLs_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.Member) } // @@protoc_insertion_point(class_scope:etcdserverpb.Member) private static final etcdserverpb.Rpc.Member DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.Member(); } public static etcdserverpb.Rpc.Member getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Member parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Member(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.Member getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberAddRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberAddRequest) com.google.protobuf.MessageOrBuilder { /** *
     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 1; */ java.util.List getPeerURLsList(); /** *
     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 1; */ int getPeerURLsCount(); /** *
     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 1; */ java.lang.String getPeerURLs(int index); /** *
     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 1; */ com.google.protobuf.ByteString getPeerURLsBytes(int index); } /** * Protobuf type {@code etcdserverpb.MemberAddRequest} */ public static final class MemberAddRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.MemberAddRequest) MemberAddRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MemberAddRequest.newBuilder() to construct. private MemberAddRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MemberAddRequest() { peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MemberAddRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { peerURLs_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } peerURLs_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { peerURLs_ = peerURLs_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberAddRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberAddRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberAddRequest.class, etcdserverpb.Rpc.MemberAddRequest.Builder.class); } public static final int PEERURLS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList peerURLs_; /** *
     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 1; */ public com.google.protobuf.ProtocolStringList getPeerURLsList() { return peerURLs_; } /** *
     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 1; */ public int getPeerURLsCount() { return peerURLs_.size(); } /** *
     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 1; */ public java.lang.String getPeerURLs(int index) { return peerURLs_.get(index); } /** *
     * peerURLs is the list of URLs the added member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 1; */ public com.google.protobuf.ByteString getPeerURLsBytes(int index) { return peerURLs_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < peerURLs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, peerURLs_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < peerURLs_.size(); i++) { dataSize += computeStringSizeNoTag(peerURLs_.getRaw(i)); } size += dataSize; size += 1 * getPeerURLsList().size(); } 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 etcdserverpb.Rpc.MemberAddRequest)) { return super.equals(obj); } etcdserverpb.Rpc.MemberAddRequest other = (etcdserverpb.Rpc.MemberAddRequest) obj; boolean result = true; result = result && getPeerURLsList() .equals(other.getPeerURLsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPeerURLsCount() > 0) { hash = (37 * hash) + PEERURLS_FIELD_NUMBER; hash = (53 * hash) + getPeerURLsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.MemberAddRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberAddRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberAddRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberAddRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberAddRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberAddRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberAddRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberAddRequest 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 etcdserverpb.Rpc.MemberAddRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberAddRequest 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 etcdserverpb.Rpc.MemberAddRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberAddRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.MemberAddRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.MemberAddRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberAddRequest) etcdserverpb.Rpc.MemberAddRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberAddRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberAddRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberAddRequest.class, etcdserverpb.Rpc.MemberAddRequest.Builder.class); } // Construct using etcdserverpb.Rpc.MemberAddRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberAddRequest_descriptor; } public etcdserverpb.Rpc.MemberAddRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.MemberAddRequest.getDefaultInstance(); } public etcdserverpb.Rpc.MemberAddRequest build() { etcdserverpb.Rpc.MemberAddRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.MemberAddRequest buildPartial() { etcdserverpb.Rpc.MemberAddRequest result = new etcdserverpb.Rpc.MemberAddRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { peerURLs_ = peerURLs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.peerURLs_ = peerURLs_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.MemberAddRequest) { return mergeFrom((etcdserverpb.Rpc.MemberAddRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.MemberAddRequest other) { if (other == etcdserverpb.Rpc.MemberAddRequest.getDefaultInstance()) return this; if (!other.peerURLs_.isEmpty()) { if (peerURLs_.isEmpty()) { peerURLs_ = other.peerURLs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePeerURLsIsMutable(); peerURLs_.addAll(other.peerURLs_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.MemberAddRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.MemberAddRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePeerURLsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { peerURLs_ = new com.google.protobuf.LazyStringArrayList(peerURLs_); bitField0_ |= 0x00000001; } } /** *
       * peerURLs is the list of URLs the added member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 1; */ public com.google.protobuf.ProtocolStringList getPeerURLsList() { return peerURLs_.getUnmodifiableView(); } /** *
       * peerURLs is the list of URLs the added member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 1; */ public int getPeerURLsCount() { return peerURLs_.size(); } /** *
       * peerURLs is the list of URLs the added member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 1; */ public java.lang.String getPeerURLs(int index) { return peerURLs_.get(index); } /** *
       * peerURLs is the list of URLs the added member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 1; */ public com.google.protobuf.ByteString getPeerURLsBytes(int index) { return peerURLs_.getByteString(index); } /** *
       * peerURLs is the list of URLs the added member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 1; */ public Builder setPeerURLs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePeerURLsIsMutable(); peerURLs_.set(index, value); onChanged(); return this; } /** *
       * peerURLs is the list of URLs the added member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 1; */ public Builder addPeerURLs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePeerURLsIsMutable(); peerURLs_.add(value); onChanged(); return this; } /** *
       * peerURLs is the list of URLs the added member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 1; */ public Builder addAllPeerURLs( java.lang.Iterable values) { ensurePeerURLsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, peerURLs_); onChanged(); return this; } /** *
       * peerURLs is the list of URLs the added member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 1; */ public Builder clearPeerURLs() { peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * peerURLs is the list of URLs the added member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 1; */ public Builder addPeerURLsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePeerURLsIsMutable(); peerURLs_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberAddRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.MemberAddRequest) private static final etcdserverpb.Rpc.MemberAddRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.MemberAddRequest(); } public static etcdserverpb.Rpc.MemberAddRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MemberAddRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MemberAddRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.MemberAddRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberAddResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberAddResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * member is the member information for the added member.
     * 
* * .etcdserverpb.Member member = 2; */ boolean hasMember(); /** *
     * member is the member information for the added member.
     * 
* * .etcdserverpb.Member member = 2; */ etcdserverpb.Rpc.Member getMember(); /** *
     * member is the member information for the added member.
     * 
* * .etcdserverpb.Member member = 2; */ etcdserverpb.Rpc.MemberOrBuilder getMemberOrBuilder(); /** *
     * members is a list of all members after adding the new member.
     * 
* * repeated .etcdserverpb.Member members = 3; */ java.util.List getMembersList(); /** *
     * members is a list of all members after adding the new member.
     * 
* * repeated .etcdserverpb.Member members = 3; */ etcdserverpb.Rpc.Member getMembers(int index); /** *
     * members is a list of all members after adding the new member.
     * 
* * repeated .etcdserverpb.Member members = 3; */ int getMembersCount(); /** *
     * members is a list of all members after adding the new member.
     * 
* * repeated .etcdserverpb.Member members = 3; */ java.util.List getMembersOrBuilderList(); /** *
     * members is a list of all members after adding the new member.
     * 
* * repeated .etcdserverpb.Member members = 3; */ etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index); } /** * Protobuf type {@code etcdserverpb.MemberAddResponse} */ public static final class MemberAddResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.MemberAddResponse) MemberAddResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MemberAddResponse.newBuilder() to construct. private MemberAddResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MemberAddResponse() { members_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MemberAddResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { etcdserverpb.Rpc.Member.Builder subBuilder = null; if (member_ != null) { subBuilder = member_.toBuilder(); } member_ = input.readMessage(etcdserverpb.Rpc.Member.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(member_); member_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { members_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } members_.add( input.readMessage(etcdserverpb.Rpc.Member.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { members_ = java.util.Collections.unmodifiableList(members_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberAddResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberAddResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberAddResponse.class, etcdserverpb.Rpc.MemberAddResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int MEMBER_FIELD_NUMBER = 2; private etcdserverpb.Rpc.Member member_; /** *
     * member is the member information for the added member.
     * 
* * .etcdserverpb.Member member = 2; */ public boolean hasMember() { return member_ != null; } /** *
     * member is the member information for the added member.
     * 
* * .etcdserverpb.Member member = 2; */ public etcdserverpb.Rpc.Member getMember() { return member_ == null ? etcdserverpb.Rpc.Member.getDefaultInstance() : member_; } /** *
     * member is the member information for the added member.
     * 
* * .etcdserverpb.Member member = 2; */ public etcdserverpb.Rpc.MemberOrBuilder getMemberOrBuilder() { return getMember(); } public static final int MEMBERS_FIELD_NUMBER = 3; private java.util.List members_; /** *
     * members is a list of all members after adding the new member.
     * 
* * repeated .etcdserverpb.Member members = 3; */ public java.util.List getMembersList() { return members_; } /** *
     * members is a list of all members after adding the new member.
     * 
* * repeated .etcdserverpb.Member members = 3; */ public java.util.List getMembersOrBuilderList() { return members_; } /** *
     * members is a list of all members after adding the new member.
     * 
* * repeated .etcdserverpb.Member members = 3; */ public int getMembersCount() { return members_.size(); } /** *
     * members is a list of all members after adding the new member.
     * 
* * repeated .etcdserverpb.Member members = 3; */ public etcdserverpb.Rpc.Member getMembers(int index) { return members_.get(index); } /** *
     * members is a list of all members after adding the new member.
     * 
* * repeated .etcdserverpb.Member members = 3; */ public etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index) { return members_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (member_ != null) { output.writeMessage(2, getMember()); } for (int i = 0; i < members_.size(); i++) { output.writeMessage(3, members_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (member_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMember()); } for (int i = 0; i < members_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, members_.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 etcdserverpb.Rpc.MemberAddResponse)) { return super.equals(obj); } etcdserverpb.Rpc.MemberAddResponse other = (etcdserverpb.Rpc.MemberAddResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasMember() == other.hasMember()); if (hasMember()) { result = result && getMember() .equals(other.getMember()); } result = result && getMembersList() .equals(other.getMembersList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasMember()) { hash = (37 * hash) + MEMBER_FIELD_NUMBER; hash = (53 * hash) + getMember().hashCode(); } if (getMembersCount() > 0) { hash = (37 * hash) + MEMBERS_FIELD_NUMBER; hash = (53 * hash) + getMembersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.MemberAddResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberAddResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberAddResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberAddResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberAddResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberAddResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberAddResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberAddResponse 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 etcdserverpb.Rpc.MemberAddResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberAddResponse 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 etcdserverpb.Rpc.MemberAddResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberAddResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.MemberAddResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.MemberAddResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberAddResponse) etcdserverpb.Rpc.MemberAddResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberAddResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberAddResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberAddResponse.class, etcdserverpb.Rpc.MemberAddResponse.Builder.class); } // Construct using etcdserverpb.Rpc.MemberAddResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMembersFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (memberBuilder_ == null) { member_ = null; } else { member_ = null; memberBuilder_ = null; } if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { membersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberAddResponse_descriptor; } public etcdserverpb.Rpc.MemberAddResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.MemberAddResponse.getDefaultInstance(); } public etcdserverpb.Rpc.MemberAddResponse build() { etcdserverpb.Rpc.MemberAddResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.MemberAddResponse buildPartial() { etcdserverpb.Rpc.MemberAddResponse result = new etcdserverpb.Rpc.MemberAddResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (memberBuilder_ == null) { result.member_ = member_; } else { result.member_ = memberBuilder_.build(); } if (membersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { members_ = java.util.Collections.unmodifiableList(members_); bitField0_ = (bitField0_ & ~0x00000004); } result.members_ = members_; } else { result.members_ = membersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.MemberAddResponse) { return mergeFrom((etcdserverpb.Rpc.MemberAddResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.MemberAddResponse other) { if (other == etcdserverpb.Rpc.MemberAddResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasMember()) { mergeMember(other.getMember()); } if (membersBuilder_ == null) { if (!other.members_.isEmpty()) { if (members_.isEmpty()) { members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMembersIsMutable(); members_.addAll(other.members_); } onChanged(); } } else { if (!other.members_.isEmpty()) { if (membersBuilder_.isEmpty()) { membersBuilder_.dispose(); membersBuilder_ = null; members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000004); membersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMembersFieldBuilder() : null; } else { membersBuilder_.addAllMessages(other.members_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.MemberAddResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.MemberAddResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private etcdserverpb.Rpc.Member member_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder> memberBuilder_; /** *
       * member is the member information for the added member.
       * 
* * .etcdserverpb.Member member = 2; */ public boolean hasMember() { return memberBuilder_ != null || member_ != null; } /** *
       * member is the member information for the added member.
       * 
* * .etcdserverpb.Member member = 2; */ public etcdserverpb.Rpc.Member getMember() { if (memberBuilder_ == null) { return member_ == null ? etcdserverpb.Rpc.Member.getDefaultInstance() : member_; } else { return memberBuilder_.getMessage(); } } /** *
       * member is the member information for the added member.
       * 
* * .etcdserverpb.Member member = 2; */ public Builder setMember(etcdserverpb.Rpc.Member value) { if (memberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } member_ = value; onChanged(); } else { memberBuilder_.setMessage(value); } return this; } /** *
       * member is the member information for the added member.
       * 
* * .etcdserverpb.Member member = 2; */ public Builder setMember( etcdserverpb.Rpc.Member.Builder builderForValue) { if (memberBuilder_ == null) { member_ = builderForValue.build(); onChanged(); } else { memberBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * member is the member information for the added member.
       * 
* * .etcdserverpb.Member member = 2; */ public Builder mergeMember(etcdserverpb.Rpc.Member value) { if (memberBuilder_ == null) { if (member_ != null) { member_ = etcdserverpb.Rpc.Member.newBuilder(member_).mergeFrom(value).buildPartial(); } else { member_ = value; } onChanged(); } else { memberBuilder_.mergeFrom(value); } return this; } /** *
       * member is the member information for the added member.
       * 
* * .etcdserverpb.Member member = 2; */ public Builder clearMember() { if (memberBuilder_ == null) { member_ = null; onChanged(); } else { member_ = null; memberBuilder_ = null; } return this; } /** *
       * member is the member information for the added member.
       * 
* * .etcdserverpb.Member member = 2; */ public etcdserverpb.Rpc.Member.Builder getMemberBuilder() { onChanged(); return getMemberFieldBuilder().getBuilder(); } /** *
       * member is the member information for the added member.
       * 
* * .etcdserverpb.Member member = 2; */ public etcdserverpb.Rpc.MemberOrBuilder getMemberOrBuilder() { if (memberBuilder_ != null) { return memberBuilder_.getMessageOrBuilder(); } else { return member_ == null ? etcdserverpb.Rpc.Member.getDefaultInstance() : member_; } } /** *
       * member is the member information for the added member.
       * 
* * .etcdserverpb.Member member = 2; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder> getMemberFieldBuilder() { if (memberBuilder_ == null) { memberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder>( getMember(), getParentForChildren(), isClean()); member_ = null; } return memberBuilder_; } private java.util.List members_ = java.util.Collections.emptyList(); private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { members_ = new java.util.ArrayList(members_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder> membersBuilder_; /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public java.util.List getMembersList() { if (membersBuilder_ == null) { return java.util.Collections.unmodifiableList(members_); } else { return membersBuilder_.getMessageList(); } } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public int getMembersCount() { if (membersBuilder_ == null) { return members_.size(); } else { return membersBuilder_.getCount(); } } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public etcdserverpb.Rpc.Member getMembers(int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessage(index); } } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public Builder setMembers( int index, etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.set(index, value); onChanged(); } else { membersBuilder_.setMessage(index, value); } return this; } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public Builder setMembers( int index, etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.set(index, builderForValue.build()); onChanged(); } else { membersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public Builder addMembers(etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(value); onChanged(); } else { membersBuilder_.addMessage(value); } return this; } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public Builder addMembers( int index, etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(index, value); onChanged(); } else { membersBuilder_.addMessage(index, value); } return this; } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public Builder addMembers( etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public Builder addMembers( int index, etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(index, builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public Builder addAllMembers( java.lang.Iterable values) { if (membersBuilder_ == null) { ensureMembersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, members_); onChanged(); } else { membersBuilder_.addAllMessages(values); } return this; } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public Builder clearMembers() { if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { membersBuilder_.clear(); } return this; } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public Builder removeMembers(int index) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.remove(index); onChanged(); } else { membersBuilder_.remove(index); } return this; } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public etcdserverpb.Rpc.Member.Builder getMembersBuilder( int index) { return getMembersFieldBuilder().getBuilder(index); } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessageOrBuilder(index); } } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public java.util.List getMembersOrBuilderList() { if (membersBuilder_ != null) { return membersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(members_); } } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public etcdserverpb.Rpc.Member.Builder addMembersBuilder() { return getMembersFieldBuilder().addBuilder( etcdserverpb.Rpc.Member.getDefaultInstance()); } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public etcdserverpb.Rpc.Member.Builder addMembersBuilder( int index) { return getMembersFieldBuilder().addBuilder( index, etcdserverpb.Rpc.Member.getDefaultInstance()); } /** *
       * members is a list of all members after adding the new member.
       * 
* * repeated .etcdserverpb.Member members = 3; */ public java.util.List getMembersBuilderList() { return getMembersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder> getMembersFieldBuilder() { if (membersBuilder_ == null) { membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder>( members_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); members_ = null; } return membersBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberAddResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.MemberAddResponse) private static final etcdserverpb.Rpc.MemberAddResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.MemberAddResponse(); } public static etcdserverpb.Rpc.MemberAddResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MemberAddResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MemberAddResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.MemberAddResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberRemoveRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberRemoveRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID is the member ID of the member to remove.
     * 
* * uint64 ID = 1; */ long getID(); } /** * Protobuf type {@code etcdserverpb.MemberRemoveRequest} */ public static final class MemberRemoveRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.MemberRemoveRequest) MemberRemoveRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MemberRemoveRequest.newBuilder() to construct. private MemberRemoveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MemberRemoveRequest() { iD_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MemberRemoveRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { iD_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberRemoveRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberRemoveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberRemoveRequest.class, etcdserverpb.Rpc.MemberRemoveRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private long iD_; /** *
     * ID is the member ID of the member to remove.
     * 
* * uint64 ID = 1; */ public long getID() { return iD_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (iD_ != 0L) { output.writeUInt64(1, iD_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (iD_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, iD_); } 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 etcdserverpb.Rpc.MemberRemoveRequest)) { return super.equals(obj); } etcdserverpb.Rpc.MemberRemoveRequest other = (etcdserverpb.Rpc.MemberRemoveRequest) obj; boolean result = true; result = result && (getID() == other.getID()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getID()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.MemberRemoveRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberRemoveRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberRemoveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberRemoveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberRemoveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberRemoveRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberRemoveRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberRemoveRequest 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 etcdserverpb.Rpc.MemberRemoveRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberRemoveRequest 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 etcdserverpb.Rpc.MemberRemoveRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberRemoveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.MemberRemoveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.MemberRemoveRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberRemoveRequest) etcdserverpb.Rpc.MemberRemoveRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberRemoveRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberRemoveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberRemoveRequest.class, etcdserverpb.Rpc.MemberRemoveRequest.Builder.class); } // Construct using etcdserverpb.Rpc.MemberRemoveRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); iD_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberRemoveRequest_descriptor; } public etcdserverpb.Rpc.MemberRemoveRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.MemberRemoveRequest.getDefaultInstance(); } public etcdserverpb.Rpc.MemberRemoveRequest build() { etcdserverpb.Rpc.MemberRemoveRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.MemberRemoveRequest buildPartial() { etcdserverpb.Rpc.MemberRemoveRequest result = new etcdserverpb.Rpc.MemberRemoveRequest(this); result.iD_ = iD_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.MemberRemoveRequest) { return mergeFrom((etcdserverpb.Rpc.MemberRemoveRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.MemberRemoveRequest other) { if (other == etcdserverpb.Rpc.MemberRemoveRequest.getDefaultInstance()) return this; if (other.getID() != 0L) { setID(other.getID()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.MemberRemoveRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.MemberRemoveRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long iD_ ; /** *
       * ID is the member ID of the member to remove.
       * 
* * uint64 ID = 1; */ public long getID() { return iD_; } /** *
       * ID is the member ID of the member to remove.
       * 
* * uint64 ID = 1; */ public Builder setID(long value) { iD_ = value; onChanged(); return this; } /** *
       * ID is the member ID of the member to remove.
       * 
* * uint64 ID = 1; */ public Builder clearID() { iD_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberRemoveRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.MemberRemoveRequest) private static final etcdserverpb.Rpc.MemberRemoveRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.MemberRemoveRequest(); } public static etcdserverpb.Rpc.MemberRemoveRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MemberRemoveRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MemberRemoveRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.MemberRemoveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberRemoveResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberRemoveResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * members is a list of all members after removing the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ java.util.List getMembersList(); /** *
     * members is a list of all members after removing the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ etcdserverpb.Rpc.Member getMembers(int index); /** *
     * members is a list of all members after removing the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ int getMembersCount(); /** *
     * members is a list of all members after removing the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ java.util.List getMembersOrBuilderList(); /** *
     * members is a list of all members after removing the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index); } /** * Protobuf type {@code etcdserverpb.MemberRemoveResponse} */ public static final class MemberRemoveResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.MemberRemoveResponse) MemberRemoveResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MemberRemoveResponse.newBuilder() to construct. private MemberRemoveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MemberRemoveResponse() { members_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MemberRemoveResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { members_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } members_.add( input.readMessage(etcdserverpb.Rpc.Member.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { members_ = java.util.Collections.unmodifiableList(members_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberRemoveResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberRemoveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberRemoveResponse.class, etcdserverpb.Rpc.MemberRemoveResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int MEMBERS_FIELD_NUMBER = 2; private java.util.List members_; /** *
     * members is a list of all members after removing the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersList() { return members_; } /** *
     * members is a list of all members after removing the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersOrBuilderList() { return members_; } /** *
     * members is a list of all members after removing the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public int getMembersCount() { return members_.size(); } /** *
     * members is a list of all members after removing the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member getMembers(int index) { return members_.get(index); } /** *
     * members is a list of all members after removing the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index) { return members_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < members_.size(); i++) { output.writeMessage(2, members_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < members_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, members_.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 etcdserverpb.Rpc.MemberRemoveResponse)) { return super.equals(obj); } etcdserverpb.Rpc.MemberRemoveResponse other = (etcdserverpb.Rpc.MemberRemoveResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getMembersList() .equals(other.getMembersList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getMembersCount() > 0) { hash = (37 * hash) + MEMBERS_FIELD_NUMBER; hash = (53 * hash) + getMembersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.MemberRemoveResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberRemoveResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberRemoveResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberRemoveResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberRemoveResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberRemoveResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberRemoveResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberRemoveResponse 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 etcdserverpb.Rpc.MemberRemoveResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberRemoveResponse 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 etcdserverpb.Rpc.MemberRemoveResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberRemoveResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.MemberRemoveResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.MemberRemoveResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberRemoveResponse) etcdserverpb.Rpc.MemberRemoveResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberRemoveResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberRemoveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberRemoveResponse.class, etcdserverpb.Rpc.MemberRemoveResponse.Builder.class); } // Construct using etcdserverpb.Rpc.MemberRemoveResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMembersFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { membersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberRemoveResponse_descriptor; } public etcdserverpb.Rpc.MemberRemoveResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.MemberRemoveResponse.getDefaultInstance(); } public etcdserverpb.Rpc.MemberRemoveResponse build() { etcdserverpb.Rpc.MemberRemoveResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.MemberRemoveResponse buildPartial() { etcdserverpb.Rpc.MemberRemoveResponse result = new etcdserverpb.Rpc.MemberRemoveResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (membersBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { members_ = java.util.Collections.unmodifiableList(members_); bitField0_ = (bitField0_ & ~0x00000002); } result.members_ = members_; } else { result.members_ = membersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.MemberRemoveResponse) { return mergeFrom((etcdserverpb.Rpc.MemberRemoveResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.MemberRemoveResponse other) { if (other == etcdserverpb.Rpc.MemberRemoveResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (membersBuilder_ == null) { if (!other.members_.isEmpty()) { if (members_.isEmpty()) { members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMembersIsMutable(); members_.addAll(other.members_); } onChanged(); } } else { if (!other.members_.isEmpty()) { if (membersBuilder_.isEmpty()) { membersBuilder_.dispose(); membersBuilder_ = null; members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000002); membersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMembersFieldBuilder() : null; } else { membersBuilder_.addAllMessages(other.members_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.MemberRemoveResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.MemberRemoveResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List members_ = java.util.Collections.emptyList(); private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { members_ = new java.util.ArrayList(members_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder> membersBuilder_; /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersList() { if (membersBuilder_ == null) { return java.util.Collections.unmodifiableList(members_); } else { return membersBuilder_.getMessageList(); } } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public int getMembersCount() { if (membersBuilder_ == null) { return members_.size(); } else { return membersBuilder_.getCount(); } } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member getMembers(int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessage(index); } } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder setMembers( int index, etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.set(index, value); onChanged(); } else { membersBuilder_.setMessage(index, value); } return this; } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder setMembers( int index, etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.set(index, builderForValue.build()); onChanged(); } else { membersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers(etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(value); onChanged(); } else { membersBuilder_.addMessage(value); } return this; } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers( int index, etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(index, value); onChanged(); } else { membersBuilder_.addMessage(index, value); } return this; } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers( etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers( int index, etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(index, builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addAllMembers( java.lang.Iterable values) { if (membersBuilder_ == null) { ensureMembersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, members_); onChanged(); } else { membersBuilder_.addAllMessages(values); } return this; } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder clearMembers() { if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { membersBuilder_.clear(); } return this; } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder removeMembers(int index) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.remove(index); onChanged(); } else { membersBuilder_.remove(index); } return this; } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member.Builder getMembersBuilder( int index) { return getMembersFieldBuilder().getBuilder(index); } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessageOrBuilder(index); } } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersOrBuilderList() { if (membersBuilder_ != null) { return membersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(members_); } } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member.Builder addMembersBuilder() { return getMembersFieldBuilder().addBuilder( etcdserverpb.Rpc.Member.getDefaultInstance()); } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member.Builder addMembersBuilder( int index) { return getMembersFieldBuilder().addBuilder( index, etcdserverpb.Rpc.Member.getDefaultInstance()); } /** *
       * members is a list of all members after removing the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersBuilderList() { return getMembersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder> getMembersFieldBuilder() { if (membersBuilder_ == null) { membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder>( members_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); members_ = null; } return membersBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberRemoveResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.MemberRemoveResponse) private static final etcdserverpb.Rpc.MemberRemoveResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.MemberRemoveResponse(); } public static etcdserverpb.Rpc.MemberRemoveResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MemberRemoveResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MemberRemoveResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.MemberRemoveResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberUpdateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberUpdateRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID is the member ID of the member to update.
     * 
* * uint64 ID = 1; */ long getID(); /** *
     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 2; */ java.util.List getPeerURLsList(); /** *
     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 2; */ int getPeerURLsCount(); /** *
     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 2; */ java.lang.String getPeerURLs(int index); /** *
     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 2; */ com.google.protobuf.ByteString getPeerURLsBytes(int index); } /** * Protobuf type {@code etcdserverpb.MemberUpdateRequest} */ public static final class MemberUpdateRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.MemberUpdateRequest) MemberUpdateRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MemberUpdateRequest.newBuilder() to construct. private MemberUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MemberUpdateRequest() { iD_ = 0L; peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MemberUpdateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { iD_ = input.readUInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { peerURLs_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } peerURLs_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { peerURLs_ = peerURLs_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberUpdateRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberUpdateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberUpdateRequest.class, etcdserverpb.Rpc.MemberUpdateRequest.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private long iD_; /** *
     * ID is the member ID of the member to update.
     * 
* * uint64 ID = 1; */ public long getID() { return iD_; } public static final int PEERURLS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList peerURLs_; /** *
     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 2; */ public com.google.protobuf.ProtocolStringList getPeerURLsList() { return peerURLs_; } /** *
     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 2; */ public int getPeerURLsCount() { return peerURLs_.size(); } /** *
     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 2; */ public java.lang.String getPeerURLs(int index) { return peerURLs_.get(index); } /** *
     * peerURLs is the new list of URLs the member will use to communicate with the cluster.
     * 
* * repeated string peerURLs = 2; */ public com.google.protobuf.ByteString getPeerURLsBytes(int index) { return peerURLs_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (iD_ != 0L) { output.writeUInt64(1, iD_); } for (int i = 0; i < peerURLs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, peerURLs_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (iD_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, iD_); } { int dataSize = 0; for (int i = 0; i < peerURLs_.size(); i++) { dataSize += computeStringSizeNoTag(peerURLs_.getRaw(i)); } size += dataSize; size += 1 * getPeerURLsList().size(); } 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 etcdserverpb.Rpc.MemberUpdateRequest)) { return super.equals(obj); } etcdserverpb.Rpc.MemberUpdateRequest other = (etcdserverpb.Rpc.MemberUpdateRequest) obj; boolean result = true; result = result && (getID() == other.getID()); result = result && getPeerURLsList() .equals(other.getPeerURLsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getID()); if (getPeerURLsCount() > 0) { hash = (37 * hash) + PEERURLS_FIELD_NUMBER; hash = (53 * hash) + getPeerURLsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.MemberUpdateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberUpdateRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberUpdateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberUpdateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberUpdateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberUpdateRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberUpdateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberUpdateRequest 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 etcdserverpb.Rpc.MemberUpdateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberUpdateRequest 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 etcdserverpb.Rpc.MemberUpdateRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberUpdateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.MemberUpdateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.MemberUpdateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberUpdateRequest) etcdserverpb.Rpc.MemberUpdateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberUpdateRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberUpdateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberUpdateRequest.class, etcdserverpb.Rpc.MemberUpdateRequest.Builder.class); } // Construct using etcdserverpb.Rpc.MemberUpdateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); iD_ = 0L; peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberUpdateRequest_descriptor; } public etcdserverpb.Rpc.MemberUpdateRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.MemberUpdateRequest.getDefaultInstance(); } public etcdserverpb.Rpc.MemberUpdateRequest build() { etcdserverpb.Rpc.MemberUpdateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.MemberUpdateRequest buildPartial() { etcdserverpb.Rpc.MemberUpdateRequest result = new etcdserverpb.Rpc.MemberUpdateRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.iD_ = iD_; if (((bitField0_ & 0x00000002) == 0x00000002)) { peerURLs_ = peerURLs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.peerURLs_ = peerURLs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.MemberUpdateRequest) { return mergeFrom((etcdserverpb.Rpc.MemberUpdateRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.MemberUpdateRequest other) { if (other == etcdserverpb.Rpc.MemberUpdateRequest.getDefaultInstance()) return this; if (other.getID() != 0L) { setID(other.getID()); } if (!other.peerURLs_.isEmpty()) { if (peerURLs_.isEmpty()) { peerURLs_ = other.peerURLs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePeerURLsIsMutable(); peerURLs_.addAll(other.peerURLs_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.MemberUpdateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.MemberUpdateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long iD_ ; /** *
       * ID is the member ID of the member to update.
       * 
* * uint64 ID = 1; */ public long getID() { return iD_; } /** *
       * ID is the member ID of the member to update.
       * 
* * uint64 ID = 1; */ public Builder setID(long value) { iD_ = value; onChanged(); return this; } /** *
       * ID is the member ID of the member to update.
       * 
* * uint64 ID = 1; */ public Builder clearID() { iD_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePeerURLsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { peerURLs_ = new com.google.protobuf.LazyStringArrayList(peerURLs_); bitField0_ |= 0x00000002; } } /** *
       * peerURLs is the new list of URLs the member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 2; */ public com.google.protobuf.ProtocolStringList getPeerURLsList() { return peerURLs_.getUnmodifiableView(); } /** *
       * peerURLs is the new list of URLs the member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 2; */ public int getPeerURLsCount() { return peerURLs_.size(); } /** *
       * peerURLs is the new list of URLs the member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 2; */ public java.lang.String getPeerURLs(int index) { return peerURLs_.get(index); } /** *
       * peerURLs is the new list of URLs the member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 2; */ public com.google.protobuf.ByteString getPeerURLsBytes(int index) { return peerURLs_.getByteString(index); } /** *
       * peerURLs is the new list of URLs the member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 2; */ public Builder setPeerURLs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePeerURLsIsMutable(); peerURLs_.set(index, value); onChanged(); return this; } /** *
       * peerURLs is the new list of URLs the member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 2; */ public Builder addPeerURLs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePeerURLsIsMutable(); peerURLs_.add(value); onChanged(); return this; } /** *
       * peerURLs is the new list of URLs the member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 2; */ public Builder addAllPeerURLs( java.lang.Iterable values) { ensurePeerURLsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, peerURLs_); onChanged(); return this; } /** *
       * peerURLs is the new list of URLs the member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 2; */ public Builder clearPeerURLs() { peerURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * peerURLs is the new list of URLs the member will use to communicate with the cluster.
       * 
* * repeated string peerURLs = 2; */ public Builder addPeerURLsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePeerURLsIsMutable(); peerURLs_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberUpdateRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.MemberUpdateRequest) private static final etcdserverpb.Rpc.MemberUpdateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.MemberUpdateRequest(); } public static etcdserverpb.Rpc.MemberUpdateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MemberUpdateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MemberUpdateRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.MemberUpdateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberUpdateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberUpdateResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * members is a list of all members after updating the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ java.util.List getMembersList(); /** *
     * members is a list of all members after updating the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ etcdserverpb.Rpc.Member getMembers(int index); /** *
     * members is a list of all members after updating the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ int getMembersCount(); /** *
     * members is a list of all members after updating the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ java.util.List getMembersOrBuilderList(); /** *
     * members is a list of all members after updating the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index); } /** * Protobuf type {@code etcdserverpb.MemberUpdateResponse} */ public static final class MemberUpdateResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.MemberUpdateResponse) MemberUpdateResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MemberUpdateResponse.newBuilder() to construct. private MemberUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MemberUpdateResponse() { members_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MemberUpdateResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { members_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } members_.add( input.readMessage(etcdserverpb.Rpc.Member.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { members_ = java.util.Collections.unmodifiableList(members_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberUpdateResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberUpdateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberUpdateResponse.class, etcdserverpb.Rpc.MemberUpdateResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int MEMBERS_FIELD_NUMBER = 2; private java.util.List members_; /** *
     * members is a list of all members after updating the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersList() { return members_; } /** *
     * members is a list of all members after updating the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersOrBuilderList() { return members_; } /** *
     * members is a list of all members after updating the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public int getMembersCount() { return members_.size(); } /** *
     * members is a list of all members after updating the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member getMembers(int index) { return members_.get(index); } /** *
     * members is a list of all members after updating the member.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index) { return members_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < members_.size(); i++) { output.writeMessage(2, members_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < members_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, members_.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 etcdserverpb.Rpc.MemberUpdateResponse)) { return super.equals(obj); } etcdserverpb.Rpc.MemberUpdateResponse other = (etcdserverpb.Rpc.MemberUpdateResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getMembersList() .equals(other.getMembersList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getMembersCount() > 0) { hash = (37 * hash) + MEMBERS_FIELD_NUMBER; hash = (53 * hash) + getMembersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.MemberUpdateResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberUpdateResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberUpdateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberUpdateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberUpdateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberUpdateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberUpdateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberUpdateResponse 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 etcdserverpb.Rpc.MemberUpdateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberUpdateResponse 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 etcdserverpb.Rpc.MemberUpdateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberUpdateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.MemberUpdateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.MemberUpdateResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberUpdateResponse) etcdserverpb.Rpc.MemberUpdateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberUpdateResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberUpdateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberUpdateResponse.class, etcdserverpb.Rpc.MemberUpdateResponse.Builder.class); } // Construct using etcdserverpb.Rpc.MemberUpdateResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMembersFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { membersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberUpdateResponse_descriptor; } public etcdserverpb.Rpc.MemberUpdateResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.MemberUpdateResponse.getDefaultInstance(); } public etcdserverpb.Rpc.MemberUpdateResponse build() { etcdserverpb.Rpc.MemberUpdateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.MemberUpdateResponse buildPartial() { etcdserverpb.Rpc.MemberUpdateResponse result = new etcdserverpb.Rpc.MemberUpdateResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (membersBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { members_ = java.util.Collections.unmodifiableList(members_); bitField0_ = (bitField0_ & ~0x00000002); } result.members_ = members_; } else { result.members_ = membersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.MemberUpdateResponse) { return mergeFrom((etcdserverpb.Rpc.MemberUpdateResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.MemberUpdateResponse other) { if (other == etcdserverpb.Rpc.MemberUpdateResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (membersBuilder_ == null) { if (!other.members_.isEmpty()) { if (members_.isEmpty()) { members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMembersIsMutable(); members_.addAll(other.members_); } onChanged(); } } else { if (!other.members_.isEmpty()) { if (membersBuilder_.isEmpty()) { membersBuilder_.dispose(); membersBuilder_ = null; members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000002); membersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMembersFieldBuilder() : null; } else { membersBuilder_.addAllMessages(other.members_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.MemberUpdateResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.MemberUpdateResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List members_ = java.util.Collections.emptyList(); private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { members_ = new java.util.ArrayList(members_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder> membersBuilder_; /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersList() { if (membersBuilder_ == null) { return java.util.Collections.unmodifiableList(members_); } else { return membersBuilder_.getMessageList(); } } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public int getMembersCount() { if (membersBuilder_ == null) { return members_.size(); } else { return membersBuilder_.getCount(); } } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member getMembers(int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessage(index); } } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder setMembers( int index, etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.set(index, value); onChanged(); } else { membersBuilder_.setMessage(index, value); } return this; } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder setMembers( int index, etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.set(index, builderForValue.build()); onChanged(); } else { membersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers(etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(value); onChanged(); } else { membersBuilder_.addMessage(value); } return this; } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers( int index, etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(index, value); onChanged(); } else { membersBuilder_.addMessage(index, value); } return this; } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers( etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers( int index, etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(index, builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addAllMembers( java.lang.Iterable values) { if (membersBuilder_ == null) { ensureMembersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, members_); onChanged(); } else { membersBuilder_.addAllMessages(values); } return this; } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder clearMembers() { if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { membersBuilder_.clear(); } return this; } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder removeMembers(int index) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.remove(index); onChanged(); } else { membersBuilder_.remove(index); } return this; } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member.Builder getMembersBuilder( int index) { return getMembersFieldBuilder().getBuilder(index); } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessageOrBuilder(index); } } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersOrBuilderList() { if (membersBuilder_ != null) { return membersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(members_); } } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member.Builder addMembersBuilder() { return getMembersFieldBuilder().addBuilder( etcdserverpb.Rpc.Member.getDefaultInstance()); } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member.Builder addMembersBuilder( int index) { return getMembersFieldBuilder().addBuilder( index, etcdserverpb.Rpc.Member.getDefaultInstance()); } /** *
       * members is a list of all members after updating the member.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersBuilderList() { return getMembersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder> getMembersFieldBuilder() { if (membersBuilder_ == null) { membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder>( members_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); members_ = null; } return membersBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberUpdateResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.MemberUpdateResponse) private static final etcdserverpb.Rpc.MemberUpdateResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.MemberUpdateResponse(); } public static etcdserverpb.Rpc.MemberUpdateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MemberUpdateResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MemberUpdateResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.MemberUpdateResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberListRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberListRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code etcdserverpb.MemberListRequest} */ public static final class MemberListRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.MemberListRequest) MemberListRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MemberListRequest.newBuilder() to construct. private MemberListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MemberListRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MemberListRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberListRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberListRequest.class, etcdserverpb.Rpc.MemberListRequest.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 etcdserverpb.Rpc.MemberListRequest)) { return super.equals(obj); } etcdserverpb.Rpc.MemberListRequest other = (etcdserverpb.Rpc.MemberListRequest) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.MemberListRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberListRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberListRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberListRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberListRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberListRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberListRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberListRequest 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 etcdserverpb.Rpc.MemberListRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberListRequest 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 etcdserverpb.Rpc.MemberListRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberListRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.MemberListRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.MemberListRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberListRequest) etcdserverpb.Rpc.MemberListRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberListRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberListRequest.class, etcdserverpb.Rpc.MemberListRequest.Builder.class); } // Construct using etcdserverpb.Rpc.MemberListRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberListRequest_descriptor; } public etcdserverpb.Rpc.MemberListRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.MemberListRequest.getDefaultInstance(); } public etcdserverpb.Rpc.MemberListRequest build() { etcdserverpb.Rpc.MemberListRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.MemberListRequest buildPartial() { etcdserverpb.Rpc.MemberListRequest result = new etcdserverpb.Rpc.MemberListRequest(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.MemberListRequest) { return mergeFrom((etcdserverpb.Rpc.MemberListRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.MemberListRequest other) { if (other == etcdserverpb.Rpc.MemberListRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.MemberListRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.MemberListRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberListRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.MemberListRequest) private static final etcdserverpb.Rpc.MemberListRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.MemberListRequest(); } public static etcdserverpb.Rpc.MemberListRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MemberListRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MemberListRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.MemberListRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.MemberListResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * members is a list of all members associated with the cluster.
     * 
* * repeated .etcdserverpb.Member members = 2; */ java.util.List getMembersList(); /** *
     * members is a list of all members associated with the cluster.
     * 
* * repeated .etcdserverpb.Member members = 2; */ etcdserverpb.Rpc.Member getMembers(int index); /** *
     * members is a list of all members associated with the cluster.
     * 
* * repeated .etcdserverpb.Member members = 2; */ int getMembersCount(); /** *
     * members is a list of all members associated with the cluster.
     * 
* * repeated .etcdserverpb.Member members = 2; */ java.util.List getMembersOrBuilderList(); /** *
     * members is a list of all members associated with the cluster.
     * 
* * repeated .etcdserverpb.Member members = 2; */ etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index); } /** * Protobuf type {@code etcdserverpb.MemberListResponse} */ public static final class MemberListResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.MemberListResponse) MemberListResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MemberListResponse.newBuilder() to construct. private MemberListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MemberListResponse() { members_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MemberListResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { members_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } members_.add( input.readMessage(etcdserverpb.Rpc.Member.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { members_ = java.util.Collections.unmodifiableList(members_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberListResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberListResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberListResponse.class, etcdserverpb.Rpc.MemberListResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int MEMBERS_FIELD_NUMBER = 2; private java.util.List members_; /** *
     * members is a list of all members associated with the cluster.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersList() { return members_; } /** *
     * members is a list of all members associated with the cluster.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersOrBuilderList() { return members_; } /** *
     * members is a list of all members associated with the cluster.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public int getMembersCount() { return members_.size(); } /** *
     * members is a list of all members associated with the cluster.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member getMembers(int index) { return members_.get(index); } /** *
     * members is a list of all members associated with the cluster.
     * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index) { return members_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < members_.size(); i++) { output.writeMessage(2, members_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < members_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, members_.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 etcdserverpb.Rpc.MemberListResponse)) { return super.equals(obj); } etcdserverpb.Rpc.MemberListResponse other = (etcdserverpb.Rpc.MemberListResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getMembersList() .equals(other.getMembersList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getMembersCount() > 0) { hash = (37 * hash) + MEMBERS_FIELD_NUMBER; hash = (53 * hash) + getMembersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.MemberListResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberListResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.MemberListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.MemberListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberListResponse 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 etcdserverpb.Rpc.MemberListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberListResponse 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 etcdserverpb.Rpc.MemberListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.MemberListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.MemberListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.MemberListResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.MemberListResponse) etcdserverpb.Rpc.MemberListResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberListResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberListResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.MemberListResponse.class, etcdserverpb.Rpc.MemberListResponse.Builder.class); } // Construct using etcdserverpb.Rpc.MemberListResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMembersFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { membersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_MemberListResponse_descriptor; } public etcdserverpb.Rpc.MemberListResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.MemberListResponse.getDefaultInstance(); } public etcdserverpb.Rpc.MemberListResponse build() { etcdserverpb.Rpc.MemberListResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.MemberListResponse buildPartial() { etcdserverpb.Rpc.MemberListResponse result = new etcdserverpb.Rpc.MemberListResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (membersBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { members_ = java.util.Collections.unmodifiableList(members_); bitField0_ = (bitField0_ & ~0x00000002); } result.members_ = members_; } else { result.members_ = membersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.MemberListResponse) { return mergeFrom((etcdserverpb.Rpc.MemberListResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.MemberListResponse other) { if (other == etcdserverpb.Rpc.MemberListResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (membersBuilder_ == null) { if (!other.members_.isEmpty()) { if (members_.isEmpty()) { members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMembersIsMutable(); members_.addAll(other.members_); } onChanged(); } } else { if (!other.members_.isEmpty()) { if (membersBuilder_.isEmpty()) { membersBuilder_.dispose(); membersBuilder_ = null; members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000002); membersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMembersFieldBuilder() : null; } else { membersBuilder_.addAllMessages(other.members_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.MemberListResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.MemberListResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List members_ = java.util.Collections.emptyList(); private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { members_ = new java.util.ArrayList(members_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder> membersBuilder_; /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersList() { if (membersBuilder_ == null) { return java.util.Collections.unmodifiableList(members_); } else { return membersBuilder_.getMessageList(); } } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public int getMembersCount() { if (membersBuilder_ == null) { return members_.size(); } else { return membersBuilder_.getCount(); } } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member getMembers(int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessage(index); } } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder setMembers( int index, etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.set(index, value); onChanged(); } else { membersBuilder_.setMessage(index, value); } return this; } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder setMembers( int index, etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.set(index, builderForValue.build()); onChanged(); } else { membersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers(etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(value); onChanged(); } else { membersBuilder_.addMessage(value); } return this; } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers( int index, etcdserverpb.Rpc.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(index, value); onChanged(); } else { membersBuilder_.addMessage(index, value); } return this; } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers( etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addMembers( int index, etcdserverpb.Rpc.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(index, builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder addAllMembers( java.lang.Iterable values) { if (membersBuilder_ == null) { ensureMembersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, members_); onChanged(); } else { membersBuilder_.addAllMessages(values); } return this; } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder clearMembers() { if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { membersBuilder_.clear(); } return this; } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public Builder removeMembers(int index) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.remove(index); onChanged(); } else { membersBuilder_.remove(index); } return this; } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member.Builder getMembersBuilder( int index) { return getMembersFieldBuilder().getBuilder(index); } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.MemberOrBuilder getMembersOrBuilder( int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessageOrBuilder(index); } } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersOrBuilderList() { if (membersBuilder_ != null) { return membersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(members_); } } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member.Builder addMembersBuilder() { return getMembersFieldBuilder().addBuilder( etcdserverpb.Rpc.Member.getDefaultInstance()); } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public etcdserverpb.Rpc.Member.Builder addMembersBuilder( int index) { return getMembersFieldBuilder().addBuilder( index, etcdserverpb.Rpc.Member.getDefaultInstance()); } /** *
       * members is a list of all members associated with the cluster.
       * 
* * repeated .etcdserverpb.Member members = 2; */ public java.util.List getMembersBuilderList() { return getMembersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder> getMembersFieldBuilder() { if (membersBuilder_ == null) { membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.Member, etcdserverpb.Rpc.Member.Builder, etcdserverpb.Rpc.MemberOrBuilder>( members_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); members_ = null; } return membersBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.MemberListResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.MemberListResponse) private static final etcdserverpb.Rpc.MemberListResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.MemberListResponse(); } public static etcdserverpb.Rpc.MemberListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MemberListResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MemberListResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.MemberListResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefragmentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.DefragmentRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code etcdserverpb.DefragmentRequest} */ public static final class DefragmentRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.DefragmentRequest) DefragmentRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DefragmentRequest.newBuilder() to construct. private DefragmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DefragmentRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DefragmentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DefragmentRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DefragmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.DefragmentRequest.class, etcdserverpb.Rpc.DefragmentRequest.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 etcdserverpb.Rpc.DefragmentRequest)) { return super.equals(obj); } etcdserverpb.Rpc.DefragmentRequest other = (etcdserverpb.Rpc.DefragmentRequest) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.DefragmentRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DefragmentRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DefragmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DefragmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DefragmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DefragmentRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DefragmentRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DefragmentRequest 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 etcdserverpb.Rpc.DefragmentRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DefragmentRequest 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 etcdserverpb.Rpc.DefragmentRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DefragmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.DefragmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.DefragmentRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.DefragmentRequest) etcdserverpb.Rpc.DefragmentRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DefragmentRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DefragmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.DefragmentRequest.class, etcdserverpb.Rpc.DefragmentRequest.Builder.class); } // Construct using etcdserverpb.Rpc.DefragmentRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DefragmentRequest_descriptor; } public etcdserverpb.Rpc.DefragmentRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.DefragmentRequest.getDefaultInstance(); } public etcdserverpb.Rpc.DefragmentRequest build() { etcdserverpb.Rpc.DefragmentRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.DefragmentRequest buildPartial() { etcdserverpb.Rpc.DefragmentRequest result = new etcdserverpb.Rpc.DefragmentRequest(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.DefragmentRequest) { return mergeFrom((etcdserverpb.Rpc.DefragmentRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.DefragmentRequest other) { if (other == etcdserverpb.Rpc.DefragmentRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.DefragmentRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.DefragmentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.DefragmentRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.DefragmentRequest) private static final etcdserverpb.Rpc.DefragmentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.DefragmentRequest(); } public static etcdserverpb.Rpc.DefragmentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DefragmentRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DefragmentRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.DefragmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefragmentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.DefragmentResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.DefragmentResponse} */ public static final class DefragmentResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.DefragmentResponse) DefragmentResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DefragmentResponse.newBuilder() to construct. private DefragmentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DefragmentResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DefragmentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DefragmentResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DefragmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.DefragmentResponse.class, etcdserverpb.Rpc.DefragmentResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.DefragmentResponse)) { return super.equals(obj); } etcdserverpb.Rpc.DefragmentResponse other = (etcdserverpb.Rpc.DefragmentResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.DefragmentResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DefragmentResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DefragmentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DefragmentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DefragmentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.DefragmentResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.DefragmentResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DefragmentResponse 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 etcdserverpb.Rpc.DefragmentResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DefragmentResponse 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 etcdserverpb.Rpc.DefragmentResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.DefragmentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.DefragmentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.DefragmentResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.DefragmentResponse) etcdserverpb.Rpc.DefragmentResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DefragmentResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DefragmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.DefragmentResponse.class, etcdserverpb.Rpc.DefragmentResponse.Builder.class); } // Construct using etcdserverpb.Rpc.DefragmentResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_DefragmentResponse_descriptor; } public etcdserverpb.Rpc.DefragmentResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.DefragmentResponse.getDefaultInstance(); } public etcdserverpb.Rpc.DefragmentResponse build() { etcdserverpb.Rpc.DefragmentResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.DefragmentResponse buildPartial() { etcdserverpb.Rpc.DefragmentResponse result = new etcdserverpb.Rpc.DefragmentResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.DefragmentResponse) { return mergeFrom((etcdserverpb.Rpc.DefragmentResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.DefragmentResponse other) { if (other == etcdserverpb.Rpc.DefragmentResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.DefragmentResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.DefragmentResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.DefragmentResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.DefragmentResponse) private static final etcdserverpb.Rpc.DefragmentResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.DefragmentResponse(); } public static etcdserverpb.Rpc.DefragmentResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DefragmentResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DefragmentResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.DefragmentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlarmRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AlarmRequest) com.google.protobuf.MessageOrBuilder { /** *
     * action is the kind of alarm request to issue. The action
     * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
     * raised alarm.
     * 
* * .etcdserverpb.AlarmRequest.AlarmAction action = 1; */ int getActionValue(); /** *
     * action is the kind of alarm request to issue. The action
     * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
     * raised alarm.
     * 
* * .etcdserverpb.AlarmRequest.AlarmAction action = 1; */ etcdserverpb.Rpc.AlarmRequest.AlarmAction getAction(); /** *
     * memberID is the ID of the member associated with the alarm. If memberID is 0, the
     * alarm request covers all members.
     * 
* * uint64 memberID = 2; */ long getMemberID(); /** *
     * alarm is the type of alarm to consider for this request.
     * 
* * .etcdserverpb.AlarmType alarm = 3; */ int getAlarmValue(); /** *
     * alarm is the type of alarm to consider for this request.
     * 
* * .etcdserverpb.AlarmType alarm = 3; */ etcdserverpb.Rpc.AlarmType getAlarm(); } /** * Protobuf type {@code etcdserverpb.AlarmRequest} */ public static final class AlarmRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AlarmRequest) AlarmRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AlarmRequest.newBuilder() to construct. private AlarmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AlarmRequest() { action_ = 0; memberID_ = 0L; alarm_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AlarmRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); action_ = rawValue; break; } case 16: { memberID_ = input.readUInt64(); break; } case 24: { int rawValue = input.readEnum(); alarm_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AlarmRequest.class, etcdserverpb.Rpc.AlarmRequest.Builder.class); } /** * Protobuf enum {@code etcdserverpb.AlarmRequest.AlarmAction} */ public enum AlarmAction implements com.google.protobuf.ProtocolMessageEnum { /** * GET = 0; */ GET(0), /** * ACTIVATE = 1; */ ACTIVATE(1), /** * DEACTIVATE = 2; */ DEACTIVATE(2), UNRECOGNIZED(-1), ; /** * GET = 0; */ public static final int GET_VALUE = 0; /** * ACTIVATE = 1; */ public static final int ACTIVATE_VALUE = 1; /** * DEACTIVATE = 2; */ public static final int DEACTIVATE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AlarmAction valueOf(int value) { return forNumber(value); } public static AlarmAction forNumber(int value) { switch (value) { case 0: return GET; case 1: return ACTIVATE; case 2: return DEACTIVATE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AlarmAction> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AlarmAction findValueByNumber(int number) { return AlarmAction.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return etcdserverpb.Rpc.AlarmRequest.getDescriptor().getEnumTypes().get(0); } private static final AlarmAction[] VALUES = values(); public static AlarmAction valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private AlarmAction(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:etcdserverpb.AlarmRequest.AlarmAction) } public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** *
     * action is the kind of alarm request to issue. The action
     * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
     * raised alarm.
     * 
* * .etcdserverpb.AlarmRequest.AlarmAction action = 1; */ public int getActionValue() { return action_; } /** *
     * action is the kind of alarm request to issue. The action
     * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
     * raised alarm.
     * 
* * .etcdserverpb.AlarmRequest.AlarmAction action = 1; */ public etcdserverpb.Rpc.AlarmRequest.AlarmAction getAction() { etcdserverpb.Rpc.AlarmRequest.AlarmAction result = etcdserverpb.Rpc.AlarmRequest.AlarmAction.valueOf(action_); return result == null ? etcdserverpb.Rpc.AlarmRequest.AlarmAction.UNRECOGNIZED : result; } public static final int MEMBERID_FIELD_NUMBER = 2; private long memberID_; /** *
     * memberID is the ID of the member associated with the alarm. If memberID is 0, the
     * alarm request covers all members.
     * 
* * uint64 memberID = 2; */ public long getMemberID() { return memberID_; } public static final int ALARM_FIELD_NUMBER = 3; private int alarm_; /** *
     * alarm is the type of alarm to consider for this request.
     * 
* * .etcdserverpb.AlarmType alarm = 3; */ public int getAlarmValue() { return alarm_; } /** *
     * alarm is the type of alarm to consider for this request.
     * 
* * .etcdserverpb.AlarmType alarm = 3; */ public etcdserverpb.Rpc.AlarmType getAlarm() { etcdserverpb.Rpc.AlarmType result = etcdserverpb.Rpc.AlarmType.valueOf(alarm_); return result == null ? etcdserverpb.Rpc.AlarmType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (action_ != etcdserverpb.Rpc.AlarmRequest.AlarmAction.GET.getNumber()) { output.writeEnum(1, action_); } if (memberID_ != 0L) { output.writeUInt64(2, memberID_); } if (alarm_ != etcdserverpb.Rpc.AlarmType.NONE.getNumber()) { output.writeEnum(3, alarm_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (action_ != etcdserverpb.Rpc.AlarmRequest.AlarmAction.GET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, action_); } if (memberID_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, memberID_); } if (alarm_ != etcdserverpb.Rpc.AlarmType.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, alarm_); } 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 etcdserverpb.Rpc.AlarmRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AlarmRequest other = (etcdserverpb.Rpc.AlarmRequest) obj; boolean result = true; result = result && action_ == other.action_; result = result && (getMemberID() == other.getMemberID()); result = result && alarm_ == other.alarm_; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + action_; hash = (37 * hash) + MEMBERID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemberID()); hash = (37 * hash) + ALARM_FIELD_NUMBER; hash = (53 * hash) + alarm_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AlarmRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AlarmRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AlarmRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AlarmRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AlarmRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AlarmRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AlarmRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AlarmRequest 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 etcdserverpb.Rpc.AlarmRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AlarmRequest 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 etcdserverpb.Rpc.AlarmRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AlarmRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AlarmRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AlarmRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AlarmRequest) etcdserverpb.Rpc.AlarmRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AlarmRequest.class, etcdserverpb.Rpc.AlarmRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AlarmRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); action_ = 0; memberID_ = 0L; alarm_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmRequest_descriptor; } public etcdserverpb.Rpc.AlarmRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AlarmRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AlarmRequest build() { etcdserverpb.Rpc.AlarmRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AlarmRequest buildPartial() { etcdserverpb.Rpc.AlarmRequest result = new etcdserverpb.Rpc.AlarmRequest(this); result.action_ = action_; result.memberID_ = memberID_; result.alarm_ = alarm_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AlarmRequest) { return mergeFrom((etcdserverpb.Rpc.AlarmRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AlarmRequest other) { if (other == etcdserverpb.Rpc.AlarmRequest.getDefaultInstance()) return this; if (other.action_ != 0) { setActionValue(other.getActionValue()); } if (other.getMemberID() != 0L) { setMemberID(other.getMemberID()); } if (other.alarm_ != 0) { setAlarmValue(other.getAlarmValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AlarmRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AlarmRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int action_ = 0; /** *
       * action is the kind of alarm request to issue. The action
       * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
       * raised alarm.
       * 
* * .etcdserverpb.AlarmRequest.AlarmAction action = 1; */ public int getActionValue() { return action_; } /** *
       * action is the kind of alarm request to issue. The action
       * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
       * raised alarm.
       * 
* * .etcdserverpb.AlarmRequest.AlarmAction action = 1; */ public Builder setActionValue(int value) { action_ = value; onChanged(); return this; } /** *
       * action is the kind of alarm request to issue. The action
       * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
       * raised alarm.
       * 
* * .etcdserverpb.AlarmRequest.AlarmAction action = 1; */ public etcdserverpb.Rpc.AlarmRequest.AlarmAction getAction() { etcdserverpb.Rpc.AlarmRequest.AlarmAction result = etcdserverpb.Rpc.AlarmRequest.AlarmAction.valueOf(action_); return result == null ? etcdserverpb.Rpc.AlarmRequest.AlarmAction.UNRECOGNIZED : result; } /** *
       * action is the kind of alarm request to issue. The action
       * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
       * raised alarm.
       * 
* * .etcdserverpb.AlarmRequest.AlarmAction action = 1; */ public Builder setAction(etcdserverpb.Rpc.AlarmRequest.AlarmAction value) { if (value == null) { throw new NullPointerException(); } action_ = value.getNumber(); onChanged(); return this; } /** *
       * action is the kind of alarm request to issue. The action
       * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
       * raised alarm.
       * 
* * .etcdserverpb.AlarmRequest.AlarmAction action = 1; */ public Builder clearAction() { action_ = 0; onChanged(); return this; } private long memberID_ ; /** *
       * memberID is the ID of the member associated with the alarm. If memberID is 0, the
       * alarm request covers all members.
       * 
* * uint64 memberID = 2; */ public long getMemberID() { return memberID_; } /** *
       * memberID is the ID of the member associated with the alarm. If memberID is 0, the
       * alarm request covers all members.
       * 
* * uint64 memberID = 2; */ public Builder setMemberID(long value) { memberID_ = value; onChanged(); return this; } /** *
       * memberID is the ID of the member associated with the alarm. If memberID is 0, the
       * alarm request covers all members.
       * 
* * uint64 memberID = 2; */ public Builder clearMemberID() { memberID_ = 0L; onChanged(); return this; } private int alarm_ = 0; /** *
       * alarm is the type of alarm to consider for this request.
       * 
* * .etcdserverpb.AlarmType alarm = 3; */ public int getAlarmValue() { return alarm_; } /** *
       * alarm is the type of alarm to consider for this request.
       * 
* * .etcdserverpb.AlarmType alarm = 3; */ public Builder setAlarmValue(int value) { alarm_ = value; onChanged(); return this; } /** *
       * alarm is the type of alarm to consider for this request.
       * 
* * .etcdserverpb.AlarmType alarm = 3; */ public etcdserverpb.Rpc.AlarmType getAlarm() { etcdserverpb.Rpc.AlarmType result = etcdserverpb.Rpc.AlarmType.valueOf(alarm_); return result == null ? etcdserverpb.Rpc.AlarmType.UNRECOGNIZED : result; } /** *
       * alarm is the type of alarm to consider for this request.
       * 
* * .etcdserverpb.AlarmType alarm = 3; */ public Builder setAlarm(etcdserverpb.Rpc.AlarmType value) { if (value == null) { throw new NullPointerException(); } alarm_ = value.getNumber(); onChanged(); return this; } /** *
       * alarm is the type of alarm to consider for this request.
       * 
* * .etcdserverpb.AlarmType alarm = 3; */ public Builder clearAlarm() { alarm_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AlarmRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AlarmRequest) private static final etcdserverpb.Rpc.AlarmRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AlarmRequest(); } public static etcdserverpb.Rpc.AlarmRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AlarmRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AlarmRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AlarmRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlarmMemberOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AlarmMember) com.google.protobuf.MessageOrBuilder { /** *
     * memberID is the ID of the member associated with the raised alarm.
     * 
* * uint64 memberID = 1; */ long getMemberID(); /** *
     * alarm is the type of alarm which has been raised.
     * 
* * .etcdserverpb.AlarmType alarm = 2; */ int getAlarmValue(); /** *
     * alarm is the type of alarm which has been raised.
     * 
* * .etcdserverpb.AlarmType alarm = 2; */ etcdserverpb.Rpc.AlarmType getAlarm(); } /** * Protobuf type {@code etcdserverpb.AlarmMember} */ public static final class AlarmMember extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AlarmMember) AlarmMemberOrBuilder { private static final long serialVersionUID = 0L; // Use AlarmMember.newBuilder() to construct. private AlarmMember(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AlarmMember() { memberID_ = 0L; alarm_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AlarmMember( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { memberID_ = input.readUInt64(); break; } case 16: { int rawValue = input.readEnum(); alarm_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmMember_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmMember_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AlarmMember.class, etcdserverpb.Rpc.AlarmMember.Builder.class); } public static final int MEMBERID_FIELD_NUMBER = 1; private long memberID_; /** *
     * memberID is the ID of the member associated with the raised alarm.
     * 
* * uint64 memberID = 1; */ public long getMemberID() { return memberID_; } public static final int ALARM_FIELD_NUMBER = 2; private int alarm_; /** *
     * alarm is the type of alarm which has been raised.
     * 
* * .etcdserverpb.AlarmType alarm = 2; */ public int getAlarmValue() { return alarm_; } /** *
     * alarm is the type of alarm which has been raised.
     * 
* * .etcdserverpb.AlarmType alarm = 2; */ public etcdserverpb.Rpc.AlarmType getAlarm() { etcdserverpb.Rpc.AlarmType result = etcdserverpb.Rpc.AlarmType.valueOf(alarm_); return result == null ? etcdserverpb.Rpc.AlarmType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (memberID_ != 0L) { output.writeUInt64(1, memberID_); } if (alarm_ != etcdserverpb.Rpc.AlarmType.NONE.getNumber()) { output.writeEnum(2, alarm_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (memberID_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, memberID_); } if (alarm_ != etcdserverpb.Rpc.AlarmType.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, alarm_); } 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 etcdserverpb.Rpc.AlarmMember)) { return super.equals(obj); } etcdserverpb.Rpc.AlarmMember other = (etcdserverpb.Rpc.AlarmMember) obj; boolean result = true; result = result && (getMemberID() == other.getMemberID()); result = result && alarm_ == other.alarm_; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MEMBERID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemberID()); hash = (37 * hash) + ALARM_FIELD_NUMBER; hash = (53 * hash) + alarm_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AlarmMember parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AlarmMember parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AlarmMember parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AlarmMember parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AlarmMember parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AlarmMember parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AlarmMember parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AlarmMember 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 etcdserverpb.Rpc.AlarmMember parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AlarmMember 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 etcdserverpb.Rpc.AlarmMember parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AlarmMember parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AlarmMember prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AlarmMember} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AlarmMember) etcdserverpb.Rpc.AlarmMemberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmMember_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmMember_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AlarmMember.class, etcdserverpb.Rpc.AlarmMember.Builder.class); } // Construct using etcdserverpb.Rpc.AlarmMember.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); memberID_ = 0L; alarm_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmMember_descriptor; } public etcdserverpb.Rpc.AlarmMember getDefaultInstanceForType() { return etcdserverpb.Rpc.AlarmMember.getDefaultInstance(); } public etcdserverpb.Rpc.AlarmMember build() { etcdserverpb.Rpc.AlarmMember result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AlarmMember buildPartial() { etcdserverpb.Rpc.AlarmMember result = new etcdserverpb.Rpc.AlarmMember(this); result.memberID_ = memberID_; result.alarm_ = alarm_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AlarmMember) { return mergeFrom((etcdserverpb.Rpc.AlarmMember)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AlarmMember other) { if (other == etcdserverpb.Rpc.AlarmMember.getDefaultInstance()) return this; if (other.getMemberID() != 0L) { setMemberID(other.getMemberID()); } if (other.alarm_ != 0) { setAlarmValue(other.getAlarmValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AlarmMember parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AlarmMember) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long memberID_ ; /** *
       * memberID is the ID of the member associated with the raised alarm.
       * 
* * uint64 memberID = 1; */ public long getMemberID() { return memberID_; } /** *
       * memberID is the ID of the member associated with the raised alarm.
       * 
* * uint64 memberID = 1; */ public Builder setMemberID(long value) { memberID_ = value; onChanged(); return this; } /** *
       * memberID is the ID of the member associated with the raised alarm.
       * 
* * uint64 memberID = 1; */ public Builder clearMemberID() { memberID_ = 0L; onChanged(); return this; } private int alarm_ = 0; /** *
       * alarm is the type of alarm which has been raised.
       * 
* * .etcdserverpb.AlarmType alarm = 2; */ public int getAlarmValue() { return alarm_; } /** *
       * alarm is the type of alarm which has been raised.
       * 
* * .etcdserverpb.AlarmType alarm = 2; */ public Builder setAlarmValue(int value) { alarm_ = value; onChanged(); return this; } /** *
       * alarm is the type of alarm which has been raised.
       * 
* * .etcdserverpb.AlarmType alarm = 2; */ public etcdserverpb.Rpc.AlarmType getAlarm() { etcdserverpb.Rpc.AlarmType result = etcdserverpb.Rpc.AlarmType.valueOf(alarm_); return result == null ? etcdserverpb.Rpc.AlarmType.UNRECOGNIZED : result; } /** *
       * alarm is the type of alarm which has been raised.
       * 
* * .etcdserverpb.AlarmType alarm = 2; */ public Builder setAlarm(etcdserverpb.Rpc.AlarmType value) { if (value == null) { throw new NullPointerException(); } alarm_ = value.getNumber(); onChanged(); return this; } /** *
       * alarm is the type of alarm which has been raised.
       * 
* * .etcdserverpb.AlarmType alarm = 2; */ public Builder clearAlarm() { alarm_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AlarmMember) } // @@protoc_insertion_point(class_scope:etcdserverpb.AlarmMember) private static final etcdserverpb.Rpc.AlarmMember DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AlarmMember(); } public static etcdserverpb.Rpc.AlarmMember getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AlarmMember parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AlarmMember(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AlarmMember getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlarmResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AlarmResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * alarms is a list of alarms associated with the alarm request.
     * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ java.util.List getAlarmsList(); /** *
     * alarms is a list of alarms associated with the alarm request.
     * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ etcdserverpb.Rpc.AlarmMember getAlarms(int index); /** *
     * alarms is a list of alarms associated with the alarm request.
     * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ int getAlarmsCount(); /** *
     * alarms is a list of alarms associated with the alarm request.
     * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ java.util.List getAlarmsOrBuilderList(); /** *
     * alarms is a list of alarms associated with the alarm request.
     * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ etcdserverpb.Rpc.AlarmMemberOrBuilder getAlarmsOrBuilder( int index); } /** * Protobuf type {@code etcdserverpb.AlarmResponse} */ public static final class AlarmResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AlarmResponse) AlarmResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AlarmResponse.newBuilder() to construct. private AlarmResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AlarmResponse() { alarms_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AlarmResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { alarms_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } alarms_.add( input.readMessage(etcdserverpb.Rpc.AlarmMember.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { alarms_ = java.util.Collections.unmodifiableList(alarms_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AlarmResponse.class, etcdserverpb.Rpc.AlarmResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int ALARMS_FIELD_NUMBER = 2; private java.util.List alarms_; /** *
     * alarms is a list of alarms associated with the alarm request.
     * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public java.util.List getAlarmsList() { return alarms_; } /** *
     * alarms is a list of alarms associated with the alarm request.
     * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public java.util.List getAlarmsOrBuilderList() { return alarms_; } /** *
     * alarms is a list of alarms associated with the alarm request.
     * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public int getAlarmsCount() { return alarms_.size(); } /** *
     * alarms is a list of alarms associated with the alarm request.
     * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public etcdserverpb.Rpc.AlarmMember getAlarms(int index) { return alarms_.get(index); } /** *
     * alarms is a list of alarms associated with the alarm request.
     * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public etcdserverpb.Rpc.AlarmMemberOrBuilder getAlarmsOrBuilder( int index) { return alarms_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < alarms_.size(); i++) { output.writeMessage(2, alarms_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < alarms_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, alarms_.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 etcdserverpb.Rpc.AlarmResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AlarmResponse other = (etcdserverpb.Rpc.AlarmResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getAlarmsList() .equals(other.getAlarmsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getAlarmsCount() > 0) { hash = (37 * hash) + ALARMS_FIELD_NUMBER; hash = (53 * hash) + getAlarmsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AlarmResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AlarmResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AlarmResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AlarmResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AlarmResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AlarmResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AlarmResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AlarmResponse 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 etcdserverpb.Rpc.AlarmResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AlarmResponse 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 etcdserverpb.Rpc.AlarmResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AlarmResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AlarmResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AlarmResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AlarmResponse) etcdserverpb.Rpc.AlarmResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AlarmResponse.class, etcdserverpb.Rpc.AlarmResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AlarmResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAlarmsFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (alarmsBuilder_ == null) { alarms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { alarmsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AlarmResponse_descriptor; } public etcdserverpb.Rpc.AlarmResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AlarmResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AlarmResponse build() { etcdserverpb.Rpc.AlarmResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AlarmResponse buildPartial() { etcdserverpb.Rpc.AlarmResponse result = new etcdserverpb.Rpc.AlarmResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (alarmsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { alarms_ = java.util.Collections.unmodifiableList(alarms_); bitField0_ = (bitField0_ & ~0x00000002); } result.alarms_ = alarms_; } else { result.alarms_ = alarmsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AlarmResponse) { return mergeFrom((etcdserverpb.Rpc.AlarmResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AlarmResponse other) { if (other == etcdserverpb.Rpc.AlarmResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (alarmsBuilder_ == null) { if (!other.alarms_.isEmpty()) { if (alarms_.isEmpty()) { alarms_ = other.alarms_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAlarmsIsMutable(); alarms_.addAll(other.alarms_); } onChanged(); } } else { if (!other.alarms_.isEmpty()) { if (alarmsBuilder_.isEmpty()) { alarmsBuilder_.dispose(); alarmsBuilder_ = null; alarms_ = other.alarms_; bitField0_ = (bitField0_ & ~0x00000002); alarmsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAlarmsFieldBuilder() : null; } else { alarmsBuilder_.addAllMessages(other.alarms_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AlarmResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AlarmResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List alarms_ = java.util.Collections.emptyList(); private void ensureAlarmsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { alarms_ = new java.util.ArrayList(alarms_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.AlarmMember, etcdserverpb.Rpc.AlarmMember.Builder, etcdserverpb.Rpc.AlarmMemberOrBuilder> alarmsBuilder_; /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public java.util.List getAlarmsList() { if (alarmsBuilder_ == null) { return java.util.Collections.unmodifiableList(alarms_); } else { return alarmsBuilder_.getMessageList(); } } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public int getAlarmsCount() { if (alarmsBuilder_ == null) { return alarms_.size(); } else { return alarmsBuilder_.getCount(); } } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public etcdserverpb.Rpc.AlarmMember getAlarms(int index) { if (alarmsBuilder_ == null) { return alarms_.get(index); } else { return alarmsBuilder_.getMessage(index); } } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public Builder setAlarms( int index, etcdserverpb.Rpc.AlarmMember value) { if (alarmsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlarmsIsMutable(); alarms_.set(index, value); onChanged(); } else { alarmsBuilder_.setMessage(index, value); } return this; } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public Builder setAlarms( int index, etcdserverpb.Rpc.AlarmMember.Builder builderForValue) { if (alarmsBuilder_ == null) { ensureAlarmsIsMutable(); alarms_.set(index, builderForValue.build()); onChanged(); } else { alarmsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public Builder addAlarms(etcdserverpb.Rpc.AlarmMember value) { if (alarmsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlarmsIsMutable(); alarms_.add(value); onChanged(); } else { alarmsBuilder_.addMessage(value); } return this; } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public Builder addAlarms( int index, etcdserverpb.Rpc.AlarmMember value) { if (alarmsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlarmsIsMutable(); alarms_.add(index, value); onChanged(); } else { alarmsBuilder_.addMessage(index, value); } return this; } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public Builder addAlarms( etcdserverpb.Rpc.AlarmMember.Builder builderForValue) { if (alarmsBuilder_ == null) { ensureAlarmsIsMutable(); alarms_.add(builderForValue.build()); onChanged(); } else { alarmsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public Builder addAlarms( int index, etcdserverpb.Rpc.AlarmMember.Builder builderForValue) { if (alarmsBuilder_ == null) { ensureAlarmsIsMutable(); alarms_.add(index, builderForValue.build()); onChanged(); } else { alarmsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public Builder addAllAlarms( java.lang.Iterable values) { if (alarmsBuilder_ == null) { ensureAlarmsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, alarms_); onChanged(); } else { alarmsBuilder_.addAllMessages(values); } return this; } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public Builder clearAlarms() { if (alarmsBuilder_ == null) { alarms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { alarmsBuilder_.clear(); } return this; } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public Builder removeAlarms(int index) { if (alarmsBuilder_ == null) { ensureAlarmsIsMutable(); alarms_.remove(index); onChanged(); } else { alarmsBuilder_.remove(index); } return this; } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public etcdserverpb.Rpc.AlarmMember.Builder getAlarmsBuilder( int index) { return getAlarmsFieldBuilder().getBuilder(index); } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public etcdserverpb.Rpc.AlarmMemberOrBuilder getAlarmsOrBuilder( int index) { if (alarmsBuilder_ == null) { return alarms_.get(index); } else { return alarmsBuilder_.getMessageOrBuilder(index); } } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public java.util.List getAlarmsOrBuilderList() { if (alarmsBuilder_ != null) { return alarmsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(alarms_); } } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public etcdserverpb.Rpc.AlarmMember.Builder addAlarmsBuilder() { return getAlarmsFieldBuilder().addBuilder( etcdserverpb.Rpc.AlarmMember.getDefaultInstance()); } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public etcdserverpb.Rpc.AlarmMember.Builder addAlarmsBuilder( int index) { return getAlarmsFieldBuilder().addBuilder( index, etcdserverpb.Rpc.AlarmMember.getDefaultInstance()); } /** *
       * alarms is a list of alarms associated with the alarm request.
       * 
* * repeated .etcdserverpb.AlarmMember alarms = 2; */ public java.util.List getAlarmsBuilderList() { return getAlarmsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.AlarmMember, etcdserverpb.Rpc.AlarmMember.Builder, etcdserverpb.Rpc.AlarmMemberOrBuilder> getAlarmsFieldBuilder() { if (alarmsBuilder_ == null) { alarmsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< etcdserverpb.Rpc.AlarmMember, etcdserverpb.Rpc.AlarmMember.Builder, etcdserverpb.Rpc.AlarmMemberOrBuilder>( alarms_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); alarms_ = null; } return alarmsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AlarmResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AlarmResponse) private static final etcdserverpb.Rpc.AlarmResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AlarmResponse(); } public static etcdserverpb.Rpc.AlarmResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AlarmResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AlarmResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AlarmResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StatusRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.StatusRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code etcdserverpb.StatusRequest} */ public static final class StatusRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.StatusRequest) StatusRequestOrBuilder { private static final long serialVersionUID = 0L; // Use StatusRequest.newBuilder() to construct. private StatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StatusRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StatusRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_StatusRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_StatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.StatusRequest.class, etcdserverpb.Rpc.StatusRequest.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 etcdserverpb.Rpc.StatusRequest)) { return super.equals(obj); } etcdserverpb.Rpc.StatusRequest other = (etcdserverpb.Rpc.StatusRequest) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.StatusRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.StatusRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.StatusRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.StatusRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.StatusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.StatusRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.StatusRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.StatusRequest 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 etcdserverpb.Rpc.StatusRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.StatusRequest 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 etcdserverpb.Rpc.StatusRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.StatusRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.StatusRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.StatusRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.StatusRequest) etcdserverpb.Rpc.StatusRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_StatusRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_StatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.StatusRequest.class, etcdserverpb.Rpc.StatusRequest.Builder.class); } // Construct using etcdserverpb.Rpc.StatusRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_StatusRequest_descriptor; } public etcdserverpb.Rpc.StatusRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.StatusRequest.getDefaultInstance(); } public etcdserverpb.Rpc.StatusRequest build() { etcdserverpb.Rpc.StatusRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.StatusRequest buildPartial() { etcdserverpb.Rpc.StatusRequest result = new etcdserverpb.Rpc.StatusRequest(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.StatusRequest) { return mergeFrom((etcdserverpb.Rpc.StatusRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.StatusRequest other) { if (other == etcdserverpb.Rpc.StatusRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.StatusRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.StatusRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.StatusRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.StatusRequest) private static final etcdserverpb.Rpc.StatusRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.StatusRequest(); } public static etcdserverpb.Rpc.StatusRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StatusRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StatusRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.StatusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StatusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.StatusResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * version is the cluster protocol version used by the responding member.
     * 
* * string version = 2; */ java.lang.String getVersion(); /** *
     * version is the cluster protocol version used by the responding member.
     * 
* * string version = 2; */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * dbSize is the size of the backend database, in bytes, of the responding member.
     * 
* * int64 dbSize = 3; */ long getDbSize(); /** *
     * leader is the member ID which the responding member believes is the current leader.
     * 
* * uint64 leader = 4; */ long getLeader(); /** *
     * raftIndex is the current raft index of the responding member.
     * 
* * uint64 raftIndex = 5; */ long getRaftIndex(); /** *
     * raftTerm is the current raft term of the responding member.
     * 
* * uint64 raftTerm = 6; */ long getRaftTerm(); } /** * Protobuf type {@code etcdserverpb.StatusResponse} */ public static final class StatusResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.StatusResponse) StatusResponseOrBuilder { private static final long serialVersionUID = 0L; // Use StatusResponse.newBuilder() to construct. private StatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StatusResponse() { version_ = ""; dbSize_ = 0L; leader_ = 0L; raftIndex_ = 0L; raftTerm_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StatusResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); version_ = s; break; } case 24: { dbSize_ = input.readInt64(); break; } case 32: { leader_ = input.readUInt64(); break; } case 40: { raftIndex_ = input.readUInt64(); break; } case 48: { raftTerm_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_StatusResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_StatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.StatusResponse.class, etcdserverpb.Rpc.StatusResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** *
     * version is the cluster protocol version used by the responding member.
     * 
* * string version = 2; */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** *
     * version is the cluster protocol version used by the responding member.
     * 
* * string version = 2; */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DBSIZE_FIELD_NUMBER = 3; private long dbSize_; /** *
     * dbSize is the size of the backend database, in bytes, of the responding member.
     * 
* * int64 dbSize = 3; */ public long getDbSize() { return dbSize_; } public static final int LEADER_FIELD_NUMBER = 4; private long leader_; /** *
     * leader is the member ID which the responding member believes is the current leader.
     * 
* * uint64 leader = 4; */ public long getLeader() { return leader_; } public static final int RAFTINDEX_FIELD_NUMBER = 5; private long raftIndex_; /** *
     * raftIndex is the current raft index of the responding member.
     * 
* * uint64 raftIndex = 5; */ public long getRaftIndex() { return raftIndex_; } public static final int RAFTTERM_FIELD_NUMBER = 6; private long raftTerm_; /** *
     * raftTerm is the current raft term of the responding member.
     * 
* * uint64 raftTerm = 6; */ public long getRaftTerm() { return raftTerm_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (!getVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } if (dbSize_ != 0L) { output.writeInt64(3, dbSize_); } if (leader_ != 0L) { output.writeUInt64(4, leader_); } if (raftIndex_ != 0L) { output.writeUInt64(5, raftIndex_); } if (raftTerm_ != 0L) { output.writeUInt64(6, raftTerm_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (!getVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } if (dbSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, dbSize_); } if (leader_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, leader_); } if (raftIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, raftIndex_); } if (raftTerm_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, raftTerm_); } 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 etcdserverpb.Rpc.StatusResponse)) { return super.equals(obj); } etcdserverpb.Rpc.StatusResponse other = (etcdserverpb.Rpc.StatusResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getVersion() .equals(other.getVersion()); result = result && (getDbSize() == other.getDbSize()); result = result && (getLeader() == other.getLeader()); result = result && (getRaftIndex() == other.getRaftIndex()); result = result && (getRaftTerm() == other.getRaftTerm()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + DBSIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDbSize()); hash = (37 * hash) + LEADER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLeader()); hash = (37 * hash) + RAFTINDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRaftIndex()); hash = (37 * hash) + RAFTTERM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRaftTerm()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.StatusResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.StatusResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.StatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.StatusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.StatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.StatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.StatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.StatusResponse 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 etcdserverpb.Rpc.StatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.StatusResponse 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 etcdserverpb.Rpc.StatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.StatusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.StatusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.StatusResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.StatusResponse) etcdserverpb.Rpc.StatusResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_StatusResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_StatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.StatusResponse.class, etcdserverpb.Rpc.StatusResponse.Builder.class); } // Construct using etcdserverpb.Rpc.StatusResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } version_ = ""; dbSize_ = 0L; leader_ = 0L; raftIndex_ = 0L; raftTerm_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_StatusResponse_descriptor; } public etcdserverpb.Rpc.StatusResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.StatusResponse.getDefaultInstance(); } public etcdserverpb.Rpc.StatusResponse build() { etcdserverpb.Rpc.StatusResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.StatusResponse buildPartial() { etcdserverpb.Rpc.StatusResponse result = new etcdserverpb.Rpc.StatusResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.version_ = version_; result.dbSize_ = dbSize_; result.leader_ = leader_; result.raftIndex_ = raftIndex_; result.raftTerm_ = raftTerm_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.StatusResponse) { return mergeFrom((etcdserverpb.Rpc.StatusResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.StatusResponse other) { if (other == etcdserverpb.Rpc.StatusResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (other.getDbSize() != 0L) { setDbSize(other.getDbSize()); } if (other.getLeader() != 0L) { setLeader(other.getLeader()); } if (other.getRaftIndex() != 0L) { setRaftIndex(other.getRaftIndex()); } if (other.getRaftTerm() != 0L) { setRaftTerm(other.getRaftTerm()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.StatusResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.StatusResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.lang.Object version_ = ""; /** *
       * version is the cluster protocol version used by the responding member.
       * 
* * string version = 2; */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * version is the cluster protocol version used by the responding member.
       * 
* * string version = 2; */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * version is the cluster protocol version used by the responding member.
       * 
* * string version = 2; */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** *
       * version is the cluster protocol version used by the responding member.
       * 
* * string version = 2; */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * version is the cluster protocol version used by the responding member.
       * 
* * string version = 2; */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } private long dbSize_ ; /** *
       * dbSize is the size of the backend database, in bytes, of the responding member.
       * 
* * int64 dbSize = 3; */ public long getDbSize() { return dbSize_; } /** *
       * dbSize is the size of the backend database, in bytes, of the responding member.
       * 
* * int64 dbSize = 3; */ public Builder setDbSize(long value) { dbSize_ = value; onChanged(); return this; } /** *
       * dbSize is the size of the backend database, in bytes, of the responding member.
       * 
* * int64 dbSize = 3; */ public Builder clearDbSize() { dbSize_ = 0L; onChanged(); return this; } private long leader_ ; /** *
       * leader is the member ID which the responding member believes is the current leader.
       * 
* * uint64 leader = 4; */ public long getLeader() { return leader_; } /** *
       * leader is the member ID which the responding member believes is the current leader.
       * 
* * uint64 leader = 4; */ public Builder setLeader(long value) { leader_ = value; onChanged(); return this; } /** *
       * leader is the member ID which the responding member believes is the current leader.
       * 
* * uint64 leader = 4; */ public Builder clearLeader() { leader_ = 0L; onChanged(); return this; } private long raftIndex_ ; /** *
       * raftIndex is the current raft index of the responding member.
       * 
* * uint64 raftIndex = 5; */ public long getRaftIndex() { return raftIndex_; } /** *
       * raftIndex is the current raft index of the responding member.
       * 
* * uint64 raftIndex = 5; */ public Builder setRaftIndex(long value) { raftIndex_ = value; onChanged(); return this; } /** *
       * raftIndex is the current raft index of the responding member.
       * 
* * uint64 raftIndex = 5; */ public Builder clearRaftIndex() { raftIndex_ = 0L; onChanged(); return this; } private long raftTerm_ ; /** *
       * raftTerm is the current raft term of the responding member.
       * 
* * uint64 raftTerm = 6; */ public long getRaftTerm() { return raftTerm_; } /** *
       * raftTerm is the current raft term of the responding member.
       * 
* * uint64 raftTerm = 6; */ public Builder setRaftTerm(long value) { raftTerm_ = value; onChanged(); return this; } /** *
       * raftTerm is the current raft term of the responding member.
       * 
* * uint64 raftTerm = 6; */ public Builder clearRaftTerm() { raftTerm_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.StatusResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.StatusResponse) private static final etcdserverpb.Rpc.StatusResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.StatusResponse(); } public static etcdserverpb.Rpc.StatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StatusResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StatusResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.StatusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthEnableRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthEnableRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code etcdserverpb.AuthEnableRequest} */ public static final class AuthEnableRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthEnableRequest) AuthEnableRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthEnableRequest.newBuilder() to construct. private AuthEnableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthEnableRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthEnableRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthEnableRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthEnableRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthEnableRequest.class, etcdserverpb.Rpc.AuthEnableRequest.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 etcdserverpb.Rpc.AuthEnableRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthEnableRequest other = (etcdserverpb.Rpc.AuthEnableRequest) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthEnableRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthEnableRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthEnableRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthEnableRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthEnableRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthEnableRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthEnableRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthEnableRequest 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 etcdserverpb.Rpc.AuthEnableRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthEnableRequest 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 etcdserverpb.Rpc.AuthEnableRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthEnableRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthEnableRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthEnableRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthEnableRequest) etcdserverpb.Rpc.AuthEnableRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthEnableRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthEnableRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthEnableRequest.class, etcdserverpb.Rpc.AuthEnableRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthEnableRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthEnableRequest_descriptor; } public etcdserverpb.Rpc.AuthEnableRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthEnableRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthEnableRequest build() { etcdserverpb.Rpc.AuthEnableRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthEnableRequest buildPartial() { etcdserverpb.Rpc.AuthEnableRequest result = new etcdserverpb.Rpc.AuthEnableRequest(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthEnableRequest) { return mergeFrom((etcdserverpb.Rpc.AuthEnableRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthEnableRequest other) { if (other == etcdserverpb.Rpc.AuthEnableRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthEnableRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthEnableRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthEnableRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthEnableRequest) private static final etcdserverpb.Rpc.AuthEnableRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthEnableRequest(); } public static etcdserverpb.Rpc.AuthEnableRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthEnableRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthEnableRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthEnableRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthDisableRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthDisableRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code etcdserverpb.AuthDisableRequest} */ public static final class AuthDisableRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthDisableRequest) AuthDisableRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthDisableRequest.newBuilder() to construct. private AuthDisableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthDisableRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthDisableRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthDisableRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthDisableRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthDisableRequest.class, etcdserverpb.Rpc.AuthDisableRequest.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 etcdserverpb.Rpc.AuthDisableRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthDisableRequest other = (etcdserverpb.Rpc.AuthDisableRequest) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthDisableRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthDisableRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthDisableRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthDisableRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthDisableRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthDisableRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthDisableRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthDisableRequest 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 etcdserverpb.Rpc.AuthDisableRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthDisableRequest 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 etcdserverpb.Rpc.AuthDisableRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthDisableRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthDisableRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthDisableRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthDisableRequest) etcdserverpb.Rpc.AuthDisableRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthDisableRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthDisableRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthDisableRequest.class, etcdserverpb.Rpc.AuthDisableRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthDisableRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthDisableRequest_descriptor; } public etcdserverpb.Rpc.AuthDisableRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthDisableRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthDisableRequest build() { etcdserverpb.Rpc.AuthDisableRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthDisableRequest buildPartial() { etcdserverpb.Rpc.AuthDisableRequest result = new etcdserverpb.Rpc.AuthDisableRequest(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthDisableRequest) { return mergeFrom((etcdserverpb.Rpc.AuthDisableRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthDisableRequest other) { if (other == etcdserverpb.Rpc.AuthDisableRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthDisableRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthDisableRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthDisableRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthDisableRequest) private static final etcdserverpb.Rpc.AuthDisableRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthDisableRequest(); } public static etcdserverpb.Rpc.AuthDisableRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthDisableRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthDisableRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthDisableRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthenticateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthenticateRequest) com.google.protobuf.MessageOrBuilder { /** * string name = 1; */ java.lang.String getName(); /** * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * string password = 2; */ java.lang.String getPassword(); /** * string password = 2; */ com.google.protobuf.ByteString getPasswordBytes(); } /** * Protobuf type {@code etcdserverpb.AuthenticateRequest} */ public static final class AuthenticateRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthenticateRequest) AuthenticateRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthenticateRequest.newBuilder() to construct. private AuthenticateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthenticateRequest() { name_ = ""; password_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthenticateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); password_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthenticateRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthenticateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthenticateRequest.class, etcdserverpb.Rpc.AuthenticateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getPasswordBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getPasswordBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } 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 etcdserverpb.Rpc.AuthenticateRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthenticateRequest other = (etcdserverpb.Rpc.AuthenticateRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getPassword() .equals(other.getPassword()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthenticateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthenticateRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthenticateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthenticateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthenticateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthenticateRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthenticateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthenticateRequest 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 etcdserverpb.Rpc.AuthenticateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthenticateRequest 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 etcdserverpb.Rpc.AuthenticateRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthenticateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthenticateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthenticateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthenticateRequest) etcdserverpb.Rpc.AuthenticateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthenticateRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthenticateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthenticateRequest.class, etcdserverpb.Rpc.AuthenticateRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthenticateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; password_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthenticateRequest_descriptor; } public etcdserverpb.Rpc.AuthenticateRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthenticateRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthenticateRequest build() { etcdserverpb.Rpc.AuthenticateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthenticateRequest buildPartial() { etcdserverpb.Rpc.AuthenticateRequest result = new etcdserverpb.Rpc.AuthenticateRequest(this); result.name_ = name_; result.password_ = password_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthenticateRequest) { return mergeFrom((etcdserverpb.Rpc.AuthenticateRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthenticateRequest other) { if (other == etcdserverpb.Rpc.AuthenticateRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getPassword().isEmpty()) { password_ = other.password_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthenticateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthenticateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object password_ = ""; /** * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } else { return (java.lang.String) ref; } } /** * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string password = 2; */ public Builder setPassword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; onChanged(); return this; } /** * string password = 2; */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** * string password = 2; */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthenticateRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthenticateRequest) private static final etcdserverpb.Rpc.AuthenticateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthenticateRequest(); } public static etcdserverpb.Rpc.AuthenticateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthenticateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthenticateRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthenticateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserAddRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserAddRequest) com.google.protobuf.MessageOrBuilder { /** * string name = 1; */ java.lang.String getName(); /** * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * string password = 2; */ java.lang.String getPassword(); /** * string password = 2; */ com.google.protobuf.ByteString getPasswordBytes(); } /** * Protobuf type {@code etcdserverpb.AuthUserAddRequest} */ public static final class AuthUserAddRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserAddRequest) AuthUserAddRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserAddRequest.newBuilder() to construct. private AuthUserAddRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserAddRequest() { name_ = ""; password_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserAddRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); password_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserAddRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserAddRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserAddRequest.class, etcdserverpb.Rpc.AuthUserAddRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getPasswordBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getPasswordBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } 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 etcdserverpb.Rpc.AuthUserAddRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserAddRequest other = (etcdserverpb.Rpc.AuthUserAddRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getPassword() .equals(other.getPassword()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserAddRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserAddRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserAddRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserAddRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserAddRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserAddRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserAddRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserAddRequest 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 etcdserverpb.Rpc.AuthUserAddRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserAddRequest 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 etcdserverpb.Rpc.AuthUserAddRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserAddRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserAddRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserAddRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserAddRequest) etcdserverpb.Rpc.AuthUserAddRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserAddRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserAddRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserAddRequest.class, etcdserverpb.Rpc.AuthUserAddRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserAddRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; password_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserAddRequest_descriptor; } public etcdserverpb.Rpc.AuthUserAddRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserAddRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserAddRequest build() { etcdserverpb.Rpc.AuthUserAddRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserAddRequest buildPartial() { etcdserverpb.Rpc.AuthUserAddRequest result = new etcdserverpb.Rpc.AuthUserAddRequest(this); result.name_ = name_; result.password_ = password_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserAddRequest) { return mergeFrom((etcdserverpb.Rpc.AuthUserAddRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserAddRequest other) { if (other == etcdserverpb.Rpc.AuthUserAddRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getPassword().isEmpty()) { password_ = other.password_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserAddRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserAddRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object password_ = ""; /** * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } else { return (java.lang.String) ref; } } /** * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string password = 2; */ public Builder setPassword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; onChanged(); return this; } /** * string password = 2; */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** * string password = 2; */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserAddRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserAddRequest) private static final etcdserverpb.Rpc.AuthUserAddRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserAddRequest(); } public static etcdserverpb.Rpc.AuthUserAddRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserAddRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserAddRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserAddRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserGetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserGetRequest) com.google.protobuf.MessageOrBuilder { /** * string name = 1; */ java.lang.String getName(); /** * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code etcdserverpb.AuthUserGetRequest} */ public static final class AuthUserGetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserGetRequest) AuthUserGetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserGetRequest.newBuilder() to construct. private AuthUserGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserGetRequest() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserGetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserGetRequest.class, etcdserverpb.Rpc.AuthUserGetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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 etcdserverpb.Rpc.AuthUserGetRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserGetRequest other = (etcdserverpb.Rpc.AuthUserGetRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserGetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGetRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGetRequest 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 etcdserverpb.Rpc.AuthUserGetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGetRequest 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 etcdserverpb.Rpc.AuthUserGetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserGetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserGetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserGetRequest) etcdserverpb.Rpc.AuthUserGetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserGetRequest.class, etcdserverpb.Rpc.AuthUserGetRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserGetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGetRequest_descriptor; } public etcdserverpb.Rpc.AuthUserGetRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserGetRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserGetRequest build() { etcdserverpb.Rpc.AuthUserGetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserGetRequest buildPartial() { etcdserverpb.Rpc.AuthUserGetRequest result = new etcdserverpb.Rpc.AuthUserGetRequest(this); result.name_ = name_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserGetRequest) { return mergeFrom((etcdserverpb.Rpc.AuthUserGetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserGetRequest other) { if (other == etcdserverpb.Rpc.AuthUserGetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserGetRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserGetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserGetRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserGetRequest) private static final etcdserverpb.Rpc.AuthUserGetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserGetRequest(); } public static etcdserverpb.Rpc.AuthUserGetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserGetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserGetRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserGetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserDeleteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserDeleteRequest) com.google.protobuf.MessageOrBuilder { /** *
     * name is the name of the user to delete.
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     * name is the name of the user to delete.
     * 
* * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code etcdserverpb.AuthUserDeleteRequest} */ public static final class AuthUserDeleteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserDeleteRequest) AuthUserDeleteRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserDeleteRequest.newBuilder() to construct. private AuthUserDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserDeleteRequest() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserDeleteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserDeleteRequest.class, etcdserverpb.Rpc.AuthUserDeleteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * name is the name of the user to delete.
     * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * name is the name of the user to delete.
     * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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 etcdserverpb.Rpc.AuthUserDeleteRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserDeleteRequest other = (etcdserverpb.Rpc.AuthUserDeleteRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserDeleteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserDeleteRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserDeleteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserDeleteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserDeleteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserDeleteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserDeleteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserDeleteRequest 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 etcdserverpb.Rpc.AuthUserDeleteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserDeleteRequest 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 etcdserverpb.Rpc.AuthUserDeleteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserDeleteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserDeleteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserDeleteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserDeleteRequest) etcdserverpb.Rpc.AuthUserDeleteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserDeleteRequest.class, etcdserverpb.Rpc.AuthUserDeleteRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserDeleteRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor; } public etcdserverpb.Rpc.AuthUserDeleteRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserDeleteRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserDeleteRequest build() { etcdserverpb.Rpc.AuthUserDeleteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserDeleteRequest buildPartial() { etcdserverpb.Rpc.AuthUserDeleteRequest result = new etcdserverpb.Rpc.AuthUserDeleteRequest(this); result.name_ = name_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserDeleteRequest) { return mergeFrom((etcdserverpb.Rpc.AuthUserDeleteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserDeleteRequest other) { if (other == etcdserverpb.Rpc.AuthUserDeleteRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserDeleteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserDeleteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * name is the name of the user to delete.
       * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name is the name of the user to delete.
       * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name is the name of the user to delete.
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name is the name of the user to delete.
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name is the name of the user to delete.
       * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserDeleteRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserDeleteRequest) private static final etcdserverpb.Rpc.AuthUserDeleteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserDeleteRequest(); } public static etcdserverpb.Rpc.AuthUserDeleteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserDeleteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserDeleteRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserDeleteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserChangePasswordRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserChangePasswordRequest) com.google.protobuf.MessageOrBuilder { /** *
     * name is the name of the user whose password is being changed.
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     * name is the name of the user whose password is being changed.
     * 
* * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * password is the new password for the user.
     * 
* * string password = 2; */ java.lang.String getPassword(); /** *
     * password is the new password for the user.
     * 
* * string password = 2; */ com.google.protobuf.ByteString getPasswordBytes(); } /** * Protobuf type {@code etcdserverpb.AuthUserChangePasswordRequest} */ public static final class AuthUserChangePasswordRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserChangePasswordRequest) AuthUserChangePasswordRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserChangePasswordRequest.newBuilder() to construct. private AuthUserChangePasswordRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserChangePasswordRequest() { name_ = ""; password_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserChangePasswordRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); password_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserChangePasswordRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserChangePasswordRequest.class, etcdserverpb.Rpc.AuthUserChangePasswordRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * name is the name of the user whose password is being changed.
     * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * name is the name of the user whose password is being changed.
     * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** *
     * password is the new password for the user.
     * 
* * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** *
     * password is the new password for the user.
     * 
* * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getPasswordBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getPasswordBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } 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 etcdserverpb.Rpc.AuthUserChangePasswordRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserChangePasswordRequest other = (etcdserverpb.Rpc.AuthUserChangePasswordRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getPassword() .equals(other.getPassword()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserChangePasswordRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserChangePasswordRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserChangePasswordRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserChangePasswordRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserChangePasswordRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserChangePasswordRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserChangePasswordRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserChangePasswordRequest 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 etcdserverpb.Rpc.AuthUserChangePasswordRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserChangePasswordRequest 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 etcdserverpb.Rpc.AuthUserChangePasswordRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserChangePasswordRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserChangePasswordRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserChangePasswordRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserChangePasswordRequest) etcdserverpb.Rpc.AuthUserChangePasswordRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserChangePasswordRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserChangePasswordRequest.class, etcdserverpb.Rpc.AuthUserChangePasswordRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserChangePasswordRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; password_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor; } public etcdserverpb.Rpc.AuthUserChangePasswordRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserChangePasswordRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserChangePasswordRequest build() { etcdserverpb.Rpc.AuthUserChangePasswordRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserChangePasswordRequest buildPartial() { etcdserverpb.Rpc.AuthUserChangePasswordRequest result = new etcdserverpb.Rpc.AuthUserChangePasswordRequest(this); result.name_ = name_; result.password_ = password_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserChangePasswordRequest) { return mergeFrom((etcdserverpb.Rpc.AuthUserChangePasswordRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserChangePasswordRequest other) { if (other == etcdserverpb.Rpc.AuthUserChangePasswordRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getPassword().isEmpty()) { password_ = other.password_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserChangePasswordRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserChangePasswordRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * name is the name of the user whose password is being changed.
       * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name is the name of the user whose password is being changed.
       * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name is the name of the user whose password is being changed.
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name is the name of the user whose password is being changed.
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name is the name of the user whose password is being changed.
       * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object password_ = ""; /** *
       * password is the new password for the user.
       * 
* * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * password is the new password for the user.
       * 
* * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * password is the new password for the user.
       * 
* * string password = 2; */ public Builder setPassword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; onChanged(); return this; } /** *
       * password is the new password for the user.
       * 
* * string password = 2; */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** *
       * password is the new password for the user.
       * 
* * string password = 2; */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserChangePasswordRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserChangePasswordRequest) private static final etcdserverpb.Rpc.AuthUserChangePasswordRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserChangePasswordRequest(); } public static etcdserverpb.Rpc.AuthUserChangePasswordRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserChangePasswordRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserChangePasswordRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserChangePasswordRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserGrantRoleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserGrantRoleRequest) com.google.protobuf.MessageOrBuilder { /** *
     * user is the name of the user which should be granted a given role.
     * 
* * string user = 1; */ java.lang.String getUser(); /** *
     * user is the name of the user which should be granted a given role.
     * 
* * string user = 1; */ com.google.protobuf.ByteString getUserBytes(); /** *
     * role is the name of the role to grant to the user.
     * 
* * string role = 2; */ java.lang.String getRole(); /** *
     * role is the name of the role to grant to the user.
     * 
* * string role = 2; */ com.google.protobuf.ByteString getRoleBytes(); } /** * Protobuf type {@code etcdserverpb.AuthUserGrantRoleRequest} */ public static final class AuthUserGrantRoleRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserGrantRoleRequest) AuthUserGrantRoleRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserGrantRoleRequest.newBuilder() to construct. private AuthUserGrantRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserGrantRoleRequest() { user_ = ""; role_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserGrantRoleRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); user_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); role_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGrantRoleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserGrantRoleRequest.class, etcdserverpb.Rpc.AuthUserGrantRoleRequest.Builder.class); } public static final int USER_FIELD_NUMBER = 1; private volatile java.lang.Object user_; /** *
     * user is the name of the user which should be granted a given role.
     * 
* * string user = 1; */ public java.lang.String getUser() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); user_ = s; return s; } } /** *
     * user is the name of the user which should be granted a given role.
     * 
* * string user = 1; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLE_FIELD_NUMBER = 2; private volatile java.lang.Object role_; /** *
     * role is the name of the role to grant to the user.
     * 
* * string role = 2; */ public java.lang.String getRole() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** *
     * role is the name of the role to grant to the user.
     * 
* * string role = 2; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getUserBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, user_); } if (!getRoleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, role_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getUserBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, user_); } if (!getRoleBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); } 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 etcdserverpb.Rpc.AuthUserGrantRoleRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserGrantRoleRequest other = (etcdserverpb.Rpc.AuthUserGrantRoleRequest) obj; boolean result = true; result = result && getUser() .equals(other.getUser()); result = result && getRole() .equals(other.getRole()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserGrantRoleRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGrantRoleRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGrantRoleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGrantRoleRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGrantRoleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGrantRoleRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGrantRoleRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGrantRoleRequest 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 etcdserverpb.Rpc.AuthUserGrantRoleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGrantRoleRequest 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 etcdserverpb.Rpc.AuthUserGrantRoleRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGrantRoleRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserGrantRoleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserGrantRoleRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserGrantRoleRequest) etcdserverpb.Rpc.AuthUserGrantRoleRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGrantRoleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserGrantRoleRequest.class, etcdserverpb.Rpc.AuthUserGrantRoleRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserGrantRoleRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); user_ = ""; role_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor; } public etcdserverpb.Rpc.AuthUserGrantRoleRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserGrantRoleRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserGrantRoleRequest build() { etcdserverpb.Rpc.AuthUserGrantRoleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserGrantRoleRequest buildPartial() { etcdserverpb.Rpc.AuthUserGrantRoleRequest result = new etcdserverpb.Rpc.AuthUserGrantRoleRequest(this); result.user_ = user_; result.role_ = role_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserGrantRoleRequest) { return mergeFrom((etcdserverpb.Rpc.AuthUserGrantRoleRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserGrantRoleRequest other) { if (other == etcdserverpb.Rpc.AuthUserGrantRoleRequest.getDefaultInstance()) return this; if (!other.getUser().isEmpty()) { user_ = other.user_; onChanged(); } if (!other.getRole().isEmpty()) { role_ = other.role_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserGrantRoleRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserGrantRoleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object user_ = ""; /** *
       * user is the name of the user which should be granted a given role.
       * 
* * string user = 1; */ public java.lang.String getUser() { java.lang.Object ref = user_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); user_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * user is the name of the user which should be granted a given role.
       * 
* * string user = 1; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * user is the name of the user which should be granted a given role.
       * 
* * string user = 1; */ public Builder setUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } user_ = value; onChanged(); return this; } /** *
       * user is the name of the user which should be granted a given role.
       * 
* * string user = 1; */ public Builder clearUser() { user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** *
       * user is the name of the user which should be granted a given role.
       * 
* * string user = 1; */ public Builder setUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); user_ = value; onChanged(); return this; } private java.lang.Object role_ = ""; /** *
       * role is the name of the role to grant to the user.
       * 
* * string role = 2; */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * role is the name of the role to grant to the user.
       * 
* * string role = 2; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * role is the name of the role to grant to the user.
       * 
* * string role = 2; */ public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } role_ = value; onChanged(); return this; } /** *
       * role is the name of the role to grant to the user.
       * 
* * string role = 2; */ public Builder clearRole() { role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** *
       * role is the name of the role to grant to the user.
       * 
* * string role = 2; */ public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserGrantRoleRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserGrantRoleRequest) private static final etcdserverpb.Rpc.AuthUserGrantRoleRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserGrantRoleRequest(); } public static etcdserverpb.Rpc.AuthUserGrantRoleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserGrantRoleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserGrantRoleRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserGrantRoleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserRevokeRoleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserRevokeRoleRequest) com.google.protobuf.MessageOrBuilder { /** * string name = 1; */ java.lang.String getName(); /** * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * string role = 2; */ java.lang.String getRole(); /** * string role = 2; */ com.google.protobuf.ByteString getRoleBytes(); } /** * Protobuf type {@code etcdserverpb.AuthUserRevokeRoleRequest} */ public static final class AuthUserRevokeRoleRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserRevokeRoleRequest) AuthUserRevokeRoleRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserRevokeRoleRequest.newBuilder() to construct. private AuthUserRevokeRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserRevokeRoleRequest() { name_ = ""; role_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserRevokeRoleRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); role_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserRevokeRoleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserRevokeRoleRequest.class, etcdserverpb.Rpc.AuthUserRevokeRoleRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLE_FIELD_NUMBER = 2; private volatile java.lang.Object role_; /** * string role = 2; */ public java.lang.String getRole() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** * string role = 2; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getRoleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, role_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getRoleBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); } 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 etcdserverpb.Rpc.AuthUserRevokeRoleRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserRevokeRoleRequest other = (etcdserverpb.Rpc.AuthUserRevokeRoleRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getRole() .equals(other.getRole()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserRevokeRoleRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserRevokeRoleRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserRevokeRoleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserRevokeRoleRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserRevokeRoleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserRevokeRoleRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserRevokeRoleRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserRevokeRoleRequest 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 etcdserverpb.Rpc.AuthUserRevokeRoleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserRevokeRoleRequest 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 etcdserverpb.Rpc.AuthUserRevokeRoleRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserRevokeRoleRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserRevokeRoleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserRevokeRoleRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserRevokeRoleRequest) etcdserverpb.Rpc.AuthUserRevokeRoleRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserRevokeRoleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserRevokeRoleRequest.class, etcdserverpb.Rpc.AuthUserRevokeRoleRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserRevokeRoleRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; role_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor; } public etcdserverpb.Rpc.AuthUserRevokeRoleRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserRevokeRoleRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserRevokeRoleRequest build() { etcdserverpb.Rpc.AuthUserRevokeRoleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserRevokeRoleRequest buildPartial() { etcdserverpb.Rpc.AuthUserRevokeRoleRequest result = new etcdserverpb.Rpc.AuthUserRevokeRoleRequest(this); result.name_ = name_; result.role_ = role_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserRevokeRoleRequest) { return mergeFrom((etcdserverpb.Rpc.AuthUserRevokeRoleRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserRevokeRoleRequest other) { if (other == etcdserverpb.Rpc.AuthUserRevokeRoleRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRole().isEmpty()) { role_ = other.role_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserRevokeRoleRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserRevokeRoleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object role_ = ""; /** * string role = 2; */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } else { return (java.lang.String) ref; } } /** * string role = 2; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string role = 2; */ public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } role_ = value; onChanged(); return this; } /** * string role = 2; */ public Builder clearRole() { role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** * string role = 2; */ public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserRevokeRoleRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserRevokeRoleRequest) private static final etcdserverpb.Rpc.AuthUserRevokeRoleRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserRevokeRoleRequest(); } public static etcdserverpb.Rpc.AuthUserRevokeRoleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserRevokeRoleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserRevokeRoleRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserRevokeRoleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleAddRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleAddRequest) com.google.protobuf.MessageOrBuilder { /** *
     * name is the name of the role to add to the authentication system.
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     * name is the name of the role to add to the authentication system.
     * 
* * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code etcdserverpb.AuthRoleAddRequest} */ public static final class AuthRoleAddRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleAddRequest) AuthRoleAddRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleAddRequest.newBuilder() to construct. private AuthRoleAddRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleAddRequest() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleAddRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleAddRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleAddRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleAddRequest.class, etcdserverpb.Rpc.AuthRoleAddRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * name is the name of the role to add to the authentication system.
     * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * name is the name of the role to add to the authentication system.
     * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } 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 etcdserverpb.Rpc.AuthRoleAddRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleAddRequest other = (etcdserverpb.Rpc.AuthRoleAddRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleAddRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleAddRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleAddRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleAddRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleAddRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleAddRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleAddRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleAddRequest 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 etcdserverpb.Rpc.AuthRoleAddRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleAddRequest 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 etcdserverpb.Rpc.AuthRoleAddRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleAddRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleAddRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleAddRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleAddRequest) etcdserverpb.Rpc.AuthRoleAddRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleAddRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleAddRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleAddRequest.class, etcdserverpb.Rpc.AuthRoleAddRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleAddRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleAddRequest_descriptor; } public etcdserverpb.Rpc.AuthRoleAddRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleAddRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleAddRequest build() { etcdserverpb.Rpc.AuthRoleAddRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleAddRequest buildPartial() { etcdserverpb.Rpc.AuthRoleAddRequest result = new etcdserverpb.Rpc.AuthRoleAddRequest(this); result.name_ = name_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleAddRequest) { return mergeFrom((etcdserverpb.Rpc.AuthRoleAddRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleAddRequest other) { if (other == etcdserverpb.Rpc.AuthRoleAddRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleAddRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleAddRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * name is the name of the role to add to the authentication system.
       * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name is the name of the role to add to the authentication system.
       * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name is the name of the role to add to the authentication system.
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name is the name of the role to add to the authentication system.
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name is the name of the role to add to the authentication system.
       * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleAddRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleAddRequest) private static final etcdserverpb.Rpc.AuthRoleAddRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleAddRequest(); } public static etcdserverpb.Rpc.AuthRoleAddRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleAddRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleAddRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleAddRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleGetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleGetRequest) com.google.protobuf.MessageOrBuilder { /** * string role = 1; */ java.lang.String getRole(); /** * string role = 1; */ com.google.protobuf.ByteString getRoleBytes(); } /** * Protobuf type {@code etcdserverpb.AuthRoleGetRequest} */ public static final class AuthRoleGetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGetRequest) AuthRoleGetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleGetRequest.newBuilder() to construct. private AuthRoleGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleGetRequest() { role_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleGetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); role_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleGetRequest.class, etcdserverpb.Rpc.AuthRoleGetRequest.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private volatile java.lang.Object role_; /** * string role = 1; */ public java.lang.String getRole() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** * string role = 1; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getRoleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getRoleBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); } 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 etcdserverpb.Rpc.AuthRoleGetRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleGetRequest other = (etcdserverpb.Rpc.AuthRoleGetRequest) obj; boolean result = true; result = result && getRole() .equals(other.getRole()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleGetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGetRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGetRequest 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 etcdserverpb.Rpc.AuthRoleGetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGetRequest 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 etcdserverpb.Rpc.AuthRoleGetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleGetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleGetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleGetRequest) etcdserverpb.Rpc.AuthRoleGetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleGetRequest.class, etcdserverpb.Rpc.AuthRoleGetRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleGetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); role_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGetRequest_descriptor; } public etcdserverpb.Rpc.AuthRoleGetRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleGetRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleGetRequest build() { etcdserverpb.Rpc.AuthRoleGetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleGetRequest buildPartial() { etcdserverpb.Rpc.AuthRoleGetRequest result = new etcdserverpb.Rpc.AuthRoleGetRequest(this); result.role_ = role_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleGetRequest) { return mergeFrom((etcdserverpb.Rpc.AuthRoleGetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleGetRequest other) { if (other == etcdserverpb.Rpc.AuthRoleGetRequest.getDefaultInstance()) return this; if (!other.getRole().isEmpty()) { role_ = other.role_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleGetRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleGetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object role_ = ""; /** * string role = 1; */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } else { return (java.lang.String) ref; } } /** * string role = 1; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string role = 1; */ public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } role_ = value; onChanged(); return this; } /** * string role = 1; */ public Builder clearRole() { role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** * string role = 1; */ public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleGetRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleGetRequest) private static final etcdserverpb.Rpc.AuthRoleGetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleGetRequest(); } public static etcdserverpb.Rpc.AuthRoleGetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleGetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleGetRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleGetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserListRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserListRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code etcdserverpb.AuthUserListRequest} */ public static final class AuthUserListRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserListRequest) AuthUserListRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserListRequest.newBuilder() to construct. private AuthUserListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserListRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserListRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserListRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserListRequest.class, etcdserverpb.Rpc.AuthUserListRequest.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 etcdserverpb.Rpc.AuthUserListRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserListRequest other = (etcdserverpb.Rpc.AuthUserListRequest) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserListRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserListRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserListRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserListRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserListRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserListRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserListRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserListRequest 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 etcdserverpb.Rpc.AuthUserListRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserListRequest 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 etcdserverpb.Rpc.AuthUserListRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserListRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserListRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserListRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserListRequest) etcdserverpb.Rpc.AuthUserListRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserListRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserListRequest.class, etcdserverpb.Rpc.AuthUserListRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserListRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserListRequest_descriptor; } public etcdserverpb.Rpc.AuthUserListRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserListRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserListRequest build() { etcdserverpb.Rpc.AuthUserListRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserListRequest buildPartial() { etcdserverpb.Rpc.AuthUserListRequest result = new etcdserverpb.Rpc.AuthUserListRequest(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserListRequest) { return mergeFrom((etcdserverpb.Rpc.AuthUserListRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserListRequest other) { if (other == etcdserverpb.Rpc.AuthUserListRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserListRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserListRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserListRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserListRequest) private static final etcdserverpb.Rpc.AuthUserListRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserListRequest(); } public static etcdserverpb.Rpc.AuthUserListRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserListRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserListRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserListRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleListRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleListRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code etcdserverpb.AuthRoleListRequest} */ public static final class AuthRoleListRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleListRequest) AuthRoleListRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleListRequest.newBuilder() to construct. private AuthRoleListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleListRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleListRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleListRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleListRequest.class, etcdserverpb.Rpc.AuthRoleListRequest.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 etcdserverpb.Rpc.AuthRoleListRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleListRequest other = (etcdserverpb.Rpc.AuthRoleListRequest) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleListRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleListRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleListRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleListRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleListRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleListRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleListRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleListRequest 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 etcdserverpb.Rpc.AuthRoleListRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleListRequest 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 etcdserverpb.Rpc.AuthRoleListRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleListRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleListRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleListRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleListRequest) etcdserverpb.Rpc.AuthRoleListRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleListRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleListRequest.class, etcdserverpb.Rpc.AuthRoleListRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleListRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleListRequest_descriptor; } public etcdserverpb.Rpc.AuthRoleListRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleListRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleListRequest build() { etcdserverpb.Rpc.AuthRoleListRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleListRequest buildPartial() { etcdserverpb.Rpc.AuthRoleListRequest result = new etcdserverpb.Rpc.AuthRoleListRequest(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleListRequest) { return mergeFrom((etcdserverpb.Rpc.AuthRoleListRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleListRequest other) { if (other == etcdserverpb.Rpc.AuthRoleListRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleListRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleListRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleListRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleListRequest) private static final etcdserverpb.Rpc.AuthRoleListRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleListRequest(); } public static etcdserverpb.Rpc.AuthRoleListRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleListRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleListRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleListRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleDeleteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleDeleteRequest) com.google.protobuf.MessageOrBuilder { /** * string role = 1; */ java.lang.String getRole(); /** * string role = 1; */ com.google.protobuf.ByteString getRoleBytes(); } /** * Protobuf type {@code etcdserverpb.AuthRoleDeleteRequest} */ public static final class AuthRoleDeleteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleDeleteRequest) AuthRoleDeleteRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleDeleteRequest.newBuilder() to construct. private AuthRoleDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleDeleteRequest() { role_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleDeleteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); role_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleDeleteRequest.class, etcdserverpb.Rpc.AuthRoleDeleteRequest.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private volatile java.lang.Object role_; /** * string role = 1; */ public java.lang.String getRole() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** * string role = 1; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getRoleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getRoleBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); } 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 etcdserverpb.Rpc.AuthRoleDeleteRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleDeleteRequest other = (etcdserverpb.Rpc.AuthRoleDeleteRequest) obj; boolean result = true; result = result && getRole() .equals(other.getRole()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleDeleteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleDeleteRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleDeleteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleDeleteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleDeleteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleDeleteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleDeleteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleDeleteRequest 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 etcdserverpb.Rpc.AuthRoleDeleteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleDeleteRequest 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 etcdserverpb.Rpc.AuthRoleDeleteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleDeleteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleDeleteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleDeleteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleDeleteRequest) etcdserverpb.Rpc.AuthRoleDeleteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleDeleteRequest.class, etcdserverpb.Rpc.AuthRoleDeleteRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleDeleteRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); role_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor; } public etcdserverpb.Rpc.AuthRoleDeleteRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleDeleteRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleDeleteRequest build() { etcdserverpb.Rpc.AuthRoleDeleteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleDeleteRequest buildPartial() { etcdserverpb.Rpc.AuthRoleDeleteRequest result = new etcdserverpb.Rpc.AuthRoleDeleteRequest(this); result.role_ = role_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleDeleteRequest) { return mergeFrom((etcdserverpb.Rpc.AuthRoleDeleteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleDeleteRequest other) { if (other == etcdserverpb.Rpc.AuthRoleDeleteRequest.getDefaultInstance()) return this; if (!other.getRole().isEmpty()) { role_ = other.role_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleDeleteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleDeleteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object role_ = ""; /** * string role = 1; */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } else { return (java.lang.String) ref; } } /** * string role = 1; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string role = 1; */ public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } role_ = value; onChanged(); return this; } /** * string role = 1; */ public Builder clearRole() { role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** * string role = 1; */ public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleDeleteRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleDeleteRequest) private static final etcdserverpb.Rpc.AuthRoleDeleteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleDeleteRequest(); } public static etcdserverpb.Rpc.AuthRoleDeleteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleDeleteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleDeleteRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleDeleteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleGrantPermissionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleGrantPermissionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * name is the name of the role which will be granted the permission.
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     * name is the name of the role which will be granted the permission.
     * 
* * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * perm is the permission to grant to the role.
     * 
* * .authpb.Permission perm = 2; */ boolean hasPerm(); /** *
     * perm is the permission to grant to the role.
     * 
* * .authpb.Permission perm = 2; */ authpb.Auth.Permission getPerm(); /** *
     * perm is the permission to grant to the role.
     * 
* * .authpb.Permission perm = 2; */ authpb.Auth.PermissionOrBuilder getPermOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthRoleGrantPermissionRequest} */ public static final class AuthRoleGrantPermissionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGrantPermissionRequest) AuthRoleGrantPermissionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleGrantPermissionRequest.newBuilder() to construct. private AuthRoleGrantPermissionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleGrantPermissionRequest() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleGrantPermissionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { authpb.Auth.Permission.Builder subBuilder = null; if (perm_ != null) { subBuilder = perm_.toBuilder(); } perm_ = input.readMessage(authpb.Auth.Permission.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(perm_); perm_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleGrantPermissionRequest.class, etcdserverpb.Rpc.AuthRoleGrantPermissionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * name is the name of the role which will be granted the permission.
     * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * name is the name of the role which will be granted the permission.
     * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PERM_FIELD_NUMBER = 2; private authpb.Auth.Permission perm_; /** *
     * perm is the permission to grant to the role.
     * 
* * .authpb.Permission perm = 2; */ public boolean hasPerm() { return perm_ != null; } /** *
     * perm is the permission to grant to the role.
     * 
* * .authpb.Permission perm = 2; */ public authpb.Auth.Permission getPerm() { return perm_ == null ? authpb.Auth.Permission.getDefaultInstance() : perm_; } /** *
     * perm is the permission to grant to the role.
     * 
* * .authpb.Permission perm = 2; */ public authpb.Auth.PermissionOrBuilder getPermOrBuilder() { return getPerm(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (perm_ != null) { output.writeMessage(2, getPerm()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (perm_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPerm()); } 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 etcdserverpb.Rpc.AuthRoleGrantPermissionRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleGrantPermissionRequest other = (etcdserverpb.Rpc.AuthRoleGrantPermissionRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (hasPerm() == other.hasPerm()); if (hasPerm()) { result = result && getPerm() .equals(other.getPerm()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasPerm()) { hash = (37 * hash) + PERM_FIELD_NUMBER; hash = (53 * hash) + getPerm().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleGrantPermissionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionRequest 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 etcdserverpb.Rpc.AuthRoleGrantPermissionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionRequest 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 etcdserverpb.Rpc.AuthRoleGrantPermissionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleGrantPermissionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleGrantPermissionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleGrantPermissionRequest) etcdserverpb.Rpc.AuthRoleGrantPermissionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleGrantPermissionRequest.class, etcdserverpb.Rpc.AuthRoleGrantPermissionRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleGrantPermissionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; if (permBuilder_ == null) { perm_ = null; } else { perm_ = null; permBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor; } public etcdserverpb.Rpc.AuthRoleGrantPermissionRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleGrantPermissionRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleGrantPermissionRequest build() { etcdserverpb.Rpc.AuthRoleGrantPermissionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleGrantPermissionRequest buildPartial() { etcdserverpb.Rpc.AuthRoleGrantPermissionRequest result = new etcdserverpb.Rpc.AuthRoleGrantPermissionRequest(this); result.name_ = name_; if (permBuilder_ == null) { result.perm_ = perm_; } else { result.perm_ = permBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleGrantPermissionRequest) { return mergeFrom((etcdserverpb.Rpc.AuthRoleGrantPermissionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleGrantPermissionRequest other) { if (other == etcdserverpb.Rpc.AuthRoleGrantPermissionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasPerm()) { mergePerm(other.getPerm()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleGrantPermissionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleGrantPermissionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * name is the name of the role which will be granted the permission.
       * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name is the name of the role which will be granted the permission.
       * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name is the name of the role which will be granted the permission.
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name is the name of the role which will be granted the permission.
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name is the name of the role which will be granted the permission.
       * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private authpb.Auth.Permission perm_ = null; private com.google.protobuf.SingleFieldBuilderV3< authpb.Auth.Permission, authpb.Auth.Permission.Builder, authpb.Auth.PermissionOrBuilder> permBuilder_; /** *
       * perm is the permission to grant to the role.
       * 
* * .authpb.Permission perm = 2; */ public boolean hasPerm() { return permBuilder_ != null || perm_ != null; } /** *
       * perm is the permission to grant to the role.
       * 
* * .authpb.Permission perm = 2; */ public authpb.Auth.Permission getPerm() { if (permBuilder_ == null) { return perm_ == null ? authpb.Auth.Permission.getDefaultInstance() : perm_; } else { return permBuilder_.getMessage(); } } /** *
       * perm is the permission to grant to the role.
       * 
* * .authpb.Permission perm = 2; */ public Builder setPerm(authpb.Auth.Permission value) { if (permBuilder_ == null) { if (value == null) { throw new NullPointerException(); } perm_ = value; onChanged(); } else { permBuilder_.setMessage(value); } return this; } /** *
       * perm is the permission to grant to the role.
       * 
* * .authpb.Permission perm = 2; */ public Builder setPerm( authpb.Auth.Permission.Builder builderForValue) { if (permBuilder_ == null) { perm_ = builderForValue.build(); onChanged(); } else { permBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * perm is the permission to grant to the role.
       * 
* * .authpb.Permission perm = 2; */ public Builder mergePerm(authpb.Auth.Permission value) { if (permBuilder_ == null) { if (perm_ != null) { perm_ = authpb.Auth.Permission.newBuilder(perm_).mergeFrom(value).buildPartial(); } else { perm_ = value; } onChanged(); } else { permBuilder_.mergeFrom(value); } return this; } /** *
       * perm is the permission to grant to the role.
       * 
* * .authpb.Permission perm = 2; */ public Builder clearPerm() { if (permBuilder_ == null) { perm_ = null; onChanged(); } else { perm_ = null; permBuilder_ = null; } return this; } /** *
       * perm is the permission to grant to the role.
       * 
* * .authpb.Permission perm = 2; */ public authpb.Auth.Permission.Builder getPermBuilder() { onChanged(); return getPermFieldBuilder().getBuilder(); } /** *
       * perm is the permission to grant to the role.
       * 
* * .authpb.Permission perm = 2; */ public authpb.Auth.PermissionOrBuilder getPermOrBuilder() { if (permBuilder_ != null) { return permBuilder_.getMessageOrBuilder(); } else { return perm_ == null ? authpb.Auth.Permission.getDefaultInstance() : perm_; } } /** *
       * perm is the permission to grant to the role.
       * 
* * .authpb.Permission perm = 2; */ private com.google.protobuf.SingleFieldBuilderV3< authpb.Auth.Permission, authpb.Auth.Permission.Builder, authpb.Auth.PermissionOrBuilder> getPermFieldBuilder() { if (permBuilder_ == null) { permBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< authpb.Auth.Permission, authpb.Auth.Permission.Builder, authpb.Auth.PermissionOrBuilder>( getPerm(), getParentForChildren(), isClean()); perm_ = null; } return permBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleGrantPermissionRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleGrantPermissionRequest) private static final etcdserverpb.Rpc.AuthRoleGrantPermissionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleGrantPermissionRequest(); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleGrantPermissionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleGrantPermissionRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleGrantPermissionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleRevokePermissionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleRevokePermissionRequest) com.google.protobuf.MessageOrBuilder { /** * string role = 1; */ java.lang.String getRole(); /** * string role = 1; */ com.google.protobuf.ByteString getRoleBytes(); /** * string key = 2; */ java.lang.String getKey(); /** * string key = 2; */ com.google.protobuf.ByteString getKeyBytes(); /** * string range_end = 3; */ java.lang.String getRangeEnd(); /** * string range_end = 3; */ com.google.protobuf.ByteString getRangeEndBytes(); } /** * Protobuf type {@code etcdserverpb.AuthRoleRevokePermissionRequest} */ public static final class AuthRoleRevokePermissionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleRevokePermissionRequest) AuthRoleRevokePermissionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleRevokePermissionRequest.newBuilder() to construct. private AuthRoleRevokePermissionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleRevokePermissionRequest() { role_ = ""; key_ = ""; rangeEnd_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleRevokePermissionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); role_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); key_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); rangeEnd_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleRevokePermissionRequest.class, etcdserverpb.Rpc.AuthRoleRevokePermissionRequest.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private volatile java.lang.Object role_; /** * string role = 1; */ public java.lang.String getRole() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** * string role = 1; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** * string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** * string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RANGE_END_FIELD_NUMBER = 3; private volatile java.lang.Object rangeEnd_; /** * string range_end = 3; */ public java.lang.String getRangeEnd() { java.lang.Object ref = rangeEnd_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rangeEnd_ = s; return s; } } /** * string range_end = 3; */ public com.google.protobuf.ByteString getRangeEndBytes() { java.lang.Object ref = rangeEnd_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); rangeEnd_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getRoleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } if (!getKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); } if (!getRangeEndBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rangeEnd_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getRoleBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); } if (!getKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); } if (!getRangeEndBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, rangeEnd_); } 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 etcdserverpb.Rpc.AuthRoleRevokePermissionRequest)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleRevokePermissionRequest other = (etcdserverpb.Rpc.AuthRoleRevokePermissionRequest) obj; boolean result = true; result = result && getRole() .equals(other.getRole()); result = result && getKey() .equals(other.getKey()); result = result && getRangeEnd() .equals(other.getRangeEnd()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + RANGE_END_FIELD_NUMBER; hash = (53 * hash) + getRangeEnd().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleRevokePermissionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionRequest 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 etcdserverpb.Rpc.AuthRoleRevokePermissionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionRequest 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 etcdserverpb.Rpc.AuthRoleRevokePermissionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleRevokePermissionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleRevokePermissionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleRevokePermissionRequest) etcdserverpb.Rpc.AuthRoleRevokePermissionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleRevokePermissionRequest.class, etcdserverpb.Rpc.AuthRoleRevokePermissionRequest.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleRevokePermissionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); role_ = ""; key_ = ""; rangeEnd_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor; } public etcdserverpb.Rpc.AuthRoleRevokePermissionRequest getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleRevokePermissionRequest.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleRevokePermissionRequest build() { etcdserverpb.Rpc.AuthRoleRevokePermissionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleRevokePermissionRequest buildPartial() { etcdserverpb.Rpc.AuthRoleRevokePermissionRequest result = new etcdserverpb.Rpc.AuthRoleRevokePermissionRequest(this); result.role_ = role_; result.key_ = key_; result.rangeEnd_ = rangeEnd_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleRevokePermissionRequest) { return mergeFrom((etcdserverpb.Rpc.AuthRoleRevokePermissionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleRevokePermissionRequest other) { if (other == etcdserverpb.Rpc.AuthRoleRevokePermissionRequest.getDefaultInstance()) return this; if (!other.getRole().isEmpty()) { role_ = other.role_; onChanged(); } if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (!other.getRangeEnd().isEmpty()) { rangeEnd_ = other.rangeEnd_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleRevokePermissionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleRevokePermissionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object role_ = ""; /** * string role = 1; */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } else { return (java.lang.String) ref; } } /** * string role = 1; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string role = 1; */ public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } role_ = value; onChanged(); return this; } /** * string role = 1; */ public Builder clearRole() { role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** * string role = 1; */ public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; onChanged(); return this; } private java.lang.Object key_ = ""; /** * string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string key = 2; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * string key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * string key = 2; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } private java.lang.Object rangeEnd_ = ""; /** * string range_end = 3; */ public java.lang.String getRangeEnd() { java.lang.Object ref = rangeEnd_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rangeEnd_ = s; return s; } else { return (java.lang.String) ref; } } /** * string range_end = 3; */ public com.google.protobuf.ByteString getRangeEndBytes() { java.lang.Object ref = rangeEnd_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); rangeEnd_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string range_end = 3; */ public Builder setRangeEnd( java.lang.String value) { if (value == null) { throw new NullPointerException(); } rangeEnd_ = value; onChanged(); return this; } /** * string range_end = 3; */ public Builder clearRangeEnd() { rangeEnd_ = getDefaultInstance().getRangeEnd(); onChanged(); return this; } /** * string range_end = 3; */ public Builder setRangeEndBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rangeEnd_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleRevokePermissionRequest) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleRevokePermissionRequest) private static final etcdserverpb.Rpc.AuthRoleRevokePermissionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleRevokePermissionRequest(); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleRevokePermissionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleRevokePermissionRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleRevokePermissionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthEnableResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthEnableResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthEnableResponse} */ public static final class AuthEnableResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthEnableResponse) AuthEnableResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthEnableResponse.newBuilder() to construct. private AuthEnableResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthEnableResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthEnableResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthEnableResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthEnableResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthEnableResponse.class, etcdserverpb.Rpc.AuthEnableResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.AuthEnableResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthEnableResponse other = (etcdserverpb.Rpc.AuthEnableResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthEnableResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthEnableResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthEnableResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthEnableResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthEnableResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthEnableResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthEnableResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthEnableResponse 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 etcdserverpb.Rpc.AuthEnableResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthEnableResponse 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 etcdserverpb.Rpc.AuthEnableResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthEnableResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthEnableResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthEnableResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthEnableResponse) etcdserverpb.Rpc.AuthEnableResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthEnableResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthEnableResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthEnableResponse.class, etcdserverpb.Rpc.AuthEnableResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthEnableResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthEnableResponse_descriptor; } public etcdserverpb.Rpc.AuthEnableResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthEnableResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthEnableResponse build() { etcdserverpb.Rpc.AuthEnableResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthEnableResponse buildPartial() { etcdserverpb.Rpc.AuthEnableResponse result = new etcdserverpb.Rpc.AuthEnableResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthEnableResponse) { return mergeFrom((etcdserverpb.Rpc.AuthEnableResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthEnableResponse other) { if (other == etcdserverpb.Rpc.AuthEnableResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthEnableResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthEnableResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthEnableResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthEnableResponse) private static final etcdserverpb.Rpc.AuthEnableResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthEnableResponse(); } public static etcdserverpb.Rpc.AuthEnableResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthEnableResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthEnableResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthEnableResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthDisableResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthDisableResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthDisableResponse} */ public static final class AuthDisableResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthDisableResponse) AuthDisableResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthDisableResponse.newBuilder() to construct. private AuthDisableResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthDisableResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthDisableResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthDisableResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthDisableResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthDisableResponse.class, etcdserverpb.Rpc.AuthDisableResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.AuthDisableResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthDisableResponse other = (etcdserverpb.Rpc.AuthDisableResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthDisableResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthDisableResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthDisableResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthDisableResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthDisableResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthDisableResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthDisableResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthDisableResponse 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 etcdserverpb.Rpc.AuthDisableResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthDisableResponse 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 etcdserverpb.Rpc.AuthDisableResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthDisableResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthDisableResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthDisableResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthDisableResponse) etcdserverpb.Rpc.AuthDisableResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthDisableResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthDisableResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthDisableResponse.class, etcdserverpb.Rpc.AuthDisableResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthDisableResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthDisableResponse_descriptor; } public etcdserverpb.Rpc.AuthDisableResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthDisableResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthDisableResponse build() { etcdserverpb.Rpc.AuthDisableResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthDisableResponse buildPartial() { etcdserverpb.Rpc.AuthDisableResponse result = new etcdserverpb.Rpc.AuthDisableResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthDisableResponse) { return mergeFrom((etcdserverpb.Rpc.AuthDisableResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthDisableResponse other) { if (other == etcdserverpb.Rpc.AuthDisableResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthDisableResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthDisableResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthDisableResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthDisableResponse) private static final etcdserverpb.Rpc.AuthDisableResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthDisableResponse(); } public static etcdserverpb.Rpc.AuthDisableResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthDisableResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthDisableResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthDisableResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthenticateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthenticateResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * token is an authorized token that can be used in succeeding RPCs
     * 
* * string token = 2; */ java.lang.String getToken(); /** *
     * token is an authorized token that can be used in succeeding RPCs
     * 
* * string token = 2; */ com.google.protobuf.ByteString getTokenBytes(); } /** * Protobuf type {@code etcdserverpb.AuthenticateResponse} */ public static final class AuthenticateResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthenticateResponse) AuthenticateResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthenticateResponse.newBuilder() to construct. private AuthenticateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthenticateResponse() { token_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthenticateResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); token_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthenticateResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthenticateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthenticateResponse.class, etcdserverpb.Rpc.AuthenticateResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object token_; /** *
     * token is an authorized token that can be used in succeeding RPCs
     * 
* * string token = 2; */ public java.lang.String getToken() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; } } /** *
     * token is an authorized token that can be used in succeeding RPCs
     * 
* * string token = 2; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (!getTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (!getTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } 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 etcdserverpb.Rpc.AuthenticateResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthenticateResponse other = (etcdserverpb.Rpc.AuthenticateResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getToken() .equals(other.getToken()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + TOKEN_FIELD_NUMBER; hash = (53 * hash) + getToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthenticateResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthenticateResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthenticateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthenticateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthenticateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthenticateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthenticateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthenticateResponse 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 etcdserverpb.Rpc.AuthenticateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthenticateResponse 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 etcdserverpb.Rpc.AuthenticateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthenticateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthenticateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthenticateResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthenticateResponse) etcdserverpb.Rpc.AuthenticateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthenticateResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthenticateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthenticateResponse.class, etcdserverpb.Rpc.AuthenticateResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthenticateResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } token_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthenticateResponse_descriptor; } public etcdserverpb.Rpc.AuthenticateResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthenticateResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthenticateResponse build() { etcdserverpb.Rpc.AuthenticateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthenticateResponse buildPartial() { etcdserverpb.Rpc.AuthenticateResponse result = new etcdserverpb.Rpc.AuthenticateResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.token_ = token_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthenticateResponse) { return mergeFrom((etcdserverpb.Rpc.AuthenticateResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthenticateResponse other) { if (other == etcdserverpb.Rpc.AuthenticateResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (!other.getToken().isEmpty()) { token_ = other.token_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthenticateResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthenticateResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.lang.Object token_ = ""; /** *
       * token is an authorized token that can be used in succeeding RPCs
       * 
* * string token = 2; */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * token is an authorized token that can be used in succeeding RPCs
       * 
* * string token = 2; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * token is an authorized token that can be used in succeeding RPCs
       * 
* * string token = 2; */ public Builder setToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } token_ = value; onChanged(); return this; } /** *
       * token is an authorized token that can be used in succeeding RPCs
       * 
* * string token = 2; */ public Builder clearToken() { token_ = getDefaultInstance().getToken(); onChanged(); return this; } /** *
       * token is an authorized token that can be used in succeeding RPCs
       * 
* * string token = 2; */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); token_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthenticateResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthenticateResponse) private static final etcdserverpb.Rpc.AuthenticateResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthenticateResponse(); } public static etcdserverpb.Rpc.AuthenticateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthenticateResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthenticateResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthenticateResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserAddResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserAddResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthUserAddResponse} */ public static final class AuthUserAddResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserAddResponse) AuthUserAddResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserAddResponse.newBuilder() to construct. private AuthUserAddResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserAddResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserAddResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserAddResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserAddResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserAddResponse.class, etcdserverpb.Rpc.AuthUserAddResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.AuthUserAddResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserAddResponse other = (etcdserverpb.Rpc.AuthUserAddResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserAddResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserAddResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserAddResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserAddResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserAddResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserAddResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserAddResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserAddResponse 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 etcdserverpb.Rpc.AuthUserAddResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserAddResponse 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 etcdserverpb.Rpc.AuthUserAddResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserAddResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserAddResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserAddResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserAddResponse) etcdserverpb.Rpc.AuthUserAddResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserAddResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserAddResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserAddResponse.class, etcdserverpb.Rpc.AuthUserAddResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserAddResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserAddResponse_descriptor; } public etcdserverpb.Rpc.AuthUserAddResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserAddResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserAddResponse build() { etcdserverpb.Rpc.AuthUserAddResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserAddResponse buildPartial() { etcdserverpb.Rpc.AuthUserAddResponse result = new etcdserverpb.Rpc.AuthUserAddResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserAddResponse) { return mergeFrom((etcdserverpb.Rpc.AuthUserAddResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserAddResponse other) { if (other == etcdserverpb.Rpc.AuthUserAddResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserAddResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserAddResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserAddResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserAddResponse) private static final etcdserverpb.Rpc.AuthUserAddResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserAddResponse(); } public static etcdserverpb.Rpc.AuthUserAddResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserAddResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserAddResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserAddResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserGetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserGetResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * repeated string roles = 2; */ java.util.List getRolesList(); /** * repeated string roles = 2; */ int getRolesCount(); /** * repeated string roles = 2; */ java.lang.String getRoles(int index); /** * repeated string roles = 2; */ com.google.protobuf.ByteString getRolesBytes(int index); } /** * Protobuf type {@code etcdserverpb.AuthUserGetResponse} */ public static final class AuthUserGetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserGetResponse) AuthUserGetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserGetResponse.newBuilder() to construct. private AuthUserGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserGetResponse() { roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserGetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { roles_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } roles_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { roles_ = roles_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserGetResponse.class, etcdserverpb.Rpc.AuthUserGetResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int ROLES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList roles_; /** * repeated string roles = 2; */ public com.google.protobuf.ProtocolStringList getRolesList() { return roles_; } /** * repeated string roles = 2; */ public int getRolesCount() { return roles_.size(); } /** * repeated string roles = 2; */ public java.lang.String getRoles(int index) { return roles_.get(index); } /** * repeated string roles = 2; */ public com.google.protobuf.ByteString getRolesBytes(int index) { return roles_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < roles_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roles_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } { int dataSize = 0; for (int i = 0; i < roles_.size(); i++) { dataSize += computeStringSizeNoTag(roles_.getRaw(i)); } size += dataSize; size += 1 * getRolesList().size(); } 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 etcdserverpb.Rpc.AuthUserGetResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserGetResponse other = (etcdserverpb.Rpc.AuthUserGetResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getRolesList() .equals(other.getRolesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getRolesCount() > 0) { hash = (37 * hash) + ROLES_FIELD_NUMBER; hash = (53 * hash) + getRolesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserGetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGetResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGetResponse 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 etcdserverpb.Rpc.AuthUserGetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGetResponse 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 etcdserverpb.Rpc.AuthUserGetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserGetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserGetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserGetResponse) etcdserverpb.Rpc.AuthUserGetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserGetResponse.class, etcdserverpb.Rpc.AuthUserGetResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserGetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGetResponse_descriptor; } public etcdserverpb.Rpc.AuthUserGetResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserGetResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserGetResponse build() { etcdserverpb.Rpc.AuthUserGetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserGetResponse buildPartial() { etcdserverpb.Rpc.AuthUserGetResponse result = new etcdserverpb.Rpc.AuthUserGetResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { roles_ = roles_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.roles_ = roles_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserGetResponse) { return mergeFrom((etcdserverpb.Rpc.AuthUserGetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserGetResponse other) { if (other == etcdserverpb.Rpc.AuthUserGetResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (!other.roles_.isEmpty()) { if (roles_.isEmpty()) { roles_ = other.roles_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRolesIsMutable(); roles_.addAll(other.roles_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserGetResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserGetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRolesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { roles_ = new com.google.protobuf.LazyStringArrayList(roles_); bitField0_ |= 0x00000002; } } /** * repeated string roles = 2; */ public com.google.protobuf.ProtocolStringList getRolesList() { return roles_.getUnmodifiableView(); } /** * repeated string roles = 2; */ public int getRolesCount() { return roles_.size(); } /** * repeated string roles = 2; */ public java.lang.String getRoles(int index) { return roles_.get(index); } /** * repeated string roles = 2; */ public com.google.protobuf.ByteString getRolesBytes(int index) { return roles_.getByteString(index); } /** * repeated string roles = 2; */ public Builder setRoles( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.set(index, value); onChanged(); return this; } /** * repeated string roles = 2; */ public Builder addRoles( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } /** * repeated string roles = 2; */ public Builder addAllRoles( java.lang.Iterable values) { ensureRolesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, roles_); onChanged(); return this; } /** * repeated string roles = 2; */ public Builder clearRoles() { roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string roles = 2; */ public Builder addRolesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserGetResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserGetResponse) private static final etcdserverpb.Rpc.AuthUserGetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserGetResponse(); } public static etcdserverpb.Rpc.AuthUserGetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserGetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserGetResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserGetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserDeleteResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthUserDeleteResponse} */ public static final class AuthUserDeleteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserDeleteResponse) AuthUserDeleteResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserDeleteResponse.newBuilder() to construct. private AuthUserDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserDeleteResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserDeleteResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserDeleteResponse.class, etcdserverpb.Rpc.AuthUserDeleteResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.AuthUserDeleteResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserDeleteResponse other = (etcdserverpb.Rpc.AuthUserDeleteResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserDeleteResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserDeleteResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserDeleteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserDeleteResponse 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 etcdserverpb.Rpc.AuthUserDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserDeleteResponse 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 etcdserverpb.Rpc.AuthUserDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserDeleteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserDeleteResponse) etcdserverpb.Rpc.AuthUserDeleteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserDeleteResponse.class, etcdserverpb.Rpc.AuthUserDeleteResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserDeleteResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor; } public etcdserverpb.Rpc.AuthUserDeleteResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserDeleteResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserDeleteResponse build() { etcdserverpb.Rpc.AuthUserDeleteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserDeleteResponse buildPartial() { etcdserverpb.Rpc.AuthUserDeleteResponse result = new etcdserverpb.Rpc.AuthUserDeleteResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserDeleteResponse) { return mergeFrom((etcdserverpb.Rpc.AuthUserDeleteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserDeleteResponse other) { if (other == etcdserverpb.Rpc.AuthUserDeleteResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserDeleteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserDeleteResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserDeleteResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserDeleteResponse) private static final etcdserverpb.Rpc.AuthUserDeleteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserDeleteResponse(); } public static etcdserverpb.Rpc.AuthUserDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserDeleteResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserDeleteResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserDeleteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserChangePasswordResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserChangePasswordResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthUserChangePasswordResponse} */ public static final class AuthUserChangePasswordResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserChangePasswordResponse) AuthUserChangePasswordResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserChangePasswordResponse.newBuilder() to construct. private AuthUserChangePasswordResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserChangePasswordResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserChangePasswordResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserChangePasswordResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserChangePasswordResponse.class, etcdserverpb.Rpc.AuthUserChangePasswordResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.AuthUserChangePasswordResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserChangePasswordResponse other = (etcdserverpb.Rpc.AuthUserChangePasswordResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserChangePasswordResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserChangePasswordResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserChangePasswordResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserChangePasswordResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserChangePasswordResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserChangePasswordResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserChangePasswordResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserChangePasswordResponse 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 etcdserverpb.Rpc.AuthUserChangePasswordResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserChangePasswordResponse 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 etcdserverpb.Rpc.AuthUserChangePasswordResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserChangePasswordResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserChangePasswordResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserChangePasswordResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserChangePasswordResponse) etcdserverpb.Rpc.AuthUserChangePasswordResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserChangePasswordResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserChangePasswordResponse.class, etcdserverpb.Rpc.AuthUserChangePasswordResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserChangePasswordResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor; } public etcdserverpb.Rpc.AuthUserChangePasswordResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserChangePasswordResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserChangePasswordResponse build() { etcdserverpb.Rpc.AuthUserChangePasswordResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserChangePasswordResponse buildPartial() { etcdserverpb.Rpc.AuthUserChangePasswordResponse result = new etcdserverpb.Rpc.AuthUserChangePasswordResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserChangePasswordResponse) { return mergeFrom((etcdserverpb.Rpc.AuthUserChangePasswordResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserChangePasswordResponse other) { if (other == etcdserverpb.Rpc.AuthUserChangePasswordResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserChangePasswordResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserChangePasswordResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserChangePasswordResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserChangePasswordResponse) private static final etcdserverpb.Rpc.AuthUserChangePasswordResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserChangePasswordResponse(); } public static etcdserverpb.Rpc.AuthUserChangePasswordResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserChangePasswordResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserChangePasswordResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserChangePasswordResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserGrantRoleResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserGrantRoleResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthUserGrantRoleResponse} */ public static final class AuthUserGrantRoleResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserGrantRoleResponse) AuthUserGrantRoleResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserGrantRoleResponse.newBuilder() to construct. private AuthUserGrantRoleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserGrantRoleResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserGrantRoleResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGrantRoleResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserGrantRoleResponse.class, etcdserverpb.Rpc.AuthUserGrantRoleResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.AuthUserGrantRoleResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserGrantRoleResponse other = (etcdserverpb.Rpc.AuthUserGrantRoleResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserGrantRoleResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGrantRoleResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGrantRoleResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGrantRoleResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGrantRoleResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserGrantRoleResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserGrantRoleResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGrantRoleResponse 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 etcdserverpb.Rpc.AuthUserGrantRoleResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGrantRoleResponse 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 etcdserverpb.Rpc.AuthUserGrantRoleResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserGrantRoleResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserGrantRoleResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserGrantRoleResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserGrantRoleResponse) etcdserverpb.Rpc.AuthUserGrantRoleResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGrantRoleResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserGrantRoleResponse.class, etcdserverpb.Rpc.AuthUserGrantRoleResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserGrantRoleResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor; } public etcdserverpb.Rpc.AuthUserGrantRoleResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserGrantRoleResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserGrantRoleResponse build() { etcdserverpb.Rpc.AuthUserGrantRoleResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserGrantRoleResponse buildPartial() { etcdserverpb.Rpc.AuthUserGrantRoleResponse result = new etcdserverpb.Rpc.AuthUserGrantRoleResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserGrantRoleResponse) { return mergeFrom((etcdserverpb.Rpc.AuthUserGrantRoleResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserGrantRoleResponse other) { if (other == etcdserverpb.Rpc.AuthUserGrantRoleResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserGrantRoleResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserGrantRoleResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserGrantRoleResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserGrantRoleResponse) private static final etcdserverpb.Rpc.AuthUserGrantRoleResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserGrantRoleResponse(); } public static etcdserverpb.Rpc.AuthUserGrantRoleResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserGrantRoleResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserGrantRoleResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserGrantRoleResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserRevokeRoleResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserRevokeRoleResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthUserRevokeRoleResponse} */ public static final class AuthUserRevokeRoleResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserRevokeRoleResponse) AuthUserRevokeRoleResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserRevokeRoleResponse.newBuilder() to construct. private AuthUserRevokeRoleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserRevokeRoleResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserRevokeRoleResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserRevokeRoleResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserRevokeRoleResponse.class, etcdserverpb.Rpc.AuthUserRevokeRoleResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.AuthUserRevokeRoleResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserRevokeRoleResponse other = (etcdserverpb.Rpc.AuthUserRevokeRoleResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserRevokeRoleResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserRevokeRoleResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserRevokeRoleResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserRevokeRoleResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserRevokeRoleResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserRevokeRoleResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserRevokeRoleResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserRevokeRoleResponse 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 etcdserverpb.Rpc.AuthUserRevokeRoleResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserRevokeRoleResponse 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 etcdserverpb.Rpc.AuthUserRevokeRoleResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserRevokeRoleResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserRevokeRoleResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserRevokeRoleResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserRevokeRoleResponse) etcdserverpb.Rpc.AuthUserRevokeRoleResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserRevokeRoleResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserRevokeRoleResponse.class, etcdserverpb.Rpc.AuthUserRevokeRoleResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserRevokeRoleResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor; } public etcdserverpb.Rpc.AuthUserRevokeRoleResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserRevokeRoleResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserRevokeRoleResponse build() { etcdserverpb.Rpc.AuthUserRevokeRoleResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserRevokeRoleResponse buildPartial() { etcdserverpb.Rpc.AuthUserRevokeRoleResponse result = new etcdserverpb.Rpc.AuthUserRevokeRoleResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserRevokeRoleResponse) { return mergeFrom((etcdserverpb.Rpc.AuthUserRevokeRoleResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserRevokeRoleResponse other) { if (other == etcdserverpb.Rpc.AuthUserRevokeRoleResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserRevokeRoleResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserRevokeRoleResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserRevokeRoleResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserRevokeRoleResponse) private static final etcdserverpb.Rpc.AuthUserRevokeRoleResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserRevokeRoleResponse(); } public static etcdserverpb.Rpc.AuthUserRevokeRoleResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserRevokeRoleResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserRevokeRoleResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserRevokeRoleResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleAddResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleAddResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthRoleAddResponse} */ public static final class AuthRoleAddResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleAddResponse) AuthRoleAddResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleAddResponse.newBuilder() to construct. private AuthRoleAddResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleAddResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleAddResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleAddResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleAddResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleAddResponse.class, etcdserverpb.Rpc.AuthRoleAddResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.AuthRoleAddResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleAddResponse other = (etcdserverpb.Rpc.AuthRoleAddResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleAddResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleAddResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleAddResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleAddResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleAddResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleAddResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleAddResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleAddResponse 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 etcdserverpb.Rpc.AuthRoleAddResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleAddResponse 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 etcdserverpb.Rpc.AuthRoleAddResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleAddResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleAddResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleAddResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleAddResponse) etcdserverpb.Rpc.AuthRoleAddResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleAddResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleAddResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleAddResponse.class, etcdserverpb.Rpc.AuthRoleAddResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleAddResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleAddResponse_descriptor; } public etcdserverpb.Rpc.AuthRoleAddResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleAddResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleAddResponse build() { etcdserverpb.Rpc.AuthRoleAddResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleAddResponse buildPartial() { etcdserverpb.Rpc.AuthRoleAddResponse result = new etcdserverpb.Rpc.AuthRoleAddResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleAddResponse) { return mergeFrom((etcdserverpb.Rpc.AuthRoleAddResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleAddResponse other) { if (other == etcdserverpb.Rpc.AuthRoleAddResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleAddResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleAddResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleAddResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleAddResponse) private static final etcdserverpb.Rpc.AuthRoleAddResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleAddResponse(); } public static etcdserverpb.Rpc.AuthRoleAddResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleAddResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleAddResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleAddResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleGetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleGetResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * repeated .authpb.Permission perm = 2; */ java.util.List getPermList(); /** * repeated .authpb.Permission perm = 2; */ authpb.Auth.Permission getPerm(int index); /** * repeated .authpb.Permission perm = 2; */ int getPermCount(); /** * repeated .authpb.Permission perm = 2; */ java.util.List getPermOrBuilderList(); /** * repeated .authpb.Permission perm = 2; */ authpb.Auth.PermissionOrBuilder getPermOrBuilder( int index); } /** * Protobuf type {@code etcdserverpb.AuthRoleGetResponse} */ public static final class AuthRoleGetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGetResponse) AuthRoleGetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleGetResponse.newBuilder() to construct. private AuthRoleGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleGetResponse() { perm_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleGetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { perm_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } perm_.add( input.readMessage(authpb.Auth.Permission.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { perm_ = java.util.Collections.unmodifiableList(perm_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleGetResponse.class, etcdserverpb.Rpc.AuthRoleGetResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int PERM_FIELD_NUMBER = 2; private java.util.List perm_; /** * repeated .authpb.Permission perm = 2; */ public java.util.List getPermList() { return perm_; } /** * repeated .authpb.Permission perm = 2; */ public java.util.List getPermOrBuilderList() { return perm_; } /** * repeated .authpb.Permission perm = 2; */ public int getPermCount() { return perm_.size(); } /** * repeated .authpb.Permission perm = 2; */ public authpb.Auth.Permission getPerm(int index) { return perm_.get(index); } /** * repeated .authpb.Permission perm = 2; */ public authpb.Auth.PermissionOrBuilder getPermOrBuilder( int index) { return perm_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < perm_.size(); i++) { output.writeMessage(2, perm_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < perm_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, perm_.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 etcdserverpb.Rpc.AuthRoleGetResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleGetResponse other = (etcdserverpb.Rpc.AuthRoleGetResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getPermList() .equals(other.getPermList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getPermCount() > 0) { hash = (37 * hash) + PERM_FIELD_NUMBER; hash = (53 * hash) + getPermList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleGetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGetResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGetResponse 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 etcdserverpb.Rpc.AuthRoleGetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGetResponse 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 etcdserverpb.Rpc.AuthRoleGetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleGetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleGetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleGetResponse) etcdserverpb.Rpc.AuthRoleGetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleGetResponse.class, etcdserverpb.Rpc.AuthRoleGetResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleGetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPermFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (permBuilder_ == null) { perm_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { permBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGetResponse_descriptor; } public etcdserverpb.Rpc.AuthRoleGetResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleGetResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleGetResponse build() { etcdserverpb.Rpc.AuthRoleGetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleGetResponse buildPartial() { etcdserverpb.Rpc.AuthRoleGetResponse result = new etcdserverpb.Rpc.AuthRoleGetResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (permBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { perm_ = java.util.Collections.unmodifiableList(perm_); bitField0_ = (bitField0_ & ~0x00000002); } result.perm_ = perm_; } else { result.perm_ = permBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleGetResponse) { return mergeFrom((etcdserverpb.Rpc.AuthRoleGetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleGetResponse other) { if (other == etcdserverpb.Rpc.AuthRoleGetResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (permBuilder_ == null) { if (!other.perm_.isEmpty()) { if (perm_.isEmpty()) { perm_ = other.perm_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePermIsMutable(); perm_.addAll(other.perm_); } onChanged(); } } else { if (!other.perm_.isEmpty()) { if (permBuilder_.isEmpty()) { permBuilder_.dispose(); permBuilder_ = null; perm_ = other.perm_; bitField0_ = (bitField0_ & ~0x00000002); permBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPermFieldBuilder() : null; } else { permBuilder_.addAllMessages(other.perm_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleGetResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleGetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List perm_ = java.util.Collections.emptyList(); private void ensurePermIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { perm_ = new java.util.ArrayList(perm_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< authpb.Auth.Permission, authpb.Auth.Permission.Builder, authpb.Auth.PermissionOrBuilder> permBuilder_; /** * repeated .authpb.Permission perm = 2; */ public java.util.List getPermList() { if (permBuilder_ == null) { return java.util.Collections.unmodifiableList(perm_); } else { return permBuilder_.getMessageList(); } } /** * repeated .authpb.Permission perm = 2; */ public int getPermCount() { if (permBuilder_ == null) { return perm_.size(); } else { return permBuilder_.getCount(); } } /** * repeated .authpb.Permission perm = 2; */ public authpb.Auth.Permission getPerm(int index) { if (permBuilder_ == null) { return perm_.get(index); } else { return permBuilder_.getMessage(index); } } /** * repeated .authpb.Permission perm = 2; */ public Builder setPerm( int index, authpb.Auth.Permission value) { if (permBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermIsMutable(); perm_.set(index, value); onChanged(); } else { permBuilder_.setMessage(index, value); } return this; } /** * repeated .authpb.Permission perm = 2; */ public Builder setPerm( int index, authpb.Auth.Permission.Builder builderForValue) { if (permBuilder_ == null) { ensurePermIsMutable(); perm_.set(index, builderForValue.build()); onChanged(); } else { permBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .authpb.Permission perm = 2; */ public Builder addPerm(authpb.Auth.Permission value) { if (permBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermIsMutable(); perm_.add(value); onChanged(); } else { permBuilder_.addMessage(value); } return this; } /** * repeated .authpb.Permission perm = 2; */ public Builder addPerm( int index, authpb.Auth.Permission value) { if (permBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermIsMutable(); perm_.add(index, value); onChanged(); } else { permBuilder_.addMessage(index, value); } return this; } /** * repeated .authpb.Permission perm = 2; */ public Builder addPerm( authpb.Auth.Permission.Builder builderForValue) { if (permBuilder_ == null) { ensurePermIsMutable(); perm_.add(builderForValue.build()); onChanged(); } else { permBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .authpb.Permission perm = 2; */ public Builder addPerm( int index, authpb.Auth.Permission.Builder builderForValue) { if (permBuilder_ == null) { ensurePermIsMutable(); perm_.add(index, builderForValue.build()); onChanged(); } else { permBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .authpb.Permission perm = 2; */ public Builder addAllPerm( java.lang.Iterable values) { if (permBuilder_ == null) { ensurePermIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, perm_); onChanged(); } else { permBuilder_.addAllMessages(values); } return this; } /** * repeated .authpb.Permission perm = 2; */ public Builder clearPerm() { if (permBuilder_ == null) { perm_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { permBuilder_.clear(); } return this; } /** * repeated .authpb.Permission perm = 2; */ public Builder removePerm(int index) { if (permBuilder_ == null) { ensurePermIsMutable(); perm_.remove(index); onChanged(); } else { permBuilder_.remove(index); } return this; } /** * repeated .authpb.Permission perm = 2; */ public authpb.Auth.Permission.Builder getPermBuilder( int index) { return getPermFieldBuilder().getBuilder(index); } /** * repeated .authpb.Permission perm = 2; */ public authpb.Auth.PermissionOrBuilder getPermOrBuilder( int index) { if (permBuilder_ == null) { return perm_.get(index); } else { return permBuilder_.getMessageOrBuilder(index); } } /** * repeated .authpb.Permission perm = 2; */ public java.util.List getPermOrBuilderList() { if (permBuilder_ != null) { return permBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(perm_); } } /** * repeated .authpb.Permission perm = 2; */ public authpb.Auth.Permission.Builder addPermBuilder() { return getPermFieldBuilder().addBuilder( authpb.Auth.Permission.getDefaultInstance()); } /** * repeated .authpb.Permission perm = 2; */ public authpb.Auth.Permission.Builder addPermBuilder( int index) { return getPermFieldBuilder().addBuilder( index, authpb.Auth.Permission.getDefaultInstance()); } /** * repeated .authpb.Permission perm = 2; */ public java.util.List getPermBuilderList() { return getPermFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< authpb.Auth.Permission, authpb.Auth.Permission.Builder, authpb.Auth.PermissionOrBuilder> getPermFieldBuilder() { if (permBuilder_ == null) { permBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< authpb.Auth.Permission, authpb.Auth.Permission.Builder, authpb.Auth.PermissionOrBuilder>( perm_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); perm_ = null; } return permBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleGetResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleGetResponse) private static final etcdserverpb.Rpc.AuthRoleGetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleGetResponse(); } public static etcdserverpb.Rpc.AuthRoleGetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleGetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleGetResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleGetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleListResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * repeated string roles = 2; */ java.util.List getRolesList(); /** * repeated string roles = 2; */ int getRolesCount(); /** * repeated string roles = 2; */ java.lang.String getRoles(int index); /** * repeated string roles = 2; */ com.google.protobuf.ByteString getRolesBytes(int index); } /** * Protobuf type {@code etcdserverpb.AuthRoleListResponse} */ public static final class AuthRoleListResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleListResponse) AuthRoleListResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleListResponse.newBuilder() to construct. private AuthRoleListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleListResponse() { roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleListResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { roles_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } roles_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { roles_ = roles_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleListResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleListResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleListResponse.class, etcdserverpb.Rpc.AuthRoleListResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int ROLES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList roles_; /** * repeated string roles = 2; */ public com.google.protobuf.ProtocolStringList getRolesList() { return roles_; } /** * repeated string roles = 2; */ public int getRolesCount() { return roles_.size(); } /** * repeated string roles = 2; */ public java.lang.String getRoles(int index) { return roles_.get(index); } /** * repeated string roles = 2; */ public com.google.protobuf.ByteString getRolesBytes(int index) { return roles_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < roles_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roles_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } { int dataSize = 0; for (int i = 0; i < roles_.size(); i++) { dataSize += computeStringSizeNoTag(roles_.getRaw(i)); } size += dataSize; size += 1 * getRolesList().size(); } 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 etcdserverpb.Rpc.AuthRoleListResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleListResponse other = (etcdserverpb.Rpc.AuthRoleListResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getRolesList() .equals(other.getRolesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getRolesCount() > 0) { hash = (37 * hash) + ROLES_FIELD_NUMBER; hash = (53 * hash) + getRolesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleListResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleListResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleListResponse 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 etcdserverpb.Rpc.AuthRoleListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleListResponse 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 etcdserverpb.Rpc.AuthRoleListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleListResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleListResponse) etcdserverpb.Rpc.AuthRoleListResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleListResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleListResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleListResponse.class, etcdserverpb.Rpc.AuthRoleListResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleListResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleListResponse_descriptor; } public etcdserverpb.Rpc.AuthRoleListResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleListResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleListResponse build() { etcdserverpb.Rpc.AuthRoleListResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleListResponse buildPartial() { etcdserverpb.Rpc.AuthRoleListResponse result = new etcdserverpb.Rpc.AuthRoleListResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { roles_ = roles_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.roles_ = roles_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleListResponse) { return mergeFrom((etcdserverpb.Rpc.AuthRoleListResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleListResponse other) { if (other == etcdserverpb.Rpc.AuthRoleListResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (!other.roles_.isEmpty()) { if (roles_.isEmpty()) { roles_ = other.roles_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRolesIsMutable(); roles_.addAll(other.roles_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleListResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleListResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRolesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { roles_ = new com.google.protobuf.LazyStringArrayList(roles_); bitField0_ |= 0x00000002; } } /** * repeated string roles = 2; */ public com.google.protobuf.ProtocolStringList getRolesList() { return roles_.getUnmodifiableView(); } /** * repeated string roles = 2; */ public int getRolesCount() { return roles_.size(); } /** * repeated string roles = 2; */ public java.lang.String getRoles(int index) { return roles_.get(index); } /** * repeated string roles = 2; */ public com.google.protobuf.ByteString getRolesBytes(int index) { return roles_.getByteString(index); } /** * repeated string roles = 2; */ public Builder setRoles( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.set(index, value); onChanged(); return this; } /** * repeated string roles = 2; */ public Builder addRoles( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } /** * repeated string roles = 2; */ public Builder addAllRoles( java.lang.Iterable values) { ensureRolesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, roles_); onChanged(); return this; } /** * repeated string roles = 2; */ public Builder clearRoles() { roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string roles = 2; */ public Builder addRolesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleListResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleListResponse) private static final etcdserverpb.Rpc.AuthRoleListResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleListResponse(); } public static etcdserverpb.Rpc.AuthRoleListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleListResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleListResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleListResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthUserListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthUserListResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * repeated string users = 2; */ java.util.List getUsersList(); /** * repeated string users = 2; */ int getUsersCount(); /** * repeated string users = 2; */ java.lang.String getUsers(int index); /** * repeated string users = 2; */ com.google.protobuf.ByteString getUsersBytes(int index); } /** * Protobuf type {@code etcdserverpb.AuthUserListResponse} */ public static final class AuthUserListResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthUserListResponse) AuthUserListResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthUserListResponse.newBuilder() to construct. private AuthUserListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthUserListResponse() { users_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthUserListResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { users_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } users_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { users_ = users_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserListResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserListResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserListResponse.class, etcdserverpb.Rpc.AuthUserListResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int USERS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList users_; /** * repeated string users = 2; */ public com.google.protobuf.ProtocolStringList getUsersList() { return users_; } /** * repeated string users = 2; */ public int getUsersCount() { return users_.size(); } /** * repeated string users = 2; */ public java.lang.String getUsers(int index) { return users_.get(index); } /** * repeated string users = 2; */ public com.google.protobuf.ByteString getUsersBytes(int index) { return users_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < users_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, users_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } { int dataSize = 0; for (int i = 0; i < users_.size(); i++) { dataSize += computeStringSizeNoTag(users_.getRaw(i)); } size += dataSize; size += 1 * getUsersList().size(); } 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 etcdserverpb.Rpc.AuthUserListResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthUserListResponse other = (etcdserverpb.Rpc.AuthUserListResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getUsersList() .equals(other.getUsersList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getUsersCount() > 0) { hash = (37 * hash) + USERS_FIELD_NUMBER; hash = (53 * hash) + getUsersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthUserListResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserListResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserListResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthUserListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthUserListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserListResponse 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 etcdserverpb.Rpc.AuthUserListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserListResponse 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 etcdserverpb.Rpc.AuthUserListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthUserListResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthUserListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthUserListResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthUserListResponse) etcdserverpb.Rpc.AuthUserListResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserListResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserListResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthUserListResponse.class, etcdserverpb.Rpc.AuthUserListResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthUserListResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } users_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthUserListResponse_descriptor; } public etcdserverpb.Rpc.AuthUserListResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthUserListResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthUserListResponse build() { etcdserverpb.Rpc.AuthUserListResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthUserListResponse buildPartial() { etcdserverpb.Rpc.AuthUserListResponse result = new etcdserverpb.Rpc.AuthUserListResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { users_ = users_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.users_ = users_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthUserListResponse) { return mergeFrom((etcdserverpb.Rpc.AuthUserListResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthUserListResponse other) { if (other == etcdserverpb.Rpc.AuthUserListResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (!other.users_.isEmpty()) { if (users_.isEmpty()) { users_ = other.users_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUsersIsMutable(); users_.addAll(other.users_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthUserListResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthUserListResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private com.google.protobuf.LazyStringList users_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUsersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { users_ = new com.google.protobuf.LazyStringArrayList(users_); bitField0_ |= 0x00000002; } } /** * repeated string users = 2; */ public com.google.protobuf.ProtocolStringList getUsersList() { return users_.getUnmodifiableView(); } /** * repeated string users = 2; */ public int getUsersCount() { return users_.size(); } /** * repeated string users = 2; */ public java.lang.String getUsers(int index) { return users_.get(index); } /** * repeated string users = 2; */ public com.google.protobuf.ByteString getUsersBytes(int index) { return users_.getByteString(index); } /** * repeated string users = 2; */ public Builder setUsers( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUsersIsMutable(); users_.set(index, value); onChanged(); return this; } /** * repeated string users = 2; */ public Builder addUsers( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUsersIsMutable(); users_.add(value); onChanged(); return this; } /** * repeated string users = 2; */ public Builder addAllUsers( java.lang.Iterable values) { ensureUsersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, users_); onChanged(); return this; } /** * repeated string users = 2; */ public Builder clearUsers() { users_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string users = 2; */ public Builder addUsersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUsersIsMutable(); users_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthUserListResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthUserListResponse) private static final etcdserverpb.Rpc.AuthUserListResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthUserListResponse(); } public static etcdserverpb.Rpc.AuthUserListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthUserListResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthUserListResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthUserListResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleDeleteResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthRoleDeleteResponse} */ public static final class AuthRoleDeleteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleDeleteResponse) AuthRoleDeleteResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleDeleteResponse.newBuilder() to construct. private AuthRoleDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleDeleteResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleDeleteResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleDeleteResponse.class, etcdserverpb.Rpc.AuthRoleDeleteResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.AuthRoleDeleteResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleDeleteResponse other = (etcdserverpb.Rpc.AuthRoleDeleteResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleDeleteResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleDeleteResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleDeleteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleDeleteResponse 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 etcdserverpb.Rpc.AuthRoleDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleDeleteResponse 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 etcdserverpb.Rpc.AuthRoleDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleDeleteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleDeleteResponse) etcdserverpb.Rpc.AuthRoleDeleteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleDeleteResponse.class, etcdserverpb.Rpc.AuthRoleDeleteResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleDeleteResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor; } public etcdserverpb.Rpc.AuthRoleDeleteResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleDeleteResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleDeleteResponse build() { etcdserverpb.Rpc.AuthRoleDeleteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleDeleteResponse buildPartial() { etcdserverpb.Rpc.AuthRoleDeleteResponse result = new etcdserverpb.Rpc.AuthRoleDeleteResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleDeleteResponse) { return mergeFrom((etcdserverpb.Rpc.AuthRoleDeleteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleDeleteResponse other) { if (other == etcdserverpb.Rpc.AuthRoleDeleteResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleDeleteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleDeleteResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleDeleteResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleDeleteResponse) private static final etcdserverpb.Rpc.AuthRoleDeleteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleDeleteResponse(); } public static etcdserverpb.Rpc.AuthRoleDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleDeleteResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleDeleteResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleDeleteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleGrantPermissionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleGrantPermissionResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthRoleGrantPermissionResponse} */ public static final class AuthRoleGrantPermissionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGrantPermissionResponse) AuthRoleGrantPermissionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleGrantPermissionResponse.newBuilder() to construct. private AuthRoleGrantPermissionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleGrantPermissionResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleGrantPermissionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleGrantPermissionResponse.class, etcdserverpb.Rpc.AuthRoleGrantPermissionResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.AuthRoleGrantPermissionResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleGrantPermissionResponse other = (etcdserverpb.Rpc.AuthRoleGrantPermissionResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleGrantPermissionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionResponse 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 etcdserverpb.Rpc.AuthRoleGrantPermissionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionResponse 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 etcdserverpb.Rpc.AuthRoleGrantPermissionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleGrantPermissionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleGrantPermissionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleGrantPermissionResponse) etcdserverpb.Rpc.AuthRoleGrantPermissionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleGrantPermissionResponse.class, etcdserverpb.Rpc.AuthRoleGrantPermissionResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleGrantPermissionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor; } public etcdserverpb.Rpc.AuthRoleGrantPermissionResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleGrantPermissionResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleGrantPermissionResponse build() { etcdserverpb.Rpc.AuthRoleGrantPermissionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleGrantPermissionResponse buildPartial() { etcdserverpb.Rpc.AuthRoleGrantPermissionResponse result = new etcdserverpb.Rpc.AuthRoleGrantPermissionResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleGrantPermissionResponse) { return mergeFrom((etcdserverpb.Rpc.AuthRoleGrantPermissionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleGrantPermissionResponse other) { if (other == etcdserverpb.Rpc.AuthRoleGrantPermissionResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleGrantPermissionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleGrantPermissionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleGrantPermissionResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleGrantPermissionResponse) private static final etcdserverpb.Rpc.AuthRoleGrantPermissionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleGrantPermissionResponse(); } public static etcdserverpb.Rpc.AuthRoleGrantPermissionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleGrantPermissionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleGrantPermissionResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleGrantPermissionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthRoleRevokePermissionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:etcdserverpb.AuthRoleRevokePermissionResponse) com.google.protobuf.MessageOrBuilder { /** * .etcdserverpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeader getHeader(); /** * .etcdserverpb.ResponseHeader header = 1; */ etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code etcdserverpb.AuthRoleRevokePermissionResponse} */ public static final class AuthRoleRevokePermissionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleRevokePermissionResponse) AuthRoleRevokePermissionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AuthRoleRevokePermissionResponse.newBuilder() to construct. private AuthRoleRevokePermissionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthRoleRevokePermissionResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthRoleRevokePermissionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { etcdserverpb.Rpc.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(etcdserverpb.Rpc.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleRevokePermissionResponse.class, etcdserverpb.Rpc.AuthRoleRevokePermissionResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private etcdserverpb.Rpc.ResponseHeader header_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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 etcdserverpb.Rpc.AuthRoleRevokePermissionResponse)) { return super.equals(obj); } etcdserverpb.Rpc.AuthRoleRevokePermissionResponse other = (etcdserverpb.Rpc.AuthRoleRevokePermissionResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static etcdserverpb.Rpc.AuthRoleRevokePermissionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionResponse 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 etcdserverpb.Rpc.AuthRoleRevokePermissionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionResponse 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 etcdserverpb.Rpc.AuthRoleRevokePermissionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(etcdserverpb.Rpc.AuthRoleRevokePermissionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code etcdserverpb.AuthRoleRevokePermissionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:etcdserverpb.AuthRoleRevokePermissionResponse) etcdserverpb.Rpc.AuthRoleRevokePermissionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( etcdserverpb.Rpc.AuthRoleRevokePermissionResponse.class, etcdserverpb.Rpc.AuthRoleRevokePermissionResponse.Builder.class); } // Construct using etcdserverpb.Rpc.AuthRoleRevokePermissionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return etcdserverpb.Rpc.internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor; } public etcdserverpb.Rpc.AuthRoleRevokePermissionResponse getDefaultInstanceForType() { return etcdserverpb.Rpc.AuthRoleRevokePermissionResponse.getDefaultInstance(); } public etcdserverpb.Rpc.AuthRoleRevokePermissionResponse build() { etcdserverpb.Rpc.AuthRoleRevokePermissionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public etcdserverpb.Rpc.AuthRoleRevokePermissionResponse buildPartial() { etcdserverpb.Rpc.AuthRoleRevokePermissionResponse result = new etcdserverpb.Rpc.AuthRoleRevokePermissionResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof etcdserverpb.Rpc.AuthRoleRevokePermissionResponse) { return mergeFrom((etcdserverpb.Rpc.AuthRoleRevokePermissionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(etcdserverpb.Rpc.AuthRoleRevokePermissionResponse other) { if (other == etcdserverpb.Rpc.AuthRoleRevokePermissionResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { etcdserverpb.Rpc.AuthRoleRevokePermissionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (etcdserverpb.Rpc.AuthRoleRevokePermissionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private etcdserverpb.Rpc.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> headerBuilder_; /** * .etcdserverpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder setHeader( etcdserverpb.Rpc.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder mergeHeader(etcdserverpb.Rpc.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = etcdserverpb.Rpc.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .etcdserverpb.ResponseHeader header = 1; */ public etcdserverpb.Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? etcdserverpb.Rpc.ResponseHeader.getDefaultInstance() : header_; } } /** * .etcdserverpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< etcdserverpb.Rpc.ResponseHeader, etcdserverpb.Rpc.ResponseHeader.Builder, etcdserverpb.Rpc.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:etcdserverpb.AuthRoleRevokePermissionResponse) } // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleRevokePermissionResponse) private static final etcdserverpb.Rpc.AuthRoleRevokePermissionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new etcdserverpb.Rpc.AuthRoleRevokePermissionResponse(); } public static etcdserverpb.Rpc.AuthRoleRevokePermissionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthRoleRevokePermissionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthRoleRevokePermissionResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public etcdserverpb.Rpc.AuthRoleRevokePermissionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_ResponseHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_ResponseHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_RangeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_RangeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_RangeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_RangeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_PutRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_PutRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_PutResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_PutResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_DeleteRangeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_DeleteRangeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_DeleteRangeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_DeleteRangeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_RequestOp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_RequestOp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_ResponseOp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_ResponseOp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_Compare_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_Compare_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_TxnRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_TxnRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_TxnResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_TxnResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_CompactionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_CompactionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_CompactionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_CompactionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_HashRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_HashRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_HashResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_HashResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_SnapshotRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_SnapshotRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_SnapshotResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_SnapshotResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_WatchRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_WatchRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_WatchCreateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_WatchCreateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_WatchCancelRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_WatchCancelRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_WatchResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_WatchResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_LeaseGrantRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_LeaseGrantRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_LeaseGrantResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_LeaseGrantResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_LeaseRevokeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_LeaseRevokeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_LeaseRevokeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_LeaseRevokeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_LeaseKeepAliveRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_LeaseKeepAliveResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_LeaseTimeToLiveRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_LeaseTimeToLiveResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_Member_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_Member_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_MemberAddRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_MemberAddRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_MemberAddResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_MemberAddResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_MemberRemoveRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_MemberRemoveRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_MemberRemoveResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_MemberRemoveResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_MemberUpdateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_MemberUpdateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_MemberUpdateResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_MemberUpdateResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_MemberListRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_MemberListRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_MemberListResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_MemberListResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_DefragmentRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_DefragmentRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_DefragmentResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_DefragmentResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AlarmRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AlarmRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AlarmMember_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AlarmMember_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AlarmResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AlarmResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_StatusRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_StatusRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_StatusResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_StatusResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthEnableRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthEnableRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthDisableRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthDisableRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthenticateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthenticateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserAddRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserAddRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserGetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserGetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserDeleteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserChangePasswordRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserGrantRoleRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserRevokeRoleRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleAddRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleAddRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleGetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleGetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserListRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserListRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleListRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleListRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleDeleteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthEnableResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthEnableResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthDisableResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthDisableResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthenticateResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthenticateResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserAddResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserAddResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserGetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserGetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserDeleteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserChangePasswordResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserGrantRoleResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserRevokeRoleResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleAddResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleAddResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleGetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleGetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleListResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleListResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthUserListResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthUserListResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleDeleteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n&etcd/etcdserver/etcdserverpb/rpc.proto" + "\022\014etcdserverpb\032\031etcd/mvcc/mvccpb/kv.prot" + "o\032\033etcd/auth/authpb/auth.proto\"\\\n\016Respon" + "seHeader\022\022\n\ncluster_id\030\001 \001(\004\022\021\n\tmember_i" + "d\030\002 \001(\004\022\020\n\010revision\030\003 \001(\003\022\021\n\traft_term\030\004" + " \001(\004\"\344\003\n\014RangeRequest\022\013\n\003key\030\001 \001(\014\022\021\n\tra" + "nge_end\030\002 \001(\014\022\r\n\005limit\030\003 \001(\003\022\020\n\010revision" + "\030\004 \001(\003\0228\n\nsort_order\030\005 \001(\0162$.etcdserverp" + "b.RangeRequest.SortOrder\022:\n\013sort_target\030" + "\006 \001(\0162%.etcdserverpb.RangeRequest.SortTa", "rget\022\024\n\014serializable\030\007 \001(\010\022\021\n\tkeys_only\030" + "\010 \001(\010\022\022\n\ncount_only\030\t \001(\010\022\030\n\020min_mod_rev" + "ision\030\n \001(\003\022\030\n\020max_mod_revision\030\013 \001(\003\022\033\n" + "\023min_create_revision\030\014 \001(\003\022\033\n\023max_create" + "_revision\030\r \001(\003\".\n\tSortOrder\022\010\n\004NONE\020\000\022\n" + "\n\006ASCEND\020\001\022\013\n\007DESCEND\020\002\"B\n\nSortTarget\022\007\n" + "\003KEY\020\000\022\013\n\007VERSION\020\001\022\n\n\006CREATE\020\002\022\007\n\003MOD\020\003" + "\022\t\n\005VALUE\020\004\"y\n\rRangeResponse\022,\n\006header\030\001" + " \001(\0132\034.etcdserverpb.ResponseHeader\022\035\n\003kv" + "s\030\002 \003(\0132\020.mvccpb.KeyValue\022\014\n\004more\030\003 \001(\010\022", "\r\n\005count\030\004 \001(\003\"t\n\nPutRequest\022\013\n\003key\030\001 \001(" + "\014\022\r\n\005value\030\002 \001(\014\022\r\n\005lease\030\003 \001(\003\022\017\n\007prev_" + "kv\030\004 \001(\010\022\024\n\014ignore_value\030\005 \001(\010\022\024\n\014ignore" + "_lease\030\006 \001(\010\"^\n\013PutResponse\022,\n\006header\030\001 " + "\001(\0132\034.etcdserverpb.ResponseHeader\022!\n\007pre" + "v_kv\030\002 \001(\0132\020.mvccpb.KeyValue\"E\n\022DeleteRa" + "ngeRequest\022\013\n\003key\030\001 \001(\014\022\021\n\trange_end\030\002 \001" + "(\014\022\017\n\007prev_kv\030\003 \001(\010\"x\n\023DeleteRangeRespon" + "se\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Respon" + "seHeader\022\017\n\007deleted\030\002 \001(\003\022\"\n\010prev_kvs\030\003 ", "\003(\0132\020.mvccpb.KeyValue\"\357\001\n\tRequestOp\0223\n\rr" + "equest_range\030\001 \001(\0132\032.etcdserverpb.RangeR" + "equestH\000\022/\n\013request_put\030\002 \001(\0132\030.etcdserv" + "erpb.PutRequestH\000\022@\n\024request_delete_rang" + "e\030\003 \001(\0132 .etcdserverpb.DeleteRangeReques" + "tH\000\022/\n\013request_txn\030\004 \001(\0132\030.etcdserverpb." + "TxnRequestH\000B\t\n\007request\"\371\001\n\nResponseOp\0225" + "\n\016response_range\030\001 \001(\0132\033.etcdserverpb.Ra" + "ngeResponseH\000\0221\n\014response_put\030\002 \001(\0132\031.et" + "cdserverpb.PutResponseH\000\022B\n\025response_del", "ete_range\030\003 \001(\0132!.etcdserverpb.DeleteRan" + "geResponseH\000\0221\n\014response_txn\030\004 \001(\0132\031.etc" + "dserverpb.TxnResponseH\000B\n\n\010response\"\372\002\n\007" + "Compare\0223\n\006result\030\001 \001(\0162#.etcdserverpb.C" + "ompare.CompareResult\0223\n\006target\030\002 \001(\0162#.e" + "tcdserverpb.Compare.CompareTarget\022\013\n\003key" + "\030\003 \001(\014\022\021\n\007version\030\004 \001(\003H\000\022\031\n\017create_revi" + "sion\030\005 \001(\003H\000\022\026\n\014mod_revision\030\006 \001(\003H\000\022\017\n\005" + "value\030\007 \001(\014H\000\022\021\n\trange_end\030\010 \001(\014\"@\n\rComp" + "areResult\022\t\n\005EQUAL\020\000\022\013\n\007GREATER\020\001\022\010\n\004LES", "S\020\002\022\r\n\tNOT_EQUAL\020\003\"<\n\rCompareTarget\022\013\n\007V" + "ERSION\020\000\022\n\n\006CREATE\020\001\022\007\n\003MOD\020\002\022\t\n\005VALUE\020\003" + "B\016\n\014target_union\"\210\001\n\nTxnRequest\022&\n\007compa" + "re\030\001 \003(\0132\025.etcdserverpb.Compare\022(\n\007succe" + "ss\030\002 \003(\0132\027.etcdserverpb.RequestOp\022(\n\007fai" + "lure\030\003 \003(\0132\027.etcdserverpb.RequestOp\"{\n\013T" + "xnResponse\022,\n\006header\030\001 \001(\0132\034.etcdserverp" + "b.ResponseHeader\022\021\n\tsucceeded\030\002 \001(\010\022+\n\tr" + "esponses\030\003 \003(\0132\030.etcdserverpb.ResponseOp" + "\"7\n\021CompactionRequest\022\020\n\010revision\030\001 \001(\003\022", "\020\n\010physical\030\002 \001(\010\"B\n\022CompactionResponse\022" + ",\n\006header\030\001 \001(\0132\034.etcdserverpb.ResponseH" + "eader\"\r\n\013HashRequest\"J\n\014HashResponse\022,\n\006" + "header\030\001 \001(\0132\034.etcdserverpb.ResponseHead" + "er\022\014\n\004hash\030\002 \001(\r\"\021\n\017SnapshotRequest\"g\n\020S" + "napshotResponse\022,\n\006header\030\001 \001(\0132\034.etcdse" + "rverpb.ResponseHeader\022\027\n\017remaining_bytes" + "\030\002 \001(\004\022\014\n\004blob\030\003 \001(\014\"\227\001\n\014WatchRequest\022:\n" + "\016create_request\030\001 \001(\0132 .etcdserverpb.Wat" + "chCreateRequestH\000\022:\n\016cancel_request\030\002 \001(", "\0132 .etcdserverpb.WatchCancelRequestH\000B\017\n" + "\rrequest_union\"\333\001\n\022WatchCreateRequest\022\013\n" + "\003key\030\001 \001(\014\022\021\n\trange_end\030\002 \001(\014\022\026\n\016start_r" + "evision\030\003 \001(\003\022\027\n\017progress_notify\030\004 \001(\010\022<" + "\n\007filters\030\005 \003(\0162+.etcdserverpb.WatchCrea" + "teRequest.FilterType\022\017\n\007prev_kv\030\006 \001(\010\"%\n" + "\nFilterType\022\t\n\005NOPUT\020\000\022\014\n\010NODELETE\020\001\"&\n\022" + "WatchCancelRequest\022\020\n\010watch_id\030\001 \001(\003\"\302\001\n" + "\rWatchResponse\022,\n\006header\030\001 \001(\0132\034.etcdser" + "verpb.ResponseHeader\022\020\n\010watch_id\030\002 \001(\003\022\017", "\n\007created\030\003 \001(\010\022\020\n\010canceled\030\004 \001(\010\022\030\n\020com" + "pact_revision\030\005 \001(\003\022\025\n\rcancel_reason\030\006 \001" + "(\t\022\035\n\006events\030\013 \003(\0132\r.mvccpb.Event\",\n\021Lea" + "seGrantRequest\022\013\n\003TTL\030\001 \001(\003\022\n\n\002ID\030\002 \001(\003\"" + "j\n\022LeaseGrantResponse\022,\n\006header\030\001 \001(\0132\034." + "etcdserverpb.ResponseHeader\022\n\n\002ID\030\002 \001(\003\022" + "\013\n\003TTL\030\003 \001(\003\022\r\n\005error\030\004 \001(\t\" \n\022LeaseRevo" + "keRequest\022\n\n\002ID\030\001 \001(\003\"C\n\023LeaseRevokeResp" + "onse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Resp" + "onseHeader\"#\n\025LeaseKeepAliveRequest\022\n\n\002I", "D\030\001 \001(\003\"_\n\026LeaseKeepAliveResponse\022,\n\006hea" + "der\030\001 \001(\0132\034.etcdserverpb.ResponseHeader\022" + "\n\n\002ID\030\002 \001(\003\022\013\n\003TTL\030\003 \001(\003\"2\n\026LeaseTimeToL" + "iveRequest\022\n\n\002ID\030\001 \001(\003\022\014\n\004keys\030\002 \001(\010\"\202\001\n" + "\027LeaseTimeToLiveResponse\022,\n\006header\030\001 \001(\013" + "2\034.etcdserverpb.ResponseHeader\022\n\n\002ID\030\002 \001" + "(\003\022\013\n\003TTL\030\003 \001(\003\022\022\n\ngrantedTTL\030\004 \001(\003\022\014\n\004k" + "eys\030\005 \003(\014\"H\n\006Member\022\n\n\002ID\030\001 \001(\004\022\014\n\004name\030" + "\002 \001(\t\022\020\n\010peerURLs\030\003 \003(\t\022\022\n\nclientURLs\030\004 " + "\003(\t\"$\n\020MemberAddRequest\022\020\n\010peerURLs\030\001 \003(", "\t\"\216\001\n\021MemberAddResponse\022,\n\006header\030\001 \001(\0132" + "\034.etcdserverpb.ResponseHeader\022$\n\006member\030" + "\002 \001(\0132\024.etcdserverpb.Member\022%\n\007members\030\003" + " \003(\0132\024.etcdserverpb.Member\"!\n\023MemberRemo" + "veRequest\022\n\n\002ID\030\001 \001(\004\"k\n\024MemberRemoveRes" + "ponse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Res" + "ponseHeader\022%\n\007members\030\002 \003(\0132\024.etcdserve" + "rpb.Member\"3\n\023MemberUpdateRequest\022\n\n\002ID\030" + "\001 \001(\004\022\020\n\010peerURLs\030\002 \003(\t\"k\n\024MemberUpdateR" + "esponse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.R", "esponseHeader\022%\n\007members\030\002 \003(\0132\024.etcdser" + "verpb.Member\"\023\n\021MemberListRequest\"i\n\022Mem" + "berListResponse\022,\n\006header\030\001 \001(\0132\034.etcdse" + "rverpb.ResponseHeader\022%\n\007members\030\002 \003(\0132\024" + ".etcdserverpb.Member\"\023\n\021DefragmentReques" + "t\"B\n\022DefragmentResponse\022,\n\006header\030\001 \001(\0132" + "\034.etcdserverpb.ResponseHeader\"\266\001\n\014AlarmR" + "equest\0226\n\006action\030\001 \001(\0162&.etcdserverpb.Al" + "armRequest.AlarmAction\022\020\n\010memberID\030\002 \001(\004" + "\022&\n\005alarm\030\003 \001(\0162\027.etcdserverpb.AlarmType", "\"4\n\013AlarmAction\022\007\n\003GET\020\000\022\014\n\010ACTIVATE\020\001\022\016" + "\n\nDEACTIVATE\020\002\"G\n\013AlarmMember\022\020\n\010memberI" + "D\030\001 \001(\004\022&\n\005alarm\030\002 \001(\0162\027.etcdserverpb.Al" + "armType\"h\n\rAlarmResponse\022,\n\006header\030\001 \001(\013" + "2\034.etcdserverpb.ResponseHeader\022)\n\006alarms" + "\030\002 \003(\0132\031.etcdserverpb.AlarmMember\"\017\n\rSta" + "tusRequest\"\224\001\n\016StatusResponse\022,\n\006header\030" + "\001 \001(\0132\034.etcdserverpb.ResponseHeader\022\017\n\007v" + "ersion\030\002 \001(\t\022\016\n\006dbSize\030\003 \001(\003\022\016\n\006leader\030\004" + " \001(\004\022\021\n\traftIndex\030\005 \001(\004\022\020\n\010raftTerm\030\006 \001(", "\004\"\023\n\021AuthEnableRequest\"\024\n\022AuthDisableReq" + "uest\"5\n\023AuthenticateRequest\022\014\n\004name\030\001 \001(" + "\t\022\020\n\010password\030\002 \001(\t\"4\n\022AuthUserAddReques" + "t\022\014\n\004name\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\"\n\022Aut" + "hUserGetRequest\022\014\n\004name\030\001 \001(\t\"%\n\025AuthUse" + "rDeleteRequest\022\014\n\004name\030\001 \001(\t\"?\n\035AuthUser" + "ChangePasswordRequest\022\014\n\004name\030\001 \001(\t\022\020\n\010p" + "assword\030\002 \001(\t\"6\n\030AuthUserGrantRoleReques" + "t\022\014\n\004user\030\001 \001(\t\022\014\n\004role\030\002 \001(\t\"7\n\031AuthUse" + "rRevokeRoleRequest\022\014\n\004name\030\001 \001(\t\022\014\n\004role", "\030\002 \001(\t\"\"\n\022AuthRoleAddRequest\022\014\n\004name\030\001 \001" + "(\t\"\"\n\022AuthRoleGetRequest\022\014\n\004role\030\001 \001(\t\"\025" + "\n\023AuthUserListRequest\"\025\n\023AuthRoleListReq" + "uest\"%\n\025AuthRoleDeleteRequest\022\014\n\004role\030\001 " + "\001(\t\"P\n\036AuthRoleGrantPermissionRequest\022\014\n" + "\004name\030\001 \001(\t\022 \n\004perm\030\002 \001(\0132\022.authpb.Permi" + "ssion\"O\n\037AuthRoleRevokePermissionRequest" + "\022\014\n\004role\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\021\n\trange_end" + "\030\003 \001(\t\"B\n\022AuthEnableResponse\022,\n\006header\030\001" + " \001(\0132\034.etcdserverpb.ResponseHeader\"C\n\023Au", "thDisableResponse\022,\n\006header\030\001 \001(\0132\034.etcd" + "serverpb.ResponseHeader\"S\n\024AuthenticateR" + "esponse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.R" + "esponseHeader\022\r\n\005token\030\002 \001(\t\"C\n\023AuthUser" + "AddResponse\022,\n\006header\030\001 \001(\0132\034.etcdserver" + "pb.ResponseHeader\"R\n\023AuthUserGetResponse" + "\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Response" + "Header\022\r\n\005roles\030\002 \003(\t\"F\n\026AuthUserDeleteR" + "esponse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.R" + "esponseHeader\"N\n\036AuthUserChangePasswordR", "esponse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.R" + "esponseHeader\"I\n\031AuthUserGrantRoleRespon" + "se\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Respon" + "seHeader\"J\n\032AuthUserRevokeRoleResponse\022," + "\n\006header\030\001 \001(\0132\034.etcdserverpb.ResponseHe" + "ader\"C\n\023AuthRoleAddResponse\022,\n\006header\030\001 " + "\001(\0132\034.etcdserverpb.ResponseHeader\"e\n\023Aut" + "hRoleGetResponse\022,\n\006header\030\001 \001(\0132\034.etcds" + "erverpb.ResponseHeader\022 \n\004perm\030\002 \003(\0132\022.a" + "uthpb.Permission\"S\n\024AuthRoleListResponse", "\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Response" + "Header\022\r\n\005roles\030\002 \003(\t\"S\n\024AuthUserListRes" + "ponse\022,\n\006header\030\001 \001(\0132\034.etcdserverpb.Res" + "ponseHeader\022\r\n\005users\030\002 \003(\t\"F\n\026AuthRoleDe" + "leteResponse\022,\n\006header\030\001 \001(\0132\034.etcdserve" + "rpb.ResponseHeader\"O\n\037AuthRoleGrantPermi" + "ssionResponse\022,\n\006header\030\001 \001(\0132\034.etcdserv" + "erpb.ResponseHeader\"P\n AuthRoleRevokePer" + "missionResponse\022,\n\006header\030\001 \001(\0132\034.etcdse" + "rverpb.ResponseHeader*\"\n\tAlarmType\022\010\n\004NO", "NE\020\000\022\013\n\007NOSPACE\020\0012\352\002\n\002KV\022B\n\005Range\022\032.etcd" + "serverpb.RangeRequest\032\033.etcdserverpb.Ran" + "geResponse\"\000\022<\n\003Put\022\030.etcdserverpb.PutRe" + "quest\032\031.etcdserverpb.PutResponse\"\000\022T\n\013De" + "leteRange\022 .etcdserverpb.DeleteRangeRequ" + "est\032!.etcdserverpb.DeleteRangeResponse\"\000" + "\022<\n\003Txn\022\030.etcdserverpb.TxnRequest\032\031.etcd" + "serverpb.TxnResponse\"\000\022N\n\007Compact\022\037.etcd" + "serverpb.CompactionRequest\032 .etcdserverp" + "b.CompactionResponse\"\0002O\n\005Watch\022F\n\005Watch", "\022\032.etcdserverpb.WatchRequest\032\033.etcdserve" + "rpb.WatchResponse\"\000(\0010\0012\365\002\n\005Lease\022Q\n\nLea" + "seGrant\022\037.etcdserverpb.LeaseGrantRequest" + "\032 .etcdserverpb.LeaseGrantResponse\"\000\022T\n\013" + "LeaseRevoke\022 .etcdserverpb.LeaseRevokeRe" + "quest\032!.etcdserverpb.LeaseRevokeResponse" + "\"\000\022a\n\016LeaseKeepAlive\022#.etcdserverpb.Leas" + "eKeepAliveRequest\032$.etcdserverpb.LeaseKe" + "epAliveResponse\"\000(\0010\001\022`\n\017LeaseTimeToLive" + "\022$.etcdserverpb.LeaseTimeToLiveRequest\032%", ".etcdserverpb.LeaseTimeToLiveResponse\"\0002" + "\336\002\n\007Cluster\022N\n\tMemberAdd\022\036.etcdserverpb." + "MemberAddRequest\032\037.etcdserverpb.MemberAd" + "dResponse\"\000\022W\n\014MemberRemove\022!.etcdserver" + "pb.MemberRemoveRequest\032\".etcdserverpb.Me" + "mberRemoveResponse\"\000\022W\n\014MemberUpdate\022!.e" + "tcdserverpb.MemberUpdateRequest\032\".etcdse" + "rverpb.MemberUpdateResponse\"\000\022Q\n\nMemberL" + "ist\022\037.etcdserverpb.MemberListRequest\032 .e" + "tcdserverpb.MemberListResponse\"\0002\373\002\n\013Mai", "ntenance\022B\n\005Alarm\022\032.etcdserverpb.AlarmRe" + "quest\032\033.etcdserverpb.AlarmResponse\"\000\022E\n\006" + "Status\022\033.etcdserverpb.StatusRequest\032\034.et" + "cdserverpb.StatusResponse\"\000\022Q\n\nDefragmen" + "t\022\037.etcdserverpb.DefragmentRequest\032 .etc" + "dserverpb.DefragmentResponse\"\000\022?\n\004Hash\022\031" + ".etcdserverpb.HashRequest\032\032.etcdserverpb" + ".HashResponse\"\000\022M\n\010Snapshot\022\035.etcdserver" + "pb.SnapshotRequest\032\036.etcdserverpb.Snapsh" + "otResponse\"\0000\0012\335\013\n\004Auth\022Q\n\nAuthEnable\022\037.", "etcdserverpb.AuthEnableRequest\032 .etcdser" + "verpb.AuthEnableResponse\"\000\022T\n\013AuthDisabl" + "e\022 .etcdserverpb.AuthDisableRequest\032!.et" + "cdserverpb.AuthDisableResponse\"\000\022W\n\014Auth" + "enticate\022!.etcdserverpb.AuthenticateRequ" + "est\032\".etcdserverpb.AuthenticateResponse\"" + "\000\022P\n\007UserAdd\022 .etcdserverpb.AuthUserAddR" + "equest\032!.etcdserverpb.AuthUserAddRespons" + "e\"\000\022P\n\007UserGet\022 .etcdserverpb.AuthUserGe" + "tRequest\032!.etcdserverpb.AuthUserGetRespo", "nse\"\000\022S\n\010UserList\022!.etcdserverpb.AuthUse" + "rListRequest\032\".etcdserverpb.AuthUserList" + "Response\"\000\022Y\n\nUserDelete\022#.etcdserverpb." + "AuthUserDeleteRequest\032$.etcdserverpb.Aut" + "hUserDeleteResponse\"\000\022q\n\022UserChangePassw" + "ord\022+.etcdserverpb.AuthUserChangePasswor" + "dRequest\032,.etcdserverpb.AuthUserChangePa" + "sswordResponse\"\000\022b\n\rUserGrantRole\022&.etcd" + "serverpb.AuthUserGrantRoleRequest\032\'.etcd" + "serverpb.AuthUserGrantRoleResponse\"\000\022e\n\016", "UserRevokeRole\022\'.etcdserverpb.AuthUserRe" + "vokeRoleRequest\032(.etcdserverpb.AuthUserR" + "evokeRoleResponse\"\000\022P\n\007RoleAdd\022 .etcdser" + "verpb.AuthRoleAddRequest\032!.etcdserverpb." + "AuthRoleAddResponse\"\000\022P\n\007RoleGet\022 .etcds" + "erverpb.AuthRoleGetRequest\032!.etcdserverp" + "b.AuthRoleGetResponse\"\000\022S\n\010RoleList\022!.et" + "cdserverpb.AuthRoleListRequest\032\".etcdser" + "verpb.AuthRoleListResponse\"\000\022Y\n\nRoleDele" + "te\022#.etcdserverpb.AuthRoleDeleteRequest\032", "$.etcdserverpb.AuthRoleDeleteResponse\"\000\022" + "t\n\023RoleGrantPermission\022,.etcdserverpb.Au" + "thRoleGrantPermissionRequest\032-.etcdserve" + "rpb.AuthRoleGrantPermissionResponse\"\000\022w\n" + "\024RoleRevokePermission\022-.etcdserverpb.Aut" + "hRoleRevokePermissionRequest\032..etcdserve" + "rpb.AuthRoleRevokePermissionResponse\"\000b\006" + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { mvccpb.Kv.getDescriptor(), authpb.Auth.getDescriptor(), }, assigner); internal_static_etcdserverpb_ResponseHeader_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_etcdserverpb_ResponseHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_ResponseHeader_descriptor, new java.lang.String[] { "ClusterId", "MemberId", "Revision", "RaftTerm", }); internal_static_etcdserverpb_RangeRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_etcdserverpb_RangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_RangeRequest_descriptor, new java.lang.String[] { "Key", "RangeEnd", "Limit", "Revision", "SortOrder", "SortTarget", "Serializable", "KeysOnly", "CountOnly", "MinModRevision", "MaxModRevision", "MinCreateRevision", "MaxCreateRevision", }); internal_static_etcdserverpb_RangeResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_etcdserverpb_RangeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_RangeResponse_descriptor, new java.lang.String[] { "Header", "Kvs", "More", "Count", }); internal_static_etcdserverpb_PutRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_etcdserverpb_PutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_PutRequest_descriptor, new java.lang.String[] { "Key", "Value", "Lease", "PrevKv", "IgnoreValue", "IgnoreLease", }); internal_static_etcdserverpb_PutResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_etcdserverpb_PutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_PutResponse_descriptor, new java.lang.String[] { "Header", "PrevKv", }); internal_static_etcdserverpb_DeleteRangeRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_etcdserverpb_DeleteRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_DeleteRangeRequest_descriptor, new java.lang.String[] { "Key", "RangeEnd", "PrevKv", }); internal_static_etcdserverpb_DeleteRangeResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_etcdserverpb_DeleteRangeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_DeleteRangeResponse_descriptor, new java.lang.String[] { "Header", "Deleted", "PrevKvs", }); internal_static_etcdserverpb_RequestOp_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_etcdserverpb_RequestOp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_RequestOp_descriptor, new java.lang.String[] { "RequestRange", "RequestPut", "RequestDeleteRange", "RequestTxn", "Request", }); internal_static_etcdserverpb_ResponseOp_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_etcdserverpb_ResponseOp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_ResponseOp_descriptor, new java.lang.String[] { "ResponseRange", "ResponsePut", "ResponseDeleteRange", "ResponseTxn", "Response", }); internal_static_etcdserverpb_Compare_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_etcdserverpb_Compare_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_Compare_descriptor, new java.lang.String[] { "Result", "Target", "Key", "Version", "CreateRevision", "ModRevision", "Value", "RangeEnd", "TargetUnion", }); internal_static_etcdserverpb_TxnRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_etcdserverpb_TxnRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_TxnRequest_descriptor, new java.lang.String[] { "Compare", "Success", "Failure", }); internal_static_etcdserverpb_TxnResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_etcdserverpb_TxnResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_TxnResponse_descriptor, new java.lang.String[] { "Header", "Succeeded", "Responses", }); internal_static_etcdserverpb_CompactionRequest_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_etcdserverpb_CompactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_CompactionRequest_descriptor, new java.lang.String[] { "Revision", "Physical", }); internal_static_etcdserverpb_CompactionResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_etcdserverpb_CompactionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_CompactionResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_HashRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_etcdserverpb_HashRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_HashRequest_descriptor, new java.lang.String[] { }); internal_static_etcdserverpb_HashResponse_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_etcdserverpb_HashResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_HashResponse_descriptor, new java.lang.String[] { "Header", "Hash", }); internal_static_etcdserverpb_SnapshotRequest_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_etcdserverpb_SnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_SnapshotRequest_descriptor, new java.lang.String[] { }); internal_static_etcdserverpb_SnapshotResponse_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_etcdserverpb_SnapshotResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_SnapshotResponse_descriptor, new java.lang.String[] { "Header", "RemainingBytes", "Blob", }); internal_static_etcdserverpb_WatchRequest_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_etcdserverpb_WatchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_WatchRequest_descriptor, new java.lang.String[] { "CreateRequest", "CancelRequest", "RequestUnion", }); internal_static_etcdserverpb_WatchCreateRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_etcdserverpb_WatchCreateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_WatchCreateRequest_descriptor, new java.lang.String[] { "Key", "RangeEnd", "StartRevision", "ProgressNotify", "Filters", "PrevKv", }); internal_static_etcdserverpb_WatchCancelRequest_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_etcdserverpb_WatchCancelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_WatchCancelRequest_descriptor, new java.lang.String[] { "WatchId", }); internal_static_etcdserverpb_WatchResponse_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_etcdserverpb_WatchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_WatchResponse_descriptor, new java.lang.String[] { "Header", "WatchId", "Created", "Canceled", "CompactRevision", "CancelReason", "Events", }); internal_static_etcdserverpb_LeaseGrantRequest_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_etcdserverpb_LeaseGrantRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_LeaseGrantRequest_descriptor, new java.lang.String[] { "TTL", "ID", }); internal_static_etcdserverpb_LeaseGrantResponse_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_etcdserverpb_LeaseGrantResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_LeaseGrantResponse_descriptor, new java.lang.String[] { "Header", "ID", "TTL", "Error", }); internal_static_etcdserverpb_LeaseRevokeRequest_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_etcdserverpb_LeaseRevokeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_LeaseRevokeRequest_descriptor, new java.lang.String[] { "ID", }); internal_static_etcdserverpb_LeaseRevokeResponse_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_etcdserverpb_LeaseRevokeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_LeaseRevokeResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_etcdserverpb_LeaseKeepAliveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_LeaseKeepAliveRequest_descriptor, new java.lang.String[] { "ID", }); internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_etcdserverpb_LeaseKeepAliveResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_LeaseKeepAliveResponse_descriptor, new java.lang.String[] { "Header", "ID", "TTL", }); internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_etcdserverpb_LeaseTimeToLiveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_LeaseTimeToLiveRequest_descriptor, new java.lang.String[] { "ID", "Keys", }); internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_etcdserverpb_LeaseTimeToLiveResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_LeaseTimeToLiveResponse_descriptor, new java.lang.String[] { "Header", "ID", "TTL", "GrantedTTL", "Keys", }); internal_static_etcdserverpb_Member_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_etcdserverpb_Member_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_Member_descriptor, new java.lang.String[] { "ID", "Name", "PeerURLs", "ClientURLs", }); internal_static_etcdserverpb_MemberAddRequest_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_etcdserverpb_MemberAddRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_MemberAddRequest_descriptor, new java.lang.String[] { "PeerURLs", }); internal_static_etcdserverpb_MemberAddResponse_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_etcdserverpb_MemberAddResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_MemberAddResponse_descriptor, new java.lang.String[] { "Header", "Member", "Members", }); internal_static_etcdserverpb_MemberRemoveRequest_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_etcdserverpb_MemberRemoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_MemberRemoveRequest_descriptor, new java.lang.String[] { "ID", }); internal_static_etcdserverpb_MemberRemoveResponse_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_etcdserverpb_MemberRemoveResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_MemberRemoveResponse_descriptor, new java.lang.String[] { "Header", "Members", }); internal_static_etcdserverpb_MemberUpdateRequest_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_etcdserverpb_MemberUpdateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_MemberUpdateRequest_descriptor, new java.lang.String[] { "ID", "PeerURLs", }); internal_static_etcdserverpb_MemberUpdateResponse_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_etcdserverpb_MemberUpdateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_MemberUpdateResponse_descriptor, new java.lang.String[] { "Header", "Members", }); internal_static_etcdserverpb_MemberListRequest_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_etcdserverpb_MemberListRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_MemberListRequest_descriptor, new java.lang.String[] { }); internal_static_etcdserverpb_MemberListResponse_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_etcdserverpb_MemberListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_MemberListResponse_descriptor, new java.lang.String[] { "Header", "Members", }); internal_static_etcdserverpb_DefragmentRequest_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_etcdserverpb_DefragmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_DefragmentRequest_descriptor, new java.lang.String[] { }); internal_static_etcdserverpb_DefragmentResponse_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_etcdserverpb_DefragmentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_DefragmentResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_AlarmRequest_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_etcdserverpb_AlarmRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AlarmRequest_descriptor, new java.lang.String[] { "Action", "MemberID", "Alarm", }); internal_static_etcdserverpb_AlarmMember_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_etcdserverpb_AlarmMember_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AlarmMember_descriptor, new java.lang.String[] { "MemberID", "Alarm", }); internal_static_etcdserverpb_AlarmResponse_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_etcdserverpb_AlarmResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AlarmResponse_descriptor, new java.lang.String[] { "Header", "Alarms", }); internal_static_etcdserverpb_StatusRequest_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_etcdserverpb_StatusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_StatusRequest_descriptor, new java.lang.String[] { }); internal_static_etcdserverpb_StatusResponse_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_etcdserverpb_StatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_StatusResponse_descriptor, new java.lang.String[] { "Header", "Version", "DbSize", "Leader", "RaftIndex", "RaftTerm", }); internal_static_etcdserverpb_AuthEnableRequest_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_etcdserverpb_AuthEnableRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthEnableRequest_descriptor, new java.lang.String[] { }); internal_static_etcdserverpb_AuthDisableRequest_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_etcdserverpb_AuthDisableRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthDisableRequest_descriptor, new java.lang.String[] { }); internal_static_etcdserverpb_AuthenticateRequest_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_etcdserverpb_AuthenticateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthenticateRequest_descriptor, new java.lang.String[] { "Name", "Password", }); internal_static_etcdserverpb_AuthUserAddRequest_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_etcdserverpb_AuthUserAddRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserAddRequest_descriptor, new java.lang.String[] { "Name", "Password", }); internal_static_etcdserverpb_AuthUserGetRequest_descriptor = getDescriptor().getMessageTypes().get(50); internal_static_etcdserverpb_AuthUserGetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserGetRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor = getDescriptor().getMessageTypes().get(51); internal_static_etcdserverpb_AuthUserDeleteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserDeleteRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor = getDescriptor().getMessageTypes().get(52); internal_static_etcdserverpb_AuthUserChangePasswordRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserChangePasswordRequest_descriptor, new java.lang.String[] { "Name", "Password", }); internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor = getDescriptor().getMessageTypes().get(53); internal_static_etcdserverpb_AuthUserGrantRoleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserGrantRoleRequest_descriptor, new java.lang.String[] { "User", "Role", }); internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor = getDescriptor().getMessageTypes().get(54); internal_static_etcdserverpb_AuthUserRevokeRoleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserRevokeRoleRequest_descriptor, new java.lang.String[] { "Name", "Role", }); internal_static_etcdserverpb_AuthRoleAddRequest_descriptor = getDescriptor().getMessageTypes().get(55); internal_static_etcdserverpb_AuthRoleAddRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleAddRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_etcdserverpb_AuthRoleGetRequest_descriptor = getDescriptor().getMessageTypes().get(56); internal_static_etcdserverpb_AuthRoleGetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleGetRequest_descriptor, new java.lang.String[] { "Role", }); internal_static_etcdserverpb_AuthUserListRequest_descriptor = getDescriptor().getMessageTypes().get(57); internal_static_etcdserverpb_AuthUserListRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserListRequest_descriptor, new java.lang.String[] { }); internal_static_etcdserverpb_AuthRoleListRequest_descriptor = getDescriptor().getMessageTypes().get(58); internal_static_etcdserverpb_AuthRoleListRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleListRequest_descriptor, new java.lang.String[] { }); internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor = getDescriptor().getMessageTypes().get(59); internal_static_etcdserverpb_AuthRoleDeleteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor, new java.lang.String[] { "Role", }); internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor = getDescriptor().getMessageTypes().get(60); internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor, new java.lang.String[] { "Name", "Perm", }); internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor = getDescriptor().getMessageTypes().get(61); internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor, new java.lang.String[] { "Role", "Key", "RangeEnd", }); internal_static_etcdserverpb_AuthEnableResponse_descriptor = getDescriptor().getMessageTypes().get(62); internal_static_etcdserverpb_AuthEnableResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthEnableResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_AuthDisableResponse_descriptor = getDescriptor().getMessageTypes().get(63); internal_static_etcdserverpb_AuthDisableResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthDisableResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_AuthenticateResponse_descriptor = getDescriptor().getMessageTypes().get(64); internal_static_etcdserverpb_AuthenticateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthenticateResponse_descriptor, new java.lang.String[] { "Header", "Token", }); internal_static_etcdserverpb_AuthUserAddResponse_descriptor = getDescriptor().getMessageTypes().get(65); internal_static_etcdserverpb_AuthUserAddResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserAddResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_AuthUserGetResponse_descriptor = getDescriptor().getMessageTypes().get(66); internal_static_etcdserverpb_AuthUserGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserGetResponse_descriptor, new java.lang.String[] { "Header", "Roles", }); internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor = getDescriptor().getMessageTypes().get(67); internal_static_etcdserverpb_AuthUserDeleteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserDeleteResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor = getDescriptor().getMessageTypes().get(68); internal_static_etcdserverpb_AuthUserChangePasswordResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserChangePasswordResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor = getDescriptor().getMessageTypes().get(69); internal_static_etcdserverpb_AuthUserGrantRoleResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserGrantRoleResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor = getDescriptor().getMessageTypes().get(70); internal_static_etcdserverpb_AuthUserRevokeRoleResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserRevokeRoleResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_AuthRoleAddResponse_descriptor = getDescriptor().getMessageTypes().get(71); internal_static_etcdserverpb_AuthRoleAddResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleAddResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_AuthRoleGetResponse_descriptor = getDescriptor().getMessageTypes().get(72); internal_static_etcdserverpb_AuthRoleGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleGetResponse_descriptor, new java.lang.String[] { "Header", "Perm", }); internal_static_etcdserverpb_AuthRoleListResponse_descriptor = getDescriptor().getMessageTypes().get(73); internal_static_etcdserverpb_AuthRoleListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleListResponse_descriptor, new java.lang.String[] { "Header", "Roles", }); internal_static_etcdserverpb_AuthUserListResponse_descriptor = getDescriptor().getMessageTypes().get(74); internal_static_etcdserverpb_AuthUserListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthUserListResponse_descriptor, new java.lang.String[] { "Header", "Users", }); internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor = getDescriptor().getMessageTypes().get(75); internal_static_etcdserverpb_AuthRoleDeleteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor = getDescriptor().getMessageTypes().get(76); internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor = getDescriptor().getMessageTypes().get(77); internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_etcdserverpb_AuthRoleRevokePermissionResponse_descriptor, new java.lang.String[] { "Header", }); mvccpb.Kv.getDescriptor(); authpb.Auth.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy