Table of Contents

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>
IBufferMessage
IMessage
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 object

The value to insert

Exceptions

InvalidOperationException

GenericValue((ManagedTypes, bool), object?)

Initializer for input

public GenericValue((NativeTypeMapper.ManagedTypes, bool) _type, object? input)

Parameters

_type (NativeTypeMapper.ManagedTypes, bool)

The Type

input object

The value to insert

Exceptions

InvalidOperationException

Fields

BoolValueFieldNumber

Field number for the "bool_value" field.

public const int BoolValueFieldNumber = 2

Field Value

int

ByteValueFieldNumber

Field number for the "byte_value" field.

public const int ByteValueFieldNumber = 4

Field Value

int

CharValueFieldNumber

Field number for the "char_value" field.

public const int CharValueFieldNumber = 3

Field Value

int

DatetimeValueFieldNumber

Field number for the "datetime_value" field.

public const int DatetimeValueFieldNumber = 16

Field Value

int

DatetimeoffsetValueFieldNumber

Field number for the "datetimeoffset_value" field.

public const int DatetimeoffsetValueFieldNumber = 17

Field Value

int

DecimalValueFieldNumber

Field number for the "decimal_value" field.

public const int DecimalValueFieldNumber = 18

Field Value

int

DoubleValueFieldNumber

Field number for the "double_value" field.

public const int DoubleValueFieldNumber = 13

Field Value

int

FloatValueFieldNumber

Field number for the "float_value" field.

public const int FloatValueFieldNumber = 12

Field Value

int

GuidValueFieldNumber

Field number for the "guid_value" field.

public const int GuidValueFieldNumber = 15

Field Value

int

IntValueFieldNumber

Field number for the "int_value" field.

public const int IntValueFieldNumber = 8

Field Value

int

LongValueFieldNumber

Field number for the "long_value" field.

public const int LongValueFieldNumber = 10

Field Value

int

ManagedTypeFieldNumber

Field number for the "ManagedType" field.

public const int ManagedTypeFieldNumber = 19

Field Value

int

NullValueFieldNumber

Field number for the "null_value" field.

public const int NullValueFieldNumber = 1

Field Value

int

SbyteValueFieldNumber

Field number for the "sbyte_value" field.

public const int SbyteValueFieldNumber = 5

Field Value

int

ShortValueFieldNumber

Field number for the "short_value" field.

public const int ShortValueFieldNumber = 6

Field Value

int

StringValueFieldNumber

Field number for the "string_value" field.

public const int StringValueFieldNumber = 14

Field Value

int

SupportNullFieldNumber

Field number for the "SupportNull" field.

public const int SupportNullFieldNumber = 20

Field Value

int

UintValueFieldNumber

Field number for the "uint_value" field.

public const int UintValueFieldNumber = 9

Field Value

int

UlongValueFieldNumber

Field number for the "ulong_value" field.

public const int UlongValueFieldNumber = 11

Field Value

int

UshortValueFieldNumber

Field number for the "ushort_value" field.

public const int UshortValueFieldNumber = 7

Field Value

int

Properties

BoolValue

Represents a boolean value.

public bool BoolValue { get; set; }

Property Value

bool

ByteValue

Represents a int value.

public uint ByteValue { get; set; }

Property Value

uint

CharValue

Represents a char value.

public string CharValue { get; set; }

Property Value

string

DatetimeValue

Represents a Datetime value.

public Datetime DatetimeValue { get; set; }

Property Value

Datetime

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

string

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

DoubleValue

Represents a double value.

public double DoubleValue { get; set; }

Property Value

double

FloatValue

Represents a float value.

public float FloatValue { get; set; }

Property Value

float

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

bool

HasByteValue

Gets whether the "byte_value" field is set

public bool HasByteValue { get; }

Property Value

bool

HasCharValue

Gets whether the "char_value" field is set

public bool HasCharValue { get; }

Property Value

bool

HasDecimalValue

Gets whether the "decimal_value" field is set

public bool HasDecimalValue { get; }

Property Value

bool

HasDoubleValue

Gets whether the "double_value" field is set

public bool HasDoubleValue { get; }

Property Value

bool

HasFloatValue

Gets whether the "float_value" field is set

public bool HasFloatValue { get; }

Property Value

bool

HasGuidValue

Gets whether the "guid_value" field is set

public bool HasGuidValue { get; }

Property Value

bool

HasIntValue

Gets whether the "int_value" field is set

public bool HasIntValue { get; }

Property Value

bool

HasLongValue

Gets whether the "long_value" field is set

public bool HasLongValue { get; }

Property Value

bool

HasNullValue

Gets whether the "null_value" field is set

public bool HasNullValue { get; }

Property Value

bool

HasSbyteValue

Gets whether the "sbyte_value" field is set

public bool HasSbyteValue { get; }

Property Value

bool

HasShortValue

Gets whether the "short_value" field is set

public bool HasShortValue { get; }

Property Value

bool

HasStringValue

Gets whether the "string_value" field is set

public bool HasStringValue { get; }

Property Value

bool

HasUintValue

Gets whether the "uint_value" field is set

public bool HasUintValue { get; }

Property Value

bool

HasUlongValue

Gets whether the "ulong_value" field is set

public bool HasUlongValue { get; }

Property Value

bool

HasUshortValue

Gets whether the "ushort_value" field is set

public bool HasUshortValue { get; }

Property Value

bool

IntValue

Represents a int value.

public int IntValue { get; set; }

Property Value

int

KindCase

public GenericValue.KindOneofCase KindCase { get; }

Property Value

GenericValue.KindOneofCase

LongValue

Represents a long value.

public long LongValue { get; set; }

Property Value

long

ManagedType

public int ManagedType { get; set; }

Property Value

int

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

int

ShortValue

Represents a int value.

public int ShortValue { get; set; }

Property Value

int

StringValue

Represents a string value.

public string StringValue { get; set; }

Property Value

string

SupportNull

public bool SupportNull { get; set; }

Property Value

bool

UintValue

Represents a int value.

public uint UintValue { get; set; }

Property Value

uint

UlongValue

Represents a long value.

public ulong UlongValue { get; set; }

Property Value

ulong

UshortValue

Represents a int value.

public uint UshortValue { get; set; }

Property Value

uint

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

other GenericValue

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetContent()

Returns the content of GenericValue

public object GetContent()

Returns

object

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 CodedOutputStream

Coded output stream to write the data to. Must not be null.