package ocaml-protoc-plugin

  1. Overview
  2. Docs

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.

type t = {
  1. start : int option;
    (*

    Inclusive.

    *)
  2. end' : int option;
    (*

    Exclusive.

    *)
}
val make : ?start:int -> ?end':int -> 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