112 questions
2
votes
0
answers
75
views
Deserializing ScalaPB enum from int value and class
I am currently working on a Kryo SerDe for scalaPB (similar to twitter 'chill').
I struggle implementing the read interface
override def read(
kryo: com.esotericsoftware.kryo.Kryo,
input: ...
0
votes
2
answers
109
views
How to I convert a HttpEntity into a Protobuf object in Scala using Akka-http?
I'm using Scala with akka-http. I have a protobuf marshaller that works just fine on incoming routes:
trait ProtobufMarshalling[T <: GeneratedMessage, E <: GeneratedMessage] {
implicit def ...
0
votes
3
answers
58
views
Updated scalapb class fails to render old dataframe
I am trying to figure out if this is an issue in the sparksql-scalapb (https://github.com/scalapb/sparksql-scalapb) or if I am not able to figure out somehow.
Consider a proto which will generate a ...
0
votes
1
answer
118
views
How to handle custom error reporting in ScalaPB's GRPC wrapper
If I have a service's method throw an exception, my client receives no information about what kind of exception this was. I've read that this was made on purpose, to prevent server details being ...
0
votes
0
answers
59
views
Issue with proto object defining isEmpty
we've got this protobuffer object definition (and we cannot modify it)
...
message Condition {
oneof condition_one_of {
FieldCondition field = 1;
IsEmptyCondition is_empty = 2;
...
0
votes
1
answer
72
views
How to handle clashing plugins generating code in SBT project?
I am stuck on a problem with my Scala SBT (1.7.2) project.
Situation:
I already have working configuration to generate code from *.avsc, *.avdl files via "com.julianpeeters" % "sbt-...
1
vote
0
answers
135
views
ScalaPB type class instance on the generated message companion object
Suppose there is a proto MyMessage and a type class TypeClass[T].
Is it possible to have a custom instance TypeClass[MyMessage] in the generated companion object of MyMessage, so any (implicit ...
0
votes
0
answers
96
views
Error in spark Dataset processing when using a scalapb generated class wrapped inside vanilla scala case class
I am trying to wrap a scalapb generated class inside a scala defined case class and then use it while doing some spark processing. Is it possible?
Here is some schematic code of what I am trying to do
...
1
vote
2
answers
304
views
Invalid package name error when compiling generated zio-grpc classes on Scala 2.13.12
I'm creating ZIO gRPC client service on scala 2.13.12.
I generated classes from .proto's and trying to compile my project and getting this error:
[error] C:\Users\arsen\IdeaProjects\voicekit-grpc\...
0
votes
2
answers
213
views
Unmarshalling protobufs in Scala
I have previously got Unmarshalling working in Scala using ScalaPB and the following marshallers:
implicit def marshaller[T <: GeneratedMessage]: ToEntityMarshaller[T] = ...
0
votes
0
answers
127
views
ScalaPb annotations on sealed trait
I am trying to put an annotation on top of a generated sealed trait using scalaPb this way:
message SealedTrait {
option (scalapb.message).annotations ="@zio.json.jsonDiscriminator("...
0
votes
0
answers
61
views
Is there a way to prevent scalapb auto-generation for certain gRPC endpoints in a service?
We have a large gRPC service that contains many endpoints. When we try to add a new endpoint, compilation of the scala code generated by scalapb fails, because the bindService method in the service ...
1
vote
0
answers
41
views
How to compile the protofile
need a help, I don't have idea about how to compile for proto useing scalapb
syntax = "proto2";
package com.test;
import "ImageElement.proto";
import "Color.proto";
...
0
votes
2
answers
312
views
How to create a jar file for Gatling gRPC Load test with only test class
I am using the code from https://github.com/alexromanov/gatling-grpc-tests-sample
i have added new protobuf under src/main and added a newSimulation.scala under src/test/scala/load. The code works ...
0
votes
1
answer
664
views
Scala Protocol Buffer and Maven issues
My requirment is use Protocol Buffer on the Scala Play! REST API project and I'm having a hard time adding it. I followed the instructions in the documentation but it keeps failing. This is how it ...