package ocaml-protoc

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ocaml_protoc_compiler_lib.Pb_optionSource

Protobuf File/Message/Field options

Sourcetype constant =
  1. | Constant_string of string
  2. | Constant_bool of bool
  3. | Constant_int of int
  4. | Constant_float of float
  5. | Constant_literal of string

Protobuf constant

As defined in: Protobuf Language Spec.

Sourcetype message_literal = (string * value) list
Sourceand list_literal = value list
Sourceand value =
  1. | Scalar_value of constant
  2. | Message_literal of message_literal
  3. | List_literal of list_literal
Sourcetype option_name = string

Option identifier

Sourcetype set = t list

Collection of options

Can be used for field/message or file options

Sourceval empty : set
Sourceval add : set -> string -> value -> set
Sourceval merge : set -> set -> set

merge s1 s2 adds all the options from s2 to s1. This means than in case of duplicates s2 options will override s1 options.

Sourceval get : set -> string -> value option
Sourceval pp_constant : Format.formatter -> constant -> unit
Sourceval pp_value : Format.formatter -> value -> unit
Sourceval pp_message_literal : Format.formatter -> message_literal -> unit
Sourceval pp_message_field : Format.formatter -> (string * value) -> unit
Sourceval pp_t : Format.formatter -> t -> unit
Sourceval pp_set : Format.formatter -> set -> unit
OCaml

Innovation. Community. Security.