Class KeyValue
Inheritance
System.Object
KeyValue
Assembly: cs.temp.dll.dll
Syntax
public sealed class KeyValue : Google.Protobuf.IMessage<KeyValue>
Constructors
KeyValue()
Declaration
KeyValue(KeyValue)
Declaration
public KeyValue(KeyValue other)
Parameters
Fields
CreateRevisionFieldNumber
Field number for the "create_revision" field.
Declaration
public const int CreateRevisionFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
KeyFieldNumber
Field number for the "key" field.
Declaration
public const int KeyFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
LeaseFieldNumber
Field number for the "lease" field.
Declaration
public const int LeaseFieldNumber = 6
Field Value
Type |
Description |
System.Int32 |
|
ModRevisionFieldNumber
Field number for the "mod_revision" field.
Declaration
public const int ModRevisionFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
ValueFieldNumber
Field number for the "value" field.
Declaration
public const int ValueFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
VersionFieldNumber
Field number for the "version" field.
Declaration
public const int VersionFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
Properties
CreateRevision
create_revision is the revision of last creation on this key.
Declaration
public long CreateRevision { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Descriptor
Declaration
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
Key
key is the key in bytes. An empty key is not allowed.
Declaration
public Google.Protobuf.ByteString Key { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
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.
Declaration
public long Lease { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
ModRevision
mod_revision is the revision of last modification on this key.
Declaration
public long ModRevision { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<KeyValue> Parser { get; }
Property Value
Type |
Description |
Google.Protobuf.MessageParser<KeyValue> |
|
Value
value is the value held by the key, in bytes.
Declaration
public Google.Protobuf.ByteString Value { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
Version
version is the version of the key. A deletion resets
the version to zero and any modification of the key
increases its version.
Declaration
public long Version { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Clone()
Declaration
Returns
Equals(KeyValue)
Declaration
public bool Equals(KeyValue other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedInputStream |
input |
|
MergeFrom(KeyValue)
Declaration
public void MergeFrom(KeyValue other)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
WriteTo(Google.Protobuf.CodedOutputStream)
Declaration
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedOutputStream |
output |
|