This file was automatically generated by
protoc-gen-elm
3.3.4protoc
4.22.2google/protobuf/descriptor.proto
To run it, add a dependency via elm install
on elm-protocol-buffers
version latest or higher.
Label
enumeration
Type
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.
decodeType : Protobuf.Decode.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.
defaultLabel : Label
Default for Label. Should only be used for 'required' decoders as an initial value.
defaultType : Type
Default for Type. 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.
encodeType : Type -> Protobuf.Encode.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.
fieldNumbersLabel : Label -> Basics.Int
The field numbers for the fields of Label
. This is mostly useful for internals, like documentation generation.
fieldNumbersType : Type -> Basics.Int
The field numbers for the fields of Type
. This is mostly useful for internals, like documentation generation.
fromInternalLabel : Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufFieldDescriptorProtoLabel -> Label
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.
fromInternalType : Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufFieldDescriptorProtoType -> Type
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.
jsonEncodeLabel : Label -> Json.Encode.Value
Encode a Label
to JSON. Uses the canonical encoding described here: https://protobuf.dev/programming-guides/proto3/#json
jsonEncodeType : Type -> Json.Encode.Value
Encode a Type
to JSON. Uses the canonical encoding described here: https://protobuf.dev/programming-guides/proto3/#json
toInternalLabel : Label -> Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufFieldDescriptorProtoLabel
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.
toInternalType : Type -> Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufFieldDescriptorProtoType
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.