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

This file was automatically generated by

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


type Label
    = LABELOPTIONAL
    | LABELREQUIRED
    | LABELREPEATED

Label enumeration

decodeLabel : Protobuf.Decode.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.

defaultLabel : Label

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

encodeLabel : Label -> Protobuf.Encode.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.

fieldNumbersLabel : Label -> Basics.Int

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

jsonDecodeLabel : Json.Decode.Decoder Label

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

jsonEncodeLabel : Label -> Json.Encode.Value

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