Eben Du Toit
03/03/2020, 8:17 AMjimn
03/18/2020, 7:24 AMasad.awadia
03/18/2020, 10:13 PMGary
04/05/2020, 2:30 AMasad.awadia
04/17/2020, 5:08 PMasad.awadia
04/21/2020, 11:09 PMDariusz Kuc
05/15/2020, 9:59 PMDariusz Kuc
06/02/2020, 8:43 PMmetadata.FromIncomingContext
.
Does anyone know if there is similar function for Kotlin/Java?Dariusz Kuc
07/06/2020, 6:51 PMSergey Skaredov
12/09/2020, 4:12 PM"SendMessage worker for ${method.fullMethodName}"
seems overkillDariusz Kuc
02/10/2021, 11:28 PM.proto
files are going to be extracted by the protobuf plugin? i.e. configure extractIncludeProto
task to exclude certain files?Mark Allanson
04/30/2021, 7:33 AMval message = with(MyMessage.newBuilder()) {
someField = 1
build()
}
I was thinking it would be nicer to do something like....
val message = build(MyMessage) {
someField = 1
}
... but my Kotlin isn't good enough to be able to write that build function yet 😄Dariusz Kuc
06/10/2021, 8:29 PMMarc Plano-Lesay
10/13/2021, 10:19 AMFleshgrinder
10/30/2021, 3:42 PMTomasz Krakowiak
11/04/2021, 5:57 AMMarc Plano-Lesay
11/04/2021, 6:57 AMJohann Pardanaud
01/06/2022, 9:57 AMprivate class HelloWorldService : GreeterGrpcKt.GreeterCoroutineImplBase() {
override suspend fun sayHello(request: HelloRequest) = helloReply {}
}
And I want to write the following code at the beginning of this method (from Kotlin's documentation):
launch {
delay(1000L)
println("World!")
}
println("Hello")
If I simply copy-paste this code in my method, launch
isn't recognized as a valid method because it should by used on a coroutine scope.
If I wrap my code with a coroutineScope
like this:
override suspend fun sayHello(request: HelloRequest) = coroutineScope {
launch {
delay(1000L)
println("World!")
}
println("Hello")
helloReply {}
}
It builds, the code is even executed when I make a call from the client, however the server returns an UNKNOWN
code before the launch
job can even finish and the HelloReply
is not used.
So I think I shouldn't create my own coroutine scope and I should use a scope already defined by the server, but I don't find anything related to a "default gRPC coroutine scope" in the API reference.
I must be missing something really obvious, can someone help me run this really basic code please? 🙏Cristian Nicolas Gonzalez
04/15/2022, 10:25 PM@io.grpc.stub.annotations.GrpcGenerated
^
symbol: class GrpcGenerated
location: package io.grpc.stub.annotations
Júlio Santos
05/12/2022, 1:12 AMgrpc-kotlin
for web projects?taer
06/24/2022, 9:36 PMtaer
06/24/2022, 9:38 PMdavec
06/27/2022, 9:03 PMval request = rectangle {
lo = point(lowLat, lowLon)
hi = point(hiLat, hiLon)
}
var i = 1
stub.listFeatures(request).
☝️ that looks easy in theory but try it with a nontrivial request and it becomes near impossible to come up with the right syntax. Seems like sometimes things are a "DSL code block" and other time they're done like constructors? It would be nice if I could just construct the request like a data class
instead of all this stuffdavec
06/27/2022, 9:05 PMmessage DateRange {
// The beginning of the date range
google.type.Date from = 1 [(validate.rules).message.required = true];
// The end of the date range
google.type.Date until = 2 [(validate.rules).message.required = true];
}
David Reedy
07/09/2022, 7:27 AMDavid Reedy
07/09/2022, 7:27 AMdavec
07/11/2022, 7:20 PMgradlew bootJar
). Can build, run, everything works fine.davec
07/11/2022, 7:20 PMdavec
07/27/2022, 2:59 PMAkram Bensalem
09/12/2022, 2:17 PMAkram Bensalem
09/12/2022, 2:17 PMMSC
09/15/2022, 11:12 PM