I’m trying to generate Protobufs in a Java project that are defined in another Git repository that I’d like to add as a Git submodule. My build.gradle contains and I’ve included the protobufs repository (called my-protobufs) in the src/main/proto directory. The Protobufs are in turn located in a proto subdirectory of my-protobufs. A partial directory structure looks like this: The
I’m trying to write a static util function that takes in a protobuf object and determine if it’s a default instance, something along the line of: Would like for it to be able to apply to a range of protobuf objects like Struct / Types / Messages, however getDefaultInstance() appears to only get defined in the child classes. I’m thinking
I want to get a list of protobuf message objects from the Spring boot app. I did manage to get a single protobuf message object from the app but getting a list of them throws exception. My code (simplified). tl;dr create Spring boot app generate class from proto file try return List of generated class objects (RESTful) My code (simplified).
In my project we have an API, and many clients may send transactions to this API. Transactions should be signed. Clients may be written in any language (C++, C#, python, go, whatever), with any CPU …
Google protocol buffers (3.0.0-beta2) offers the well-known type Timestamp. The documentation describes the initialization in Java using System.currentTimeMillis() as following: long millis = System….