andreasewering / elm-protoc-types / Proto.Google.Protobuf.GeneratedCodeInfo

This file was automatically generated by

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


type alias Annotation =
Proto.Google.Protobuf.Internals_.Proto__Google__Protobuf__GeneratedCodeInfo__Annotation

Fields

path

Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.

sourceFile

Identifies the filesystem path to the original source .proto.

begin

Identifies the starting offset in bytes in the generated code that relates to the identified object.

end

Identifies the ending offset in bytes in the generated code that relates to the identified object. The end offset should be one past the last relevant byte (so the length of the text = end - begin).

decodeAnnotation : Protobuf.Decode.Decoder Annotation

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

defaultAnnotation : Annotation

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

encodeAnnotation : Annotation -> Protobuf.Encode.Encoder

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

fieldNumbersAnnotation : { path : Basics.Int, sourceFile : Basics.Int, begin : Basics.Int, end : Basics.Int, semantic : Basics.Int }

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

jsonEncodeAnnotation : Annotation -> Json.Encode.Value

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