288 questions
0
votes
1
answer
122
views
Ghidra - Protobuf Issue when Debugging on Windows
I've just installed Ghidra and tried to debug a sample program to get a taste of it. I've installed Python 3.12 and the redistributed site-packages with it (from \Ghidra\Debug\Debugger-agent-dbgeng\...
0
votes
1
answer
79
views
How to encode string in protobuf using UnknownFieldSet
I am writing a raw protobuf message with the library com.google.protobuf, leveraging UnknownFieldSet and I am encountering a problem when encoding strings as they sometimes break the result.
I want to ...
0
votes
1
answer
126
views
Flink SQL Error: Exception in thread "main" org.apache.flink.table.client.SqlClientException: Unexpected exception
My goal is to set up the Flink-SQL-Connector. I want to use SQL capabilities to retrieve Kafka topic messages. Protobuf is being used by Kafaf Topic.
I am getting error "Exception in thread "...
0
votes
1
answer
141
views
gRPC with jmeter is not working in alpine/jmeter:5.6.3 image
I was able to run the jmeter http sampler request script in Kubernetes, but when I try with the gRPC request, I get the below error:
2025-01-08 10:33:25,530 ERROR v.z.b.GRPCSampler: java.lang....
0
votes
1
answer
272
views
Encountered UNKNOWN_MEMBER_ID from HEARTBEAT response - Kafka
I have created ProtoBuf file and using object file generated via protoc command in my code i.e.
MyEvent.java
MyEventOrBuilder.java
MyEventProtos.java
I am using Apache Kafka (Confluent) to handle the ...
0
votes
1
answer
70
views
How to migrate to Gradle kts prototbuf configuration in my Android application build file
I am migrating to Gradle kts in my current Andriod application.
The protobuf configuration is proving to be very challenging
the original verson for gradle is as follows:-
// Versions
def ...
0
votes
2
answers
339
views
The descriptor for message type .google.protobuf.Timestamp cannot be found and a placeholder is created for it
I'm getting the above warning while executing tests. It seems that it doesn't affect anything and the tests are executed successfully. Any Idea why I'm seeing this warning?
0
votes
1
answer
70
views
How to marshall ? And ZonedDateTime in protostream 4.4.3java8
I have
class P{
@ProtoField(number=1, CollectionImplementation=ArrayList.class)
List<? extends Account> accounts;
@ProtoField(number=2)
ZonedDateTime fromDate;
@ProtoFactory
P(List<? extends ...
1
vote
1
answer
1k
views
Which one should i use in protobuf? oneof, Any, Map?
I have a .proto, there is one message in it named Event.
message Event{
string id=1;
string param=2;
}
The param field of Event is a model defined by biz layer, different biz has different ...
1
vote
0
answers
40
views
Why does the text field of DialogFlow's ResponseMessage contain a string array?
In the example from Google's documentation, we see that the text responses from a detectIntent call are in the following format:
{
"responseId": "38e8f23d-eed2-445e-a3e7-149b242dd669&...
0
votes
1
answer
207
views
Grpc file is missing when using protoc to generate code
I'm learning grpc. This is a simple hello world example:
syntax = "proto3";
option java_multiple_files = true;
option java_package = "io.grpc.helloworld";
option ...
-1
votes
1
answer
539
views
how to map Object type variable of java in protobuf 3 for grpc
I have class with below properties in my service, I want to create a grpc service for this. but i am not able to find how can i map Object data in protobuf.
public class FeatureDetails {
private ...
1
vote
0
answers
388
views
Convert Json to protobuf DynamicMessage fails to convert unix timestamp dates
I'm trying to dynamically convert a JSON string to a DynamicMessage from the protobuf library.
Currently, I have the following piece of code:
val topic = "sample-topic"
// I'm using ...
0
votes
1
answer
135
views
De/Serialzing custom java types with protobuf in java [duplicate]
protocul buffer supports only a close set of types, like int32, strings, repeted, etc.
The problem is that I want to create a custom deserializer for specific things. For example, look at this proto ...
0
votes
2
answers
116
views
Do we have Future Datatype in Protobuf
I am exploring on grpc
My sample application fetches few records from Database + reads a file from S3(very small file) and returns the combined result.
Since the file size is very less, i am not using ...
0
votes
1
answer
2k
views
Packing map<string, string> type into google.protobuf.Any
I'm struggling with packing a protobuf map type into google.protobuf.Any in Java. The proto message I'm working with has the following schema:
message Msg {
google.protobuf.Any value = 1;
}
For ...
1
vote
3
answers
1k
views
How can I solve "Type com.google.protobuf.Any$1 is defined multiple times" problem on Android Studio
I am upgrading my Android app to support API 33.
For that, I also upgraded protobuf & grpc libraries.
Everything is upgraded and the app works if I build & run it directly from Android Studio ...
22
votes
3
answers
8k
views
Proto datastore jetpack compose - gradle dependencies exception
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 ...
0
votes
0
answers
69
views
Executing eclipse plug-in with maven
I am working on a protobuf plugin project where I have a bundle of protobuf dependencies imported as a plug-in dependency to my protobuf plugin.
One of the dependencies is the protoc-jar-maven-plugin ...
11
votes
2
answers
6k
views
Issue on R8 minify
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....
1
vote
1
answer
126
views
How to do snapshot testing using protobuf3 text messages? [closed]
Can someone let me know if there is any library or extension available for doing snapshot testing using protobuf text messages?
Something similar to what the below libraries do
json-snapshot
jest ...
0
votes
1
answer
1k
views
protoc-jar-maven-plugin unable to find dependent proto files in the same directory
I have a directory that stores all of my proto files at ${basedir}/resources/proto/, there is a file a.proto in which imports another proto file via resources/proto/b.proto. I tried the following ...
3
votes
0
answers
706
views
how to integrate sentencepiece, protobuf into existing android project correctly
I am trying to integrate pytorch model to process language. This is why I need the sentencepiece to tokenize the sentence chunks. But I am unable to do that correctly.
I did not find any robust ...
1
vote
2
answers
3k
views
Convert Protobuf to Json without Quotes
ad_group {
resource_name: "customers/8776659915/adGroups/143689544046"
status: ENABLED
type: VIDEO_TRUE_VIEW_IN_STREAM
id: 143689544046
name: "Video Consideration - 2023-01-06&...
1
vote
0
answers
599
views
Generating HTTP REST API endpoint from existing grpc .proto file with streaming
I have an existing java grpc server file that is generated from a .proto file. I need to add HTTP REST API endpoints for each of the rpc calls in my .proto file. Probably using google.api.http.
The ....