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>IBufferMessageIMessage
- Inherited Members
Constructors
ComplexType()
public ComplexType()
ComplexType(ComplexType)
public ComplexType(ComplexType other)
Parameters
otherComplexType
ComplexType(Type, object?)
Initialize a ComplexType with input
public ComplexType(Type type, object? input)
Parameters
Fields
BytesValueFieldNumber
Field number for the "bytes_value" field.
public const int BytesValueFieldNumber = 2
Field Value
ClrtypeValueFieldNumber
Field number for the "clrtype_value" field.
public const int ClrtypeValueFieldNumber = 3
Field Value
StringValueFieldNumber
Field number for the "string_value" field.
public const int StringValueFieldNumber = 1
Field Value
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
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasBytesValue
Gets whether the "bytes_value" field is set
public bool HasBytesValue { get; }
Property Value
HasStringValue
Gets whether the "string_value" field is set
public bool HasStringValue { get; }
Property Value
KindCase
public ComplexType.KindOneofCase KindCase { get; }
Property Value
Parser
public static MessageParser<ComplexType> Parser { get; }
Property Value
- MessageParser<ComplexType>
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.
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
otherComplexTypeAn 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(out string, ref object?)
Returns a the converted object
public void GetContent(out string clrType, ref object? result)
Parameters
clrTypestringThe string representing Type
resultobjectThe 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
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(ComplexType)
Merges the given message into this one.
public void MergeFrom(ComplexType other)
Parameters
otherComplexType
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.