public static final class KeyValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder> implements KeyValueOrBuilder
mvccpb.KeyValue| Modifier and Type | Method and Description |
|---|---|
KeyValue.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
KeyValue |
build() |
KeyValue |
buildPartial() |
KeyValue.Builder |
clear() |
KeyValue.Builder |
clearCreateRevision()
create_revision is the revision of last creation on this key.
|
KeyValue.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
KeyValue.Builder |
clearKey()
key is the key in bytes.
|
KeyValue.Builder |
clearLease()
lease is the ID of the lease that attached to key.
|
KeyValue.Builder |
clearModRevision()
mod_revision is the revision of last modification on this key.
|
KeyValue.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
KeyValue.Builder |
clearValue()
value is the value held by the key, in bytes.
|
KeyValue.Builder |
clearVersion()
version is the version of the key.
|
KeyValue.Builder |
clone() |
long |
getCreateRevision()
create_revision is the revision of last creation on this key.
|
KeyValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getKey()
key is the key in bytes.
|
long |
getLease()
lease is the ID of the lease that attached to key.
|
long |
getModRevision()
mod_revision is the revision of last modification on this key.
|
com.google.protobuf.ByteString |
getValue()
value is the value held by the key, in bytes.
|
long |
getVersion()
version is the version of the key.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
KeyValue.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
KeyValue.Builder |
mergeFrom(KeyValue other) |
KeyValue.Builder |
mergeFrom(com.google.protobuf.Message other) |
KeyValue.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
KeyValue.Builder |
setCreateRevision(long value)
create_revision is the revision of last creation on this key.
|
KeyValue.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
KeyValue.Builder |
setKey(com.google.protobuf.ByteString value)
key is the key in bytes.
|
KeyValue.Builder |
setLease(long value)
lease is the ID of the lease that attached to key.
|
KeyValue.Builder |
setModRevision(long value)
mod_revision is the revision of last modification on this key.
|
KeyValue.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
KeyValue.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
KeyValue.Builder |
setValue(com.google.protobuf.ByteString value)
value is the value held by the key, in bytes.
|
KeyValue.Builder |
setVersion(long value)
version is the version of the key.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>public KeyValue.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>public KeyValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic KeyValue build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic KeyValue buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic KeyValue.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>public KeyValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>public KeyValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>public KeyValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>public KeyValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>public KeyValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>public KeyValue.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeyValue.Builder>public KeyValue.Builder mergeFrom(KeyValue other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>public KeyValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeyValue.Builder>IOExceptionpublic com.google.protobuf.ByteString getKey()
key is the key in bytes. An empty key is not allowed.
bytes key = 1;getKey in interface KeyValueOrBuilderpublic KeyValue.Builder setKey(com.google.protobuf.ByteString value)
key is the key in bytes. An empty key is not allowed.
bytes key = 1;public KeyValue.Builder clearKey()
key is the key in bytes. An empty key is not allowed.
bytes key = 1;public long getCreateRevision()
create_revision is the revision of last creation on this key.
int64 create_revision = 2;getCreateRevision in interface KeyValueOrBuilderpublic KeyValue.Builder setCreateRevision(long value)
create_revision is the revision of last creation on this key.
int64 create_revision = 2;public KeyValue.Builder clearCreateRevision()
create_revision is the revision of last creation on this key.
int64 create_revision = 2;public long getModRevision()
mod_revision is the revision of last modification on this key.
int64 mod_revision = 3;getModRevision in interface KeyValueOrBuilderpublic KeyValue.Builder setModRevision(long value)
mod_revision is the revision of last modification on this key.
int64 mod_revision = 3;public KeyValue.Builder clearModRevision()
mod_revision is the revision of last modification on this key.
int64 mod_revision = 3;public long getVersion()
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;getVersion in interface KeyValueOrBuilderpublic KeyValue.Builder setVersion(long value)
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;public KeyValue.Builder clearVersion()
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;public com.google.protobuf.ByteString getValue()
value is the value held by the key, in bytes.
bytes value = 5;getValue in interface KeyValueOrBuilderpublic KeyValue.Builder setValue(com.google.protobuf.ByteString value)
value is the value held by the key, in bytes.
bytes value = 5;public KeyValue.Builder clearValue()
value is the value held by the key, in bytes.
bytes value = 5;public long getLease()
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;getLease in interface KeyValueOrBuilderpublic KeyValue.Builder setLease(long value)
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;public KeyValue.Builder clearLease()
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;public final KeyValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>public final KeyValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KeyValue.Builder>Copyright © 2019. All rights reserved.