...

/

Solution Review: Applying Nullable Types

Solution Review: Applying Nullable Types

Review the solution to converting non-nullable scalar value types into nullable data types.

We'll cover the following...

Overview

The code widget below shows the solution to the exercise where we were asked to make all scalar value types nullable.

syntax = "proto3";

import "google/protobuf/wrappers.proto";

option csharp_namespace = "BasicGrpcService";

package basic_grpc_service;

service Chatbot {
  rpc SendMessage (ChatRequest) returns (ChatReply);
}

message ChatRequest {
  google.protobuf.StringValue name = 1;
  google.protobuf.StringValue message = 2;
}

message ChatReply {
  google.protobuf.StringValue message = 1;
}
Solution showing how scalar value types can be made nullable

Solving the challenge

To ...