Is it possible to generate nullable members in protobuf-net?
message ProtoBuf1 {
optional Int32? databit = 1;
optional Nullable databool
Import "wrappers.proto" supports nullable values:
Full list of supported types - https://docs.microsoft.com/en-us/dotnet/architecture/grpc-for-wcf-developers/protobuf-data-types#nullable-types
Example:
syntax = "proto3";
import "google/protobuf/wrappers.proto";
message ProtoPerson {
google.protobuf.StringValue firstName = 1;
google.protobuf.StringValue lastName = 2;
google.protobuf.StringValue address1 = 3;
google.protobuf.Int32Value age = 4;
}