package ocaml-protoc-plugin

  1. Overview
  2. Docs

`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.

type t = string

The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`.

val make : ?file_name:string -> 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