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

This file was automatically generated by

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


type OptionTargetType
    = TARGETTYPEUNKNOWN
    | TARGETTYPEFILE
    | TARGETTYPEEXTENSIONRANGE
    | TARGETTYPEMESSAGE
    | TARGETTYPEFIELD
    | TARGETTYPEONEOF
    | TARGETTYPEENUM
    | TARGETTYPEENUMENTRY
    | TARGETTYPESERVICE
    | TARGETTYPEMETHOD

OptionTargetType enumeration

decodeOptionTargetType : Protobuf.Decode.Decoder OptionTargetType

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

defaultOptionTargetType : OptionTargetType

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

encodeOptionTargetType : OptionTargetType -> Protobuf.Encode.Encoder

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

fieldNumbersOptionTargetType : OptionTargetType -> Basics.Int

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

jsonDecodeOptionTargetType : Json.Decode.Decoder OptionTargetType

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

jsonEncodeOptionTargetType : OptionTargetType -> Json.Encode.Value

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