Class LeaseTimeToLiveResponse
Inheritance
System.Object
LeaseTimeToLiveResponse
Assembly: cs.temp.dll.dll
Syntax
public sealed class LeaseTimeToLiveResponse : Google.Protobuf.IMessage<LeaseTimeToLiveResponse>
Constructors
LeaseTimeToLiveResponse()
Declaration
public LeaseTimeToLiveResponse()
LeaseTimeToLiveResponse(LeaseTimeToLiveResponse)
Declaration
public LeaseTimeToLiveResponse(LeaseTimeToLiveResponse other)
Parameters
Fields
GrantedTTLFieldNumber
Field number for the "grantedTTL" field.
Declaration
public const int GrantedTTLFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
Field number for the "header" field.
Declaration
public const int HeaderFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
IDFieldNumber
Field number for the "ID" field.
Declaration
public const int IDFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
KeysFieldNumber
Field number for the "keys" field.
Declaration
public const int KeysFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
TTLFieldNumber
Field number for the "TTL" field.
Declaration
public const int TTLFieldNumber = 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 |
|
GrantedTTL
GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
Declaration
public long GrantedTTL { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Declaration
public ResponseHeader Header { get; set; }
Property Value
ID
ID is the lease ID from the keep alive request.
Declaration
public long ID { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Keys
Keys is the list of keys attached to this lease.
Declaration
public Google.Protobuf.Collections.RepeatedField<Google.Protobuf.ByteString> Keys { get; }
Property Value
Type |
Description |
Google.Protobuf.Collections.RepeatedField<Google.Protobuf.ByteString> |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<LeaseTimeToLiveResponse> Parser { get; }
Property Value
TTL
TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
Declaration
public long TTL { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Clone()
Declaration
public LeaseTimeToLiveResponse Clone()
Returns
Equals(LeaseTimeToLiveResponse)
Declaration
public bool Equals(LeaseTimeToLiveResponse 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(LeaseTimeToLiveResponse)
Declaration
public void MergeFrom(LeaseTimeToLiveResponse 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 |
|