anmolitor / elm-protoc-types / Proto.Google.Protobuf.FieldOptions.OptionRetention

This file was automatically generated by

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


type OptionRetention
    = RETENTIONUNKNOWN
    | RETENTIONRUNTIME
    | RETENTIONSOURCE

OptionRetention enumeration

decodeOptionRetention : Protobuf.Decode.Decoder OptionRetention

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

defaultOptionRetention : OptionRetention

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

encodeOptionRetention : OptionRetention -> Protobuf.Encode.Encoder

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

fieldNumbersOptionRetention : OptionRetention -> Basics.Int

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

jsonDecodeOptionRetention : Json.Decode.Decoder OptionRetention

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

jsonEncodeOptionRetention : OptionRetention -> Json.Encode.Value

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