anmolitor/elm-protoc-types/1.0.2

NOTE: the latest version is 2.0.0

Formerly andreasewering/elm-protoc-types. Search finds this package by either name.

Proto.Google.Protobuf.FieldDescriptorProto

This file was automatically generated by

  • protoc-gen-elm 3.3.4
  • protoc 4.22.2
  • the following specification files: google/protobuf/descriptor.proto

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

type Label
= LABELOPTIONAL
| LABELREQUIRED
| LABELREPEATED

Label enumeration

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

Type enumeration

decodeLabel : Decoder Label

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

decodeType : 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.

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

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

encodeLabel : Label -> Encoder

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

encodeType : Type -> 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.

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

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

Convert the internal type Proto__Google__Protobuf__FieldDescriptorProto__Label into a Label.

Using two different types is necessary to avoid recursive module references while having readable constructor names.

Convert the internal type Proto__Google__Protobuf__FieldDescriptorProto__Type into a Type.

Using two different types is necessary to avoid recursive module references while having readable constructor names.

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

jsonEncodeType : Type -> Value

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

Convert a Label into its internal representation Proto__Google__Protobuf__FieldDescriptorProto__Label.

Using two different types is necessary to avoid recursive module references while having readable constructor names.

Convert a Type into its internal representation Proto__Google__Protobuf__FieldDescriptorProto__Type.

Using two different types is necessary to avoid recursive module references while having readable constructor names.