This is the public API for working with protocol buffers.
This is the public API for working with protocol buffers.
(get-impl)
Get the currently configured protobuf implementation. If not defined,
used the hard-coded default value (see default-impl-name
).
Note that the protobuf backend implementation is configured using
JVM system properties (i.e., the -D
option). Projects that use lein
may set this with :jvm-opts
(e.g, :jvm-opts ["-Dprotobuf.impl=flatland"]
).
Get the currently configured protobuf implementation. If not defined, used the hard-coded default value (see `default-impl-name`). Note that the protobuf backend implementation is configured using JVM system properties (i.e., the `-D` option). Projects that use `lein` may set this with `:jvm-opts` (e.g, `:jvm-opts ["-Dprotobuf.impl=flatland"]`).
(->bytes this)
(->schema this)
(bytes-> this bytes)
(read this in)
(write this out)
(schema protobuf-class)
This function is designed to be called against compiled Java protocol
buffer classes. To get the schema of a Clojure protobuf instance, you'll
want to use the ->schema
method.
This function is designed to be called against compiled Java protocol buffer classes. To get the schema of a Clojure protobuf instance, you'll want to use the `->schema` method.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close