Class WatchCreateRequest
Inheritance
System.Object
WatchCreateRequest
Assembly: cs.temp.dll.dll
Syntax
public sealed class WatchCreateRequest : Google.Protobuf.IMessage<WatchCreateRequest>
Constructors
WatchCreateRequest()
Declaration
public WatchCreateRequest()
WatchCreateRequest(WatchCreateRequest)
Declaration
public WatchCreateRequest(WatchCreateRequest other)
Parameters
Fields
FiltersFieldNumber
Field number for the "filters" field.
Declaration
public const int FiltersFieldNumber = 5
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 |
|
PrevKvFieldNumber
Field number for the "prev_kv" field.
Declaration
public const int PrevKvFieldNumber = 6
Field Value
Type |
Description |
System.Int32 |
|
ProgressNotifyFieldNumber
Field number for the "progress_notify" field.
Declaration
public const int ProgressNotifyFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
RangeEndFieldNumber
Field number for the "range_end" field.
Declaration
public const int RangeEndFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
StartRevisionFieldNumber
Field number for the "start_revision" field.
Declaration
public const int StartRevisionFieldNumber = 3
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 |
|
Filters
filters filter the events at server side before it sends back to the watcher.
Declaration
public Google.Protobuf.Collections.RepeatedField<WatchCreateRequest.Types.FilterType> Filters { get; }
Property Value
Key
key is the key to register for watching.
Declaration
public Google.Protobuf.ByteString Key { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<WatchCreateRequest> Parser { get; }
Property Value
PrevKv
If prev_kv is set, created watcher gets the previous KV before the event happens.
If the previous KV is already compacted, nothing will be returned.
Declaration
public bool PrevKv { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ProgressNotify
progress_notify is set so that the etcd server will periodically send a WatchResponse with
no events to the new watcher if there are no recent events. It is useful when clients
wish to recover a disconnected watcher starting from a recent known revision.
The etcd server may decide how often it will send notifications based on current load.
Declaration
public bool ProgressNotify { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
RangeEnd
range_end is the end of the range [key, range_end) to watch. If range_end is not given,
only the key argument is watched. If range_end is equal to '\0', all keys greater than
or equal to the key argument are watched.
If the range_end is one bit larger than the given key,
then all keys with the prefix (the given key) will be watched.
Declaration
public Google.Protobuf.ByteString RangeEnd { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
StartRevision
start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
Declaration
public long StartRevision { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Clone()
Declaration
public WatchCreateRequest Clone()
Returns
Equals(WatchCreateRequest)
Declaration
public bool Equals(WatchCreateRequest 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 |
|
MergeFrom(WatchCreateRequest)
Declaration
public void MergeFrom(WatchCreateRequest other)
Parameters
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 |
|