Class WatchResponse
Inheritance
System.Object
WatchResponse
Assembly: cs.temp.dll.dll
Syntax
public sealed class WatchResponse : Google.Protobuf.IMessage<WatchResponse>
Constructors
WatchResponse()
Declaration
WatchResponse(WatchResponse)
Declaration
public WatchResponse(WatchResponse other)
Parameters
Fields
CanceledFieldNumber
Field number for the "canceled" field.
Declaration
public const int CanceledFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
CancelReasonFieldNumber
Field number for the "cancel_reason" field.
Declaration
public const int CancelReasonFieldNumber = 6
Field Value
Type |
Description |
System.Int32 |
|
CompactRevisionFieldNumber
Field number for the "compact_revision" field.
Declaration
public const int CompactRevisionFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
CreatedFieldNumber
Field number for the "created" field.
Declaration
public const int CreatedFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
EventsFieldNumber
Field number for the "events" field.
Declaration
public const int EventsFieldNumber = 11
Field Value
Type |
Description |
System.Int32 |
|
Field number for the "header" field.
Declaration
public const int HeaderFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
WatchIdFieldNumber
Field number for the "watch_id" field.
Declaration
public const int WatchIdFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
Properties
Canceled
canceled is set to true if the response is for a cancel watch request.
No further events will be sent to the canceled watcher.
Declaration
public bool Canceled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
CancelReason
cancel_reason indicates the reason for canceling the watcher.
Declaration
public string CancelReason { get; set; }
Property Value
Type |
Description |
System.String |
|
CompactRevision
compact_revision is set to the minimum index if a watcher tries to watch
at a compacted index.
This happens when creating a watcher at a compacted revision or the watcher cannot
catch up with the progress of the key-value store.
The client should treat the watcher as canceled and should not try to create any
watcher with the same start_revision again.
Declaration
public long CompactRevision { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Created
created is set to true if the response is for a create watch request.
The client should record the watch_id and expect to receive events for
the created watcher from the same stream.
All events sent to the created watcher will attach with the same watch_id.
Declaration
public bool Created { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Descriptor
Declaration
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
Events
Declaration
public Google.Protobuf.Collections.RepeatedField<Event> Events { get; }
Property Value
Type |
Description |
Google.Protobuf.Collections.RepeatedField<Event> |
|
Declaration
public ResponseHeader Header { get; set; }
Property Value
Parser
Declaration
public static Google.Protobuf.MessageParser<WatchResponse> Parser { get; }
Property Value
WatchId
watch_id is the ID of the watcher that corresponds to the response.
Declaration
public long WatchId { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Clone()
Declaration
public WatchResponse Clone()
Returns
Equals(WatchResponse)
Declaration
public bool Equals(WatchResponse 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(WatchResponse)
Declaration
public void MergeFrom(WatchResponse 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 |
|