Class Compare
Inheritance
System.Object
Compare
Assembly: cs.temp.dll.dll
Syntax
public sealed class Compare : Google.Protobuf.IMessage<Compare>
Constructors
Compare()
Declaration
Compare(Compare)
Declaration
public Compare(Compare other)
Parameters
Type |
Name |
Description |
Compare |
other |
|
Fields
CreateRevisionFieldNumber
Field number for the "create_revision" field.
Declaration
public const int CreateRevisionFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
KeyFieldNumber
Field number for the "key" field.
Declaration
public const int KeyFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
ModRevisionFieldNumber
Field number for the "mod_revision" field.
Declaration
public const int ModRevisionFieldNumber = 6
Field Value
Type |
Description |
System.Int32 |
|
RangeEndFieldNumber
Field number for the "range_end" field.
Declaration
public const int RangeEndFieldNumber = 8
Field Value
Type |
Description |
System.Int32 |
|
ResultFieldNumber
Field number for the "result" field.
Declaration
public const int ResultFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
TargetFieldNumber
Field number for the "target" field.
Declaration
public const int TargetFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
ValueFieldNumber
Field number for the "value" field.
Declaration
public const int ValueFieldNumber = 7
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 creation revision of the given 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 subject key for the comparison operation.
Declaration
public Google.Protobuf.ByteString Key { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
ModRevision
mod_revision is the last modified revision of the given key.
Declaration
public long ModRevision { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<Compare> Parser { get; }
Property Value
Type |
Description |
Google.Protobuf.MessageParser<Compare> |
|
RangeEnd
range_end compares the given target to all keys in the range [key, range_end).
See RangeRequest for more details on key ranges.
Declaration
public Google.Protobuf.ByteString RangeEnd { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
Result
result is logical comparison operation for this comparison.
Declaration
public Compare.Types.CompareResult Result { get; set; }
Property Value
Target
target is the key-value field to inspect for the comparison.
Declaration
public Compare.Types.CompareTarget Target { get; set; }
Property Value
TargetUnionCase
Declaration
public Compare.TargetUnionOneofCase TargetUnionCase { get; }
Property Value
Value
value is the value of the given 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 given key
Declaration
public long Version { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
ClearTargetUnion()
Declaration
public void ClearTargetUnion()
Clone()
Declaration
Returns
Equals(Compare)
Declaration
public bool Equals(Compare other)
Parameters
Type |
Name |
Description |
Compare |
other |
|
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 |
|
MergeFrom(Compare)
Declaration
public void MergeFrom(Compare other)
Parameters
Type |
Name |
Description |
Compare |
other |
|
Declaration
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedInputStream |
input |
|
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 |
|