andreasewering/elm-protoc-types/1.2.0

NOTE: the latest version is 1.2.1

Renamed to anmolitor/elm-protoc-types. It is published under that name, and new versions come out there.

Versions published as andreasewering/elm-protoc-types still install under that name. 4 versions of 5 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/anmolitor/elm-protoc-types.

What we checked: The repo moved to github.com/anmolitor/elm-protoc-types. Rebuilt with git archive from commit 5383cc4ad94c of https://github.com/anmolitor/elm-protoc-types (zip prefix andreasewering-elm-protoc-types-18b469d/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 2da3e75fe6f611124dbae00dcdf270c2814e3477.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/andreasewering/elm-protoc-types/zipball/1.2.0/

Proto.Google.Protobuf.DescriptorProto

This file was automatically generated by

  • protoc-gen-elm 3.3.4
  • 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 ExtensionRange =
Proto__Google__Protobuf__DescriptorProto__ExtensionRange

Fields

start

Inclusive.

end

Exclusive.

type alias ReservedRange =
Proto__Google__Protobuf__DescriptorProto__ReservedRange

Range of reserved tag numbers. Reserved tag numbers may not be used by fields or extension ranges in the same message. Reserved ranges may not overlap.

Fields

start

Inclusive.

end

Exclusive.

decodeExtensionRange : Decoder ExtensionRange

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

decodeReservedRange : Decoder ReservedRange

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

defaultExtensionRange : ExtensionRange

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

defaultReservedRange : ReservedRange

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

encodeExtensionRange : ExtensionRange -> Encoder

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

encodeReservedRange : ReservedRange -> Encoder

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

{ start : Int
, end : Int
, options : Int
}

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

{ start : Int
, end : Int
}

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

jsonEncodeExtensionRange : ExtensionRange -> Value

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

jsonEncodeReservedRange : ReservedRange -> Value

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