Class GenericValue
- Namespace
- MASES.EntityFrameworkCore.KNet.Serialization.Protobuf.Storage
- Assembly
- MASES.EntityFrameworkCore.KNet.Serialization.Protobuf.dll
Our address book file is just one of these.
public sealed class GenericValue : IMessage<GenericValue>, IEquatable<GenericValue>, IDeepCloneable<GenericValue>, IBufferMessage, IMessage
- Inheritance
-
GenericValue
- Implements
-
IMessage<GenericValue>IDeepCloneable<GenericValue>IBufferMessageIMessage
- Inherited Members
Constructors
GenericValue()
public GenericValue()
GenericValue(GenericValue)
public GenericValue(GenericValue other)
Parameters
otherGenericValue
GenericValue(object)
Initializer for input
public GenericValue(object input)
Parameters
inputobjectThe value to insert
Exceptions
GenericValue((ManagedTypes, bool), object?)
Initializer for input
public GenericValue((NativeTypeMapper.ManagedTypes, bool) _type, object? input)
Parameters
_type(NativeTypeMapper.ManagedTypes, bool)The Type
inputobjectThe value to insert
Exceptions
Fields
BoolValueFieldNumber
Field number for the "bool_value" field.
public const int BoolValueFieldNumber = 2
Field Value
ByteValueFieldNumber
Field number for the "byte_value" field.
public const int ByteValueFieldNumber = 4
Field Value
CharValueFieldNumber
Field number for the "char_value" field.
public const int CharValueFieldNumber = 3
Field Value
DatetimeValueFieldNumber
Field number for the "datetime_value" field.
public const int DatetimeValueFieldNumber = 16
Field Value
DatetimeoffsetValueFieldNumber
Field number for the "datetimeoffset_value" field.
public const int DatetimeoffsetValueFieldNumber = 17
Field Value
DecimalValueFieldNumber
Field number for the "decimal_value" field.
public const int DecimalValueFieldNumber = 18
Field Value
DoubleValueFieldNumber
Field number for the "double_value" field.
public const int DoubleValueFieldNumber = 13
Field Value
FloatValueFieldNumber
Field number for the "float_value" field.
public const int FloatValueFieldNumber = 12
Field Value
GuidValueFieldNumber
Field number for the "guid_value" field.
public const int GuidValueFieldNumber = 15
Field Value
IntValueFieldNumber
Field number for the "int_value" field.
public const int IntValueFieldNumber = 8
Field Value
LongValueFieldNumber
Field number for the "long_value" field.
public const int LongValueFieldNumber = 10
Field Value
ManagedTypeFieldNumber
Field number for the "ManagedType" field.
public const int ManagedTypeFieldNumber = 19
Field Value
NullValueFieldNumber
Field number for the "null_value" field.
public const int NullValueFieldNumber = 1
Field Value
SbyteValueFieldNumber
Field number for the "sbyte_value" field.
public const int SbyteValueFieldNumber = 5
Field Value
ShortValueFieldNumber
Field number for the "short_value" field.
public const int ShortValueFieldNumber = 6
Field Value
StringValueFieldNumber
Field number for the "string_value" field.
public const int StringValueFieldNumber = 14
Field Value
SupportNullFieldNumber
Field number for the "SupportNull" field.
public const int SupportNullFieldNumber = 20
Field Value
UintValueFieldNumber
Field number for the "uint_value" field.
public const int UintValueFieldNumber = 9
Field Value
UlongValueFieldNumber
Field number for the "ulong_value" field.
public const int UlongValueFieldNumber = 11
Field Value
UshortValueFieldNumber
Field number for the "ushort_value" field.
public const int UshortValueFieldNumber = 7
Field Value
Properties
BoolValue
Represents a boolean value.
public bool BoolValue { get; set; }
Property Value
ByteValue
Represents a int value.
public uint ByteValue { get; set; }
Property Value
CharValue
Represents a char value.
public string CharValue { get; set; }
Property Value
DatetimeValue
Represents a Datetime value.
public Datetime DatetimeValue { get; set; }
Property Value
DatetimeoffsetValue
Represents a Datetime value.
public Timestamp DatetimeoffsetValue { get; set; }
Property Value
- Timestamp
DecimalValue
Represents a decimal value.
public string DecimalValue { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
DoubleValue
Represents a double value.
public double DoubleValue { get; set; }
Property Value
FloatValue
Represents a float value.
public float FloatValue { get; set; }
Property Value
GuidValue
Represents a Guid value.
public ByteString GuidValue { get; set; }
Property Value
- ByteString
HasBoolValue
Gets whether the "bool_value" field is set
public bool HasBoolValue { get; }
Property Value
HasByteValue
Gets whether the "byte_value" field is set
public bool HasByteValue { get; }
Property Value
HasCharValue
Gets whether the "char_value" field is set
public bool HasCharValue { get; }
Property Value
HasDecimalValue
Gets whether the "decimal_value" field is set
public bool HasDecimalValue { get; }
Property Value
HasDoubleValue
Gets whether the "double_value" field is set
public bool HasDoubleValue { get; }
Property Value
HasFloatValue
Gets whether the "float_value" field is set
public bool HasFloatValue { get; }
Property Value
HasGuidValue
Gets whether the "guid_value" field is set
public bool HasGuidValue { get; }
Property Value
HasIntValue
Gets whether the "int_value" field is set
public bool HasIntValue { get; }
Property Value
HasLongValue
Gets whether the "long_value" field is set
public bool HasLongValue { get; }
Property Value
HasNullValue
Gets whether the "null_value" field is set
public bool HasNullValue { get; }
Property Value
HasSbyteValue
Gets whether the "sbyte_value" field is set
public bool HasSbyteValue { get; }
Property Value
HasShortValue
Gets whether the "short_value" field is set
public bool HasShortValue { get; }
Property Value
HasStringValue
Gets whether the "string_value" field is set
public bool HasStringValue { get; }
Property Value
HasUintValue
Gets whether the "uint_value" field is set
public bool HasUintValue { get; }
Property Value
HasUlongValue
Gets whether the "ulong_value" field is set
public bool HasUlongValue { get; }
Property Value
HasUshortValue
Gets whether the "ushort_value" field is set
public bool HasUshortValue { get; }
Property Value
IntValue
Represents a int value.
public int IntValue { get; set; }
Property Value
KindCase
public GenericValue.KindOneofCase KindCase { get; }
Property Value
LongValue
Represents a long value.
public long LongValue { get; set; }
Property Value
ManagedType
public int ManagedType { get; set; }
Property Value
NullValue
Represents a null value.
public NullValue NullValue { get; set; }
Property Value
- NullValue
Parser
public static MessageParser<GenericValue> Parser { get; }
Property Value
- MessageParser<GenericValue>
SbyteValue
Represents a int value.
public int SbyteValue { get; set; }
Property Value
ShortValue
Represents a int value.
public int ShortValue { get; set; }
Property Value
StringValue
Represents a string value.
public string StringValue { get; set; }
Property Value
SupportNull
public bool SupportNull { get; set; }
Property Value
UintValue
Represents a int value.
public uint UintValue { get; set; }
Property Value
UlongValue
Represents a long value.
public ulong UlongValue { get; set; }
Property Value
UshortValue
Represents a int value.
public uint UshortValue { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearBoolValue()
Clears the value of the oneof if it's currently set to "bool_value"
public void ClearBoolValue()
ClearByteValue()
Clears the value of the oneof if it's currently set to "byte_value"
public void ClearByteValue()
ClearCharValue()
Clears the value of the oneof if it's currently set to "char_value"
public void ClearCharValue()
ClearDecimalValue()
Clears the value of the oneof if it's currently set to "decimal_value"
public void ClearDecimalValue()
ClearDoubleValue()
Clears the value of the oneof if it's currently set to "double_value"
public void ClearDoubleValue()
ClearFloatValue()
Clears the value of the oneof if it's currently set to "float_value"
public void ClearFloatValue()
ClearGuidValue()
Clears the value of the oneof if it's currently set to "guid_value"
public void ClearGuidValue()
ClearIntValue()
Clears the value of the oneof if it's currently set to "int_value"
public void ClearIntValue()
ClearKind()
public void ClearKind()
ClearLongValue()
Clears the value of the oneof if it's currently set to "long_value"
public void ClearLongValue()
ClearNullValue()
Clears the value of the oneof if it's currently set to "null_value"
public void ClearNullValue()
ClearSbyteValue()
Clears the value of the oneof if it's currently set to "sbyte_value"
public void ClearSbyteValue()
ClearShortValue()
Clears the value of the oneof if it's currently set to "short_value"
public void ClearShortValue()
ClearStringValue()
Clears the value of the oneof if it's currently set to "string_value"
public void ClearStringValue()
ClearUintValue()
Clears the value of the oneof if it's currently set to "uint_value"
public void ClearUintValue()
ClearUlongValue()
Clears the value of the oneof if it's currently set to "ulong_value"
public void ClearUlongValue()
ClearUshortValue()
Clears the value of the oneof if it's currently set to "ushort_value"
public void ClearUshortValue()
Clone()
Creates a deep clone of this object.
public GenericValue Clone()
Returns
- GenericValue
A deep clone of this object.
Equals(GenericValue)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(GenericValue other)
Parameters
otherGenericValueAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
GetContent()
Returns the content of GenericValue
public object GetContent()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(GenericValue)
Merges the given message into this one.
public void MergeFrom(GenericValue other)
Parameters
otherGenericValue
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.