Table of Contents

Class ComplexType

Namespace
MASES.EntityFrameworkCore.KNet.Serialization.Protobuf.Storage
Assembly
MASES.EntityFrameworkCore.KNet.Serialization.Protobuf.dll

[START messages] Represent a ComplexType

public sealed class ComplexType : IMessage<ComplexType>, IEquatable<ComplexType>, IDeepCloneable<ComplexType>, IBufferMessage, IMessage
Inheritance
ComplexType
Implements
IMessage<ComplexType>
IDeepCloneable<ComplexType>
IBufferMessage
IMessage
Inherited Members

Constructors

ComplexType()

public ComplexType()

ComplexType(ComplexType)

public ComplexType(ComplexType other)

Parameters

other ComplexType

ComplexType(Type, object?)

Initialize a ComplexType with input

public ComplexType(Type type, object? input)

Parameters

type Type
input object

The generic object to be stored

Fields

BytesValueFieldNumber

Field number for the "bytes_value" field.

public const int BytesValueFieldNumber = 2

Field Value

int

ClrtypeValueFieldNumber

Field number for the "clrtype_value" field.

public const int ClrtypeValueFieldNumber = 3

Field Value

int

StringValueFieldNumber

Field number for the "string_value" field.

public const int StringValueFieldNumber = 1

Field Value

int

Properties

BytesValue

Represents a Guid value.

public ByteString BytesValue { get; set; }

Property Value

ByteString

ClrtypeValue

Represents a the clr type value.

public string ClrtypeValue { get; set; }

Property Value

string

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

HasBytesValue

Gets whether the "bytes_value" field is set

public bool HasBytesValue { get; }

Property Value

bool

HasStringValue

Gets whether the "string_value" field is set

public bool HasStringValue { get; }

Property Value

bool

KindCase

public ComplexType.KindOneofCase KindCase { get; }

Property Value

ComplexType.KindOneofCase

Parser

public static MessageParser<ComplexType> Parser { get; }

Property Value

MessageParser<ComplexType>

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.

ClearBytesValue()

Clears the value of the oneof if it's currently set to "bytes_value"

public void ClearBytesValue()

ClearKind()

public void ClearKind()

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 ComplexType Clone()

Returns

ComplexType

A deep clone of this object.

Equals(ComplexType)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ComplexType other)

Parameters

other ComplexType

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(out string, ref object?)

Returns a the converted object

public void GetContent(out string clrType, ref object? result)

Parameters

clrType string

The string representing Type

result object

The object stored in ComplexType

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(ComplexType)

Merges the given message into this one.

public void MergeFrom(ComplexType other)

Parameters

other ComplexType

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.