Class KeyProviderOptions
public sealed class KeyProviderOptions : Google.Protobuf.IMessage<KeyProviderOptions>, Google.Protobuf.IBufferMessage
- Inheritance
-
KeyProviderOptions
- Implements
-
IBufferMessage
- Extension Methods
Constructors
KeyProviderOptions()
public KeyProviderOptions()
KeyProviderOptions(KeyProviderOptions)
public KeyProviderOptions(KeyProviderOptions other)
Parameters
otherKeyProviderOptions
Fields
FailureToleranceFieldNumber
Field number for the "failure_tolerance" field.
public const int FailureToleranceFieldNumber = 4
Field Value
KeyDerivationFunctionFieldNumber
Field number for the "key_derivation_function" field.
public const int KeyDerivationFunctionFieldNumber = 6
Field Value
KeyRingSizeFieldNumber
Field number for the "key_ring_size" field.
public const int KeyRingSizeFieldNumber = 5
Field Value
RatchetSaltFieldNumber
Field number for the "ratchet_salt" field.
public const int RatchetSaltFieldNumber = 3
Field Value
RatchetWindowSizeFieldNumber
Field number for the "ratchet_window_size" field.
public const int RatchetWindowSizeFieldNumber = 2
Field Value
SharedKeyFieldNumber
Field number for the "shared_key" field.
public const int SharedKeyFieldNumber = 1
Field Value
Properties
Descriptor
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
FailureTolerance
-1 = no tolerance
public int FailureTolerance { get; set; }
Property Value
HasFailureTolerance
Gets whether the "failure_tolerance" field is set
public bool HasFailureTolerance { get; }
Property Value
HasKeyDerivationFunction
Gets whether the "key_derivation_function" field is set
public bool HasKeyDerivationFunction { get; }
Property Value
HasKeyRingSize
Gets whether the "key_ring_size" field is set
public bool HasKeyRingSize { get; }
Property Value
HasRatchetSalt
Gets whether the "ratchet_salt" field is set
public bool HasRatchetSalt { get; }
Property Value
HasRatchetWindowSize
Gets whether the "ratchet_window_size" field is set
public bool HasRatchetWindowSize { get; }
Property Value
HasSharedKey
Gets whether the "shared_key" field is set
public bool HasSharedKey { get; }
Property Value
KeyDerivationFunction
public KeyDerivationFunction KeyDerivationFunction { get; set; }
Property Value
KeyRingSize
public int KeyRingSize { get; set; }
Property Value
Parser
public static Google.Protobuf.MessageParser<KeyProviderOptions> Parser { get; }
Property Value
- MessageParser<KeyProviderOptions>
RatchetSalt
public Google.Protobuf.ByteString RatchetSalt { get; set; }
Property Value
- ByteString
RatchetWindowSize
public int RatchetWindowSize { get; set; }
Property Value
SharedKey
Only specify if you want to use a shared_key
public Google.Protobuf.ByteString SharedKey { get; set; }
Property Value
- ByteString
Methods
CalculateSize()
public int CalculateSize()
Returns
ClearFailureTolerance()
Clears the value of the "failure_tolerance" field
public void ClearFailureTolerance()
ClearKeyDerivationFunction()
Clears the value of the "key_derivation_function" field
public void ClearKeyDerivationFunction()
ClearKeyRingSize()
Clears the value of the "key_ring_size" field
public void ClearKeyRingSize()
ClearRatchetSalt()
Clears the value of the "ratchet_salt" field
public void ClearRatchetSalt()
ClearRatchetWindowSize()
Clears the value of the "ratchet_window_size" field
public void ClearRatchetWindowSize()
ClearSharedKey()
Clears the value of the "shared_key" field
public void ClearSharedKey()
Clone()
public KeyProviderOptions Clone()
Returns
Equals(KeyProviderOptions)
public bool Equals(KeyProviderOptions other)
Parameters
otherKeyProviderOptions
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
inputCodedInputStream
MergeFrom(KeyProviderOptions)
public void MergeFrom(KeyProviderOptions other)
Parameters
otherKeyProviderOptions
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
outputCodedOutputStream