Questions tagged [protobuff.net]

7 questions
4
votes
1 answer

Is there a way to implement map>> in protobuf 3?

I tried this but have scope issues. message DataCollectionMessage { message subData { message SubDataList { repeated string data = 1; } map parameters = 1; } …
Deepak Garg
  • 47
  • 1
  • 6
1
vote
1 answer

An easier way of setting nested properties values in Grpc generated java code

We are using Grpc with our java apps and we have a nested object defined in protobuff. example of the proto: message Person { string name = 1; Child child = 2; } message Child { string name = 1; Hobby hobbies = 2; } message Hobby { …
hen shalom
  • 127
  • 1
  • 1
  • 9
1
vote
0 answers

How can I display a pdf in a Google.Protobuf.ByteString in a new browser window or tab in a server side Blazor App?

So this works in displaying the file size of a pdf assembled from a .Net gRPC service, but I really would like to display the PDF in a new browser tab or window without storing it down as a file first. Note: I'm trying to avoid using…
1
vote
0 answers

Type is not expected, and no contract can be inferred: (unknown) IN C#

public ProtobufSerializer(IWebSerializableTypeHandler webSerializableTypeHandler, bool useTypeHashCode) { RuntimeTypeModel.Default.Add(typeof(Project), true).SetSurrogate(typeof(Project)); } private CommandData…
1
vote
1 answer

serviceStack and protobuff

This is a type I define public class NewPropVideoResponse { [DataMember(Order = 1)] public int VideoId { get; set; } } This is the type I want to return NewPropVideoResponse[] How do I use protobuff serialization?
nao zhao
  • 29
  • 2
1
vote
1 answer

How to use protobuff in the serviceStack framework

Do you have a corresponding example? I want to convert the transport format to protolbuff now. Thank you.
nao zhao
  • 29
  • 2
1
vote
2 answers

C# does generic contain empty collection

An annoying behaviour of ProtoBuff.net is that empty collections are serialised as null. This can create some pretty hard to pin down bugs. Retrieval of cached values from my application is done with the following function: public T Get(string…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456