Class Permission
Assembly: etcd.v3.dll
Syntax
public sealed class Permission : IMessage<Permission>, IEquatable<Permission>, IDeepCloneable<Permission>, IBufferMessage, IMessage
Constructors
View Source
Permission()
Declaration
View Source
Permission(Permission)
Declaration
public Permission(Permission other)
Parameters
Fields
View Source
KeyFieldNumber
Declaration
public const int KeyFieldNumber = 2
Field Value
View Source
PermTypeFieldNumber
Declaration
public const int PermTypeFieldNumber = 1
Field Value
View Source
RangeEndFieldNumber
Declaration
public const int RangeEndFieldNumber = 3
Field Value
Properties
View Source
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
View Source
Key
Declaration
public ByteString Key { get; set; }
Property Value
View Source
Parser
Declaration
public static MessageParser<Permission> Parser { get; }
Property Value
View Source
PermType
Declaration
public Permission.Types.Type PermType { get; set; }
Property Value
View Source
RangeEnd
Declaration
public ByteString RangeEnd { get; set; }
Property Value
Methods
View Source
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
Declaration
public int CalculateSize()
Returns
Type |
Description |
int |
The number of bytes required to write this message
to a coded output stream.
|
View Source
Clone()
Creates a deep clone of this object.
Declaration
public Permission Clone()
Returns
Type |
Description |
Permission |
A deep clone of this object.
|
View Source
Equals(Permission)
Declaration
public bool Equals(Permission other)
Parameters
Returns
View Source
Equals(object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
object |
other |
|
Returns
Overrides
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
MergeFrom(Permission)
Merges the given message into this one.
Declaration
public void MergeFrom(Permission other)
Parameters
View Source
Merges the data from the specified coded input stream with the current message.
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
View Source
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type |
Name |
Description |
CodedOutputStream |
output |
Coded output stream to write the data to. Must not be null.
|
Implements