Class Event
Inheritance
System.Object
Event
Assembly: cs.temp.dll.dll
Syntax
public sealed class Event : Google.Protobuf.IMessage<Event>
Constructors
Event()
Declaration
Event(Event)
Declaration
public Event(Event other)
Parameters
Type |
Name |
Description |
Event |
other |
|
Fields
KvFieldNumber
Field number for the "kv" field.
Declaration
public const int KvFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
PrevKvFieldNumber
Field number for the "prev_kv" field.
Declaration
public const int PrevKvFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
TypeFieldNumber
Field number for the "type" field.
Declaration
public const int TypeFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Descriptor
Declaration
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
Kv
kv holds the KeyValue for the event.
A PUT event contains current kv pair.
A PUT event with kv.Version=1 indicates the creation of a key.
A DELETE/EXPIRE event contains the deleted key with
its modification revision set to the revision of deletion.
Declaration
public KeyValue Kv { get; set; }
Property Value
Parser
Declaration
public static Google.Protobuf.MessageParser<Event> Parser { get; }
Property Value
Type |
Description |
Google.Protobuf.MessageParser<Event> |
|
PrevKv
prev_kv holds the key-value pair before the event happens.
Declaration
public KeyValue PrevKv { get; set; }
Property Value
Type
type is the kind of event. If type is a PUT, it indicates
new data has been stored to the key. If type is a DELETE,
it indicates the key was deleted.
Declaration
public Event.Types.EventType Type { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Clone()
Declaration
Returns
Equals(Event)
Declaration
public bool Equals(Event other)
Parameters
Type |
Name |
Description |
Event |
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 |
|
Declaration
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedInputStream |
input |
|
MergeFrom(Event)
Declaration
public void MergeFrom(Event other)
Parameters
Type |
Name |
Description |
Event |
other |
|
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 |
|