This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-10
Channels
- # announcements (1)
- # babashka (178)
- # beginners (216)
- # bootstrapped-cljs (1)
- # brompton (5)
- # calva (3)
- # chlorine-clover (1)
- # clj-kondo (2)
- # cljdoc (37)
- # cljfx (4)
- # cljs-dev (2)
- # clojure (360)
- # clojure-chile (8)
- # clojure-europe (3)
- # clojure-italy (5)
- # clojure-nl (9)
- # clojure-spec (2)
- # clojure-sweden (1)
- # clojure-uk (61)
- # clojuredesign-podcast (1)
- # clojurescript (83)
- # clr (2)
- # conjure (4)
- # core-async (14)
- # cursive (20)
- # data-science (2)
- # datomic (15)
- # docker (11)
- # emotion-cljs (1)
- # figwheel-main (28)
- # find-my-lib (1)
- # fulcro (46)
- # helix (16)
- # honeysql (14)
- # jobs (10)
- # jobs-discuss (17)
- # joker (1)
- # juxt (9)
- # kaocha (8)
- # leiningen (3)
- # meander (3)
- # news-and-articles (1)
- # off-topic (110)
- # pathom (7)
- # pedestal (4)
- # protojure (2)
- # re-frame (12)
- # reagent (25)
- # ring (4)
- # shadow-cljs (109)
- # spacemacs (9)
- # specter (1)
- # sql (3)
- # tools-deps (23)
Hi! I'm new to protojure (and gRPC for that matter). First off I want to thank you for creating and sharing protojure.
I'm trying to create a clojure client for a vendor's service. I've managed to get some service method calls working but having trouble with one.
It looks to me like some of the fields are missing in the generated cis->Message
code for one of the message types.
Would someone be wiling to take a look?
The proto def for the message is https://github.com/sajari/proto/blob/v2/sajari/pipeline/v2/record.proto#L44-L57
There are 4 fields, but in the generated code I only see field 2.
(defn cis->ReplaceRecordRequest
"CodedInputStream to ReplaceRecordRequest"
[is]
(->> (tag-map ReplaceRecordRequest-defaults
(fn [tag index]
(case index
2 [:values (com.google.protobuf/ecis->Struct is)]
[index (serdes.core/cis->undefined tag is)]))
is)
(map->ReplaceRecordRequest-record)))
I'm using the latest release (0.8.2) of the plugin.
Thank you!After a closer look I realize the missing fields are in other places too (not just cis->
).
For example, here's the defrecord
which only serializes field 2:
(defrecord ReplaceRecordRequest-record [values]
pb/Writer
(serialize [this os]
(serdes.core/write-embedded 2 (:values this) os))
pb/TypeReflection
(gettype [this]
"sajari.pipeline.v2.ReplaceRecordRequest"))