Class GenericValue
- Namespace
- MASES.EntityFrameworkCore.KNet.Serialization.Protobuf.Storage
- Assembly
- MASES.EntityFrameworkCore.KNet.Serialization.Protobuf.dll
[START messages] 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
other
GenericValue
GenericValue(object)
Initializer for input
public GenericValue(object input)
Parameters
input
objectThe 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 = 3
Field Value
DatetimeValueFieldNumber
Field number for the "datetime_value" field.
public const int DatetimeValueFieldNumber = 11
Field Value
DatetimeoffsetValueFieldNumber
Field number for the "datetimeoffset_value" field.
public const int DatetimeoffsetValueFieldNumber = 12
Field Value
DoubleValueFieldNumber
Field number for the "double_value" field.
public const int DoubleValueFieldNumber = 8
Field Value
FloatValueFieldNumber
Field number for the "float_value" field.
public const int FloatValueFieldNumber = 7
Field Value
GuidValueFieldNumber
Field number for the "guid_value" field.
public const int GuidValueFieldNumber = 10
Field Value
IntValueFieldNumber
Field number for the "int_value" field.
public const int IntValueFieldNumber = 5
Field Value
LongValueFieldNumber
Field number for the "long_value" field.
public const int LongValueFieldNumber = 6
Field Value
NullValueFieldNumber
Field number for the "null_value" field.
public const int NullValueFieldNumber = 1
Field Value
ShortValueFieldNumber
Field number for the "short_value" field.
public const int ShortValueFieldNumber = 4
Field Value
StringValueFieldNumber
Field number for the "string_value" field.
public const int StringValueFieldNumber = 9
Field Value
Properties
BoolValue
Represents a boolean value.
public bool BoolValue { get; set; }
Property Value
ByteValue
Represents a int value.
public int ByteValue { get; set; }
Property Value
DatetimeValue
Represents a Timestamp value.
public Timestamp DatetimeValue { get; set; }
Property Value
- Timestamp
DatetimeoffsetValue
Represents a Timestamp value.
public Timestamp DatetimeoffsetValue { get; set; }
Property Value
- Timestamp
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
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
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
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
NullValue
Represents a null value.
public NullValue NullValue { get; set; }
Property Value
- NullValue
Parser
public static MessageParser<GenericValue> Parser { get; }
Property Value
- MessageParser<GenericValue>
ShortValue
Represents a int value.
public int ShortValue { get; set; }
Property Value
StringValue
Represents a string value.
public string StringValue { 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()
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()
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()
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
other
GenericValueAn 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
other
object
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
input
CodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(GenericValue)
Merges the given message into this one.
public void MergeFrom(GenericValue other)
Parameters
other
GenericValue
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
output
CodedOutputStreamCoded output stream to write the data to. Must not be null.