package ocaml-protoc-plugin

  1. Overview
  2. Docs

Enum type definition.

type t = {
  1. name : string;
    (*

    Enum type name.

    *)
  2. enumvalue : EnumValue.t list;
    (*

    Enum value definitions.

    *)
  3. options : Option.t list;
    (*

    Protocol buffer options.

    *)
  4. source_context : Source_context.Google.Protobuf.SourceContext.t option;
    (*

    The source context.

    *)
  5. syntax : Syntax.t;
    (*

    The source syntax.

    *)
}
val make : ?name:string -> ?enumvalue:EnumValue.t list -> ?options:Option.t list -> ?source_context:Source_context.Google.Protobuf.SourceContext.t -> ?syntax:Syntax.t -> 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