Class BoolValue

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

Fields

ValueFieldNumber

public const int ValueFieldNumber = null

Field number for the "value" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
MessageDescriptor

Parser

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

Value

public bool Value { get; set; }

The bool value.

Property Value
TypeDescription
Boolean

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public BoolValue Clone()
Returns
TypeDescription
BoolValue

Equals(BoolValue)

public bool Equals(BoolValue other)
Parameter
TypeNameDescription
BoolValueother
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
TypeNameDescription
Objectother
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
TypeNameDescription
CodedInputStreaminput

MergeFrom(BoolValue)

public void MergeFrom(BoolValue other)
Parameter
TypeNameDescription
BoolValueother

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
TypeNameDescription
CodedOutputStreamoutput

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
TypeNameDescription
ParseContextinput

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
TypeNameDescription
WriteContextoutput

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
TypeDescription
MessageDescriptor

Implements

IEquatable<>