package ocaml-protoc-plugin

  1. Overview
  2. Docs

Describes the relationship between generated code and its original source file. A GeneratedCodeInfo message is associated with only one generated source file, but may contain references to different source .proto files.

module Annotation : sig ... end
type t = Annotation.t list

An Annotation connects some span of text in generated code to an element of its generating .proto file.

val make : ?annotation:Annotation.t list -> unit -> t

Helper function to generate a message using default values

Serialize the message to binary format

Deserialize from binary format

Serialize to Json (compatible with Yojson.Basic.t)

Deserialize from Json (compatible with Yojson.Basic.t)

val name : unit -> string

Fully qualified protobuf name of this message