pbdirect icon indicating copy to clipboard operation
pbdirect copied to clipboard

Read/Write Scala objects directly to Protobuf with no .proto file definitions

Results 13 pbdirect issues
Sort by recently updated
recently updated
newest added

Hi, when I add the lines below to my `build.sbt`: ``` resolvers += Resolver.bintrayRepo("beyondthelines", "maven") libraryDependencies += "beyondthelines" %% "pbdirect" % "0.1.0" ``` I get http response code `403` from...

[Stacktrace](https://gist.github.com/elyast/f04e428b2bfe57c6b205e3909280fc6b) Please see reference protobuffer definitions: [Example client article/code](https://medium.com/@junwan01/a-java-client-for-tensorflow-serving-grpc-api-d37b5ad747aa) Related to #https://github.com/higherkindness/mu-scala/issues/1024

Currently, as noted in the project page, we use an O(N*M) algorithm for deserializing products with N fields repeated a total of M times. In profiling the deserialization of a...

Simple example: ```scala object TestMessages { case class InnerMessage(id: Int, name: String) } import TestMessages._ case class NestedInnerMessage(id: Int, inner: InnerMessage) ``` Writing this message works correctly: ```scala "write a...

```scala import pbdirect._ sealed trait Foo case class Foo1(li: List[Int]) case class Foo2(ll: List[Long]) import cats.instances.list._ println(Foo1(List.empty).toPB.toSeq) println(Foo2(List.empty).toPB.toSeq) // prints // WrappedArray() // WrappedArray() ``` So in general `(a: A).toPb.pbTo[A]...

For example I want infer `pbdirect` instances for the following sealed trait: ```scala import pbdirect._ sealed trait MyList case class Cons(i: Int, l: MyList) extends MyList case object Nil extends...

If I'm trying to write simple integer types like `Long` or `Int` I get the `com.google.protobuf.InvalidProtocolBufferException` error ```scala import pbdirect._ 1L.toPB ``` results to ``` com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol...

It would be great to have this library in the maven central repo, for example through sonatype. We're using this library in some other libraries and the resolver needs to...

``` package example import cats.instances.list._ import pbdirect._ object Hello extends App { case class MyMessage( id: Option[Int], text: Option[String], numbers: List[Int]) val message = MyMessage( id = Some(123), text =...