anmolitor/elm-protoc-types/2.0.0

Formerly andreasewering/elm-protoc-types. Search finds this package by either name.

Proto.Google.Protobuf.UninterpretedOption

This file was automatically generated by

  • protoc-gen-elm 4.0.1
  • protoc 4.22.2
  • the following specification files: google/protobuf/descriptor.proto

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

type alias NamePart =
Proto__Google__Protobuf__UninterpretedOption__NamePart

The name of the uninterpreted option. Each string represents a segment in a dot-separated name. is_extension is true iff a segment represents an extension (denoted with parentheses in options specs in .proto files). E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents "foo.(bar.baz).moo".

decodeNamePart : Decoder NamePart

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

defaultNamePart : NamePart

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

encodeNamePart : NamePart -> Encoder

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

{ namePart : Int
, isExtension : Int
}

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

jsonDecodeNamePart : Decoder NamePart

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

jsonEncodeNamePart : NamePart -> Value

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