Skip to main content

Questions tagged [proto3]

Protocol Buffers - Google's data interchange format

0 votes
0 answers
32 views

Enforce requiredness with email validation rules?

I'm using the protoc-gen-validate extensions to Protocol Buffer. I came across some other answers here but they didn't completely answer my question. I'm trying to validate that the value passed into ...
AKang123.'s user avatar
  • 465
0 votes
1 answer
90 views

Protobuf partial serialization of common fields in Java

I have a protobuf message which I need to send to multiple clients. The message has the same data for each client except for one field (a sequence number) which is different for each client. Now I can ...
Fexl's user avatar
  • 59
1 vote
0 answers
110 views

Proto3 implicit field presence

In the proto3 guide (https://protobuf.dev/programming-guides/proto3/) it says: If no explicit field label is applied, the default field label, called “implicit field presence,” is assumed. (You ...
Fexl's user avatar
  • 59
0 votes
1 answer
65 views

gRPC and Protobuf - How and Where the Efficiency is Achieved as part of Building/Binding?

I am very new to gRPC and Protobuf (Java Binding). I tried to read the documentation and found the below diagram helpful (from protobuf official guide) https://protobuf.dev/overview/#work What I've ...
ha9u63a7's user avatar
  • 6,631
1 vote
1 answer
87 views

protobuf webhook with no fixed request structure

I am using Golang as my backend and proto3 as my API definitions. I have grpc-gateway to support http along with grpc. My use case is To have a webhook API which gets in some payload and processes it. ...
Tilak Raj's user avatar
  • 1,469
0 votes
0 answers
82 views

Defined proto enum types cannot generate corresponding enum classes after compilation [python]

I have defined two enums in common.proto as follows: syntax = "proto3"; package common; message ClientTypeEnum { enum ClientType { SMB = 0; BV_VL = 1; } }; enum ErrCode{ ...
jia Jimmy's user avatar
  • 1,830
0 votes
0 answers
68 views

`proto3-json-serializer` doesn't map protobuf messages to proto3 json objects properly

I'm trying to upgrade the protobufjs package version from 6.11.3 to 7.2.4. But I noticed that message serialization part is not worked properly with latest protobufjs version. I'm using npm package ...
peemi's user avatar
  • 1
0 votes
2 answers
80 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 ...
Jeevi's user avatar
  • 2,992
0 votes
1 answer
159 views

Defining a single RPC with both a streaming and unary response

Is it possible to define a single proto3 RPC that can have either a streaming response or a unary response? Like when I define the RPC I can make it clear that the stream keyword is optional? If ...
tutu056's user avatar
  • 83
0 votes
1 answer
3k views

In proto3, can validate.rules enforce requiredness? Or do they only apply when the field is supplied. Or does it depend

I'll be able to answer this question myself once I get this service running but I was surprised I couldn't find an answer on SO, at least by the keywords I was searching. The problem is if you search ...
Andrew Cheong's user avatar
2 votes
1 answer
859 views

How to collate several protobuf messages into one object

I have a a protobuf message in the form of: message CustomMessage { SubMessageTypeA a_msg = 1; SubMessageTypeB b_msg = 2; SubMessageTypeC c_msg = 3; } I have several objects (assume 3)...
Amir's user avatar
  • 509
2 votes
1 answer
2k views

How to serialize protobuf from json with auto ignoring unknown fields in c#?

For example, I have a proto like this: message ProtoType { string field1 = 1; strin field2 = 2; } And I have a json deserialized from a newer version of this proto: { "field1": &...
Yyh's user avatar
  • 103
0 votes
2 answers
728 views

Could I reuse an existing protobuf binary, when marshaling a message including it?(protobuf3)

Protobuf definations are like that: syntax = "proto3" message HugeMessage { // omitted } message Request { string name = 1; HugeMessage payload = 2; } In a situation I ...
Miss Yoimiya's puppy's user avatar
1 vote
1 answer
1k views

grpc-gateway removed omitempty tag from generated json tags, but empty fields are still not returned

I am using grpc-gateway v1.16 and I have removed the omitempty tags from the struct generated in the *.pb.go files as suggested here -> golang protobuf remove omitempty tag from generated json tags ...
Gary's user avatar
  • 31
5 votes
1 answer
24k views

rpc error: code = Unavailable desc = error reading from server: EOF resulting in a panic runtime error: invalid memory address error on goland

I am new Stack Overflow and this is my first question so I'm very open and happy to make any improvements to it :) I'm having an issue when I run a test method to unlike an artwork. I have a method ...
Michael Altshuler's user avatar

15 30 50 per page
1
2 3 4 5
10