Class BoolValue (3.15.8)

public sealed class BoolValue : object, IMessage<BoolValue>, IEquatable<BoolValue>, IDeepCloneable<BoolValue>, IBufferMessage, IMessage

Wrapper message for bool.

The JSON representation for BoolValue is JSON true and false.

Inheritance

Object > BoolValue

Namespace

Google.Protobuf.WellKnownTypes

Assembly

Google.Protobuf.dll

Constructors

BoolValue()

public BoolValue()

BoolValue(BoolValue)

public BoolValue(BoolValue other)
Parameter
Name Description
other BoolValue

Fields

ValueFieldNumber

public const int ValueFieldNumber = null

Field number for the "value" field.

Field Value
Type Description
Int32

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Parser

public static MessageParser<BoolValue> Parser { get; }
Property Value
Type Description
MessageParser<BoolValue>

Value

public bool Value { get; set; }

The bool value.

Property Value
Type Description
Boolean

Methods

CalculateSize()

public int CalculateSize()
Returns
Type Description
Int32

Clone()

public BoolValue Clone()
Returns
Type Description
BoolValue

Equals(BoolValue)

public bool Equals(BoolValue other)
Parameter
Name Description
other BoolValue
Returns
Type Description
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
Name Description
other Object
Returns
Type Description
Boolean

GetHashCode()

public override int GetHashCode()
Returns
Type Description
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream

MergeFrom(BoolValue)

public void MergeFrom(BoolValue other)
Parameter
Name Description
other BoolValue

ToString()

public override string ToString()
Returns
Type Description
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
Name Description
input ParseContext

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
Name Description
output WriteContext

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor