io.helidon.config.etcd.internal.client.proto.RangeRequest Maven / Gradle / Ivy
// 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;
sortOrder_ = 0;
sortTarget_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RangeRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_RangeRequest_descriptor;
}
@java.lang.Override
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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SortOrder valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SortTarget valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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;
* @return The key.
*/
@java.lang.Override
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;
* @return The rangeEnd.
*/
@java.lang.Override
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;
* @return The limit.
*/
@java.lang.Override
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;
* @return The revision.
*/
@java.lang.Override
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;
* @return The enum numeric value on the wire for sortOrder.
*/
@java.lang.Override public int getSortOrderValue() {
return sortOrder_;
}
/**
*
* sort_order is the order for returned sorted results.
*
*
* .etcdserverpb.RangeRequest.SortOrder sort_order = 5;
* @return The sortOrder.
*/
@java.lang.Override public io.helidon.config.etcd.internal.client.proto.RangeRequest.SortOrder getSortOrder() {
@SuppressWarnings("deprecation")
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;
* @return The enum numeric value on the wire for sortTarget.
*/
@java.lang.Override public int getSortTargetValue() {
return sortTarget_;
}
/**
*
* sort_target is the key-value field to use for sorting.
*
*
* .etcdserverpb.RangeRequest.SortTarget sort_target = 6;
* @return The sortTarget.
*/
@java.lang.Override public io.helidon.config.etcd.internal.client.proto.RangeRequest.SortTarget getSortTarget() {
@SuppressWarnings("deprecation")
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;
* @return The serializable.
*/
@java.lang.Override
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;
* @return The keysOnly.
*/
@java.lang.Override
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;
* @return The countOnly.
*/
@java.lang.Override
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;
* @return The minModRevision.
*/
@java.lang.Override
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;
* @return The maxModRevision.
*/
@java.lang.Override
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;
* @return The minCreateRevision.
*/
@java.lang.Override
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;
* @return The maxCreateRevision.
*/
@java.lang.Override
public long getMaxCreateRevision() {
return maxCreateRevision_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
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_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.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;
if (!getKey()
.equals(other.getKey())) return false;
if (!getRangeEnd()
.equals(other.getRangeEnd())) return false;
if (getLimit()
!= other.getLimit()) return false;
if (getRevision()
!= other.getRevision()) return false;
if (sortOrder_ != other.sortOrder_) return false;
if (sortTarget_ != other.sortTarget_) return false;
if (getSerializable()
!= other.getSerializable()) return false;
if (getKeysOnly()
!= other.getKeysOnly()) return false;
if (getCountOnly()
!= other.getCountOnly()) return false;
if (getMinModRevision()
!= other.getMinModRevision()) return false;
if (getMaxModRevision()
!= other.getMaxModRevision()) return false;
if (getMinCreateRevision()
!= other.getMinCreateRevision()) return false;
if (getMaxCreateRevision()
!= other.getMaxCreateRevision()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + getUnknownFields().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);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* 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;
}
@java.lang.Override
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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.helidon.config.etcd.internal.client.proto.EtcdProto.internal_static_etcdserverpb_RangeRequest_descriptor;
}
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.RangeRequest getDefaultInstanceForType() {
return io.helidon.config.etcd.internal.client.proto.RangeRequest.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
key_ = input.readBytes();
break;
} // case 10
case 18: {
rangeEnd_ = input.readBytes();
break;
} // case 18
case 24: {
limit_ = input.readInt64();
break;
} // case 24
case 32: {
revision_ = input.readInt64();
break;
} // case 32
case 40: {
sortOrder_ = input.readEnum();
break;
} // case 40
case 48: {
sortTarget_ = input.readEnum();
break;
} // case 48
case 56: {
serializable_ = input.readBool();
break;
} // case 56
case 64: {
keysOnly_ = input.readBool();
break;
} // case 64
case 72: {
countOnly_ = input.readBool();
break;
} // case 72
case 80: {
minModRevision_ = input.readInt64();
break;
} // case 80
case 88: {
maxModRevision_ = input.readInt64();
break;
} // case 88
case 96: {
minCreateRevision_ = input.readInt64();
break;
} // case 96
case 104: {
maxCreateRevision_ = input.readInt64();
break;
} // case 104
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private 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;
* @return The key.
*/
@java.lang.Override
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;
* @param value The key to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The rangeEnd.
*/
@java.lang.Override
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;
* @param value The rangeEnd to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The limit.
*/
@java.lang.Override
public long getLimit() {
return limit_;
}
/**
*
* limit is a limit on the number of keys returned for the request.
*
*
* int64 limit = 3;
* @param value The limit to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The revision.
*/
@java.lang.Override
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;
* @param value The revision to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The enum numeric value on the wire for sortOrder.
*/
@java.lang.Override public int getSortOrderValue() {
return sortOrder_;
}
/**
*
* sort_order is the order for returned sorted results.
*
*
* .etcdserverpb.RangeRequest.SortOrder sort_order = 5;
* @param value The enum numeric value on the wire for sortOrder to set.
* @return This builder for chaining.
*/
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;
* @return The sortOrder.
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.RangeRequest.SortOrder getSortOrder() {
@SuppressWarnings("deprecation")
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;
* @param value The sortOrder to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The enum numeric value on the wire for sortTarget.
*/
@java.lang.Override public int getSortTargetValue() {
return sortTarget_;
}
/**
*
* sort_target is the key-value field to use for sorting.
*
*
* .etcdserverpb.RangeRequest.SortTarget sort_target = 6;
* @param value The enum numeric value on the wire for sortTarget to set.
* @return This builder for chaining.
*/
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;
* @return The sortTarget.
*/
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.RangeRequest.SortTarget getSortTarget() {
@SuppressWarnings("deprecation")
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;
* @param value The sortTarget to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The serializable.
*/
@java.lang.Override
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;
* @param value The serializable to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The keysOnly.
*/
@java.lang.Override
public boolean getKeysOnly() {
return keysOnly_;
}
/**
*
* keys_only when set returns only the keys and not the values.
*
*
* bool keys_only = 8;
* @param value The keysOnly to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The countOnly.
*/
@java.lang.Override
public boolean getCountOnly() {
return countOnly_;
}
/**
*
* count_only when set returns only the count of the keys in the range.
*
*
* bool count_only = 9;
* @param value The countOnly to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The minModRevision.
*/
@java.lang.Override
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;
* @param value The minModRevision to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The maxModRevision.
*/
@java.lang.Override
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;
* @param value The maxModRevision to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The minCreateRevision.
*/
@java.lang.Override
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;
* @param value The minCreateRevision to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @return The maxCreateRevision.
*/
@java.lang.Override
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;
* @param value The maxCreateRevision to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearMaxCreateRevision() {
maxCreateRevision_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:etcdserverpb.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() {
@java.lang.Override
public RangeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.helidon.config.etcd.internal.client.proto.RangeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}