protobuf-java Questions

2

I installed the new version of Android Studio and did update of my project (without changing dependencies) and i had this issue: Missing class com.google.protobuf.java_com_google_android_gmscore_sd...
Agentival asked 20/4, 2023 at 11:8

2

I have a POST endpoint in my Java service that expects a protobuf 3 payload. This service is used by other services which send the protobuf payload. I would like to do some debugging and send a pro...
Jocularity asked 30/7, 2020 at 20:23

3

Solved

I followed this codelab from the android developer platform: https://developer.android.com/codelabs/android-proto-datastore#4 Added the same exact dependencies as shown in the codelab and I get the...

2

Solved

I'm trying to map some POJOs from Java to Protobuf (proto3). Some of them contain Lists. While mapping lists with POJOs (for example List) is no problem, I'm getting a UnsupportedOperationException...
Quits asked 19/7, 2018 at 7:38

3

Solved

I am using gRPC application and building a simple app. Below the files. syntax = "proto3"; option java_multiple_files = true; package com.grpc; message HelloRequest { string firstName =...
Liddy asked 30/9, 2020 at 14:1

4

Solved

I am trying to dynamically parse a given .proto file in Java to decode a Protobuf-encoded binary. I have the following parsing method, in which the "proto" string contains the content of the .prot...
Debose asked 4/12, 2017 at 13:57

0

I don't understand why an optional field (like middle_name in the example below), is not nullable in the Kotlin generated representation while in Golang and Rust it is properly nullable (or optiona...
Rondelet asked 27/1, 2023 at 13:52

2

Solved

I have been trying to generate the basic gRPC client and server interfaces from a .proto service definition here from the grpc official repo. The relevant service defined in that file (from the li...
Retha asked 30/12, 2018 at 9:49

0

The core problem is that I want to set default values for child messages. Since proto3 doesn't allow the setting of default values in the proto file. Example Protobuf message Person { int32 age = ...
Glassy asked 17/3, 2022 at 16:31

2

Solved

I am having one protobuf message - message Sample{ string field1 = 1; string field2 = 2; string field3 = 3; } These messages are stored in datastore in binary format. So if I want to remove any...

1

Solved

Looking into UTF8 decoding performance, I noticed the performance of protobuf's UnsafeProcessor::decodeUtf8 is better than String(byte[] bytes, int offset, int length, Charset charset) for the foll...

1

Solved

Lately, I started using gRPC messages to interact with microservices. Until now I was using the REST API's with DTOs do keep on decoupling and encapsulation in the code itself. Now I'm while using ...
Immensurable asked 17/9, 2020 at 8:0

1

I have a project where I am using both FirebaseInAppMessaging and Dialogflow but I am having a hard time resolving the dependencies. After adding both FirebaseInAppMessaging and Dialogflow, I get t...

2

Solved

Given a proto file: syntax = "proto3"; package hello; message TopGreeting { NestedGreeting greeting = 1; } message NestedGreeting { Greeting greeting = 1; } message Greeting { strin...
Phocine asked 18/7, 2020 at 5:59

1

I have a Java application that reads some protobuf data from another computer and can then modify some values and write it back. It is very likely that a user could read the data using an outdated ...
Ryanryann asked 11/5, 2019 at 13:39

1

Is there an efficient technique to batch different Protobuf events while sending over HTTP? The goal is to have a list of multi-type Protobuf messages in one request. One idea I have is to separa...

1

Solved

When I'm reversing an apk I got .pb file but not .proto file, is there any way to decompiler this file to .proto file or can I just generate java code from this .pb file ?
Ella asked 29/7, 2019 at 8:33

1

Solved

Would it be possible to access context attributes of a grpc call from the rpc method definition? I have written a Server Interceptor which is something similar to this @Override public <ReqT, Re...
Stickler asked 18/7, 2019 at 15:45

1

Solved

I am following a tutorial about using grpc and I am supposed to use a plugin to generate source code but I am stuck on how to use the --grpc_out and --plugin flag. Below are the current challenges...
Mercantile asked 6/3, 2019 at 12:44

1

Solved

Given the following json response: { "id" : "123456", "name" : "John Doe", "email" : "[email protected]" } And the following use...
Hausfrau asked 23/8, 2018 at 8:33

0

Im using protobuf 2.6.1 and I have a case where there are complex types such as UUID represented as two fixed64 fields, timestamps represented as longs etc which need to be printed in a more human ...
Cyclopentane asked 14/8, 2018 at 19:47
1

© 2022 - 2024 — McMap. All rights reserved.