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

protobuf.java.io.helidon.config.etcd.internal.client.proto.RangeRequest Maven / Gradle / Ivy

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

package io.helidon.config.etcd.internal.client.proto;

/**
 * Protobuf type {@code etcdserverpb.RangeRequest}
 */
public  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();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {

            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 io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_RangeRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_RangeRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.helidon.config.etcd.internal.client.proto.RangeRequest.class, io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.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.
   * 
* * 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 io.helidon.config.etcd.internal.client.proto.RangeRequest.SortOrder getSortOrder() { io.helidon.config.etcd.internal.client.proto.RangeRequest.SortOrder result = io.helidon.config.etcd.internal.client.proto.RangeRequest.SortOrder.valueOf(sortOrder_); return result == null ? io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.RangeRequest.SortTarget getSortTarget() { io.helidon.config.etcd.internal.client.proto.RangeRequest.SortTarget result = io.helidon.config.etcd.internal.client.proto.RangeRequest.SortTarget.valueOf(sortTarget_); return result == null ? io.helidon.config.etcd.internal.client.proto.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_ != io.helidon.config.etcd.internal.client.proto.RangeRequest.SortOrder.NONE.getNumber()) { output.writeEnum(5, sortOrder_); } if (sortTarget_ != io.helidon.config.etcd.internal.client.proto.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_ != io.helidon.config.etcd.internal.client.proto.RangeRequest.SortOrder.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, sortOrder_); } if (sortTarget_ != io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.RangeRequest)) { return super.equals(obj); } io.helidon.config.etcd.internal.client.proto.RangeRequest other = (io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.RangeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.helidon.config.etcd.internal.client.proto.RangeRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.helidon.config.etcd.internal.client.proto.RangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.helidon.config.etcd.internal.client.proto.RangeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.helidon.config.etcd.internal.client.proto.RangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.helidon.config.etcd.internal.client.proto.RangeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.helidon.config.etcd.internal.client.proto.RangeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.RangeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.RangeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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) io.helidon.config.etcd.internal.client.proto.RangeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_RangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_RangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.helidon.config.etcd.internal.client.proto.RangeRequest.class, io.helidon.config.etcd.internal.client.proto.RangeRequest.Builder.class); } // Construct using io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_RangeRequest_descriptor; } public io.helidon.config.etcd.internal.client.proto.RangeRequest getDefaultInstanceForType() { return io.helidon.config.etcd.internal.client.proto.RangeRequest.getDefaultInstance(); } public io.helidon.config.etcd.internal.client.proto.RangeRequest build() { io.helidon.config.etcd.internal.client.proto.RangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public io.helidon.config.etcd.internal.client.proto.RangeRequest buildPartial() { io.helidon.config.etcd.internal.client.proto.RangeRequest result = new io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.RangeRequest) { return mergeFrom((io.helidon.config.etcd.internal.client.proto.RangeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.helidon.config.etcd.internal.client.proto.RangeRequest other) { if (other == io.helidon.config.etcd.internal.client.proto.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 { io.helidon.config.etcd.internal.client.proto.RangeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.helidon.config.etcd.internal.client.proto.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.
     * 
* * int64 limit = 3; */ public long getLimit() { return limit_; } /** *
     * limit is a limit on the number of keys returned for the request.
     * 
* * 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.
     * 
* * 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 io.helidon.config.etcd.internal.client.proto.RangeRequest.SortOrder getSortOrder() { io.helidon.config.etcd.internal.client.proto.RangeRequest.SortOrder result = io.helidon.config.etcd.internal.client.proto.RangeRequest.SortOrder.valueOf(sortOrder_); return result == null ? io.helidon.config.etcd.internal.client.proto.RangeRequest.SortOrder.UNRECOGNIZED : result; } /** *
     * sort_order is the order for returned sorted results.
     * 
* * .etcdserverpb.RangeRequest.SortOrder sort_order = 5; */ public Builder setSortOrder(io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.RangeRequest.SortTarget getSortTarget() { io.helidon.config.etcd.internal.client.proto.RangeRequest.SortTarget result = io.helidon.config.etcd.internal.client.proto.RangeRequest.SortTarget.valueOf(sortTarget_); return result == null ? io.helidon.config.etcd.internal.client.proto.RangeRequest.SortTarget.UNRECOGNIZED : result; } /** *
     * sort_target is the key-value field to use for sorting.
     * 
* * .etcdserverpb.RangeRequest.SortTarget sort_target = 6; */ public Builder setSortTarget(io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.RangeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.helidon.config.etcd.internal.client.proto.RangeRequest(); } public static io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.RangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy