
alluxio.shaded.client.io.etcd.jetcd.api.KeyValue Maven / Gradle / Ivy
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: kv.proto
package alluxio.shaded.client.io.etcd.jetcd.api;
/**
* Protobuf type {@code mvccpb.KeyValue}
*/
public final class KeyValue extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mvccpb.KeyValue)
KeyValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeyValue.newBuilder() to construct.
private KeyValue(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KeyValue() {
key_ = alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY;
value_ = alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeyValue();
}
@java.lang.Override
public final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.shaded.client.io.etcd.jetcd.api.Kv.internal_static_mvccpb_KeyValue_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.shaded.client.io.etcd.jetcd.api.Kv.internal_static_mvccpb_KeyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.shaded.client.io.etcd.jetcd.api.KeyValue.class, alluxio.shaded.client.io.etcd.jetcd.api.KeyValue.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private alluxio.shaded.client.com.google.protobuf.ByteString key_ = alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY;
/**
*
* key is the key in bytes. An empty key is not allowed.
*
*
* bytes key = 1;
* @return The key.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int CREATE_REVISION_FIELD_NUMBER = 2;
private long createRevision_ = 0L;
/**
*
* create_revision is the revision of last creation on this key.
*
*
* int64 create_revision = 2;
* @return The createRevision.
*/
@java.lang.Override
public long getCreateRevision() {
return createRevision_;
}
public static final int MOD_REVISION_FIELD_NUMBER = 3;
private long modRevision_ = 0L;
/**
*
* mod_revision is the revision of last modification on this key.
*
*
* int64 mod_revision = 3;
* @return The modRevision.
*/
@java.lang.Override
public long getModRevision() {
return modRevision_;
}
public static final int VERSION_FIELD_NUMBER = 4;
private long version_ = 0L;
/**
*
* version is the version of the key. A deletion resets
* the version to zero and any modification of the key
* increases its version.
*
*
* int64 version = 4;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
public static final int VALUE_FIELD_NUMBER = 5;
private alluxio.shaded.client.com.google.protobuf.ByteString value_ = alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY;
/**
*
* value is the value held by the key, in bytes.
*
*
* bytes value = 5;
* @return The value.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int LEASE_FIELD_NUMBER = 6;
private long lease_ = 0L;
/**
*
* lease is the ID of the lease that attached to key.
* When the attached lease expires, the key will be deleted.
* If lease is 0, then no lease is attached to the key.
*
*
* int64 lease = 6;
* @return The lease.
*/
@java.lang.Override
public long getLease() {
return lease_;
}
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(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output)
throws java.alluxio.shaded.client.io.IOException {
if (!key_.isEmpty()) {
output.writeBytes(1, key_);
}
if (createRevision_ != 0L) {
output.writeInt64(2, createRevision_);
}
if (modRevision_ != 0L) {
output.writeInt64(3, modRevision_);
}
if (version_ != 0L) {
output.writeInt64(4, version_);
}
if (!value_.isEmpty()) {
output.writeBytes(5, value_);
}
if (lease_ != 0L) {
output.writeInt64(6, lease_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!key_.isEmpty()) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBytesSize(1, key_);
}
if (createRevision_ != 0L) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(2, createRevision_);
}
if (modRevision_ != 0L) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(3, modRevision_);
}
if (version_ != 0L) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(4, version_);
}
if (!value_.isEmpty()) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBytesSize(5, value_);
}
if (lease_ != 0L) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(6, lease_);
}
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 alluxio.shaded.client.io.etcd.jetcd.api.KeyValue)) {
return super.equals(obj);
}
alluxio.shaded.client.io.etcd.jetcd.api.KeyValue other = (alluxio.shaded.client.io.etcd.jetcd.api.KeyValue) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (getCreateRevision()
!= other.getCreateRevision()) return false;
if (getModRevision()
!= other.getModRevision()) return false;
if (getVersion()
!= other.getVersion()) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (getLease()
!= other.getLease()) 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) + CREATE_REVISION_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getCreateRevision());
hash = (37 * hash) + MOD_REVISION_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getModRevision());
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getVersion());
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + LEASE_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getLease());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseFrom(
java.nio.ByteBuffer data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseFrom(
byte[] data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseDelimitedFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseDelimitedFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.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(alluxio.shaded.client.io.etcd.jetcd.api.KeyValue 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(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mvccpb.KeyValue}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mvccpb.KeyValue)
alluxio.shaded.client.io.etcd.jetcd.api.KeyValueOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.shaded.client.io.etcd.jetcd.api.Kv.internal_static_mvccpb_KeyValue_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.shaded.client.io.etcd.jetcd.api.Kv.internal_static_mvccpb_KeyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.shaded.client.io.etcd.jetcd.api.KeyValue.class, alluxio.shaded.client.io.etcd.jetcd.api.KeyValue.Builder.class);
}
// Construct using alluxio.shaded.client.io.etcd.jetcd.api.KeyValue.newBuilder()
private Builder() {
}
private Builder(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
key_ = alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY;
createRevision_ = 0L;
modRevision_ = 0L;
version_ = 0L;
value_ = alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY;
lease_ = 0L;
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.shaded.client.io.etcd.jetcd.api.Kv.internal_static_mvccpb_KeyValue_descriptor;
}
@java.lang.Override
public alluxio.shaded.client.io.etcd.jetcd.api.KeyValue getDefaultInstanceForType() {
return alluxio.shaded.client.io.etcd.jetcd.api.KeyValue.getDefaultInstance();
}
@java.lang.Override
public alluxio.shaded.client.io.etcd.jetcd.api.KeyValue build() {
alluxio.shaded.client.io.etcd.jetcd.api.KeyValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.shaded.client.io.etcd.jetcd.api.KeyValue buildPartial() {
alluxio.shaded.client.io.etcd.jetcd.api.KeyValue result = new alluxio.shaded.client.io.etcd.jetcd.api.KeyValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(alluxio.shaded.client.io.etcd.jetcd.api.KeyValue result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = key_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.createRevision_ = createRevision_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.modRevision_ = modRevision_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.version_ = version_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.value_ = value_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.lease_ = lease_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) {
if (other instanceof alluxio.shaded.client.io.etcd.jetcd.api.KeyValue) {
return mergeFrom((alluxio.shaded.client.io.etcd.jetcd.api.KeyValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.shaded.client.io.etcd.jetcd.api.KeyValue other) {
if (other == alluxio.shaded.client.io.etcd.jetcd.api.KeyValue.getDefaultInstance()) return this;
if (other.getKey() != alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
if (other.getCreateRevision() != 0L) {
setCreateRevision(other.getCreateRevision());
}
if (other.getModRevision() != 0L) {
setModRevision(other.getModRevision());
}
if (other.getVersion() != 0L) {
setVersion(other.getVersion());
}
if (other.getValue() != alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (other.getLease() != 0L) {
setLease(other.getLease());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.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();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
createRevision_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
modRevision_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
version_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
value_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
lease_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private alluxio.shaded.client.com.google.protobuf.ByteString key_ = alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY;
/**
*
* key is the key in bytes. An empty key is not allowed.
*
*
* bytes key = 1;
* @return The key.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString getKey() {
return key_;
}
/**
*
* key is the key in bytes. An empty key is not allowed.
*
*
* bytes key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* key is the key in bytes. An empty key is not allowed.
*
*
* bytes key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private long createRevision_ ;
/**
*
* create_revision is the revision of last creation on this key.
*
*
* int64 create_revision = 2;
* @return The createRevision.
*/
@java.lang.Override
public long getCreateRevision() {
return createRevision_;
}
/**
*
* create_revision is the revision of last creation on this key.
*
*
* int64 create_revision = 2;
* @param value The createRevision to set.
* @return This builder for chaining.
*/
public Builder setCreateRevision(long value) {
createRevision_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* create_revision is the revision of last creation on this key.
*
*
* int64 create_revision = 2;
* @return This builder for chaining.
*/
public Builder clearCreateRevision() {
bitField0_ = (bitField0_ & ~0x00000002);
createRevision_ = 0L;
onChanged();
return this;
}
private long modRevision_ ;
/**
*
* mod_revision is the revision of last modification on this key.
*
*
* int64 mod_revision = 3;
* @return The modRevision.
*/
@java.lang.Override
public long getModRevision() {
return modRevision_;
}
/**
*
* mod_revision is the revision of last modification on this key.
*
*
* int64 mod_revision = 3;
* @param value The modRevision to set.
* @return This builder for chaining.
*/
public Builder setModRevision(long value) {
modRevision_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* mod_revision is the revision of last modification on this key.
*
*
* int64 mod_revision = 3;
* @return This builder for chaining.
*/
public Builder clearModRevision() {
bitField0_ = (bitField0_ & ~0x00000004);
modRevision_ = 0L;
onChanged();
return this;
}
private long version_ ;
/**
*
* version is the version of the key. A deletion resets
* the version to zero and any modification of the key
* increases its version.
*
*
* int64 version = 4;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
/**
*
* version is the version of the key. A deletion resets
* the version to zero and any modification of the key
* increases its version.
*
*
* int64 version = 4;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(long value) {
version_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* version is the version of the key. A deletion resets
* the version to zero and any modification of the key
* increases its version.
*
*
* int64 version = 4;
* @return This builder for chaining.
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000008);
version_ = 0L;
onChanged();
return this;
}
private alluxio.shaded.client.com.google.protobuf.ByteString value_ = alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY;
/**
*
* value is the value held by the key, in bytes.
*
*
* bytes value = 5;
* @return The value.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString getValue() {
return value_;
}
/**
*
* value is the value held by the key, in bytes.
*
*
* bytes value = 5;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* value is the value held by the key, in bytes.
*
*
* bytes value = 5;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000010);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private long lease_ ;
/**
*
* lease is the ID of the lease that attached to key.
* When the attached lease expires, the key will be deleted.
* If lease is 0, then no lease is attached to the key.
*
*
* int64 lease = 6;
* @return The lease.
*/
@java.lang.Override
public long getLease() {
return lease_;
}
/**
*
* lease is the ID of the lease that attached to key.
* When the attached lease expires, the key will be deleted.
* If lease is 0, then no lease is attached to the key.
*
*
* int64 lease = 6;
* @param value The lease to set.
* @return This builder for chaining.
*/
public Builder setLease(long value) {
lease_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* lease is the ID of the lease that attached to key.
* When the attached lease expires, the key will be deleted.
* If lease is 0, then no lease is attached to the key.
*
*
* int64 lease = 6;
* @return This builder for chaining.
*/
public Builder clearLease() {
bitField0_ = (bitField0_ & ~0x00000020);
lease_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mvccpb.KeyValue)
}
// @@protoc_insertion_point(class_scope:mvccpb.KeyValue)
private static final alluxio.shaded.client.io.etcd.jetcd.api.KeyValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.shaded.client.io.etcd.jetcd.api.KeyValue();
}
public static alluxio.shaded.client.io.etcd.jetcd.api.KeyValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final alluxio.shaded.client.com.google.protobuf.Parser
PARSER = new alluxio.shaded.client.com.google.protobuf.AbstractParser() {
@java.lang.Override
public KeyValue parsePartialFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (alluxio.shaded.client.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.alluxio.shaded.client.io.IOException e) {
throw new alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static alluxio.shaded.client.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public alluxio.shaded.client.io.etcd.jetcd.api.KeyValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy