Class PutRequest
Inheritance
System.Object
PutRequest
Assembly: cs.temp.dll.dll
Syntax
public sealed class PutRequest : Google.Protobuf.IMessage<PutRequest>
Constructors
PutRequest()
Declaration
PutRequest(PutRequest)
Declaration
public PutRequest(PutRequest other)
Parameters
Fields
IgnoreLeaseFieldNumber
Field number for the "ignore_lease" field.
Declaration
public const int IgnoreLeaseFieldNumber = 6
Field Value
Type |
Description |
System.Int32 |
|
IgnoreValueFieldNumber
Field number for the "ignore_value" field.
Declaration
public const int IgnoreValueFieldNumber = 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 |
|
LeaseFieldNumber
Field number for the "lease" field.
Declaration
public const int LeaseFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
PrevKvFieldNumber
Field number for the "prev_kv" field.
Declaration
public const int PrevKvFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
ValueFieldNumber
Field number for the "value" field.
Declaration
public const int ValueFieldNumber = 2
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 |
|
IgnoreLease
If ignore_lease is set, etcd updates the key using its current lease.
Returns an error if the key does not exist.
Declaration
public bool IgnoreLease { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IgnoreValue
If ignore_value is set, etcd updates the key using its current value.
Returns an error if the key does not exist.
Declaration
public bool IgnoreValue { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Key
key is the key, in bytes, to put into the key-value store.
Declaration
public Google.Protobuf.ByteString Key { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
Lease
lease is the lease ID to associate with the key in the key-value store. A lease
value of 0 indicates no lease.
Declaration
public long Lease { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<PutRequest> Parser { get; }
Property Value
Type |
Description |
Google.Protobuf.MessageParser<PutRequest> |
|
PrevKv
If prev_kv is set, etcd gets the previous key-value pair before changing it.
The previous key-value pair will be returned in the put response.
Declaration
public bool PrevKv { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Value
value is the value, in bytes, to associate with the key in the key-value store.
Declaration
public Google.Protobuf.ByteString Value { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Clone()
Declaration
public PutRequest Clone()
Returns
Equals(PutRequest)
Declaration
public bool Equals(PutRequest 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(PutRequest)
Declaration
public void MergeFrom(PutRequest 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 |
|