Google.Protobuf.ProtoPreconditions public static class ProtoPreconditions Helper methods for throwing exceptions when preconditions are not met. Documentation Code public static T CheckNotNull<T>(T value, string name) Throws an ArgumentNullException if the given value is null, otherwise return the value to the caller.