proto3-wire-1.2.0: A low-level implementation of the Protocol Buffers (version 3) wire format

Safe HaskellNone
LanguageHaskell2010

Proto3.Wire.Types

Contents

Description

This module defines types which are shared by the encoding and decoding modules.

Synopsis

Message Structure

newtype FieldNumber Source #

A FieldNumber identifies a field inside a protobufs message.

This library makes no attempt to generate these automatically, or even make sure that field numbers are provided in increasing order. Such things are left to other, higher-level libraries.

Constructors

FieldNumber 
Instances
Enum FieldNumber Source # 
Instance details

Defined in Proto3.Wire.Types

Eq FieldNumber Source # 
Instance details

Defined in Proto3.Wire.Types

Num FieldNumber Source # 
Instance details

Defined in Proto3.Wire.Types

Ord FieldNumber Source # 
Instance details

Defined in Proto3.Wire.Types

Show FieldNumber Source # 
Instance details

Defined in Proto3.Wire.Types

Arbitrary FieldNumber Source # 
Instance details

Defined in Proto3.Wire.Types

NFData FieldNumber Source # 
Instance details

Defined in Proto3.Wire.Types

Methods

rnf :: FieldNumber -> () #

Hashable FieldNumber Source # 
Instance details

Defined in Proto3.Wire.Types

fieldNumber :: Word64 -> FieldNumber Source #

Create a FieldNumber given the (one-based) integer which would label the field in the corresponding .proto file.

data WireType Source #

The (non-deprecated) wire types identified by the Protocol Buffers specification.

Instances
Eq WireType Source # 
Instance details

Defined in Proto3.Wire.Types

Ord WireType Source # 
Instance details

Defined in Proto3.Wire.Types

Show WireType Source # 
Instance details

Defined in Proto3.Wire.Types