anmolitor / elm-protoc-types / Proto.Google.Protobuf.FieldDescriptorProto.Type

This file was automatically generated by

To run it, add a dependency via elm install on elm-protocol-buffers version latest or higher.


type Type
    = TYPEDOUBLE
    | TYPEFLOAT
    | TYPEINT64
    | TYPEUINT64
    | TYPEINT32
    | TYPEFIXED64
    | TYPEFIXED32
    | TYPEBOOL
    | TYPESTRING
    | TYPEGROUP
    | TYPEMESSAGE
    | TYPEBYTES
    | TYPEUINT32
    | TYPEENUM
    | TYPESFIXED32
    | TYPESFIXED64
    | TYPESINT32
    | TYPESINT64

Type enumeration

decodeType : Protobuf.Decode.Decoder Type

Declares how to decode a Type from Bytes. To actually perform the conversion from Bytes, you need to use Protobuf.Decode.decode from eriktim/elm-protocol-buffers.

defaultType : Type

Default for Type. Should only be used for 'required' decoders as an initial value.

encodeType : Type -> Protobuf.Encode.Encoder

Declares how to encode a Type to Bytes. To actually perform the conversion to Bytes, you need to use Protobuf.Encode.encode from eriktim/elm-protocol-buffers.

fieldNumbersType : Type -> Basics.Int

The field numbers for the fields of Type. This is mostly useful for internals, like documentation generation.

jsonDecodeType : Json.Decode.Decoder Type

Decode a Type from JSON. Uses the canonical encoding described here: https://protobuf.dev/programming-guides/proto3/#json

jsonEncodeType : Type -> Json.Encode.Value

Encode a Type to JSON. Uses the canonical encoding described here: https://protobuf.dev/programming-guides/proto3/#json