Protocol Buffer Types: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Tag: Reverted
Line 16: Line 16:
==<tt>float</tt>==
==<tt>float</tt>==
==<tt>double</tt>==
==<tt>double</tt>==
=Boolean=
<syntaxhighlight lang='protobuf'>
bool some_bool = 1;
</syntaxhighlight>
The default value is <code>false</code>.

Revision as of 23:49, 6 May 2024

Internal

Overview

Scalar Number Types

int32

uint32

sint32

fixed32

sfixed32

int64

uint64

sint64

fixed64

sfixed64

float

double

Boolean

bool some_bool = 1;

The default value is false.