anmolitor / elm-protoc-types / Proto.Google.Protobuf.GeneratedCodeInfo.Annotation.Semantic

This file was automatically generated by

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


type Semantic
    = NONE
    | SET
    | ALIAS

Semantic enumeration

decodeSemantic : Protobuf.Decode.Decoder Semantic

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

defaultSemantic : Semantic

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

encodeSemantic : Semantic -> Protobuf.Encode.Encoder

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

fieldNumbersSemantic : Semantic -> Basics.Int

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

jsonDecodeSemantic : Json.Decode.Decoder Semantic

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

jsonEncodeSemantic : Semantic -> Json.Encode.Value

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