Table of Contents

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>
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

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 = 3

Field Value

int

DatetimeValueFieldNumber

Field number for the "datetime_value" field.

public const int DatetimeValueFieldNumber = 11

Field Value

int

DatetimeoffsetValueFieldNumber

Field number for the "datetimeoffset_value" field.

public const int DatetimeoffsetValueFieldNumber = 12

Field Value

int

DoubleValueFieldNumber

Field number for the "double_value" field.

public const int DoubleValueFieldNumber = 8

Field Value

int

FloatValueFieldNumber

Field number for the "float_value" field.

public const int FloatValueFieldNumber = 7

Field Value

int

GuidValueFieldNumber

Field number for the "guid_value" field.

public const int GuidValueFieldNumber = 10

Field Value

int

IntValueFieldNumber

Field number for the "int_value" field.

public const int IntValueFieldNumber = 5

Field Value

int

LongValueFieldNumber

Field number for the "long_value" field.

public const int LongValueFieldNumber = 6

Field Value

int

NullValueFieldNumber

Field number for the "null_value" field.

public const int NullValueFieldNumber = 1

Field Value

int

ShortValueFieldNumber

Field number for the "short_value" field.

public const int ShortValueFieldNumber = 4

Field Value

int

StringValueFieldNumber

Field number for the "string_value" field.

public const int StringValueFieldNumber = 9

Field Value

int

Properties

BoolValue

Represents a boolean value.

public bool BoolValue { get; set; }

Property Value

bool

ByteValue

Represents a int value.

public int ByteValue { get; set; }

Property Value

int

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

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

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

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

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

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

int

StringValue

Represents a string value.

public string StringValue { get; set; }

Property Value

string

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 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.