Proto Message Design
Design Protocol Buffer message schemas with field numbers, cardinality, enums, nested messages, oneof groups, and map fields.
Protocol Buffer messages are the foundation of gRPC APIs. NeoArc's schema designer supports all proto3 features including field numbers, cardinality, nested messages, enums, oneof groups, map fields, and well-known types. Enable proto mode on any schema to access these features.
Scalar Types
Proto3 supports a rich set of scalar types for different data needs.
| Proto Type | Default Value | JSON Mapping | Use Case |
|---|---|---|---|
| string | "" | string | Text, identifiers, UUIDs |
| int32 | 0 | number | Small integers, quantities |
| int64 | 0 | string | Large integers, monetary amounts in cents |
| uint32 | 0 | number | Non-negative integers, sizes |
| float / double | 0 | number | Floating-point values (avoid for money) |
| bool | false | boolean | Flags and toggles |
| bytes | empty | base64 string | Binary data, file contents |
| enum | first value (0) | string or number | Fixed set of named values |